@knpkv/rly 0.13.0 → 0.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +73 -1
- package/dist/{Dialog-B9Ub_gMT.js → Dialog-CU66FqWD.js} +325 -257
- package/dist/Dialog-CU66FqWD.js.map +1 -0
- package/dist/{PortalProvider-CN_81Fy3.js → PortalProvider-op07u8na.js} +20 -18
- package/dist/PortalProvider-op07u8na.js.map +1 -0
- package/dist/assets/relay-mark.svg +9 -0
- package/dist/components.css +1 -1
- package/dist/dts/foundations/Icon.d.ts +1 -1
- package/dist/dts/foundations/Icon.d.ts.map +1 -1
- package/dist/dts/internal/composedFocus.d.ts +11 -0
- package/dist/dts/internal/composedFocus.d.ts.map +1 -0
- package/dist/dts/internal/relaySummon.d.ts +50 -0
- package/dist/dts/internal/relaySummon.d.ts.map +1 -0
- package/dist/dts/patterns/Region.d.ts +2 -2
- package/dist/dts/patterns/Region.d.ts.map +1 -1
- package/dist/dts/patterns/RelayComposer.d.ts +65 -0
- package/dist/dts/patterns/RelayComposer.d.ts.map +1 -0
- package/dist/dts/patterns/RelayDock.d.ts.map +1 -1
- package/dist/dts/patterns/RelayLauncher.d.ts +67 -0
- package/dist/dts/patterns/RelayLauncher.d.ts.map +1 -0
- package/dist/dts/patterns/RelayMark.d.ts +35 -0
- package/dist/dts/patterns/RelayMark.d.ts.map +1 -0
- package/dist/dts/patterns/RelayPanel.d.ts +91 -0
- package/dist/dts/patterns/RelayPanel.d.ts.map +1 -0
- package/dist/dts/patterns/index.d.ts +8 -0
- package/dist/dts/patterns/index.d.ts.map +1 -1
- package/dist/dts/tokens/fonts.d.ts +13 -0
- package/dist/dts/tokens/fonts.d.ts.map +1 -0
- package/dist/dts/tokens/index.d.ts +2 -0
- package/dist/dts/tokens/index.d.ts.map +1 -1
- package/dist/fonts.css +83 -2
- package/dist/foundations/index.js +1 -1
- package/dist/generated-tokens.css +2 -2
- package/dist/index.js +6 -6
- package/dist/patterns/index.js +2 -2
- package/dist/{patterns-DPd5YlSW.js → patterns-CDBnXTUD.js} +1258 -756
- package/dist/patterns-CDBnXTUD.js.map +1 -0
- package/dist/primitives/index.js +3 -3
- package/dist/{primitives-Bd6WhE78.js → primitives-DgQybTyq.js} +254 -322
- package/dist/primitives-DgQybTyq.js.map +1 -0
- package/dist/tokens/index.js +2 -2
- package/dist/{tokens-B075JP3Z.js → tokens-Cf0jXIRg.js} +14 -8
- package/dist/tokens-Cf0jXIRg.js.map +1 -0
- package/package.json +2 -1
- package/registry/components.json +373 -0
- package/registry/search.json +88 -0
- package/dist/Dialog-B9Ub_gMT.js.map +0 -1
- package/dist/PortalProvider-CN_81Fy3.js.map +0 -1
- package/dist/patterns-DPd5YlSW.js.map +0 -1
- package/dist/primitives-Bd6WhE78.js.map +0 -1
- package/dist/tokens-B075JP3Z.js.map +0 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { i as e, r as t, t as n } from "./PortalProvider-
|
|
1
|
+
import { i as e, r as t, t as n } from "./PortalProvider-op07u8na.js";
|
|
2
2
|
import { n as r } from "./LinkProvider-DMkhwZ3P.js";
|
|
3
|
-
import { a as i, c as a, i as o, l as s, n as c,
|
|
4
|
-
import {
|
|
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, o as l, r as u, s as d, t as f } from "./component-DKy8kjZl.js";
|
|
4
|
+
import { B as p, D as m, F as h, H as g, I as _, L as v, N as y, O as b, P as ee, R as x, S, V as te, f as ne, h as re, o as ie, s as C, t as ae, v as oe, y as se, z as ce } from "./Dialog-CU66FqWD.js";
|
|
5
|
+
import { Dialog as le, Portal as ue } from "radix-ui";
|
|
6
|
+
import { useCallback as w, useEffect as de, useId as T, useLayoutEffect as fe, useRef as E, useState as pe, useSyncExternalStore as me } from "react";
|
|
7
|
+
import { Fragment as he, jsx as D, jsxs as O } from "react/jsx-runtime";
|
|
8
|
+
var ge = {
|
|
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 fe = {
|
|
|
17
17
|
context: "rly_AgentContextButton-module__context",
|
|
18
18
|
job: "rly_AgentContextButton-module__job",
|
|
19
19
|
count: "rly_AgentContextButton-module__count"
|
|
20
|
-
}, k = (e) => c(
|
|
20
|
+
}, k = (e) => c(ge, e), _e = () => /* @__PURE__ */ D("span", {
|
|
21
21
|
"aria-hidden": "true",
|
|
22
22
|
className: k("mark"),
|
|
23
23
|
children: /* @__PURE__ */ D("svg", {
|
|
@@ -29,16 +29,16 @@ var fe = {
|
|
|
29
29
|
fill: "currentColor"
|
|
30
30
|
})
|
|
31
31
|
})
|
|
32
|
-
}),
|
|
33
|
-
let l = o(e, "AgentContextButton actionLabel"), u = o(t, "AgentContextButton agentName"),
|
|
32
|
+
}), ve = ({ 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"), d = o(r, "AgentContextButton context"), p = o(i, "AgentContextButton contextLabel"), m = a === void 0 ? void 0 : o(a.status, "AgentContextButton job status");
|
|
34
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__ */ O("button", {
|
|
36
36
|
...c,
|
|
37
|
-
className:
|
|
37
|
+
className: f(k("root"), n),
|
|
38
38
|
"data-rly-agent-context-button": "",
|
|
39
39
|
type: s ?? "button",
|
|
40
40
|
children: [
|
|
41
|
-
/* @__PURE__ */ D(
|
|
41
|
+
/* @__PURE__ */ D(_e, {}),
|
|
42
42
|
/* @__PURE__ */ O("span", {
|
|
43
43
|
className: k("copy"),
|
|
44
44
|
children: [
|
|
@@ -57,7 +57,7 @@ var fe = {
|
|
|
57
57
|
children: p
|
|
58
58
|
}), /* @__PURE__ */ D("span", {
|
|
59
59
|
className: k("context"),
|
|
60
|
-
children:
|
|
60
|
+
children: d
|
|
61
61
|
})]
|
|
62
62
|
})
|
|
63
63
|
]
|
|
@@ -72,7 +72,7 @@ var fe = {
|
|
|
72
72
|
})
|
|
73
73
|
]
|
|
74
74
|
});
|
|
75
|
-
},
|
|
75
|
+
}, ye = {
|
|
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 fe = {
|
|
|
85
85
|
eyebrow: "rly_AgentDrawer-module__eyebrow",
|
|
86
86
|
slotTitle: "rly_AgentDrawer-module__slotTitle",
|
|
87
87
|
contextSummary: "rly_AgentDrawer-module__contextSummary"
|
|
88
|
-
}, A = (e) => c(
|
|
88
|
+
}, A = (e) => c(ye, e), be = () => /* @__PURE__ */ D("span", {
|
|
89
89
|
"aria-hidden": "true",
|
|
90
90
|
className: A("mark"),
|
|
91
91
|
children: /* @__PURE__ */ D("svg", {
|
|
@@ -97,7 +97,7 @@ var fe = {
|
|
|
97
97
|
fill: "currentColor"
|
|
98
98
|
})
|
|
99
99
|
})
|
|
100
|
-
}),
|
|
100
|
+
}), xe = ({ children: e, label: t, name: n }) => /* @__PURE__ */ O("section", {
|
|
101
101
|
className: A("slot"),
|
|
102
102
|
"data-rly-agent-drawer-slot": n,
|
|
103
103
|
children: [/* @__PURE__ */ D("h2", {
|
|
@@ -107,35 +107,35 @@ var fe = {
|
|
|
107
107
|
className: A("slotContent"),
|
|
108
108
|
children: e
|
|
109
109
|
})]
|
|
110
|
-
}),
|
|
111
|
-
let
|
|
112
|
-
return /* @__PURE__ */ D(
|
|
110
|
+
}), Se = ({ agentName: e, capabilities: t, className: n, composer: r, context: i, contextSummary: a, evidence: s, onOpenChange: c, open: l, thread: u, title: d, ...p }) => {
|
|
111
|
+
let m = o(e, "AgentDrawer agentName"), h = o(a, "AgentDrawer contextSummary"), g = o(d, "AgentDrawer title"), _ = E(null);
|
|
112
|
+
return /* @__PURE__ */ D(y.Root, {
|
|
113
113
|
onOpenChange: c,
|
|
114
114
|
open: l,
|
|
115
|
-
children: /* @__PURE__ */ D(
|
|
116
|
-
className:
|
|
117
|
-
description: `Context-aware session with ${
|
|
118
|
-
initialFocusRef:
|
|
119
|
-
title:
|
|
120
|
-
children: /* @__PURE__ */ O(
|
|
121
|
-
...
|
|
115
|
+
children: /* @__PURE__ */ D(y.Content, {
|
|
116
|
+
className: f(A("drawer"), n),
|
|
117
|
+
description: `Context-aware session with ${m}`,
|
|
118
|
+
initialFocusRef: _,
|
|
119
|
+
title: g,
|
|
120
|
+
children: /* @__PURE__ */ O(y.Body, {
|
|
121
|
+
...p,
|
|
122
122
|
className: A("body"),
|
|
123
123
|
children: [
|
|
124
124
|
/* @__PURE__ */ O("section", {
|
|
125
|
-
className:
|
|
125
|
+
className: f(A("slot"), A("contextSlot")),
|
|
126
126
|
"data-rly-agent-drawer-slot": "context",
|
|
127
|
-
ref:
|
|
127
|
+
ref: _,
|
|
128
128
|
tabIndex: -1,
|
|
129
129
|
children: [/* @__PURE__ */ O("div", {
|
|
130
130
|
className: A("identity"),
|
|
131
|
-
children: [/* @__PURE__ */ D(
|
|
131
|
+
children: [/* @__PURE__ */ D(be, {}), /* @__PURE__ */ O("div", {
|
|
132
132
|
className: A("identityCopy"),
|
|
133
133
|
children: [/* @__PURE__ */ D("span", {
|
|
134
134
|
className: A("eyebrow"),
|
|
135
|
-
children:
|
|
135
|
+
children: m
|
|
136
136
|
}), /* @__PURE__ */ D("h2", {
|
|
137
137
|
className: A("contextSummary"),
|
|
138
|
-
children:
|
|
138
|
+
children: h
|
|
139
139
|
})]
|
|
140
140
|
})]
|
|
141
141
|
}), /* @__PURE__ */ D("div", {
|
|
@@ -143,12 +143,12 @@ var fe = {
|
|
|
143
143
|
children: i
|
|
144
144
|
})]
|
|
145
145
|
}),
|
|
146
|
-
/* @__PURE__ */ D(
|
|
146
|
+
/* @__PURE__ */ D(xe, {
|
|
147
147
|
label: "Evidence",
|
|
148
148
|
name: "evidence",
|
|
149
149
|
children: s
|
|
150
150
|
}),
|
|
151
|
-
/* @__PURE__ */ D(
|
|
151
|
+
/* @__PURE__ */ D(xe, {
|
|
152
152
|
label: "Capabilities",
|
|
153
153
|
name: "capabilities",
|
|
154
154
|
children: t
|
|
@@ -166,7 +166,7 @@ var fe = {
|
|
|
166
166
|
children: u
|
|
167
167
|
})]
|
|
168
168
|
}),
|
|
169
|
-
/* @__PURE__ */ D(
|
|
169
|
+
/* @__PURE__ */ D(xe, {
|
|
170
170
|
label: "Message",
|
|
171
171
|
name: "composer",
|
|
172
172
|
children: r
|
|
@@ -175,7 +175,7 @@ var fe = {
|
|
|
175
175
|
})
|
|
176
176
|
})
|
|
177
177
|
});
|
|
178
|
-
},
|
|
178
|
+
}, Ce = {
|
|
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 fe = {
|
|
|
187
187
|
slot: "rly_AgentJob-module__slot",
|
|
188
188
|
footer: "rly_AgentJob-module__footer",
|
|
189
189
|
outcome: "rly_AgentJob-module__outcome"
|
|
190
|
-
}, j = (e) => c(
|
|
190
|
+
}, j = (e) => c(Ce, e), we = (e, t) => {
|
|
191
191
|
if (e == null || i(e)) throw Error(`${t} must contain renderable content`);
|
|
192
192
|
s(e) && o(e, t);
|
|
193
|
-
},
|
|
193
|
+
}, Te = {
|
|
194
194
|
queued: {
|
|
195
195
|
label: "Queued",
|
|
196
196
|
tone: "neutral"
|
|
@@ -215,17 +215,17 @@ var fe = {
|
|
|
215
215
|
label: "Cancelled",
|
|
216
216
|
tone: "neutral"
|
|
217
217
|
}
|
|
218
|
-
},
|
|
218
|
+
}, Ee = (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
|
|
222
|
-
|
|
223
|
-
let x =
|
|
220
|
+
}, De = ({ cancelLabel: e = "Request cancellation", capability: t, className: n, context: r, evidence: i, heading: a, onCancel: s, outcome: c, progress: l, provider: u, revision: d, sandbox: p, state: h, ...g }) => {
|
|
221
|
+
let _ = o(a, "AgentJob heading"), v = o(u, "AgentJob provider"), y = o(t, "AgentJob capability"), ee = o(e, "AgentJob cancelLabel");
|
|
222
|
+
we(r, "AgentJob context"), we(i, "AgentJob evidence"), (h === "succeeded" || h === "failed" || h === "cancelled") && we(c, "AgentJob terminal outcome"), p !== void 0 && o(p, "AgentJob sandbox"), d !== void 0 && o(d, "AgentJob revision"), Ee(l);
|
|
223
|
+
let x = Te[h], S = h === "queued" || h === "running", te = `rly-agent-job-progress-${T()}`;
|
|
224
224
|
return /* @__PURE__ */ O("article", {
|
|
225
|
-
...
|
|
226
|
-
"aria-busy":
|
|
227
|
-
className:
|
|
228
|
-
"data-rly-agent-job-state":
|
|
225
|
+
...g,
|
|
226
|
+
"aria-busy": h === "queued" || h === "running" || h === "cancel-requested",
|
|
227
|
+
className: f(j("root"), n),
|
|
228
|
+
"data-rly-agent-job-state": h,
|
|
229
229
|
children: [
|
|
230
230
|
/* @__PURE__ */ O("header", {
|
|
231
231
|
className: j("header"),
|
|
@@ -240,13 +240,13 @@ var fe = {
|
|
|
240
240
|
children: [/* @__PURE__ */ O("span", {
|
|
241
241
|
className: j("eyebrow"),
|
|
242
242
|
children: [
|
|
243
|
-
|
|
243
|
+
v,
|
|
244
244
|
", ",
|
|
245
|
-
|
|
245
|
+
y
|
|
246
246
|
]
|
|
247
|
-
}), /* @__PURE__ */ D("h2", { children:
|
|
247
|
+
}), /* @__PURE__ */ D("h2", { children: _ })]
|
|
248
248
|
}),
|
|
249
|
-
/* @__PURE__ */ D(
|
|
249
|
+
/* @__PURE__ */ D(m, {
|
|
250
250
|
label: x.label,
|
|
251
251
|
size: "compact",
|
|
252
252
|
tone: x.tone
|
|
@@ -257,10 +257,10 @@ var fe = {
|
|
|
257
257
|
className: j("progressBlock"),
|
|
258
258
|
children: [/* @__PURE__ */ O("span", {
|
|
259
259
|
className: j("progressLabel"),
|
|
260
|
-
id:
|
|
260
|
+
id: te,
|
|
261
261
|
children: ["Progress ", /* @__PURE__ */ O("strong", { children: [Math.round(l), "%"] })]
|
|
262
262
|
}), /* @__PURE__ */ D("progress", {
|
|
263
|
-
"aria-labelledby":
|
|
263
|
+
"aria-labelledby": te,
|
|
264
264
|
max: 100,
|
|
265
265
|
value: l
|
|
266
266
|
})]
|
|
@@ -268,10 +268,10 @@ var fe = {
|
|
|
268
268
|
/* @__PURE__ */ O("dl", {
|
|
269
269
|
className: j("metadata"),
|
|
270
270
|
children: [
|
|
271
|
-
/* @__PURE__ */ O("div", { children: [/* @__PURE__ */ D("dt", { children: "Provider" }), /* @__PURE__ */ D("dd", { children:
|
|
272
|
-
/* @__PURE__ */ O("div", { children: [/* @__PURE__ */ D("dt", { children: "Capability" }), /* @__PURE__ */ D("dd", { children:
|
|
271
|
+
/* @__PURE__ */ O("div", { children: [/* @__PURE__ */ D("dt", { children: "Provider" }), /* @__PURE__ */ D("dd", { children: v })] }),
|
|
272
|
+
/* @__PURE__ */ O("div", { children: [/* @__PURE__ */ D("dt", { children: "Capability" }), /* @__PURE__ */ D("dd", { children: y })] }),
|
|
273
273
|
p === void 0 ? null : /* @__PURE__ */ O("div", { children: [/* @__PURE__ */ D("dt", { children: "Sandbox" }), /* @__PURE__ */ D("dd", { children: /* @__PURE__ */ D("code", { children: p }) })] }),
|
|
274
|
-
|
|
274
|
+
d === void 0 ? null : /* @__PURE__ */ O("div", { children: [/* @__PURE__ */ D("dt", { children: "Revision" }), /* @__PURE__ */ D("dd", { children: /* @__PURE__ */ D("code", { children: d }) })] })
|
|
275
275
|
]
|
|
276
276
|
}),
|
|
277
277
|
/* @__PURE__ */ O("section", {
|
|
@@ -285,8 +285,8 @@ var fe = {
|
|
|
285
285
|
children: [/* @__PURE__ */ D("h3", { children: "Evidence" }), i]
|
|
286
286
|
}),
|
|
287
287
|
c === void 0 ? null : /* @__PURE__ */ O("section", {
|
|
288
|
-
className:
|
|
289
|
-
"data-rly-agent-job-outcome":
|
|
288
|
+
className: f(j("slot"), j("outcome")),
|
|
289
|
+
"data-rly-agent-job-outcome": h,
|
|
290
290
|
children: [/* @__PURE__ */ D("h3", { children: "Terminal outcome" }), c]
|
|
291
291
|
}),
|
|
292
292
|
S && s !== void 0 ? /* @__PURE__ */ D("footer", {
|
|
@@ -294,12 +294,12 @@ var fe = {
|
|
|
294
294
|
children: /* @__PURE__ */ D(b, {
|
|
295
295
|
onClick: s,
|
|
296
296
|
variant: "quiet",
|
|
297
|
-
children:
|
|
297
|
+
children: ee
|
|
298
298
|
})
|
|
299
299
|
}) : null
|
|
300
300
|
]
|
|
301
301
|
});
|
|
302
|
-
},
|
|
302
|
+
}, Oe = {
|
|
303
303
|
root: "rly_AgentProposal-module__root",
|
|
304
304
|
header: "rly_AgentProposal-module__header",
|
|
305
305
|
agentIdentity: "rly_AgentProposal-module__agentIdentity",
|
|
@@ -314,10 +314,10 @@ var fe = {
|
|
|
314
314
|
outcome: "rly_AgentProposal-module__outcome",
|
|
315
315
|
state: "rly_AgentProposal-module__state",
|
|
316
316
|
facts: "rly_AgentProposal-module__facts"
|
|
317
|
-
}, M = (e) => c(
|
|
317
|
+
}, M = (e) => c(Oe, e), ke = (e) => {
|
|
318
318
|
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");
|
|
319
|
-
},
|
|
320
|
-
if (o(e.id, "AgentProposal id"),
|
|
319
|
+
}, Ae = (e) => {
|
|
320
|
+
if (o(e.id, "AgentProposal id"), ke(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");
|
|
321
321
|
let t = /* @__PURE__ */ new Set();
|
|
322
322
|
for (let n of e.evidence) {
|
|
323
323
|
let e = o(n.id, "AgentProposal evidence id");
|
|
@@ -325,19 +325,19 @@ var fe = {
|
|
|
325
325
|
t.add(e), o(n.label, `AgentProposal evidence label for ${e}`), o(n.reference, `AgentProposal evidence reference for ${e}`);
|
|
326
326
|
}
|
|
327
327
|
return e;
|
|
328
|
-
},
|
|
329
|
-
let a =
|
|
328
|
+
}, je = ({ className: e, outcome: t, proposal: n, state: r, ...i }) => {
|
|
329
|
+
let a = Ae(n), o = `rly-agent-proposal-${T()}`, s = `rly-agent-proposal-reference-${T()}`;
|
|
330
330
|
return /* @__PURE__ */ O("section", {
|
|
331
331
|
...i,
|
|
332
332
|
"aria-labelledby": `${o} ${s}`,
|
|
333
|
-
className:
|
|
333
|
+
className: f(M("root"), e),
|
|
334
334
|
"data-rly-agent-proposal-id": a.id,
|
|
335
335
|
children: [
|
|
336
336
|
/* @__PURE__ */ O("header", {
|
|
337
337
|
className: M("header"),
|
|
338
338
|
children: [/* @__PURE__ */ O("div", {
|
|
339
339
|
className: M("agentIdentity"),
|
|
340
|
-
children: [/* @__PURE__ */ D(
|
|
340
|
+
children: [/* @__PURE__ */ D(S, {
|
|
341
341
|
decorative: !0,
|
|
342
342
|
fallback: a.agent.avatarFallback,
|
|
343
343
|
form: "rounded-square",
|
|
@@ -400,7 +400,7 @@ var fe = {
|
|
|
400
400
|
})
|
|
401
401
|
]
|
|
402
402
|
});
|
|
403
|
-
},
|
|
403
|
+
}, Me = {
|
|
404
404
|
root: "rly_AgentThread-module__root",
|
|
405
405
|
header: "rly_AgentThread-module__header",
|
|
406
406
|
messageHead: "rly_AgentThread-module__messageHead",
|
|
@@ -421,24 +421,24 @@ var fe = {
|
|
|
421
421
|
content: "rly_AgentThread-module__content",
|
|
422
422
|
evidence: "rly_AgentThread-module__evidence",
|
|
423
423
|
visuallyHidden: "rly_AgentThread-module__visuallyHidden"
|
|
424
|
-
}, N = (e) => c(
|
|
424
|
+
}, N = (e) => c(Me, e), Ne = (e, t) => {
|
|
425
425
|
if (e == null || i(e)) throw Error(`${t} must contain renderable content`);
|
|
426
426
|
s(e) && o(e, t);
|
|
427
|
-
},
|
|
427
|
+
}, Pe = (e) => {
|
|
428
428
|
let t = e.trim().split(/\s+/u), n = Array.from(t[0] ?? "")[0] ?? "", r = Array.from(t[t.length - 1] ?? "")[0] ?? "";
|
|
429
429
|
return o(`${n}${t.length > 1 ? r : ""}`, "AgentThread actor fallback");
|
|
430
|
-
},
|
|
430
|
+
}, Fe = (e) => {
|
|
431
431
|
if (e.kind === "human") {
|
|
432
432
|
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");
|
|
433
433
|
return;
|
|
434
434
|
}
|
|
435
435
|
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"));
|
|
436
|
-
},
|
|
437
|
-
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
|
+
}, Ie = (e) => {
|
|
437
|
+
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 ?? Pe(t) : e.kind === "agent" ? e.avatarFallback ?? Pe(t) : Pe(t), i = e.kind === "human" ? e.person.avatarSrc : void 0;
|
|
438
438
|
return /* @__PURE__ */ O("div", {
|
|
439
|
-
className:
|
|
439
|
+
className: f(N("actor"), N(e.kind)),
|
|
440
440
|
"data-rly-agent-thread-actor": e.kind,
|
|
441
|
-
children: [/* @__PURE__ */ D(
|
|
441
|
+
children: [/* @__PURE__ */ D(S, {
|
|
442
442
|
className: N("avatar"),
|
|
443
443
|
"data-rly-agent-thread-avatar-form": e.kind === "human" ? "circle" : "rounded-square",
|
|
444
444
|
decorative: !0,
|
|
@@ -451,18 +451,18 @@ var fe = {
|
|
|
451
451
|
children: [/* @__PURE__ */ D("strong", { children: t }), /* @__PURE__ */ D("span", { children: n })]
|
|
452
452
|
})]
|
|
453
453
|
});
|
|
454
|
-
},
|
|
454
|
+
}, Le = ({ announcement: e, className: t, composer: n, context: r, emptyLabel: i = "No messages yet.", heading: a, messages: s, ...c }) => {
|
|
455
455
|
let l = o(a, "AgentThread heading"), u = o(i, "AgentThread emptyLabel");
|
|
456
|
-
|
|
457
|
-
let
|
|
456
|
+
Ne(r, "AgentThread context"), Ne(n, "AgentThread composer"), e !== void 0 && o(e, "AgentThread announcement");
|
|
457
|
+
let d = /* @__PURE__ */ new Set();
|
|
458
458
|
for (let e of s) {
|
|
459
459
|
let t = o(e.id, "AgentThread message id");
|
|
460
|
-
if (
|
|
461
|
-
|
|
460
|
+
if (d.has(t)) throw Error(`AgentThread message ids must be unique: ${t}`);
|
|
461
|
+
d.add(t), Fe(e.actor), Ne(e.content, `AgentThread message content for ${t}`), o(e.dateTime, `AgentThread message dateTime for ${t}`), o(e.time, `AgentThread message time for ${t}`);
|
|
462
462
|
}
|
|
463
463
|
return /* @__PURE__ */ O("section", {
|
|
464
464
|
...c,
|
|
465
|
-
className:
|
|
465
|
+
className: f(N("root"), t),
|
|
466
466
|
"data-rly-agent-thread": "",
|
|
467
467
|
children: [
|
|
468
468
|
/* @__PURE__ */ O("header", {
|
|
@@ -493,7 +493,7 @@ var fe = {
|
|
|
493
493
|
children: [
|
|
494
494
|
/* @__PURE__ */ O("div", {
|
|
495
495
|
className: N("messageHead"),
|
|
496
|
-
children: [
|
|
496
|
+
children: [Ie(e.actor), /* @__PURE__ */ D("time", {
|
|
497
497
|
dateTime: e.dateTime,
|
|
498
498
|
children: e.time
|
|
499
499
|
})]
|
|
@@ -528,21 +528,21 @@ var fe = {
|
|
|
528
528
|
})
|
|
529
529
|
]
|
|
530
530
|
});
|
|
531
|
-
},
|
|
531
|
+
}, Re = {
|
|
532
532
|
root: "rly_Person-module__root",
|
|
533
533
|
compact: "rly_Person-module__compact",
|
|
534
534
|
defaultSize: "rly_Person-module__defaultSize",
|
|
535
535
|
identity: "rly_Person-module__identity",
|
|
536
536
|
name: "rly_Person-module__name",
|
|
537
537
|
role: "rly_Person-module__role"
|
|
538
|
-
},
|
|
538
|
+
}, ze = (e) => c(Re, e), Be = u({ size: {
|
|
539
539
|
compact: {
|
|
540
|
-
className:
|
|
540
|
+
className: ze("compact"),
|
|
541
541
|
purpose: "Dense identity row with complete attribution",
|
|
542
542
|
tokens: ["space-24", "type-meta"]
|
|
543
543
|
},
|
|
544
544
|
default: {
|
|
545
|
-
className:
|
|
545
|
+
className: ze("defaultSize"),
|
|
546
546
|
purpose: "Standard identity row with complete attribution",
|
|
547
547
|
tokens: [
|
|
548
548
|
"space-32",
|
|
@@ -550,87 +550,87 @@ var fe = {
|
|
|
550
550
|
"type-meta"
|
|
551
551
|
]
|
|
552
552
|
}
|
|
553
|
-
} }),
|
|
553
|
+
} }), Ve = u({ size: "default" }), He = (e) => {
|
|
554
554
|
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] ?? "";
|
|
555
555
|
return o(`${a}${s}`, "Person avatar fallback");
|
|
556
|
-
},
|
|
557
|
-
let i =
|
|
556
|
+
}, Ue = (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), P = ({ className: e, person: t, size: n = "default", ...r }) => {
|
|
557
|
+
let i = Ue(t), a = i.avatarFallback ?? He(i.name);
|
|
558
558
|
return /* @__PURE__ */ O("div", {
|
|
559
559
|
...r,
|
|
560
|
-
className:
|
|
560
|
+
className: f(ze("root"), Be.size[n].className, e),
|
|
561
561
|
"data-rly-person-size": n,
|
|
562
|
-
children: [/* @__PURE__ */ D(
|
|
562
|
+
children: [/* @__PURE__ */ D(S, {
|
|
563
563
|
decorative: !0,
|
|
564
564
|
fallback: a,
|
|
565
565
|
size: n === "compact" ? "small" : "default",
|
|
566
566
|
...i.avatarSrc === void 0 ? {} : { src: i.avatarSrc }
|
|
567
567
|
}), /* @__PURE__ */ O("span", {
|
|
568
|
-
className:
|
|
568
|
+
className: ze("identity"),
|
|
569
569
|
children: [/* @__PURE__ */ D("span", {
|
|
570
|
-
className:
|
|
570
|
+
className: ze("name"),
|
|
571
571
|
children: i.name
|
|
572
572
|
}), /* @__PURE__ */ D("span", {
|
|
573
|
-
className:
|
|
573
|
+
className: ze("role"),
|
|
574
574
|
children: i.role
|
|
575
575
|
})]
|
|
576
576
|
})]
|
|
577
577
|
});
|
|
578
|
-
},
|
|
578
|
+
}, We = {
|
|
579
579
|
root: "rly_PeopleStrip-module__root",
|
|
580
580
|
compact: "rly_PeopleStrip-module__compact",
|
|
581
581
|
defaultSize: "rly_PeopleStrip-module__defaultSize",
|
|
582
582
|
personItem: "rly_PeopleStrip-module__personItem",
|
|
583
583
|
controlItem: "rly_PeopleStrip-module__controlItem",
|
|
584
584
|
overflow: "rly_PeopleStrip-module__overflow"
|
|
585
|
-
},
|
|
585
|
+
}, Ge = (e) => c(We, e), Ke = u({ size: {
|
|
586
586
|
compact: {
|
|
587
|
-
className:
|
|
587
|
+
className: Ge("compact"),
|
|
588
588
|
purpose: "Dense attributed people list for narrow surfaces",
|
|
589
589
|
tokens: ["space-8", "space-40"]
|
|
590
590
|
},
|
|
591
591
|
default: {
|
|
592
|
-
className:
|
|
592
|
+
className: Ge("defaultSize"),
|
|
593
593
|
purpose: "Standard attributed people list",
|
|
594
594
|
tokens: ["space-12", "space-40"]
|
|
595
595
|
}
|
|
596
|
-
} }),
|
|
596
|
+
} }), qe = u({ size: "default" }), Je = (e) => {
|
|
597
597
|
if (!Number.isInteger(e) || e < 1) throw Error("PeopleStrip limit must be a positive integer");
|
|
598
598
|
return e;
|
|
599
|
-
},
|
|
599
|
+
}, Ye = (e) => {
|
|
600
600
|
let t = /* @__PURE__ */ new Set();
|
|
601
601
|
for (let n of e) {
|
|
602
602
|
let e = o(n.id, "PeopleStrip person id");
|
|
603
603
|
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}`);
|
|
604
604
|
t.add(e);
|
|
605
605
|
}
|
|
606
|
-
},
|
|
607
|
-
let l = o(e, "PeopleStrip aria-label"), u =
|
|
608
|
-
|
|
609
|
-
let
|
|
606
|
+
}, Xe = ({ "aria-label": e, className: t, expanded: n, limit: r = 3, onExpandedChange: i, people: a, size: s = "default", ...c }) => {
|
|
607
|
+
let l = o(e, "PeopleStrip aria-label"), u = Je(r);
|
|
608
|
+
Ye(a);
|
|
609
|
+
let d = Math.max(a.length - u, 0), p = n ? a : a.slice(0, u);
|
|
610
610
|
return /* @__PURE__ */ O("ul", {
|
|
611
611
|
...c,
|
|
612
612
|
"aria-label": l,
|
|
613
|
-
className:
|
|
613
|
+
className: f(Ge("root"), Ke.size[s].className, t),
|
|
614
614
|
"data-rly-people-strip-size": s,
|
|
615
615
|
children: [p.map((e) => /* @__PURE__ */ D("li", {
|
|
616
|
-
className:
|
|
616
|
+
className: Ge("personItem"),
|
|
617
617
|
children: /* @__PURE__ */ D(P, {
|
|
618
618
|
person: e,
|
|
619
619
|
size: s
|
|
620
620
|
})
|
|
621
|
-
}, e.id)),
|
|
622
|
-
className:
|
|
621
|
+
}, e.id)), d === 0 ? null : /* @__PURE__ */ D("li", {
|
|
622
|
+
className: Ge("controlItem"),
|
|
623
623
|
children: /* @__PURE__ */ D("button", {
|
|
624
624
|
"aria-expanded": n,
|
|
625
|
-
"aria-label": n ? "Show fewer people" : `Show ${
|
|
626
|
-
className:
|
|
625
|
+
"aria-label": n ? "Show fewer people" : `Show ${d} more people`,
|
|
626
|
+
className: Ge("overflow"),
|
|
627
627
|
onClick: () => i(!n),
|
|
628
628
|
type: "button",
|
|
629
|
-
children: n ? "Show fewer" : `+${
|
|
629
|
+
children: n ? "Show fewer" : `+${d} people`
|
|
630
630
|
})
|
|
631
631
|
})]
|
|
632
632
|
});
|
|
633
|
-
},
|
|
633
|
+
}, Ze = {
|
|
634
634
|
root: "rly_CollaboratorGroup-module__root",
|
|
635
635
|
compact: "rly_CollaboratorGroup-module__compact",
|
|
636
636
|
defaultSize: "rly_CollaboratorGroup-module__defaultSize",
|
|
@@ -639,19 +639,19 @@ var fe = {
|
|
|
639
639
|
lane: "rly_CollaboratorGroup-module__lane",
|
|
640
640
|
laneHeading: "rly_CollaboratorGroup-module__laneHeading",
|
|
641
641
|
empty: "rly_CollaboratorGroup-module__empty"
|
|
642
|
-
},
|
|
642
|
+
}, Qe = (e) => c(Ze, e), $e = u({ size: {
|
|
643
643
|
compact: {
|
|
644
|
-
className:
|
|
644
|
+
className: Qe("compact"),
|
|
645
645
|
purpose: "Narrow entity attribution with explicit role lanes",
|
|
646
646
|
tokens: ["space-12", "type-label"]
|
|
647
647
|
},
|
|
648
648
|
default: {
|
|
649
|
-
className:
|
|
649
|
+
className: Qe("defaultSize"),
|
|
650
650
|
purpose: "Standard entity attribution with explicit role lanes",
|
|
651
651
|
tokens: ["space-20", "type-card-title"]
|
|
652
652
|
}
|
|
653
|
-
} }),
|
|
654
|
-
let h = o(a, "CollaboratorGroup heading"), g = o(r, "CollaboratorGroup emptyLabel"), _ = `rly-collaborators-${
|
|
653
|
+
} }), et = u({ size: "default" }), tt = ({ 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: d = [], size: p = "default", ...m }) => {
|
|
654
|
+
let h = o(a, "CollaboratorGroup heading"), g = o(r, "CollaboratorGroup emptyLabel"), _ = `rly-collaborators-${T()}`, v = new Set(i), y = [
|
|
655
655
|
{
|
|
656
656
|
category: "authors",
|
|
657
657
|
label: "Authors",
|
|
@@ -665,7 +665,7 @@ var fe = {
|
|
|
665
665
|
{
|
|
666
666
|
category: "reviewers",
|
|
667
667
|
label: "Reviewers",
|
|
668
|
-
people:
|
|
668
|
+
people: d
|
|
669
669
|
},
|
|
670
670
|
{
|
|
671
671
|
category: "operators",
|
|
@@ -681,23 +681,23 @@ var fe = {
|
|
|
681
681
|
return /* @__PURE__ */ O("section", {
|
|
682
682
|
...m,
|
|
683
683
|
"aria-labelledby": _,
|
|
684
|
-
className:
|
|
684
|
+
className: f(Qe("root"), $e.size[p].className, n),
|
|
685
685
|
"data-rly-collaborator-group-size": p,
|
|
686
686
|
children: [/* @__PURE__ */ D("h2", {
|
|
687
|
-
className:
|
|
687
|
+
className: Qe("heading"),
|
|
688
688
|
id: _,
|
|
689
689
|
children: h
|
|
690
690
|
}), y.length === 0 ? /* @__PURE__ */ D("p", {
|
|
691
|
-
className:
|
|
691
|
+
className: Qe("empty"),
|
|
692
692
|
children: g
|
|
693
693
|
}) : /* @__PURE__ */ D("div", {
|
|
694
|
-
className:
|
|
694
|
+
className: Qe("lanes"),
|
|
695
695
|
children: y.map((e) => /* @__PURE__ */ O("section", {
|
|
696
|
-
className:
|
|
696
|
+
className: Qe("lane"),
|
|
697
697
|
children: [/* @__PURE__ */ D("h3", {
|
|
698
|
-
className:
|
|
698
|
+
className: Qe("laneHeading"),
|
|
699
699
|
children: e.label
|
|
700
|
-
}), /* @__PURE__ */ D(
|
|
700
|
+
}), /* @__PURE__ */ D(Xe, {
|
|
701
701
|
"aria-label": `${h}: ${e.label}`,
|
|
702
702
|
expanded: v.has(e.category),
|
|
703
703
|
limit: s,
|
|
@@ -708,7 +708,7 @@ var fe = {
|
|
|
708
708
|
}, e.category))
|
|
709
709
|
})]
|
|
710
710
|
});
|
|
711
|
-
},
|
|
711
|
+
}, nt = {
|
|
712
712
|
root: "rly_DecisionBar-module__root",
|
|
713
713
|
inline: "rly_DecisionBar-module__inline",
|
|
714
714
|
sticky: "rly_DecisionBar-module__sticky",
|
|
@@ -718,71 +718,71 @@ var fe = {
|
|
|
718
718
|
status: "rly_DecisionBar-module__status",
|
|
719
719
|
reason: "rly_DecisionBar-module__reason",
|
|
720
720
|
note: "rly_DecisionBar-module__note"
|
|
721
|
-
},
|
|
721
|
+
}, rt = (e) => c(nt, e), it = u({ placement: {
|
|
722
722
|
inline: {
|
|
723
|
-
className:
|
|
723
|
+
className: rt("inline"),
|
|
724
724
|
purpose: "In the flow of the detail it decides",
|
|
725
725
|
tokens: ["color-text-1", "color-text-2"]
|
|
726
726
|
},
|
|
727
727
|
sticky: {
|
|
728
|
-
className:
|
|
728
|
+
className: rt("sticky"),
|
|
729
729
|
purpose: "Pinned to the bottom of a phone viewport while its target is open, at thumb reach",
|
|
730
730
|
tokens: ["color-canvas", "color-border-1"]
|
|
731
731
|
}
|
|
732
|
-
} }),
|
|
733
|
-
let m = o(
|
|
732
|
+
} }), at = u({ placement: "inline" }), ot = ({ approveLabel: e = "Approve", className: t, clock: n, note: r, onApprove: i, onReject: a, placement: s = at.placement, rejectLabel: c = "Reject", state: l, status: u, target: d, ...p }) => {
|
|
733
|
+
let m = o(d, "DecisionBar target"), h = T(), g = `rly-decision-bar-reason-${h}`, _ = `rly-decision-bar-status-${h}`, v = l._tag !== "ready", y = l._tag === "off" ? l.reason : void 0, ee = l._tag === "sending" ? `${l.action === "approve" ? e : c} sent; waiting for the server's answer.` : u ?? "", x = y === void 0 ? l._tag === "sending" ? _ : void 0 : g, S = (e) => () => {
|
|
734
734
|
v || e();
|
|
735
735
|
};
|
|
736
736
|
return /* @__PURE__ */ O("div", {
|
|
737
737
|
...p,
|
|
738
738
|
"aria-busy": l._tag === "sending" ? "true" : void 0,
|
|
739
|
-
className:
|
|
739
|
+
className: f(rt("root"), it.placement[s].className, t),
|
|
740
740
|
"data-rly-decision-bar": "",
|
|
741
741
|
"data-state": l._tag,
|
|
742
742
|
children: [
|
|
743
743
|
/* @__PURE__ */ O("p", {
|
|
744
|
-
className:
|
|
745
|
-
children: [m, n === void 0 ? null : /* @__PURE__ */ O(
|
|
746
|
-
className:
|
|
744
|
+
className: rt("target"),
|
|
745
|
+
children: [m, n === void 0 ? null : /* @__PURE__ */ O(he, { children: [", ", /* @__PURE__ */ D("span", {
|
|
746
|
+
className: rt("clock"),
|
|
747
747
|
children: n
|
|
748
748
|
})] })]
|
|
749
749
|
}),
|
|
750
750
|
/* @__PURE__ */ O("div", {
|
|
751
|
-
className:
|
|
751
|
+
className: rt("actions"),
|
|
752
752
|
children: [/* @__PURE__ */ D(b, {
|
|
753
|
-
"aria-describedby":
|
|
753
|
+
"aria-describedby": x,
|
|
754
754
|
"aria-disabled": v ? !0 : void 0,
|
|
755
755
|
"aria-label": `${e}: ${m}`,
|
|
756
|
-
onClick:
|
|
756
|
+
onClick: S(i),
|
|
757
757
|
variant: v ? "secondary" : "primary",
|
|
758
758
|
children: e
|
|
759
759
|
}), /* @__PURE__ */ D(b, {
|
|
760
|
-
"aria-describedby":
|
|
760
|
+
"aria-describedby": x,
|
|
761
761
|
"aria-disabled": v ? !0 : void 0,
|
|
762
762
|
"aria-label": `${c}: ${m}`,
|
|
763
|
-
onClick:
|
|
763
|
+
onClick: S(a),
|
|
764
764
|
variant: "secondary",
|
|
765
765
|
children: c
|
|
766
766
|
})]
|
|
767
767
|
}),
|
|
768
768
|
y === void 0 ? null : /* @__PURE__ */ D("p", {
|
|
769
|
-
className:
|
|
769
|
+
className: rt("reason"),
|
|
770
770
|
id: g,
|
|
771
771
|
children: y
|
|
772
772
|
}),
|
|
773
773
|
/* @__PURE__ */ D("p", {
|
|
774
|
-
className:
|
|
774
|
+
className: rt("status"),
|
|
775
775
|
id: _,
|
|
776
776
|
role: "status",
|
|
777
|
-
children:
|
|
777
|
+
children: ee
|
|
778
778
|
}),
|
|
779
779
|
r === void 0 ? null : /* @__PURE__ */ D("p", {
|
|
780
|
-
className:
|
|
780
|
+
className: rt("note"),
|
|
781
781
|
children: r
|
|
782
782
|
})
|
|
783
783
|
]
|
|
784
784
|
});
|
|
785
|
-
},
|
|
785
|
+
}, st = {
|
|
786
786
|
root: "rly_FreshnessStamp-module__root",
|
|
787
787
|
stateWord: "rly_FreshnessStamp-module__stateWord",
|
|
788
788
|
time: "rly_FreshnessStamp-module__time",
|
|
@@ -793,78 +793,78 @@ var fe = {
|
|
|
793
793
|
missing: "rly_FreshnessStamp-module__missing",
|
|
794
794
|
stale: "rly_FreshnessStamp-module__stale",
|
|
795
795
|
unavailable: "rly_FreshnessStamp-module__unavailable"
|
|
796
|
-
},
|
|
796
|
+
}, F = (e) => c(st, e), ct = u({
|
|
797
797
|
state: {
|
|
798
798
|
current: {
|
|
799
|
-
className:
|
|
799
|
+
className: F("current"),
|
|
800
800
|
purpose: "Current source observation",
|
|
801
801
|
tokens: ["color-success-ink", "color-success-tint"]
|
|
802
802
|
},
|
|
803
803
|
cached: {
|
|
804
|
-
className:
|
|
804
|
+
className: F("cached"),
|
|
805
805
|
purpose: "Valid cached source observation",
|
|
806
806
|
tokens: ["color-text-2", "color-surface-2"]
|
|
807
807
|
},
|
|
808
808
|
stale: {
|
|
809
|
-
className:
|
|
809
|
+
className: F("stale"),
|
|
810
810
|
purpose: "Source observation beyond its supplied freshness threshold",
|
|
811
811
|
tokens: ["color-held-ink", "color-held-tint"]
|
|
812
812
|
},
|
|
813
813
|
missing: {
|
|
814
|
-
className:
|
|
814
|
+
className: F("missing"),
|
|
815
815
|
purpose: "Provider authoritatively reported no object",
|
|
816
816
|
tokens: ["color-text-2", "color-surface-2"]
|
|
817
817
|
},
|
|
818
818
|
unavailable: {
|
|
819
|
-
className:
|
|
819
|
+
className: F("unavailable"),
|
|
820
820
|
purpose: "No valid source observation is available",
|
|
821
821
|
tokens: ["color-blocked-ink", "color-blocked-tint"]
|
|
822
822
|
}
|
|
823
823
|
},
|
|
824
824
|
size: {
|
|
825
825
|
compact: {
|
|
826
|
-
className:
|
|
826
|
+
className: F("compact"),
|
|
827
827
|
purpose: "Dense freshness metadata",
|
|
828
828
|
tokens: ["type-meta"]
|
|
829
829
|
},
|
|
830
830
|
default: {
|
|
831
|
-
className:
|
|
831
|
+
className: F("defaultSize"),
|
|
832
832
|
purpose: "Standard freshness metadata",
|
|
833
833
|
tokens: ["type-label", "type-meta"]
|
|
834
834
|
}
|
|
835
835
|
}
|
|
836
|
-
}),
|
|
836
|
+
}), lt = u({ size: "default" }), ut = {
|
|
837
837
|
current: "Current",
|
|
838
838
|
cached: "Cached",
|
|
839
839
|
stale: "Stale",
|
|
840
840
|
missing: "Missing",
|
|
841
841
|
unavailable: "Unavailable"
|
|
842
|
-
},
|
|
842
|
+
}, dt = {
|
|
843
843
|
current: "check",
|
|
844
844
|
cached: "clock",
|
|
845
845
|
stale: "clock",
|
|
846
846
|
missing: "minus",
|
|
847
847
|
unavailable: "alert"
|
|
848
|
-
},
|
|
848
|
+
}, ft = ({ className: t, dateTime: n, size: r = "default", state: i, time: a, ...s }) => {
|
|
849
849
|
let c = a === void 0 ? void 0 : o(a, "FreshnessStamp time"), l = n === void 0 ? void 0 : o(n, "FreshnessStamp dateTime");
|
|
850
850
|
return /* @__PURE__ */ O("span", {
|
|
851
851
|
...s,
|
|
852
|
-
className:
|
|
852
|
+
className: f(F("root"), ct.state[i].className, ct.size[r].className, t),
|
|
853
853
|
"data-rly-freshness-state": i,
|
|
854
854
|
children: [/* @__PURE__ */ O("span", {
|
|
855
|
-
className:
|
|
855
|
+
className: F("stateWord"),
|
|
856
856
|
children: [/* @__PURE__ */ D(e, {
|
|
857
857
|
decorative: !0,
|
|
858
|
-
name:
|
|
858
|
+
name: dt[i],
|
|
859
859
|
size: "small"
|
|
860
|
-
}), /* @__PURE__ */ O("span", { children: [
|
|
860
|
+
}), /* @__PURE__ */ O("span", { children: [ut[i], c === void 0 || l === void 0 ? null : ","] })]
|
|
861
861
|
}), c === void 0 || l === void 0 ? null : /* @__PURE__ */ D("time", {
|
|
862
|
-
className:
|
|
862
|
+
className: F("time"),
|
|
863
863
|
dateTime: l,
|
|
864
864
|
children: c
|
|
865
865
|
})]
|
|
866
866
|
});
|
|
867
|
-
},
|
|
867
|
+
}, pt = {
|
|
868
868
|
root: "rly_ServiceMark-module__root",
|
|
869
869
|
glyph: "rly_ServiceMark-module__glyph",
|
|
870
870
|
nameVisible: "rly_ServiceMark-module__nameVisible",
|
|
@@ -877,71 +877,71 @@ var fe = {
|
|
|
877
877
|
jira: "rly_ServiceMark-module__jira",
|
|
878
878
|
confluence: "rly_ServiceMark-module__confluence",
|
|
879
879
|
clockify: "rly_ServiceMark-module__clockify"
|
|
880
|
-
},
|
|
880
|
+
}, I = (e) => c(pt, e), mt = u({
|
|
881
881
|
service: {
|
|
882
882
|
codecommit: {
|
|
883
|
-
className:
|
|
883
|
+
className: I("codecommit"),
|
|
884
884
|
purpose: "CodeCommit provenance",
|
|
885
885
|
tokens: ["color-service-codecommit"]
|
|
886
886
|
},
|
|
887
887
|
codepipeline: {
|
|
888
|
-
className:
|
|
888
|
+
className: I("codepipeline"),
|
|
889
889
|
purpose: "CodePipeline provenance",
|
|
890
890
|
tokens: ["color-service-codepipeline"]
|
|
891
891
|
},
|
|
892
892
|
jira: {
|
|
893
|
-
className:
|
|
893
|
+
className: I("jira"),
|
|
894
894
|
purpose: "Jira provenance",
|
|
895
895
|
tokens: ["color-service-jira"]
|
|
896
896
|
},
|
|
897
897
|
confluence: {
|
|
898
|
-
className:
|
|
898
|
+
className: I("confluence"),
|
|
899
899
|
purpose: "Confluence provenance",
|
|
900
900
|
tokens: ["color-service-confluence"]
|
|
901
901
|
},
|
|
902
902
|
clockify: {
|
|
903
|
-
className:
|
|
903
|
+
className: I("clockify"),
|
|
904
904
|
purpose: "Clockify provenance",
|
|
905
905
|
tokens: ["color-service-clockify"]
|
|
906
906
|
}
|
|
907
907
|
},
|
|
908
908
|
name: {
|
|
909
909
|
visible: {
|
|
910
|
-
className:
|
|
910
|
+
className: I("nameVisible"),
|
|
911
911
|
purpose: "Provider name printed beside the glyph",
|
|
912
912
|
tokens: ["color-text-1"]
|
|
913
913
|
},
|
|
914
914
|
hidden: {
|
|
915
|
-
className:
|
|
915
|
+
className: I("nameHidden"),
|
|
916
916
|
purpose: "Glyph only, where adjacent text already names the provider; the accessible name stays",
|
|
917
917
|
tokens: []
|
|
918
918
|
}
|
|
919
919
|
},
|
|
920
920
|
size: {
|
|
921
921
|
compact: {
|
|
922
|
-
className:
|
|
922
|
+
className: I("compact"),
|
|
923
923
|
purpose: "Dense provenance metadata",
|
|
924
924
|
tokens: ["space-24", "type-meta"]
|
|
925
925
|
},
|
|
926
926
|
default: {
|
|
927
|
-
className:
|
|
927
|
+
className: I("defaultSize"),
|
|
928
928
|
purpose: "Standard provenance identity",
|
|
929
929
|
tokens: ["space-32", "type-label"]
|
|
930
930
|
}
|
|
931
931
|
}
|
|
932
|
-
}),
|
|
932
|
+
}), ht = u({
|
|
933
933
|
name: "visible",
|
|
934
934
|
size: "default"
|
|
935
|
-
}),
|
|
935
|
+
}), gt = {
|
|
936
936
|
codecommit: "CodeCommit",
|
|
937
937
|
codepipeline: "CodePipeline",
|
|
938
938
|
jira: "Jira",
|
|
939
939
|
confluence: "Confluence",
|
|
940
940
|
clockify: "Clockify"
|
|
941
|
-
},
|
|
941
|
+
}, _t = {
|
|
942
942
|
codecommit: () => /* @__PURE__ */ O("svg", {
|
|
943
943
|
"aria-hidden": "true",
|
|
944
|
-
className:
|
|
944
|
+
className: I("glyph"),
|
|
945
945
|
focusable: "false",
|
|
946
946
|
viewBox: "0 0 24 24",
|
|
947
947
|
children: [
|
|
@@ -975,7 +975,7 @@ var fe = {
|
|
|
975
975
|
}),
|
|
976
976
|
codepipeline: () => /* @__PURE__ */ O("svg", {
|
|
977
977
|
"aria-hidden": "true",
|
|
978
|
-
className:
|
|
978
|
+
className: I("glyph"),
|
|
979
979
|
focusable: "false",
|
|
980
980
|
viewBox: "0 0 24 24",
|
|
981
981
|
children: [
|
|
@@ -1011,7 +1011,7 @@ var fe = {
|
|
|
1011
1011
|
}),
|
|
1012
1012
|
jira: () => /* @__PURE__ */ O("svg", {
|
|
1013
1013
|
"aria-hidden": "true",
|
|
1014
|
-
className:
|
|
1014
|
+
className: I("glyph"),
|
|
1015
1015
|
focusable: "false",
|
|
1016
1016
|
viewBox: "0 0 24 24",
|
|
1017
1017
|
children: [
|
|
@@ -1031,7 +1031,7 @@ var fe = {
|
|
|
1031
1031
|
}),
|
|
1032
1032
|
confluence: () => /* @__PURE__ */ O("svg", {
|
|
1033
1033
|
"aria-hidden": "true",
|
|
1034
|
-
className:
|
|
1034
|
+
className: I("glyph"),
|
|
1035
1035
|
focusable: "false",
|
|
1036
1036
|
viewBox: "0 0 24 24",
|
|
1037
1037
|
children: [/* @__PURE__ */ D("path", {
|
|
@@ -1044,7 +1044,7 @@ var fe = {
|
|
|
1044
1044
|
}),
|
|
1045
1045
|
clockify: () => /* @__PURE__ */ O("svg", {
|
|
1046
1046
|
"aria-hidden": "true",
|
|
1047
|
-
className:
|
|
1047
|
+
className: I("glyph"),
|
|
1048
1048
|
focusable: "false",
|
|
1049
1049
|
viewBox: "0 0 24 24",
|
|
1050
1050
|
children: [/* @__PURE__ */ D("circle", {
|
|
@@ -1062,21 +1062,21 @@ var fe = {
|
|
|
1062
1062
|
strokeWidth: "1.8"
|
|
1063
1063
|
})]
|
|
1064
1064
|
})
|
|
1065
|
-
},
|
|
1066
|
-
let a =
|
|
1065
|
+
}, L = ({ className: e, name: t = "visible", service: n, size: r = "default", ...i }) => {
|
|
1066
|
+
let a = _t[n], o = gt[n];
|
|
1067
1067
|
return /* @__PURE__ */ O("span", {
|
|
1068
1068
|
...i,
|
|
1069
1069
|
"aria-label": o,
|
|
1070
|
-
className:
|
|
1070
|
+
className: f(I("root"), mt.service[n].className, mt.name[t].className, mt.size[r].className, e),
|
|
1071
1071
|
"data-rly-service": n,
|
|
1072
1072
|
role: "img",
|
|
1073
1073
|
children: [/* @__PURE__ */ D(a, {}), t === "visible" ? /* @__PURE__ */ D("span", {
|
|
1074
1074
|
"aria-hidden": "true",
|
|
1075
|
-
className:
|
|
1075
|
+
className: I("name"),
|
|
1076
1076
|
children: o
|
|
1077
1077
|
}) : null]
|
|
1078
1078
|
});
|
|
1079
|
-
},
|
|
1079
|
+
}, vt = {
|
|
1080
1080
|
root: "rly_Verdict-module__root",
|
|
1081
1081
|
verdict: "rly_Verdict-module__verdict",
|
|
1082
1082
|
caution: "rly_Verdict-module__caution",
|
|
@@ -1087,64 +1087,64 @@ var fe = {
|
|
|
1087
1087
|
reasonPanel: "rly_Verdict-module__reasonPanel",
|
|
1088
1088
|
icon: "rly_Verdict-module__icon",
|
|
1089
1089
|
reason: "rly_Verdict-module__reason"
|
|
1090
|
-
},
|
|
1090
|
+
}, R = (e) => c(vt, e), yt = u({ tone: {
|
|
1091
1091
|
caution: {
|
|
1092
|
-
className:
|
|
1092
|
+
className: R("caution"),
|
|
1093
1093
|
purpose: "Intentional hold or caution requiring attention",
|
|
1094
1094
|
tokens: ["color-held-ink", "color-held-tint"]
|
|
1095
1095
|
},
|
|
1096
1096
|
critical: {
|
|
1097
|
-
className:
|
|
1097
|
+
className: R("critical"),
|
|
1098
1098
|
purpose: "Explicit blocker or failed prerequisite",
|
|
1099
1099
|
tokens: ["color-blocked-ink", "color-blocked-tint"]
|
|
1100
1100
|
},
|
|
1101
1101
|
neutral: {
|
|
1102
|
-
className:
|
|
1102
|
+
className: R("neutral"),
|
|
1103
1103
|
purpose: "Neutral, missing, or unavailable outcome",
|
|
1104
1104
|
tokens: ["color-text-2", "color-surface-2"]
|
|
1105
1105
|
},
|
|
1106
1106
|
positive: {
|
|
1107
|
-
className:
|
|
1107
|
+
className: R("positive"),
|
|
1108
1108
|
purpose: "Satisfied readiness or successful outcome",
|
|
1109
1109
|
tokens: ["color-success-ink", "color-success-tint"]
|
|
1110
1110
|
},
|
|
1111
1111
|
progress: {
|
|
1112
|
-
className:
|
|
1112
|
+
className: R("progress"),
|
|
1113
1113
|
purpose: "Active work or delivery progress",
|
|
1114
1114
|
tokens: ["color-deploying-ink", "color-deploying-tint"]
|
|
1115
1115
|
}
|
|
1116
|
-
} }),
|
|
1116
|
+
} }), bt = {
|
|
1117
1117
|
caution: "clock",
|
|
1118
1118
|
critical: "alert",
|
|
1119
1119
|
neutral: "minus",
|
|
1120
1120
|
positive: "check",
|
|
1121
1121
|
progress: "loader"
|
|
1122
|
-
},
|
|
1122
|
+
}, xt = ({ className: t, reason: n, tone: r, verdict: i, ...a }) => {
|
|
1123
1123
|
let s = o(n, "Verdict reason"), c = o(i, "Verdict verdict");
|
|
1124
1124
|
return /* @__PURE__ */ O("section", {
|
|
1125
1125
|
...a,
|
|
1126
|
-
className:
|
|
1126
|
+
className: f(R("root"), yt.tone[r].className, t),
|
|
1127
1127
|
"data-rly-verdict-tone": r,
|
|
1128
1128
|
children: [/* @__PURE__ */ D("h2", {
|
|
1129
|
-
className:
|
|
1129
|
+
className: R("verdict"),
|
|
1130
1130
|
children: c
|
|
1131
1131
|
}), /* @__PURE__ */ O("div", {
|
|
1132
|
-
className:
|
|
1132
|
+
className: R("reasonPanel"),
|
|
1133
1133
|
children: [/* @__PURE__ */ D("span", {
|
|
1134
1134
|
"aria-hidden": "true",
|
|
1135
|
-
className:
|
|
1135
|
+
className: R("icon"),
|
|
1136
1136
|
children: /* @__PURE__ */ D(e, {
|
|
1137
1137
|
decorative: !0,
|
|
1138
|
-
name:
|
|
1138
|
+
name: bt[r],
|
|
1139
1139
|
size: "large"
|
|
1140
1140
|
})
|
|
1141
1141
|
}), /* @__PURE__ */ D("p", {
|
|
1142
|
-
className:
|
|
1142
|
+
className: R("reason"),
|
|
1143
1143
|
children: s
|
|
1144
1144
|
})]
|
|
1145
1145
|
})]
|
|
1146
1146
|
});
|
|
1147
|
-
},
|
|
1147
|
+
}, St = {
|
|
1148
1148
|
root: "rly_EntityShell-module__root",
|
|
1149
1149
|
navigation: "rly_EntityShell-module__navigation",
|
|
1150
1150
|
header: "rly_EntityShell-module__header",
|
|
@@ -1161,59 +1161,59 @@ var fe = {
|
|
|
1161
1161
|
activity: "rly_EntityShell-module__activity",
|
|
1162
1162
|
asideSlot: "rly_EntityShell-module__asideSlot",
|
|
1163
1163
|
aside: "rly_EntityShell-module__aside"
|
|
1164
|
-
},
|
|
1165
|
-
let
|
|
1166
|
-
if (u === void 0 != (
|
|
1167
|
-
let
|
|
1164
|
+
}, z = (e) => c(St, e), Ct = ({ actions: e, activity: t, agentEntry: n, className: r, collaborators: i, content: a, evidence: s, facts: c, freshness: l, freshnessDateTime: u, freshnessTime: d, navigation: p, reason: m, relationships: h, service: g, title: _, tone: v, verdict: y, ...b }) => {
|
|
1165
|
+
let ee = o(_, "EntityShell title");
|
|
1166
|
+
if (u === void 0 != (d === void 0)) throw Error("EntityShell freshnessDateTime and freshnessTime must be supplied together");
|
|
1167
|
+
let x = `rly-entity-shell-${T()}`;
|
|
1168
1168
|
return /* @__PURE__ */ O("article", {
|
|
1169
1169
|
...b,
|
|
1170
|
-
"aria-labelledby":
|
|
1171
|
-
className:
|
|
1170
|
+
"aria-labelledby": x,
|
|
1171
|
+
className: f(z("root"), r),
|
|
1172
1172
|
"data-rly-entity-shell": "",
|
|
1173
1173
|
children: [
|
|
1174
1174
|
p === void 0 ? null : /* @__PURE__ */ D("nav", {
|
|
1175
|
-
"aria-label": `${
|
|
1176
|
-
className:
|
|
1175
|
+
"aria-label": `${ee} navigation`,
|
|
1176
|
+
className: z("navigation"),
|
|
1177
1177
|
"data-rly-entity-shell-slot": "navigation",
|
|
1178
1178
|
children: p
|
|
1179
1179
|
}),
|
|
1180
1180
|
/* @__PURE__ */ O("header", {
|
|
1181
|
-
className:
|
|
1181
|
+
className: z("header"),
|
|
1182
1182
|
children: [/* @__PURE__ */ O("div", {
|
|
1183
|
-
className:
|
|
1184
|
-
children: [/* @__PURE__ */ D(
|
|
1185
|
-
className:
|
|
1186
|
-
id:
|
|
1187
|
-
children:
|
|
1183
|
+
className: z("identity"),
|
|
1184
|
+
children: [/* @__PURE__ */ D(L, { service: g }), /* @__PURE__ */ D("h1", {
|
|
1185
|
+
className: z("title"),
|
|
1186
|
+
id: x,
|
|
1187
|
+
children: ee
|
|
1188
1188
|
})]
|
|
1189
1189
|
}), /* @__PURE__ */ O("div", {
|
|
1190
|
-
className:
|
|
1191
|
-
children: [/* @__PURE__ */ D(
|
|
1190
|
+
className: z("hero"),
|
|
1191
|
+
children: [/* @__PURE__ */ D(xt, {
|
|
1192
1192
|
reason: m,
|
|
1193
1193
|
tone: v,
|
|
1194
1194
|
verdict: y
|
|
1195
1195
|
}), /* @__PURE__ */ O("div", {
|
|
1196
|
-
className:
|
|
1196
|
+
className: z("headerAside"),
|
|
1197
1197
|
children: [
|
|
1198
1198
|
/* @__PURE__ */ O("div", {
|
|
1199
|
-
className:
|
|
1199
|
+
className: z("freshness"),
|
|
1200
1200
|
"data-rly-entity-shell-slot": "freshness",
|
|
1201
1201
|
children: [/* @__PURE__ */ D("span", {
|
|
1202
|
-
className:
|
|
1202
|
+
className: z("slotLabel"),
|
|
1203
1203
|
children: "Freshness"
|
|
1204
|
-
}), u === void 0 ||
|
|
1204
|
+
}), u === void 0 || d === void 0 ? /* @__PURE__ */ D(ft, { state: l }) : /* @__PURE__ */ D(ft, {
|
|
1205
1205
|
dateTime: u,
|
|
1206
1206
|
state: l,
|
|
1207
|
-
time:
|
|
1207
|
+
time: d
|
|
1208
1208
|
})]
|
|
1209
1209
|
}),
|
|
1210
1210
|
/* @__PURE__ */ D("div", {
|
|
1211
|
-
className:
|
|
1211
|
+
className: z("headerSlot"),
|
|
1212
1212
|
"data-rly-entity-shell-slot": "actions",
|
|
1213
1213
|
children: e
|
|
1214
1214
|
}),
|
|
1215
1215
|
/* @__PURE__ */ D("div", {
|
|
1216
|
-
className:
|
|
1216
|
+
className: z("headerSlot"),
|
|
1217
1217
|
"data-rly-entity-shell-slot": "agent-entry",
|
|
1218
1218
|
children: n
|
|
1219
1219
|
})
|
|
@@ -1222,26 +1222,26 @@ var fe = {
|
|
|
1222
1222
|
})]
|
|
1223
1223
|
}),
|
|
1224
1224
|
/* @__PURE__ */ O("div", {
|
|
1225
|
-
className:
|
|
1225
|
+
className: z("body"),
|
|
1226
1226
|
children: [/* @__PURE__ */ D("section", {
|
|
1227
|
-
className:
|
|
1227
|
+
className: z("content"),
|
|
1228
1228
|
"data-rly-entity-shell-slot": "content",
|
|
1229
1229
|
children: a
|
|
1230
1230
|
}), /* @__PURE__ */ O("aside", {
|
|
1231
|
-
className:
|
|
1231
|
+
className: z("aside"),
|
|
1232
1232
|
children: [
|
|
1233
1233
|
c === void 0 ? null : /* @__PURE__ */ D("section", {
|
|
1234
|
-
className:
|
|
1234
|
+
className: z("asideSlot"),
|
|
1235
1235
|
"data-rly-entity-shell-slot": "facts",
|
|
1236
1236
|
children: c
|
|
1237
1237
|
}),
|
|
1238
1238
|
s === void 0 ? null : /* @__PURE__ */ D("section", {
|
|
1239
|
-
className:
|
|
1239
|
+
className: z("asideSlot"),
|
|
1240
1240
|
"data-rly-entity-shell-slot": "evidence",
|
|
1241
1241
|
children: s
|
|
1242
1242
|
}),
|
|
1243
1243
|
/* @__PURE__ */ D("section", {
|
|
1244
|
-
className:
|
|
1244
|
+
className: z("asideSlot"),
|
|
1245
1245
|
"data-rly-entity-shell-slot": "collaborators",
|
|
1246
1246
|
children: i
|
|
1247
1247
|
})
|
|
@@ -1249,18 +1249,18 @@ var fe = {
|
|
|
1249
1249
|
})]
|
|
1250
1250
|
}),
|
|
1251
1251
|
/* @__PURE__ */ D("section", {
|
|
1252
|
-
className:
|
|
1252
|
+
className: z("relationships"),
|
|
1253
1253
|
"data-rly-entity-shell-slot": "relationships",
|
|
1254
1254
|
children: h
|
|
1255
1255
|
}),
|
|
1256
1256
|
t === void 0 ? null : /* @__PURE__ */ D("section", {
|
|
1257
|
-
className:
|
|
1257
|
+
className: z("activity"),
|
|
1258
1258
|
"data-rly-entity-shell-slot": "activity",
|
|
1259
1259
|
children: t
|
|
1260
1260
|
})
|
|
1261
1261
|
]
|
|
1262
1262
|
});
|
|
1263
|
-
},
|
|
1263
|
+
}, wt = {
|
|
1264
1264
|
root: "rly_EntityTable-module__root",
|
|
1265
1265
|
defaultDensity: "rly_EntityTable-module__defaultDensity",
|
|
1266
1266
|
compact: "rly_EntityTable-module__compact",
|
|
@@ -1280,35 +1280,35 @@ var fe = {
|
|
|
1280
1280
|
cell: "rly_EntityTable-module__cell",
|
|
1281
1281
|
row: "rly_EntityTable-module__row",
|
|
1282
1282
|
body: "rly_EntityTable-module__body"
|
|
1283
|
-
},
|
|
1283
|
+
}, B = (e) => c(wt, e), Tt = u({
|
|
1284
1284
|
density: {
|
|
1285
1285
|
default: {
|
|
1286
|
-
className:
|
|
1286
|
+
className: B("defaultDensity"),
|
|
1287
1287
|
purpose: "One labelled line per field when the table narrows to cards",
|
|
1288
1288
|
tokens: ["space-12"]
|
|
1289
1289
|
},
|
|
1290
1290
|
compact: {
|
|
1291
|
-
className:
|
|
1291
|
+
className: B("compact"),
|
|
1292
1292
|
purpose: "Narrow cards led by the first column, the rest as a two-column label and value grid",
|
|
1293
1293
|
tokens: ["space-8", "space-2"]
|
|
1294
1294
|
}
|
|
1295
1295
|
},
|
|
1296
1296
|
headingSize: {
|
|
1297
1297
|
section: {
|
|
1298
|
-
className:
|
|
1298
|
+
className: B("sectionHeading"),
|
|
1299
1299
|
purpose: "The table is a page section of its own",
|
|
1300
1300
|
tokens: ["type-section-title"]
|
|
1301
1301
|
},
|
|
1302
1302
|
card: {
|
|
1303
|
-
className:
|
|
1303
|
+
className: B("cardHeading"),
|
|
1304
1304
|
purpose: "The table sits in a panel beside other card-titled panels",
|
|
1305
1305
|
tokens: ["type-card-title"]
|
|
1306
1306
|
}
|
|
1307
1307
|
}
|
|
1308
|
-
}),
|
|
1308
|
+
}), Et = u({
|
|
1309
1309
|
density: "default",
|
|
1310
1310
|
headingSize: "section"
|
|
1311
|
-
}),
|
|
1311
|
+
}), Dt = (e) => {
|
|
1312
1312
|
let t = /* @__PURE__ */ new Set();
|
|
1313
1313
|
for (let n of e) {
|
|
1314
1314
|
let e = o(n.id, "EntityTable column id");
|
|
@@ -1316,7 +1316,7 @@ var fe = {
|
|
|
1316
1316
|
t.add(e), o(n.label, `EntityTable column label for ${e}`);
|
|
1317
1317
|
}
|
|
1318
1318
|
return t;
|
|
1319
|
-
},
|
|
1319
|
+
}, Ot = (e, t) => {
|
|
1320
1320
|
let n = /* @__PURE__ */ new Set();
|
|
1321
1321
|
for (let r of e) {
|
|
1322
1322
|
let e = o(r.id, "EntityTable row id");
|
|
@@ -1331,20 +1331,20 @@ var fe = {
|
|
|
1331
1331
|
}
|
|
1332
1332
|
for (let n of t) if (!i.has(n)) throw Error(`EntityTable row ${e} is missing column: ${n}`);
|
|
1333
1333
|
}
|
|
1334
|
-
},
|
|
1334
|
+
}, kt = (e) => e.state === "ready" || e.state === "stale" || e.state === "partial" || e.state === "error" || e.state === "unavailable" ? e.rows : [], At = ({ direction: t }) => t === "none" ? null : /* @__PURE__ */ D(e, {
|
|
1335
1335
|
decorative: !0,
|
|
1336
1336
|
name: t === "ascending" ? "arrow-up" : "arrow-down",
|
|
1337
1337
|
size: "small"
|
|
1338
|
-
}),
|
|
1339
|
-
let l = o(i, "EntityTable heading"), u =
|
|
1340
|
-
if (
|
|
1338
|
+
}), jt = ({ className: e, columns: t, data: n, density: r = "default", heading: i, headingSize: a = "section", onSortChange: s, ...c }) => {
|
|
1339
|
+
let l = o(i, "EntityTable heading"), u = Dt(t), d = kt(n);
|
|
1340
|
+
if (Ot(d, u), n.state === "ready" && d.length === 0) throw Error("EntityTable ready state must contain at least one row; use the empty state instead");
|
|
1341
1341
|
if (n.state === "loading") {
|
|
1342
1342
|
o(n.label, "EntityTable loading label");
|
|
1343
1343
|
let e = n.skeletonRows ?? 3;
|
|
1344
1344
|
if (!Number.isInteger(e) || e < 1 || e > 20) throw Error("EntityTable skeletonRows must be an integer from 1 to 20");
|
|
1345
1345
|
}
|
|
1346
|
-
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"),
|
|
1347
|
-
let p = `rly-entity-table-${
|
|
1346
|
+
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"), d.length === 0)) throw Error(`EntityTable ${n.state} state must retain at least one cached row`);
|
|
1347
|
+
let p = `rly-entity-table-${T()}`, m = t.filter((e) => e.sortable === !0), h = m.find((e) => e.sortDirection !== "none"), g = new Map(t.map((e) => [e.id, e])), _ = n.state === "stale" || n.state === "partial" || n.state === "error" || n.state === "unavailable" ? /* @__PURE__ */ D(ne, {
|
|
1348
1348
|
description: n.description,
|
|
1349
1349
|
title: n.title,
|
|
1350
1350
|
tone: n.tone
|
|
@@ -1353,32 +1353,32 @@ var fe = {
|
|
|
1353
1353
|
...c,
|
|
1354
1354
|
"aria-busy": n.state === "loading" ? "true" : void 0,
|
|
1355
1355
|
"aria-labelledby": p,
|
|
1356
|
-
className:
|
|
1356
|
+
className: f(B("root"), Tt.density[r].className, Tt.headingSize[a].className, e),
|
|
1357
1357
|
"data-rly-entity-table-density": r,
|
|
1358
1358
|
"data-rly-entity-table-state": n.state,
|
|
1359
1359
|
children: [/* @__PURE__ */ D("h2", {
|
|
1360
|
-
className:
|
|
1360
|
+
className: B("heading"),
|
|
1361
1361
|
id: p,
|
|
1362
1362
|
children: l
|
|
1363
1363
|
}), n.state === "loading" ? /* @__PURE__ */ O("div", {
|
|
1364
1364
|
"aria-label": n.label,
|
|
1365
|
-
className:
|
|
1365
|
+
className: B("loading"),
|
|
1366
1366
|
role: "status",
|
|
1367
1367
|
children: [/* @__PURE__ */ D("span", {
|
|
1368
|
-
className:
|
|
1368
|
+
className: B("stateLabel"),
|
|
1369
1369
|
children: n.label
|
|
1370
|
-
}), Array.from({ length: n.skeletonRows ?? 3 }, (e, t) => /* @__PURE__ */ D(
|
|
1370
|
+
}), Array.from({ length: n.skeletonRows ?? 3 }, (e, t) => /* @__PURE__ */ D(re, {
|
|
1371
1371
|
height: "48px",
|
|
1372
1372
|
variant: "block"
|
|
1373
1373
|
}, t))]
|
|
1374
1374
|
}) : n.state === "empty" || n.state === "not-found" ? /* @__PURE__ */ D(ne, {
|
|
1375
1375
|
description: n.description,
|
|
1376
1376
|
title: n.title
|
|
1377
|
-
}) : /* @__PURE__ */ O(
|
|
1377
|
+
}) : /* @__PURE__ */ O(he, { children: [
|
|
1378
1378
|
_,
|
|
1379
1379
|
r === "compact" ? m.length === 0 ? null : /* @__PURE__ */ O("div", {
|
|
1380
|
-
className:
|
|
1381
|
-
children: [/* @__PURE__ */ D(
|
|
1380
|
+
className: B("sortSelect"),
|
|
1381
|
+
children: [/* @__PURE__ */ D(oe, {
|
|
1382
1382
|
"aria-label": "Sort by",
|
|
1383
1383
|
onValueChange: (e) => {
|
|
1384
1384
|
e !== h?.id && s(e);
|
|
@@ -1389,7 +1389,7 @@ var fe = {
|
|
|
1389
1389
|
})),
|
|
1390
1390
|
placeholder: "Sort by",
|
|
1391
1391
|
value: h?.id
|
|
1392
|
-
}), h === void 0 ? null : /* @__PURE__ */ D(
|
|
1392
|
+
}), h === void 0 ? null : /* @__PURE__ */ D(se, {
|
|
1393
1393
|
icon: h.sortDirection === "ascending" ? "arrow-up" : "arrow-down",
|
|
1394
1394
|
label: `Reverse order, currently ${h.sortDirection}`,
|
|
1395
1395
|
onClick: () => s(h.id),
|
|
@@ -1397,48 +1397,48 @@ var fe = {
|
|
|
1397
1397
|
})]
|
|
1398
1398
|
}) : /* @__PURE__ */ O("div", {
|
|
1399
1399
|
"aria-label": `${l} sorting`,
|
|
1400
|
-
className:
|
|
1400
|
+
className: B("sortControls"),
|
|
1401
1401
|
role: "group",
|
|
1402
1402
|
children: [/* @__PURE__ */ D("span", {
|
|
1403
|
-
className:
|
|
1403
|
+
className: B("sortLabel"),
|
|
1404
1404
|
children: "Sort"
|
|
1405
1405
|
}), m.map((e) => /* @__PURE__ */ O("button", {
|
|
1406
1406
|
"aria-label": `Sort by ${e.label}, currently ${e.sortDirection}`,
|
|
1407
|
-
className:
|
|
1407
|
+
className: B("sortButton"),
|
|
1408
1408
|
onClick: () => s(e.id),
|
|
1409
1409
|
type: "button",
|
|
1410
|
-
children: [/* @__PURE__ */ D("span", { children: e.label }), /* @__PURE__ */ D(
|
|
1410
|
+
children: [/* @__PURE__ */ D("span", { children: e.label }), /* @__PURE__ */ D(At, { direction: e.sortDirection })]
|
|
1411
1411
|
}, e.id))]
|
|
1412
1412
|
}),
|
|
1413
1413
|
/* @__PURE__ */ O("table", {
|
|
1414
1414
|
"aria-labelledby": p,
|
|
1415
|
-
className:
|
|
1415
|
+
className: B("table"),
|
|
1416
1416
|
children: [/* @__PURE__ */ D("thead", {
|
|
1417
|
-
className:
|
|
1417
|
+
className: B("head"),
|
|
1418
1418
|
children: /* @__PURE__ */ D("tr", { children: t.map((e) => /* @__PURE__ */ D("th", {
|
|
1419
1419
|
"aria-label": e.label,
|
|
1420
1420
|
"aria-sort": e.sortable === !0 ? e.sortDirection : void 0,
|
|
1421
1421
|
scope: "col",
|
|
1422
|
-
children: e.sortable === !0 ? /* @__PURE__ */ O(
|
|
1423
|
-
className:
|
|
1422
|
+
children: e.sortable === !0 ? /* @__PURE__ */ O(he, { children: [/* @__PURE__ */ D("span", {
|
|
1423
|
+
className: B("headerLabel"),
|
|
1424
1424
|
children: e.label
|
|
1425
1425
|
}), /* @__PURE__ */ O("button", {
|
|
1426
1426
|
"aria-label": `Sort by ${e.label}, currently ${e.sortDirection}`,
|
|
1427
|
-
className:
|
|
1427
|
+
className: B("headerSort"),
|
|
1428
1428
|
onClick: () => s(e.id),
|
|
1429
1429
|
type: "button",
|
|
1430
|
-
children: [/* @__PURE__ */ D("span", { children: e.label }), /* @__PURE__ */ D(
|
|
1430
|
+
children: [/* @__PURE__ */ D("span", { children: e.label }), /* @__PURE__ */ D(At, { direction: e.sortDirection })]
|
|
1431
1431
|
})] }) : e.label
|
|
1432
1432
|
}, e.id)) })
|
|
1433
1433
|
}), /* @__PURE__ */ D("tbody", {
|
|
1434
|
-
className:
|
|
1435
|
-
children:
|
|
1434
|
+
className: B("body"),
|
|
1435
|
+
children: d.map((e) => {
|
|
1436
1436
|
let n = new Map(e.cells.map((e) => [e.columnId, e.content]));
|
|
1437
1437
|
return /* @__PURE__ */ D("tr", {
|
|
1438
|
-
className:
|
|
1438
|
+
className: B("row"),
|
|
1439
1439
|
"data-rly-entity-row-id": e.id,
|
|
1440
1440
|
children: t.map((e) => /* @__PURE__ */ D("td", {
|
|
1441
|
-
className:
|
|
1441
|
+
className: B("cell"),
|
|
1442
1442
|
"data-label": g.get(e.id)?.label,
|
|
1443
1443
|
children: n.get(e.id)
|
|
1444
1444
|
}, e.id))
|
|
@@ -1448,18 +1448,18 @@ var fe = {
|
|
|
1448
1448
|
})
|
|
1449
1449
|
] })]
|
|
1450
1450
|
});
|
|
1451
|
-
},
|
|
1451
|
+
}, Mt = {
|
|
1452
1452
|
root: "rly_EvidenceStamp-module__root",
|
|
1453
1453
|
source: "rly_EvidenceStamp-module__source",
|
|
1454
1454
|
freshness: "rly_EvidenceStamp-module__freshness",
|
|
1455
1455
|
conceptLabel: "rly_EvidenceStamp-module__conceptLabel",
|
|
1456
1456
|
sourceDetail: "rly_EvidenceStamp-module__sourceDetail",
|
|
1457
1457
|
reference: "rly_EvidenceStamp-module__reference"
|
|
1458
|
-
},
|
|
1459
|
-
let c = o(i, "EvidenceStamp reference"), l = n === void 0 || r === void 0 ? /* @__PURE__ */ D(
|
|
1458
|
+
}, Nt = (e) => c(Mt, e), Pt = ({ className: e, freshness: t, freshnessDateTime: n, freshnessTime: r, reference: i, service: a, ...s }) => {
|
|
1459
|
+
let c = o(i, "EvidenceStamp reference"), l = n === void 0 || r === void 0 ? /* @__PURE__ */ D(ft, {
|
|
1460
1460
|
size: "compact",
|
|
1461
1461
|
state: t
|
|
1462
|
-
}) : /* @__PURE__ */ D(
|
|
1462
|
+
}) : /* @__PURE__ */ D(ft, {
|
|
1463
1463
|
dateTime: n,
|
|
1464
1464
|
size: "compact",
|
|
1465
1465
|
state: t,
|
|
@@ -1467,34 +1467,34 @@ var fe = {
|
|
|
1467
1467
|
});
|
|
1468
1468
|
return /* @__PURE__ */ O("div", {
|
|
1469
1469
|
...s,
|
|
1470
|
-
className:
|
|
1470
|
+
className: f(Nt("root"), e),
|
|
1471
1471
|
"data-rly-evidence-stamp": "",
|
|
1472
1472
|
children: [/* @__PURE__ */ O("div", {
|
|
1473
|
-
className:
|
|
1473
|
+
className: Nt("source"),
|
|
1474
1474
|
"data-rly-evidence-source": a,
|
|
1475
1475
|
children: [/* @__PURE__ */ D("span", {
|
|
1476
|
-
className:
|
|
1476
|
+
className: Nt("conceptLabel"),
|
|
1477
1477
|
children: "Evidence source"
|
|
1478
1478
|
}), /* @__PURE__ */ O("div", {
|
|
1479
|
-
className:
|
|
1480
|
-
children: [/* @__PURE__ */ D(
|
|
1479
|
+
className: Nt("sourceDetail"),
|
|
1480
|
+
children: [/* @__PURE__ */ D(L, {
|
|
1481
1481
|
service: a,
|
|
1482
1482
|
size: "compact"
|
|
1483
1483
|
}), /* @__PURE__ */ D("code", {
|
|
1484
|
-
className:
|
|
1484
|
+
className: Nt("reference"),
|
|
1485
1485
|
children: c
|
|
1486
1486
|
})]
|
|
1487
1487
|
})]
|
|
1488
1488
|
}), /* @__PURE__ */ O("div", {
|
|
1489
|
-
className:
|
|
1489
|
+
className: Nt("freshness"),
|
|
1490
1490
|
"data-rly-evidence-freshness": t,
|
|
1491
1491
|
children: [/* @__PURE__ */ D("span", {
|
|
1492
|
-
className:
|
|
1492
|
+
className: Nt("conceptLabel"),
|
|
1493
1493
|
children: "Freshness"
|
|
1494
1494
|
}), l]
|
|
1495
1495
|
})]
|
|
1496
1496
|
});
|
|
1497
|
-
},
|
|
1497
|
+
}, Ft = {
|
|
1498
1498
|
root: "rly_GovernedActionReview-module__root",
|
|
1499
1499
|
header: "rly_GovernedActionReview-module__header",
|
|
1500
1500
|
eyebrow: "rly_GovernedActionReview-module__eyebrow",
|
|
@@ -1509,7 +1509,7 @@ var fe = {
|
|
|
1509
1509
|
decision: "rly_GovernedActionReview-module__decision",
|
|
1510
1510
|
confirmation: "rly_GovernedActionReview-module__confirmation",
|
|
1511
1511
|
actions: "rly_GovernedActionReview-module__actions"
|
|
1512
|
-
},
|
|
1512
|
+
}, V = (e) => c(Ft, e), It = {
|
|
1513
1513
|
pending: {
|
|
1514
1514
|
label: "Awaiting human decision",
|
|
1515
1515
|
tone: "caution"
|
|
@@ -1538,103 +1538,103 @@ var fe = {
|
|
|
1538
1538
|
label: "Authorized action cancelled",
|
|
1539
1539
|
tone: "neutral"
|
|
1540
1540
|
}
|
|
1541
|
-
},
|
|
1542
|
-
let
|
|
1543
|
-
o(
|
|
1544
|
-
let
|
|
1541
|
+
}, Lt = ({ 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: d, state: p, ...h }) => {
|
|
1542
|
+
let g = Ae(l), _ = o(e, "GovernedActionReview authorizeLabel"), v = o(n, "GovernedActionReview confirmationLabel"), y = o(u, "GovernedActionReview rejectLabel");
|
|
1543
|
+
o(d.id, "GovernedActionReview reviewer id"), o(d.name, "GovernedActionReview reviewer name"), o(d.role, "GovernedActionReview reviewer role");
|
|
1544
|
+
let ee = `rly-governed-action-${T()}`, x = `rly-governed-action-reference-${T()}`, S = `rly-governed-confirmation-${T()}`, te = It[p], ne = () => {
|
|
1545
1545
|
p === "pending" && r && i();
|
|
1546
1546
|
};
|
|
1547
1547
|
return /* @__PURE__ */ O("section", {
|
|
1548
|
-
...
|
|
1549
|
-
"aria-labelledby": `${
|
|
1550
|
-
className:
|
|
1548
|
+
...h,
|
|
1549
|
+
"aria-labelledby": `${ee} ${x}`,
|
|
1550
|
+
className: f(V("root"), t),
|
|
1551
1551
|
"data-rly-governed-action-state": p,
|
|
1552
1552
|
children: [
|
|
1553
1553
|
/* @__PURE__ */ O("header", {
|
|
1554
|
-
className:
|
|
1554
|
+
className: V("header"),
|
|
1555
1555
|
children: [/* @__PURE__ */ O("div", { children: [
|
|
1556
1556
|
/* @__PURE__ */ D("p", {
|
|
1557
|
-
className:
|
|
1557
|
+
className: V("eyebrow"),
|
|
1558
1558
|
children: "Human authorization"
|
|
1559
1559
|
}),
|
|
1560
1560
|
/* @__PURE__ */ D("h2", {
|
|
1561
|
-
className:
|
|
1562
|
-
id:
|
|
1561
|
+
className: V("heading"),
|
|
1562
|
+
id: ee,
|
|
1563
1563
|
children: "Review exact proposed action"
|
|
1564
1564
|
}),
|
|
1565
1565
|
/* @__PURE__ */ D("code", {
|
|
1566
|
-
className:
|
|
1566
|
+
className: V("proposalReference"),
|
|
1567
1567
|
id: x,
|
|
1568
|
-
children:
|
|
1568
|
+
children: g.id
|
|
1569
1569
|
})
|
|
1570
|
-
] }), /* @__PURE__ */ D(
|
|
1571
|
-
label:
|
|
1572
|
-
tone:
|
|
1570
|
+
] }), /* @__PURE__ */ D(m, {
|
|
1571
|
+
label: te.label,
|
|
1572
|
+
tone: te.tone
|
|
1573
1573
|
})]
|
|
1574
1574
|
}),
|
|
1575
1575
|
/* @__PURE__ */ D("p", {
|
|
1576
|
-
className:
|
|
1576
|
+
className: V("boundary"),
|
|
1577
1577
|
children: "The agent proposed this action. Only the named human reviewer can authorize it."
|
|
1578
1578
|
}),
|
|
1579
1579
|
/* @__PURE__ */ O("div", {
|
|
1580
|
-
className:
|
|
1581
|
-
children: [/* @__PURE__ */ D("span", { children: "Human reviewer" }), /* @__PURE__ */ D(P, { person:
|
|
1580
|
+
className: V("reviewer"),
|
|
1581
|
+
children: [/* @__PURE__ */ D("span", { children: "Human reviewer" }), /* @__PURE__ */ D(P, { person: d })]
|
|
1582
1582
|
}),
|
|
1583
1583
|
/* @__PURE__ */ O("dl", {
|
|
1584
|
-
className:
|
|
1584
|
+
className: V("facts"),
|
|
1585
1585
|
children: [
|
|
1586
|
-
/* @__PURE__ */ O("div", { children: [/* @__PURE__ */ D("dt", { children: "Proposal" }), /* @__PURE__ */ D("dd", { children:
|
|
1587
|
-
/* @__PURE__ */ O("div", { children: [/* @__PURE__ */ D("dt", { children: "Target" }), /* @__PURE__ */ D("dd", { children:
|
|
1588
|
-
/* @__PURE__ */ O("div", { children: [/* @__PURE__ */ D("dt", { children: "Expected revision" }), /* @__PURE__ */ D("dd", { children:
|
|
1589
|
-
/* @__PURE__ */ O("div", { children: [/* @__PURE__ */ D("dt", { children: "Impact" }), /* @__PURE__ */ D("dd", { children:
|
|
1586
|
+
/* @__PURE__ */ O("div", { children: [/* @__PURE__ */ D("dt", { children: "Proposal" }), /* @__PURE__ */ D("dd", { children: g.capability })] }),
|
|
1587
|
+
/* @__PURE__ */ O("div", { children: [/* @__PURE__ */ D("dt", { children: "Target" }), /* @__PURE__ */ D("dd", { children: g.target })] }),
|
|
1588
|
+
/* @__PURE__ */ O("div", { children: [/* @__PURE__ */ D("dt", { children: "Expected revision" }), /* @__PURE__ */ D("dd", { children: g.expectedRevision })] }),
|
|
1589
|
+
/* @__PURE__ */ O("div", { children: [/* @__PURE__ */ D("dt", { children: "Impact" }), /* @__PURE__ */ D("dd", { children: g.impact })] })
|
|
1590
1590
|
]
|
|
1591
1591
|
}),
|
|
1592
1592
|
/* @__PURE__ */ O("div", {
|
|
1593
|
-
className:
|
|
1593
|
+
className: V("evidence"),
|
|
1594
1594
|
"data-rly-governed-action-evidence": "",
|
|
1595
|
-
children: [/* @__PURE__ */ D("h3", { children: "Evidence reviewed before decision" }), /* @__PURE__ */ D("ul", { children:
|
|
1595
|
+
children: [/* @__PURE__ */ D("h3", { children: "Evidence reviewed before decision" }), /* @__PURE__ */ D("ul", { children: g.evidence.map((e) => /* @__PURE__ */ O("li", { children: [/* @__PURE__ */ D("span", { children: e.label }), /* @__PURE__ */ D("code", { children: e.reference })] }, e.id)) })]
|
|
1596
1596
|
}),
|
|
1597
1597
|
p === "pending" ? /* @__PURE__ */ O("form", {
|
|
1598
|
-
className:
|
|
1598
|
+
className: V("decision"),
|
|
1599
1599
|
onSubmit: (e) => e.preventDefault(),
|
|
1600
1600
|
children: [
|
|
1601
1601
|
/* @__PURE__ */ O("label", {
|
|
1602
|
-
className:
|
|
1602
|
+
className: V("confirmation"),
|
|
1603
1603
|
htmlFor: S,
|
|
1604
1604
|
children: [/* @__PURE__ */ D("input", {
|
|
1605
1605
|
checked: r,
|
|
1606
1606
|
id: S,
|
|
1607
1607
|
onChange: (e) => a(e.currentTarget.checked),
|
|
1608
1608
|
type: "checkbox"
|
|
1609
|
-
}), /* @__PURE__ */ D("span", { children:
|
|
1609
|
+
}), /* @__PURE__ */ D("span", { children: v })]
|
|
1610
1610
|
}),
|
|
1611
1611
|
/* @__PURE__ */ D("p", {
|
|
1612
|
-
className:
|
|
1612
|
+
className: V("confirmationHelp"),
|
|
1613
1613
|
children: "Confirm the exact proposal, target, revision, impact, and evidence above."
|
|
1614
1614
|
}),
|
|
1615
1615
|
/* @__PURE__ */ O("div", {
|
|
1616
|
-
className:
|
|
1616
|
+
className: V("actions"),
|
|
1617
1617
|
children: [/* @__PURE__ */ D(b, {
|
|
1618
1618
|
onClick: s,
|
|
1619
1619
|
variant: "secondary",
|
|
1620
|
-
children:
|
|
1620
|
+
children: y
|
|
1621
1621
|
}), /* @__PURE__ */ D(b, {
|
|
1622
1622
|
disabled: !r,
|
|
1623
|
-
onClick:
|
|
1623
|
+
onClick: ne,
|
|
1624
1624
|
variant: "primary",
|
|
1625
|
-
children:
|
|
1625
|
+
children: _
|
|
1626
1626
|
})]
|
|
1627
1627
|
})
|
|
1628
1628
|
]
|
|
1629
1629
|
}) : null,
|
|
1630
1630
|
/* @__PURE__ */ O("div", {
|
|
1631
|
-
className:
|
|
1631
|
+
className: V("outcome"),
|
|
1632
1632
|
"data-rly-governed-action-outcome": "",
|
|
1633
1633
|
children: [/* @__PURE__ */ D("h3", { children: "Recorded outcome" }), c]
|
|
1634
1634
|
})
|
|
1635
1635
|
]
|
|
1636
1636
|
});
|
|
1637
|
-
},
|
|
1637
|
+
}, Rt = {
|
|
1638
1638
|
root: "rly_Hero-module__root",
|
|
1639
1639
|
fact: "rly_Hero-module__fact",
|
|
1640
1640
|
caption: "rly_Hero-module__caption",
|
|
@@ -1645,9 +1645,9 @@ var fe = {
|
|
|
1645
1645
|
word: "rly_Hero-module__word",
|
|
1646
1646
|
blocked: "rly_Hero-module__blocked",
|
|
1647
1647
|
held: "rly_Hero-module__held"
|
|
1648
|
-
},
|
|
1648
|
+
}, H = (e) => c(Rt, e), zt = u({ size: {
|
|
1649
1649
|
heading: {
|
|
1650
|
-
className:
|
|
1650
|
+
className: H("heading"),
|
|
1651
1651
|
purpose: "The page's one fact as a sentence at heading size, with its caption below",
|
|
1652
1652
|
tokens: [
|
|
1653
1653
|
"type-card-title-size",
|
|
@@ -1656,7 +1656,7 @@ var fe = {
|
|
|
1656
1656
|
]
|
|
1657
1657
|
},
|
|
1658
1658
|
line: {
|
|
1659
|
-
className:
|
|
1659
|
+
className: H("line"),
|
|
1660
1660
|
purpose: "The same fact folded to one line, when a detail with its own figure sits beside the list",
|
|
1661
1661
|
tokens: [
|
|
1662
1662
|
"type-body-size",
|
|
@@ -1665,7 +1665,7 @@ var fe = {
|
|
|
1665
1665
|
]
|
|
1666
1666
|
},
|
|
1667
1667
|
display: {
|
|
1668
|
-
className:
|
|
1668
|
+
className: H("display"),
|
|
1669
1669
|
purpose: "Read from across a room (a wall or desk board); not for ordinary screens",
|
|
1670
1670
|
tokens: [
|
|
1671
1671
|
"type-page-title-size",
|
|
@@ -1673,31 +1673,31 @@ var fe = {
|
|
|
1673
1673
|
"color-text-2"
|
|
1674
1674
|
]
|
|
1675
1675
|
}
|
|
1676
|
-
} }),
|
|
1676
|
+
} }), Bt = u({ size: "heading" }), Vt = u({ tone: {
|
|
1677
1677
|
blocked: {
|
|
1678
|
-
className:
|
|
1678
|
+
className: H("blocked"),
|
|
1679
1679
|
purpose: "Can't proceed, failed, or can't decide",
|
|
1680
1680
|
tokens: ["color-blocked-ink"]
|
|
1681
1681
|
},
|
|
1682
1682
|
held: {
|
|
1683
|
-
className:
|
|
1683
|
+
className: H("held"),
|
|
1684
1684
|
purpose: "Degraded or waiting, but still working",
|
|
1685
1685
|
tokens: ["color-held-ink"]
|
|
1686
1686
|
}
|
|
1687
|
-
} }),
|
|
1688
|
-
let o =
|
|
1687
|
+
} }), Ht = ({ caption: e, className: t, fact: n, label: r = "Summary", size: i = Bt.size, ...a }) => {
|
|
1688
|
+
let o = f(H("root"), zt.size[i].className, t);
|
|
1689
1689
|
return i === "line" ? /* @__PURE__ */ D("section", {
|
|
1690
1690
|
...a,
|
|
1691
1691
|
"aria-label": r,
|
|
1692
1692
|
className: o,
|
|
1693
1693
|
"data-rly-hero": "",
|
|
1694
1694
|
children: /* @__PURE__ */ O("p", {
|
|
1695
|
-
className:
|
|
1695
|
+
className: H("text"),
|
|
1696
1696
|
children: [/* @__PURE__ */ D("strong", {
|
|
1697
|
-
className:
|
|
1697
|
+
className: H("fact"),
|
|
1698
1698
|
children: n
|
|
1699
|
-
}), e === void 0 ? null : /* @__PURE__ */ O(
|
|
1700
|
-
className:
|
|
1699
|
+
}), e === void 0 ? null : /* @__PURE__ */ O(he, { children: [" ", /* @__PURE__ */ D("span", {
|
|
1700
|
+
className: H("caption"),
|
|
1701
1701
|
children: e
|
|
1702
1702
|
})] })]
|
|
1703
1703
|
})
|
|
@@ -1707,64 +1707,68 @@ var fe = {
|
|
|
1707
1707
|
className: o,
|
|
1708
1708
|
"data-rly-hero": "",
|
|
1709
1709
|
children: [/* @__PURE__ */ D("p", {
|
|
1710
|
-
className:
|
|
1710
|
+
className: H("fact"),
|
|
1711
1711
|
children: n
|
|
1712
1712
|
}), e === void 0 ? null : /* @__PURE__ */ D("p", {
|
|
1713
|
-
className:
|
|
1713
|
+
className: H("caption"),
|
|
1714
1714
|
children: e
|
|
1715
1715
|
})]
|
|
1716
1716
|
});
|
|
1717
|
-
},
|
|
1717
|
+
}, Ut = ({ children: e, className: t, tone: n, ...r }) => /* @__PURE__ */ D("span", {
|
|
1718
1718
|
...r,
|
|
1719
|
-
className:
|
|
1719
|
+
className: f(H("word"), Vt.tone[n].className, t),
|
|
1720
1720
|
children: e
|
|
1721
|
-
}),
|
|
1721
|
+
}), Wt = {
|
|
1722
1722
|
root: "rly_Region-module__root",
|
|
1723
1723
|
default: "rly_Region-module__default",
|
|
1724
1724
|
tray: "rly_Region-module__tray",
|
|
1725
|
+
body: "rly_Region-module__body",
|
|
1725
1726
|
header: "rly_Region-module__header",
|
|
1726
1727
|
title: "rly_Region-module__title",
|
|
1727
1728
|
count: "rly_Region-module__count",
|
|
1728
|
-
actions: "rly_Region-module__actions"
|
|
1729
|
-
|
|
1730
|
-
}, zt = (e) => c(Rt, e), Bt = l({ tone: {
|
|
1729
|
+
actions: "rly_Region-module__actions"
|
|
1730
|
+
}, Gt = (e) => c(Wt, e), Kt = u({ tone: {
|
|
1731
1731
|
default: {
|
|
1732
|
-
className:
|
|
1732
|
+
className: Gt("default"),
|
|
1733
1733
|
purpose: "A main page region: list, detail or chart",
|
|
1734
1734
|
tokens: ["color-surface-1", "color-border-1"]
|
|
1735
1735
|
},
|
|
1736
1736
|
tray: {
|
|
1737
|
-
className:
|
|
1738
|
-
purpose: "A region holding individually actionable cards
|
|
1739
|
-
tokens: [
|
|
1737
|
+
className: Gt("tray"),
|
|
1738
|
+
purpose: "A region holding individually actionable cards; its body sits one surface step down so the cards stand out, under the same header as every region",
|
|
1739
|
+
tokens: [
|
|
1740
|
+
"color-surface-1",
|
|
1741
|
+
"color-surface-2",
|
|
1742
|
+
"color-border-1"
|
|
1743
|
+
]
|
|
1740
1744
|
}
|
|
1741
|
-
} }),
|
|
1742
|
-
let u = o(s, "Region title"),
|
|
1745
|
+
} }), qt = u({ tone: "default" }), Jt = ({ actions: e, children: t, className: n, count: r, headingId: i, headingLevel: a = 2, title: s, tone: c = qt.tone, ...l }) => {
|
|
1746
|
+
let u = o(s, "Region title"), d = `rly-region-${T()}`, p = i ?? d, m = a === 3 ? "h3" : "h2";
|
|
1743
1747
|
return /* @__PURE__ */ O("section", {
|
|
1744
1748
|
...l,
|
|
1745
1749
|
"aria-labelledby": p,
|
|
1746
|
-
className:
|
|
1750
|
+
className: f(Gt("root"), Kt.tone[c].className, n),
|
|
1747
1751
|
"data-rly-region": "",
|
|
1748
1752
|
children: [/* @__PURE__ */ O("header", {
|
|
1749
|
-
className:
|
|
1753
|
+
className: Gt("header"),
|
|
1750
1754
|
children: [/* @__PURE__ */ O(m, {
|
|
1751
|
-
className:
|
|
1755
|
+
className: Gt("title"),
|
|
1752
1756
|
id: p,
|
|
1753
1757
|
tabIndex: -1,
|
|
1754
|
-
children: [u, r === void 0 ? null : /* @__PURE__ */ O(
|
|
1755
|
-
className:
|
|
1758
|
+
children: [u, r === void 0 ? null : /* @__PURE__ */ O(he, { children: [" ", /* @__PURE__ */ D("span", {
|
|
1759
|
+
className: Gt("count"),
|
|
1756
1760
|
children: r
|
|
1757
1761
|
})] })]
|
|
1758
1762
|
}), e === void 0 ? null : /* @__PURE__ */ D("div", {
|
|
1759
|
-
className:
|
|
1763
|
+
className: Gt("actions"),
|
|
1760
1764
|
children: e
|
|
1761
1765
|
})]
|
|
1762
1766
|
}), /* @__PURE__ */ D("div", {
|
|
1763
|
-
className:
|
|
1767
|
+
className: Gt("body"),
|
|
1764
1768
|
children: t
|
|
1765
1769
|
})]
|
|
1766
1770
|
});
|
|
1767
|
-
},
|
|
1771
|
+
}, Yt = {
|
|
1768
1772
|
missing: {
|
|
1769
1773
|
icon: "alert",
|
|
1770
1774
|
label: "Missing"
|
|
@@ -1793,7 +1797,7 @@ var fe = {
|
|
|
1793
1797
|
icon: "arrow-right",
|
|
1794
1798
|
label: "Superseded"
|
|
1795
1799
|
}
|
|
1796
|
-
},
|
|
1800
|
+
}, Xt = {
|
|
1797
1801
|
forward: {
|
|
1798
1802
|
arrow: "→",
|
|
1799
1803
|
label: "Forward"
|
|
@@ -1806,30 +1810,30 @@ var fe = {
|
|
|
1806
1810
|
arrow: "↔",
|
|
1807
1811
|
label: "Bidirectional"
|
|
1808
1812
|
}
|
|
1809
|
-
},
|
|
1813
|
+
}, Zt = (e, t) => {
|
|
1810
1814
|
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`);
|
|
1811
|
-
},
|
|
1812
|
-
if (!Object.hasOwn(
|
|
1813
|
-
},
|
|
1815
|
+
}, Qt = (e, t) => {
|
|
1816
|
+
if (!Object.hasOwn(mt.service, e)) throw Error(`${t} service must be a supported rly service`);
|
|
1817
|
+
}, $t = (e, t) => {
|
|
1814
1818
|
if (e.state === "present") {
|
|
1815
|
-
o(e.id, `${t} id`), o(e.title, `${t} title`), o(e.reference, `${t} reference`),
|
|
1819
|
+
o(e.id, `${t} id`), o(e.title, `${t} title`), o(e.reference, `${t} reference`), Qt(e.service, t), e.href !== void 0 && o(e.href, `${t} href`), e.person !== void 0 && Zt(e.person, t);
|
|
1816
1820
|
return;
|
|
1817
1821
|
}
|
|
1818
1822
|
if (e.state === "missing") {
|
|
1819
|
-
o(e.label, `${t} missing label`), o(e.reason, `${t} missing reason`), e.service !== void 0 &&
|
|
1823
|
+
o(e.label, `${t} missing label`), o(e.reason, `${t} missing reason`), e.service !== void 0 && Qt(e.service, t);
|
|
1820
1824
|
return;
|
|
1821
1825
|
}
|
|
1822
1826
|
throw Error(`${t} state must be present or missing`);
|
|
1823
|
-
},
|
|
1827
|
+
}, en = (e) => {
|
|
1824
1828
|
let t = /* @__PURE__ */ new Set();
|
|
1825
1829
|
for (let n of e) {
|
|
1826
1830
|
let e = o(n.id, "Relationship id");
|
|
1827
1831
|
if (t.has(e)) throw Error(`Relationship ids must be unique: ${e}`);
|
|
1828
|
-
if (t.add(e), o(n.kind, `Relationship kind for ${e}`), !Object.hasOwn(
|
|
1829
|
-
if (!Object.hasOwn(
|
|
1830
|
-
|
|
1832
|
+
if (t.add(e), o(n.kind, `Relationship kind for ${e}`), !Object.hasOwn(Xt, n.direction)) throw Error(`Relationship direction for ${e} must be supported`);
|
|
1833
|
+
if (!Object.hasOwn(Yt, n.lifecycle)) throw Error(`Relationship lifecycle for ${e} must be supported`);
|
|
1834
|
+
$t(n.source, `Relationship ${e} source`), $t(n.target, `Relationship ${e} target`), n.evidence !== void 0 && o(n.evidence, `Relationship evidence for ${e}`), n.actor !== void 0 && Zt(n.actor, `Relationship ${e} actor`);
|
|
1831
1835
|
}
|
|
1832
|
-
},
|
|
1836
|
+
}, tn = {
|
|
1833
1837
|
root: "rly_RelationshipChain-module__root",
|
|
1834
1838
|
heading: "rly_RelationshipChain-module__heading",
|
|
1835
1839
|
empty: "rly_RelationshipChain-module__empty",
|
|
@@ -1850,49 +1854,49 @@ var fe = {
|
|
|
1850
1854
|
relationship: "rly_RelationshipChain-module__relationship",
|
|
1851
1855
|
arrow: "rly_RelationshipChain-module__arrow",
|
|
1852
1856
|
actor: "rly_RelationshipChain-module__actor"
|
|
1853
|
-
},
|
|
1857
|
+
}, U = (e) => c(tn, e), nn = ({ endpoint: t }) => {
|
|
1854
1858
|
if (t.state === "missing") return /* @__PURE__ */ O("div", {
|
|
1855
|
-
className:
|
|
1859
|
+
className: f(U("endpoint"), U("missingEndpoint")),
|
|
1856
1860
|
"data-rly-endpoint-state": "missing",
|
|
1857
|
-
children: [t.service === void 0 ? null : /* @__PURE__ */ D(
|
|
1861
|
+
children: [t.service === void 0 ? null : /* @__PURE__ */ D(L, {
|
|
1858
1862
|
service: t.service,
|
|
1859
1863
|
size: "compact"
|
|
1860
1864
|
}), /* @__PURE__ */ O("span", {
|
|
1861
|
-
className:
|
|
1865
|
+
className: U("missingIdentity"),
|
|
1862
1866
|
children: [/* @__PURE__ */ O("span", {
|
|
1863
|
-
className:
|
|
1867
|
+
className: U("missingLabel"),
|
|
1864
1868
|
children: [/* @__PURE__ */ D(e, {
|
|
1865
1869
|
decorative: !0,
|
|
1866
1870
|
name: "alert",
|
|
1867
1871
|
size: "small"
|
|
1868
1872
|
}), t.label]
|
|
1869
1873
|
}), /* @__PURE__ */ D("span", {
|
|
1870
|
-
className:
|
|
1874
|
+
className: U("reference"),
|
|
1871
1875
|
children: t.reason
|
|
1872
1876
|
})]
|
|
1873
1877
|
})]
|
|
1874
1878
|
});
|
|
1875
1879
|
let n = /* @__PURE__ */ O("span", {
|
|
1876
|
-
className:
|
|
1880
|
+
className: U("identity"),
|
|
1877
1881
|
children: [/* @__PURE__ */ D("span", {
|
|
1878
|
-
className:
|
|
1882
|
+
className: U("title"),
|
|
1879
1883
|
children: t.title
|
|
1880
1884
|
}), /* @__PURE__ */ D("span", {
|
|
1881
|
-
className:
|
|
1885
|
+
className: U("reference"),
|
|
1882
1886
|
children: t.reference
|
|
1883
1887
|
})]
|
|
1884
1888
|
});
|
|
1885
1889
|
return /* @__PURE__ */ O("div", {
|
|
1886
|
-
className:
|
|
1890
|
+
className: U("endpoint"),
|
|
1887
1891
|
"data-rly-endpoint-id": t.id,
|
|
1888
1892
|
"data-rly-endpoint-state": "present",
|
|
1889
1893
|
children: [
|
|
1890
|
-
/* @__PURE__ */ D(
|
|
1894
|
+
/* @__PURE__ */ D(L, {
|
|
1891
1895
|
service: t.service,
|
|
1892
1896
|
size: "compact"
|
|
1893
1897
|
}),
|
|
1894
1898
|
t.href === void 0 ? n : /* @__PURE__ */ D(r, {
|
|
1895
|
-
className:
|
|
1899
|
+
className: U("endpointLink"),
|
|
1896
1900
|
href: t.href,
|
|
1897
1901
|
children: n
|
|
1898
1902
|
}),
|
|
@@ -1902,60 +1906,60 @@ var fe = {
|
|
|
1902
1906
|
})
|
|
1903
1907
|
]
|
|
1904
1908
|
});
|
|
1905
|
-
},
|
|
1909
|
+
}, rn = ({ className: e, emptyLabel: t = "No relationships recorded.", heading: n, relationships: r, ...i }) => {
|
|
1906
1910
|
let a = o(n, "RelationshipChain heading"), s = o(t, "RelationshipChain emptyLabel");
|
|
1907
|
-
|
|
1908
|
-
let c = `${
|
|
1911
|
+
en(r);
|
|
1912
|
+
let c = `${T()}-heading`;
|
|
1909
1913
|
return /* @__PURE__ */ O("section", {
|
|
1910
1914
|
...i,
|
|
1911
1915
|
"aria-labelledby": c,
|
|
1912
|
-
className:
|
|
1916
|
+
className: f(U("root"), e),
|
|
1913
1917
|
children: [/* @__PURE__ */ D("h2", {
|
|
1914
|
-
className:
|
|
1918
|
+
className: U("heading"),
|
|
1915
1919
|
id: c,
|
|
1916
1920
|
children: a
|
|
1917
1921
|
}), r.length === 0 ? /* @__PURE__ */ D("p", {
|
|
1918
|
-
className:
|
|
1922
|
+
className: U("empty"),
|
|
1919
1923
|
children: s
|
|
1920
1924
|
}) : /* @__PURE__ */ D("ol", {
|
|
1921
|
-
className:
|
|
1925
|
+
className: U("list"),
|
|
1922
1926
|
children: r.map((e) => {
|
|
1923
|
-
let t =
|
|
1927
|
+
let t = Xt[e.direction], n = Yt[e.lifecycle];
|
|
1924
1928
|
return /* @__PURE__ */ O("li", {
|
|
1925
|
-
className:
|
|
1929
|
+
className: U("item"),
|
|
1926
1930
|
"data-rly-relationship-id": e.id,
|
|
1927
1931
|
"data-rly-relationship-direction": e.direction,
|
|
1928
1932
|
"data-rly-relationship-kind": e.kind,
|
|
1929
1933
|
"data-rly-relationship-lifecycle": e.lifecycle,
|
|
1930
1934
|
children: [
|
|
1931
|
-
/* @__PURE__ */ D(
|
|
1935
|
+
/* @__PURE__ */ D(nn, { endpoint: e.source }),
|
|
1932
1936
|
/* @__PURE__ */ O("div", {
|
|
1933
|
-
className:
|
|
1937
|
+
className: U("relationship"),
|
|
1934
1938
|
"data-rly-relationship-detail": "",
|
|
1935
1939
|
children: [
|
|
1936
1940
|
/* @__PURE__ */ O("span", {
|
|
1937
|
-
className:
|
|
1941
|
+
className: U("direction"),
|
|
1938
1942
|
children: [/* @__PURE__ */ D("span", { children: t.label }), /* @__PURE__ */ D("span", {
|
|
1939
1943
|
"aria-hidden": "true",
|
|
1940
|
-
className:
|
|
1944
|
+
className: U("arrow"),
|
|
1941
1945
|
children: t.arrow
|
|
1942
1946
|
})]
|
|
1943
1947
|
}),
|
|
1944
1948
|
/* @__PURE__ */ D("span", {
|
|
1945
|
-
className:
|
|
1949
|
+
className: U("kind"),
|
|
1946
1950
|
children: e.kind
|
|
1947
1951
|
}),
|
|
1948
|
-
/* @__PURE__ */ D(
|
|
1952
|
+
/* @__PURE__ */ D(m, {
|
|
1949
1953
|
icon: n.icon,
|
|
1950
1954
|
label: n.label,
|
|
1951
1955
|
size: "compact",
|
|
1952
1956
|
tone: "neutral"
|
|
1953
1957
|
}),
|
|
1954
1958
|
e.actor === void 0 ? null : /* @__PURE__ */ O("div", {
|
|
1955
|
-
className:
|
|
1959
|
+
className: U("actor"),
|
|
1956
1960
|
"data-rly-relationship-actor": e.actor.id,
|
|
1957
1961
|
children: [/* @__PURE__ */ D("span", {
|
|
1958
|
-
className:
|
|
1962
|
+
className: U("fieldLabel"),
|
|
1959
1963
|
children: "Actor"
|
|
1960
1964
|
}), /* @__PURE__ */ D(P, {
|
|
1961
1965
|
person: e.actor,
|
|
@@ -1964,11 +1968,11 @@ var fe = {
|
|
|
1964
1968
|
})
|
|
1965
1969
|
]
|
|
1966
1970
|
}),
|
|
1967
|
-
/* @__PURE__ */ D(
|
|
1971
|
+
/* @__PURE__ */ D(nn, { endpoint: e.target }),
|
|
1968
1972
|
/* @__PURE__ */ O("p", {
|
|
1969
|
-
className:
|
|
1973
|
+
className: U("evidence"),
|
|
1970
1974
|
children: [/* @__PURE__ */ D("span", {
|
|
1971
|
-
className:
|
|
1975
|
+
className: U("fieldLabel"),
|
|
1972
1976
|
children: "Evidence"
|
|
1973
1977
|
}), /* @__PURE__ */ D("span", {
|
|
1974
1978
|
"data-rly-relationship-evidence": "",
|
|
@@ -1980,7 +1984,7 @@ var fe = {
|
|
|
1980
1984
|
})
|
|
1981
1985
|
})]
|
|
1982
1986
|
});
|
|
1983
|
-
},
|
|
1987
|
+
}, an = {
|
|
1984
1988
|
root: "rly_RelationshipTable-module__root",
|
|
1985
1989
|
heading: "rly_RelationshipTable-module__heading",
|
|
1986
1990
|
empty: "rly_RelationshipTable-module__empty",
|
|
@@ -2003,49 +2007,49 @@ var fe = {
|
|
|
2003
2007
|
arrow: "rly_RelationshipTable-module__arrow",
|
|
2004
2008
|
body: "rly_RelationshipTable-module__body",
|
|
2005
2009
|
row: "rly_RelationshipTable-module__row"
|
|
2006
|
-
},
|
|
2010
|
+
}, W = (e) => c(an, e), on = ({ endpoint: t }) => {
|
|
2007
2011
|
if (t.state === "missing") return /* @__PURE__ */ O("div", {
|
|
2008
|
-
className:
|
|
2012
|
+
className: f(W("endpoint"), W("missingEndpoint")),
|
|
2009
2013
|
"data-rly-endpoint-state": "missing",
|
|
2010
|
-
children: [t.service === void 0 ? null : /* @__PURE__ */ D(
|
|
2014
|
+
children: [t.service === void 0 ? null : /* @__PURE__ */ D(L, {
|
|
2011
2015
|
service: t.service,
|
|
2012
2016
|
size: "compact"
|
|
2013
2017
|
}), /* @__PURE__ */ O("span", {
|
|
2014
|
-
className:
|
|
2018
|
+
className: W("identity"),
|
|
2015
2019
|
children: [/* @__PURE__ */ O("span", {
|
|
2016
|
-
className:
|
|
2020
|
+
className: W("missingLabel"),
|
|
2017
2021
|
children: [/* @__PURE__ */ D(e, {
|
|
2018
2022
|
decorative: !0,
|
|
2019
2023
|
name: "alert",
|
|
2020
2024
|
size: "small"
|
|
2021
2025
|
}), t.label]
|
|
2022
2026
|
}), /* @__PURE__ */ D("span", {
|
|
2023
|
-
className:
|
|
2027
|
+
className: W("reference"),
|
|
2024
2028
|
children: t.reason
|
|
2025
2029
|
})]
|
|
2026
2030
|
})]
|
|
2027
2031
|
});
|
|
2028
2032
|
let n = /* @__PURE__ */ O("span", {
|
|
2029
|
-
className:
|
|
2033
|
+
className: W("identity"),
|
|
2030
2034
|
children: [/* @__PURE__ */ D("span", {
|
|
2031
|
-
className:
|
|
2035
|
+
className: W("title"),
|
|
2032
2036
|
children: t.title
|
|
2033
2037
|
}), /* @__PURE__ */ D("span", {
|
|
2034
|
-
className:
|
|
2038
|
+
className: W("reference"),
|
|
2035
2039
|
children: t.reference
|
|
2036
2040
|
})]
|
|
2037
2041
|
});
|
|
2038
2042
|
return /* @__PURE__ */ O("div", {
|
|
2039
|
-
className:
|
|
2043
|
+
className: W("endpoint"),
|
|
2040
2044
|
"data-rly-endpoint-id": t.id,
|
|
2041
2045
|
"data-rly-endpoint-state": "present",
|
|
2042
2046
|
children: [
|
|
2043
|
-
/* @__PURE__ */ D(
|
|
2047
|
+
/* @__PURE__ */ D(L, {
|
|
2044
2048
|
service: t.service,
|
|
2045
2049
|
size: "compact"
|
|
2046
2050
|
}),
|
|
2047
2051
|
t.href === void 0 ? n : /* @__PURE__ */ D(r, {
|
|
2048
|
-
className:
|
|
2052
|
+
className: W("endpointLink"),
|
|
2049
2053
|
href: t.href,
|
|
2050
2054
|
children: n
|
|
2051
2055
|
}),
|
|
@@ -2055,26 +2059,26 @@ var fe = {
|
|
|
2055
2059
|
})
|
|
2056
2060
|
]
|
|
2057
2061
|
});
|
|
2058
|
-
},
|
|
2062
|
+
}, sn = ({ className: e, emptyLabel: t = "No relationships recorded.", heading: n, relationships: r, ...i }) => {
|
|
2059
2063
|
let a = o(n, "RelationshipTable heading"), s = o(t, "RelationshipTable emptyLabel");
|
|
2060
|
-
|
|
2061
|
-
let c = `${
|
|
2064
|
+
en(r);
|
|
2065
|
+
let c = `${T()}-heading`;
|
|
2062
2066
|
return /* @__PURE__ */ O("section", {
|
|
2063
2067
|
...i,
|
|
2064
2068
|
"aria-labelledby": c,
|
|
2065
|
-
className:
|
|
2069
|
+
className: f(W("root"), e),
|
|
2066
2070
|
children: [/* @__PURE__ */ D("h2", {
|
|
2067
|
-
className:
|
|
2071
|
+
className: W("heading"),
|
|
2068
2072
|
id: c,
|
|
2069
2073
|
children: a
|
|
2070
2074
|
}), r.length === 0 ? /* @__PURE__ */ D("p", {
|
|
2071
|
-
className:
|
|
2075
|
+
className: W("empty"),
|
|
2072
2076
|
children: s
|
|
2073
2077
|
}) : /* @__PURE__ */ O("table", {
|
|
2074
2078
|
"aria-labelledby": c,
|
|
2075
|
-
className:
|
|
2079
|
+
className: W("table"),
|
|
2076
2080
|
children: [/* @__PURE__ */ D("thead", {
|
|
2077
|
-
className:
|
|
2081
|
+
className: W("head"),
|
|
2078
2082
|
children: /* @__PURE__ */ O("tr", { children: [
|
|
2079
2083
|
/* @__PURE__ */ D("th", {
|
|
2080
2084
|
scope: "col",
|
|
@@ -2094,51 +2098,51 @@ var fe = {
|
|
|
2094
2098
|
})
|
|
2095
2099
|
] })
|
|
2096
2100
|
}), /* @__PURE__ */ D("tbody", {
|
|
2097
|
-
className:
|
|
2101
|
+
className: W("body"),
|
|
2098
2102
|
children: r.map((e) => {
|
|
2099
|
-
let t =
|
|
2103
|
+
let t = Xt[e.direction], n = Yt[e.lifecycle];
|
|
2100
2104
|
return /* @__PURE__ */ O("tr", {
|
|
2101
|
-
className:
|
|
2105
|
+
className: W("row"),
|
|
2102
2106
|
"data-rly-relationship-id": e.id,
|
|
2103
2107
|
"data-rly-relationship-direction": e.direction,
|
|
2104
2108
|
"data-rly-relationship-kind": e.kind,
|
|
2105
2109
|
"data-rly-relationship-lifecycle": e.lifecycle,
|
|
2106
2110
|
children: [
|
|
2107
2111
|
/* @__PURE__ */ D("td", {
|
|
2108
|
-
className:
|
|
2112
|
+
className: W("cell"),
|
|
2109
2113
|
"data-label": "Source",
|
|
2110
|
-
children: /* @__PURE__ */ D(
|
|
2114
|
+
children: /* @__PURE__ */ D(on, { endpoint: e.source })
|
|
2111
2115
|
}),
|
|
2112
2116
|
/* @__PURE__ */ D("td", {
|
|
2113
|
-
className:
|
|
2117
|
+
className: W("cell"),
|
|
2114
2118
|
"data-label": "Relationship",
|
|
2115
2119
|
children: /* @__PURE__ */ O("div", {
|
|
2116
|
-
className:
|
|
2120
|
+
className: W("relationship"),
|
|
2117
2121
|
"data-rly-relationship-detail": "",
|
|
2118
2122
|
children: [
|
|
2119
2123
|
/* @__PURE__ */ O("span", {
|
|
2120
|
-
className:
|
|
2124
|
+
className: W("direction"),
|
|
2121
2125
|
children: [/* @__PURE__ */ D("span", { children: t.label }), /* @__PURE__ */ D("span", {
|
|
2122
2126
|
"aria-hidden": "true",
|
|
2123
|
-
className:
|
|
2127
|
+
className: W("arrow"),
|
|
2124
2128
|
children: t.arrow
|
|
2125
2129
|
})]
|
|
2126
2130
|
}),
|
|
2127
2131
|
/* @__PURE__ */ D("span", {
|
|
2128
|
-
className:
|
|
2132
|
+
className: W("kind"),
|
|
2129
2133
|
children: e.kind
|
|
2130
2134
|
}),
|
|
2131
|
-
/* @__PURE__ */ D(
|
|
2135
|
+
/* @__PURE__ */ D(m, {
|
|
2132
2136
|
icon: n.icon,
|
|
2133
2137
|
label: n.label,
|
|
2134
2138
|
size: "compact",
|
|
2135
2139
|
tone: "neutral"
|
|
2136
2140
|
}),
|
|
2137
2141
|
e.actor === void 0 ? null : /* @__PURE__ */ O("div", {
|
|
2138
|
-
className:
|
|
2142
|
+
className: W("actor"),
|
|
2139
2143
|
"data-rly-relationship-actor": e.actor.id,
|
|
2140
2144
|
children: [/* @__PURE__ */ D("span", {
|
|
2141
|
-
className:
|
|
2145
|
+
className: W("fieldLabel"),
|
|
2142
2146
|
children: "Actor"
|
|
2143
2147
|
}), /* @__PURE__ */ D(P, {
|
|
2144
2148
|
person: e.actor,
|
|
@@ -2149,15 +2153,15 @@ var fe = {
|
|
|
2149
2153
|
})
|
|
2150
2154
|
}),
|
|
2151
2155
|
/* @__PURE__ */ D("td", {
|
|
2152
|
-
className:
|
|
2156
|
+
className: W("cell"),
|
|
2153
2157
|
"data-label": "Target",
|
|
2154
|
-
children: /* @__PURE__ */ D(
|
|
2158
|
+
children: /* @__PURE__ */ D(on, { endpoint: e.target })
|
|
2155
2159
|
}),
|
|
2156
2160
|
/* @__PURE__ */ D("td", {
|
|
2157
|
-
className:
|
|
2161
|
+
className: W("cell"),
|
|
2158
2162
|
"data-label": "Evidence",
|
|
2159
2163
|
children: /* @__PURE__ */ D("span", {
|
|
2160
|
-
className:
|
|
2164
|
+
className: W("evidence"),
|
|
2161
2165
|
"data-rly-relationship-evidence": "",
|
|
2162
2166
|
children: e.evidence ?? "No evidence recorded."
|
|
2163
2167
|
})
|
|
@@ -2168,13 +2172,383 @@ var fe = {
|
|
|
2168
2172
|
})]
|
|
2169
2173
|
})]
|
|
2170
2174
|
});
|
|
2171
|
-
},
|
|
2175
|
+
}, cn = (e, t) => t === "escape" ? e.open && (e.fullscreen || e.focusInRelay) ? "Close" : "Ignore" : e.open ? e.fullscreen ? "Close" : e.focusInRelay ? "ReturnFocus" : "FocusComposer" : "Open", ln = (e) => e.isComposing || e.keyCode === 229, un = /^[a-z]$/i, dn = (e, t) => {
|
|
2176
|
+
if (ln(t) || t.repeat) return !1;
|
|
2177
|
+
let n = e.split("+"), r = n.at(-1) ?? "", i = new Set(n.slice(0, -1));
|
|
2178
|
+
return (un.test(t.key) ? t.key.toLowerCase() === r.toLowerCase() : t.code === `Key${r.toUpperCase()}`) && t.ctrlKey === i.has("Control") && t.metaKey === i.has("Meta") && t.altKey === i.has("Alt") && t.shiftKey === i.has("Shift");
|
|
2179
|
+
}, fn = "dialog[open], [role='dialog'], [role='alertdialog']", pn = "[role='listbox'], [role='menu']", mn = (e, t) => {
|
|
2180
|
+
let n = e !== null && t.includes(e);
|
|
2181
|
+
for (let r of t) {
|
|
2182
|
+
if (r === e) return !1;
|
|
2183
|
+
if (_n(r) && !r.hasAttribute("data-rly-relay-surface") && (r.matches(fn) || r.matches(pn) && gn(r) || n && r.matches(hn))) return !0;
|
|
2184
|
+
}
|
|
2185
|
+
return !1;
|
|
2186
|
+
}, hn = "[aria-expanded='true'][aria-controls], [aria-expanded='true'][aria-haspopup]:not([aria-haspopup='false'])", gn = (e) => e.getAttribute("data-state") === "open" || e.id !== "" && [...vn(e).querySelectorAll("[aria-expanded='true'][aria-controls]")].some((t) => (t.getAttribute("aria-controls") ?? "").split(/\s+/).includes(e.id)), _n = (e) => "matches" in e && "nodeType" in e && e.nodeType === 1, vn = (e) => {
|
|
2187
|
+
let t = e.getRootNode();
|
|
2188
|
+
return yn(t) ? t : e.ownerDocument;
|
|
2189
|
+
}, yn = (e) => e.nodeType === 11 && "host" in e, bn = {
|
|
2190
|
+
root: "rly_RelayComposer-module__root",
|
|
2191
|
+
refs: "rly_RelayComposer-module__refs",
|
|
2192
|
+
ref: "rly_RelayComposer-module__ref",
|
|
2193
|
+
refLabel: "rly_RelayComposer-module__refLabel",
|
|
2194
|
+
box: "rly_RelayComposer-module__box",
|
|
2195
|
+
input: "rly_RelayComposer-module__input",
|
|
2196
|
+
foot: "rly_RelayComposer-module__foot",
|
|
2197
|
+
actions: "rly_RelayComposer-module__actions",
|
|
2198
|
+
hint: "rly_RelayComposer-module__hint",
|
|
2199
|
+
busy: "rly_RelayComposer-module__busy"
|
|
2200
|
+
}, xn = (e) => "activeElement" in e, Sn = (e) => "host" in e && a(e.host), Cn = (e) => {
|
|
2201
|
+
let t = e.activeElement;
|
|
2202
|
+
return t === null ? null : t.shadowRoot === null ? t : Cn(t.shadowRoot) ?? t;
|
|
2203
|
+
}, wn = (e) => {
|
|
2204
|
+
let t = e.getRootNode();
|
|
2205
|
+
return xn(t) ? Cn(t) : e.ownerDocument.activeElement;
|
|
2206
|
+
}, Tn = (e) => {
|
|
2207
|
+
let t = e.getRootNode();
|
|
2208
|
+
return Sn(t) && _(t.host) ? t.host : null;
|
|
2209
|
+
}, En = (e) => "assignedSlot" in e, Dn = (e) => e.nodeType === 1, On = (e, t) => {
|
|
2210
|
+
if (t !== void 0 && t.has(e)) {
|
|
2211
|
+
let n = t.get(e);
|
|
2212
|
+
return n != null && Dn(n) ? n : null;
|
|
2213
|
+
}
|
|
2214
|
+
return (En(e) ? e.assignedSlot : null) ?? e.parentElement ?? Tn(e);
|
|
2215
|
+
}, kn = (e, t, n) => {
|
|
2216
|
+
if (t === null) return !1;
|
|
2217
|
+
if (e.contains(t)) return !0;
|
|
2218
|
+
let r = /* @__PURE__ */ new Set(), i = t;
|
|
2219
|
+
for (; !r.has(i);) {
|
|
2220
|
+
r.add(i);
|
|
2221
|
+
let t = On(i, n);
|
|
2222
|
+
if (t === null) return !1;
|
|
2223
|
+
if (t === e || e.contains(t)) return !0;
|
|
2224
|
+
i = t;
|
|
2225
|
+
}
|
|
2226
|
+
return !1;
|
|
2227
|
+
}, An = (e, t) => kn(e, t), jn = (e) => {
|
|
2228
|
+
let t = e.activeElement;
|
|
2229
|
+
return _(t) ? t.shadowRoot === null ? t : jn(t.shadowRoot) ?? t : null;
|
|
2230
|
+
}, Mn = (e) => {
|
|
2231
|
+
let t = jn(e);
|
|
2232
|
+
return t === e.body || t === e.documentElement ? null : t;
|
|
2233
|
+
}, Nn = {
|
|
2234
|
+
root: "rly_RelayLauncher-module__root",
|
|
2235
|
+
mark: "rly_RelayLauncher-module__mark",
|
|
2236
|
+
label: "rly_RelayLauncher-module__label",
|
|
2237
|
+
hint: "rly_RelayLauncher-module__hint"
|
|
2238
|
+
}, Pn = {
|
|
2239
|
+
root: "rly_RelayMark-module__root",
|
|
2240
|
+
tile: "rly_RelayMark-module__tile",
|
|
2241
|
+
tileGlyph: "rly_RelayMark-module__tileGlyph"
|
|
2242
|
+
}, Fn = (e) => c(Pn, e), In = [
|
|
2243
|
+
16,
|
|
2244
|
+
20,
|
|
2245
|
+
24,
|
|
2246
|
+
32
|
|
2247
|
+
], Ln = [
|
|
2248
|
+
20,
|
|
2249
|
+
24,
|
|
2250
|
+
32
|
|
2251
|
+
], Rn = (e, t) => e === void 0 ? void 0 : o(e, t), zn = (e, t, n) => e === void 0 && t["aria-label"] === void 0 && t["aria-labelledby"] === void 0 ? {
|
|
2252
|
+
"aria-hidden": "true",
|
|
2253
|
+
role: t.role
|
|
2254
|
+
} : {
|
|
2255
|
+
"aria-hidden": t["aria-hidden"],
|
|
2256
|
+
"aria-label": Rn(e ?? t["aria-label"], n),
|
|
2257
|
+
"aria-labelledby": Rn(t["aria-labelledby"], `${n} (aria-labelledby)`),
|
|
2258
|
+
role: t.role ?? "img"
|
|
2259
|
+
}, Bn = ({ size: e, ...t }) => /* @__PURE__ */ O("svg", {
|
|
2260
|
+
...t,
|
|
2261
|
+
fill: "none",
|
|
2262
|
+
focusable: "false",
|
|
2263
|
+
height: e,
|
|
2264
|
+
stroke: "currentColor",
|
|
2265
|
+
strokeLinecap: "round",
|
|
2266
|
+
strokeLinejoin: "round",
|
|
2267
|
+
strokeWidth: 2.75,
|
|
2268
|
+
viewBox: "0 0 24 24",
|
|
2269
|
+
width: e,
|
|
2270
|
+
children: [
|
|
2271
|
+
/* @__PURE__ */ D("path", { d: "M4 20V9.5A5.5 5.5 0 0 1 9.5 4H13" }),
|
|
2272
|
+
/* @__PURE__ */ D("path", { d: "M20 4v10.5a5.5 5.5 0 0 1-5.5 5.5H11" }),
|
|
2273
|
+
/* @__PURE__ */ D("path", { d: "M10 14 14 10" })
|
|
2274
|
+
]
|
|
2275
|
+
}), Vn = Object.assign(({ className: e, label: t, size: n, ...r }) => /* @__PURE__ */ D(Bn, {
|
|
2276
|
+
...r,
|
|
2277
|
+
...zn(t, r, "RelayMark label"),
|
|
2278
|
+
className: f(Fn("root"), e),
|
|
2279
|
+
size: n ?? 20
|
|
2280
|
+
}), { Tile: ({ className: e, label: t, size: n, ...r }) => {
|
|
2281
|
+
let i = n ?? 24;
|
|
2282
|
+
return /* @__PURE__ */ D("span", {
|
|
2283
|
+
...r,
|
|
2284
|
+
...zn(t, r, "RelayMark.Tile label"),
|
|
2285
|
+
className: f(Fn("tile"), e),
|
|
2286
|
+
"data-size": i,
|
|
2287
|
+
children: /* @__PURE__ */ D(Bn, {
|
|
2288
|
+
"aria-hidden": "true",
|
|
2289
|
+
className: Fn("tileGlyph"),
|
|
2290
|
+
size: i / 2
|
|
2291
|
+
})
|
|
2292
|
+
});
|
|
2293
|
+
} }), Hn = (e) => c(Nn, e), Un = (e) => e ? {
|
|
2294
|
+
hint: "⌘J",
|
|
2295
|
+
keys: "Meta+J"
|
|
2296
|
+
} : {
|
|
2297
|
+
hint: "Ctrl J",
|
|
2298
|
+
keys: "Control+J"
|
|
2299
|
+
}, Wn = () => /Mac|iPhone|iPad/.test(navigator.platform), Gn = () => () => void 0, Kn = () => Un(me(Gn, Wn, () => !1)), qn = (e) => {
|
|
2300
|
+
let t = E(e);
|
|
2301
|
+
fe(() => {
|
|
2302
|
+
t.current = e;
|
|
2303
|
+
});
|
|
2304
|
+
let [n, r] = pe(null), i = E(null), a = E(null), o = E(null), s = E(!1), c = E(!1), l = E(null), u = w(() => {
|
|
2305
|
+
let e = o.current;
|
|
2306
|
+
e?.isConnected === !0 ? e.focus() : t.current.launcher.current?.focus();
|
|
2307
|
+
}, []), d = w((e) => {
|
|
2308
|
+
i.current = e, r(e);
|
|
2309
|
+
}, []), f = w((e) => {
|
|
2310
|
+
a.current = e, e !== null && s.current && (s.current = !1, e.focus());
|
|
2311
|
+
}, []);
|
|
2312
|
+
de(() => {
|
|
2313
|
+
if (!e.open) {
|
|
2314
|
+
s.current = !1, c.current && (c.current = !1, u()), o.current = null;
|
|
2315
|
+
return;
|
|
2316
|
+
}
|
|
2317
|
+
c.current = !1, o.current === null && (o.current = Jn(i.current, t.current.launcher.current?.ownerDocument ?? document)), s.current && a.current !== null && (s.current = !1, a.current.focus());
|
|
2318
|
+
}, [e.open, u]);
|
|
2319
|
+
let p = e.shortcut?.keys ?? null;
|
|
2320
|
+
return de(() => {
|
|
2321
|
+
let r = [.../* @__PURE__ */ new Set([e.launcher.current?.ownerDocument ?? document, n?.ownerDocument])].flatMap((e) => {
|
|
2322
|
+
if (e === void 0) return [];
|
|
2323
|
+
let n = (n) => {
|
|
2324
|
+
if (n.defaultPrevented || ln(n)) return;
|
|
2325
|
+
let r = n.key === "Escape" ? "escape" : p !== null && dn(p, n) ? "chord" : void 0;
|
|
2326
|
+
if (r === void 0) return;
|
|
2327
|
+
let { fullscreen: d, onOpenChange: f, open: m } = t.current, h = i.current;
|
|
2328
|
+
if (r === "escape" && l.current === n) return;
|
|
2329
|
+
let g = Mn(e), _ = cn({
|
|
2330
|
+
focusInRelay: h !== null && g !== null && kn(h, g),
|
|
2331
|
+
fullscreen: d,
|
|
2332
|
+
open: m
|
|
2333
|
+
}, r);
|
|
2334
|
+
if (_ !== "Ignore") switch (n.preventDefault(), _) {
|
|
2335
|
+
case "Open":
|
|
2336
|
+
o.current = Jn(h, e), s.current = !0, f(!0);
|
|
2337
|
+
return;
|
|
2338
|
+
case "FocusComposer":
|
|
2339
|
+
o.current = Jn(h, e), a.current === null ? s.current = !0 : a.current.focus();
|
|
2340
|
+
return;
|
|
2341
|
+
case "ReturnFocus":
|
|
2342
|
+
s.current = !1, u();
|
|
2343
|
+
return;
|
|
2344
|
+
case "Close":
|
|
2345
|
+
s.current = !1, c.current = !0, f(!1);
|
|
2346
|
+
return;
|
|
2347
|
+
}
|
|
2348
|
+
}, r = (e) => {
|
|
2349
|
+
e.key === "Escape" && mn(i.current, e.composedPath()) && (l.current = e);
|
|
2350
|
+
};
|
|
2351
|
+
return e.addEventListener("keydown", r, !0), e.addEventListener("keydown", n), [() => e.removeEventListener("keydown", r, !0), () => e.removeEventListener("keydown", n)];
|
|
2352
|
+
});
|
|
2353
|
+
return () => {
|
|
2354
|
+
for (let e of r) e();
|
|
2355
|
+
};
|
|
2356
|
+
}, [
|
|
2357
|
+
p,
|
|
2358
|
+
e.launcher,
|
|
2359
|
+
n,
|
|
2360
|
+
u
|
|
2361
|
+
]), {
|
|
2362
|
+
composerRef: f,
|
|
2363
|
+
regionRef: d
|
|
2364
|
+
};
|
|
2365
|
+
}, Jn = (e, t) => {
|
|
2366
|
+
let n = Mn(t);
|
|
2367
|
+
return n !== null && e !== null && kn(e, n) ? null : n;
|
|
2368
|
+
}, Yn = ({ className: e, expanded: t, label: n = "Relay", shortcut: r, ...i }) => /* @__PURE__ */ O("button", {
|
|
2369
|
+
...i,
|
|
2370
|
+
"aria-expanded": t,
|
|
2371
|
+
"aria-keyshortcuts": r === null ? void 0 : o(r.keys, "RelayLauncher shortcut keys"),
|
|
2372
|
+
className: f(Hn("root"), e),
|
|
2373
|
+
"data-rly-relay-launcher": "",
|
|
2374
|
+
type: "button",
|
|
2375
|
+
children: [
|
|
2376
|
+
/* @__PURE__ */ D(Vn, {
|
|
2377
|
+
className: Hn("mark"),
|
|
2378
|
+
size: 20
|
|
2379
|
+
}),
|
|
2380
|
+
/* @__PURE__ */ D("span", {
|
|
2381
|
+
className: Hn("label"),
|
|
2382
|
+
children: o(n, "RelayLauncher label")
|
|
2383
|
+
}),
|
|
2384
|
+
r === null ? null : /* @__PURE__ */ D("kbd", {
|
|
2385
|
+
"aria-hidden": "true",
|
|
2386
|
+
className: Hn("hint"),
|
|
2387
|
+
children: o(r.hint, "RelayLauncher shortcut hint")
|
|
2388
|
+
})
|
|
2389
|
+
]
|
|
2390
|
+
}), G = (e) => c(bn, e), Xn = (e, t) => {
|
|
2391
|
+
l(e) ? e(t) : e != null && (e.current = t);
|
|
2392
|
+
}, Zn = ({ busyReason: e, contextRefs: t = [], label: n = "Message Relay", onRemoveContextRef: r, onSend: i, onStop: a, onValueChange: s, placeholder: c, preset: l, ref: u, value: d }) => {
|
|
2393
|
+
let f = T(), p = T(), m = E(null), h = Kn().keys.startsWith("Meta"), g = e !== void 0 || d.trim() === "", _ = w((e) => {
|
|
2394
|
+
m.current = e, Xn(u, e);
|
|
2395
|
+
}, [u]);
|
|
2396
|
+
fe(() => {
|
|
2397
|
+
let e = m.current;
|
|
2398
|
+
if (e === null) return;
|
|
2399
|
+
Qn(e);
|
|
2400
|
+
let t = e.ownerDocument.defaultView;
|
|
2401
|
+
if (t === null || !("ResizeObserver" in t)) return;
|
|
2402
|
+
let n = e.clientWidth, r = new t.ResizeObserver(() => {
|
|
2403
|
+
e.clientWidth !== n && (n = e.clientWidth, Qn(e));
|
|
2404
|
+
});
|
|
2405
|
+
return r.observe(e), () => r.disconnect();
|
|
2406
|
+
}, [d]);
|
|
2407
|
+
let v = () => {
|
|
2408
|
+
g || i();
|
|
2409
|
+
};
|
|
2410
|
+
return /* @__PURE__ */ O("div", {
|
|
2411
|
+
className: G("root"),
|
|
2412
|
+
children: [t.length === 0 ? null : /* @__PURE__ */ D("ul", {
|
|
2413
|
+
"aria-label": "Asking with",
|
|
2414
|
+
className: G("refs"),
|
|
2415
|
+
children: t.map((e) => /* @__PURE__ */ O("li", {
|
|
2416
|
+
className: G("ref"),
|
|
2417
|
+
children: [/* @__PURE__ */ D("span", {
|
|
2418
|
+
className: G("refLabel"),
|
|
2419
|
+
children: o(e.label, "RelayComposer context label")
|
|
2420
|
+
}), r === void 0 ? null : /* @__PURE__ */ D(se, {
|
|
2421
|
+
icon: "close",
|
|
2422
|
+
label: `Remove ${e.label}`,
|
|
2423
|
+
onClick: () => r(e.id),
|
|
2424
|
+
variant: "quiet"
|
|
2425
|
+
})]
|
|
2426
|
+
}, e.id))
|
|
2427
|
+
}), /* @__PURE__ */ O("div", {
|
|
2428
|
+
className: G("box"),
|
|
2429
|
+
children: [/* @__PURE__ */ D("textarea", {
|
|
2430
|
+
"aria-describedby": f,
|
|
2431
|
+
"aria-label": o(n, "RelayComposer label"),
|
|
2432
|
+
className: G("input"),
|
|
2433
|
+
onChange: (e) => s(e.target.value),
|
|
2434
|
+
onKeyDown: (e) => {
|
|
2435
|
+
e.key !== "Enter" || ln(e.nativeEvent) || !(h ? e.metaKey : e.ctrlKey) || e.altKey || e.shiftKey || (e.preventDefault(), v());
|
|
2436
|
+
},
|
|
2437
|
+
placeholder: c,
|
|
2438
|
+
ref: _,
|
|
2439
|
+
rows: 1,
|
|
2440
|
+
value: d
|
|
2441
|
+
}), /* @__PURE__ */ O("div", {
|
|
2442
|
+
className: G("foot"),
|
|
2443
|
+
children: [
|
|
2444
|
+
l,
|
|
2445
|
+
e === void 0 ? null : /* @__PURE__ */ D("span", {
|
|
2446
|
+
className: G("busy"),
|
|
2447
|
+
id: p,
|
|
2448
|
+
children: o(e, "RelayComposer busy reason")
|
|
2449
|
+
}),
|
|
2450
|
+
/* @__PURE__ */ O("span", {
|
|
2451
|
+
className: G("actions"),
|
|
2452
|
+
children: [
|
|
2453
|
+
/* @__PURE__ */ D("span", {
|
|
2454
|
+
className: G("hint"),
|
|
2455
|
+
id: f,
|
|
2456
|
+
children: h ? "⌘ Enter to send" : "Ctrl Enter to send"
|
|
2457
|
+
}),
|
|
2458
|
+
a === void 0 ? null : /* @__PURE__ */ D(b, {
|
|
2459
|
+
onClick: a,
|
|
2460
|
+
type: "button",
|
|
2461
|
+
children: "Stop"
|
|
2462
|
+
}),
|
|
2463
|
+
/* @__PURE__ */ D(b, {
|
|
2464
|
+
"aria-describedby": e === void 0 ? void 0 : p,
|
|
2465
|
+
"aria-disabled": g,
|
|
2466
|
+
onClick: v,
|
|
2467
|
+
type: "button",
|
|
2468
|
+
variant: "primary",
|
|
2469
|
+
children: "Send"
|
|
2470
|
+
})
|
|
2471
|
+
]
|
|
2472
|
+
})
|
|
2473
|
+
]
|
|
2474
|
+
})]
|
|
2475
|
+
})]
|
|
2476
|
+
});
|
|
2477
|
+
}, Qn = (e) => {
|
|
2478
|
+
e.style.blockSize = "auto", e.style.blockSize = `${e.scrollHeight}px`;
|
|
2479
|
+
}, $n = /* @__PURE__ */ new Map(), er = /* @__PURE__ */ new Map(), tr = {
|
|
2480
|
+
requestId: null,
|
|
2481
|
+
text: ""
|
|
2482
|
+
}, nr = 5e4, rr = (e) => `rly.relay.draft:${e}`, ir = (e) => {
|
|
2483
|
+
for (let t of er.get(e) ?? []) t();
|
|
2484
|
+
}, ar = (e) => {
|
|
2485
|
+
let t;
|
|
2486
|
+
try {
|
|
2487
|
+
t = JSON.parse(e);
|
|
2488
|
+
} catch {
|
|
2489
|
+
return;
|
|
2490
|
+
}
|
|
2491
|
+
if (a(t) && "text" in t && s(t.text)) return {
|
|
2492
|
+
requestId: "requestId" in t && s(t.requestId) ? t.requestId : null,
|
|
2493
|
+
text: t.text
|
|
2494
|
+
};
|
|
2495
|
+
}, or = (e, t) => {
|
|
2496
|
+
if (t === void 0) return tr;
|
|
2497
|
+
try {
|
|
2498
|
+
let n = t().getItem(rr(e));
|
|
2499
|
+
return n === null ? tr : ar(n) ?? tr;
|
|
2500
|
+
} catch {
|
|
2501
|
+
return tr;
|
|
2502
|
+
}
|
|
2503
|
+
}, sr = (e, t, n) => {
|
|
2504
|
+
if (n !== void 0) try {
|
|
2505
|
+
t.text === "" || t.text.length > nr ? n().removeItem(rr(e)) : n().setItem(rr(e), JSON.stringify(t));
|
|
2506
|
+
} catch {}
|
|
2507
|
+
}, cr = (e, t) => {
|
|
2508
|
+
let { newRequestId: n, storage: r } = t, i = w((t) => {
|
|
2509
|
+
let n = er.get(e) ?? /* @__PURE__ */ new Set();
|
|
2510
|
+
return n.add(t), er.set(e, n), () => n.delete(t);
|
|
2511
|
+
}, [e]), a = w(() => $n.get(e) ?? or(e, r), [e, r]), o = me(i, () => a().text, () => ""), s = w((t) => {
|
|
2512
|
+
let n = a(), i = {
|
|
2513
|
+
requestId: t === n.text ? n.requestId : null,
|
|
2514
|
+
text: t
|
|
2515
|
+
};
|
|
2516
|
+
$n.set(e, i), sr(e, i, r), ir(e);
|
|
2517
|
+
}, [
|
|
2518
|
+
a,
|
|
2519
|
+
e,
|
|
2520
|
+
r
|
|
2521
|
+
]), c = w(() => {
|
|
2522
|
+
let t = a(), i = t.requestId ?? n(), o = {
|
|
2523
|
+
requestId: i,
|
|
2524
|
+
text: t.text
|
|
2525
|
+
};
|
|
2526
|
+
return $n.set(e, o), sr(e, o, r), {
|
|
2527
|
+
requestId: i,
|
|
2528
|
+
text: t.text
|
|
2529
|
+
};
|
|
2530
|
+
}, [
|
|
2531
|
+
a,
|
|
2532
|
+
n,
|
|
2533
|
+
e,
|
|
2534
|
+
r
|
|
2535
|
+
]);
|
|
2536
|
+
return {
|
|
2537
|
+
accepted: w((t) => {
|
|
2538
|
+
a().requestId === t && ($n.set(e, tr), sr(e, tr, r), ir(e));
|
|
2539
|
+
}, [
|
|
2540
|
+
a,
|
|
2541
|
+
e,
|
|
2542
|
+
r
|
|
2543
|
+
]),
|
|
2544
|
+
onValueChange: s,
|
|
2545
|
+
submission: c,
|
|
2546
|
+
value: o
|
|
2547
|
+
};
|
|
2548
|
+
}, lr = {
|
|
2172
2549
|
root: "rly_RelayDock-module__root",
|
|
2173
2550
|
trigger: "rly_RelayDock-module__trigger",
|
|
2174
2551
|
close: "rly_RelayDock-module__close",
|
|
2175
|
-
mark: "rly_RelayDock-module__mark",
|
|
2176
|
-
markLine: "rly_RelayDock-module__markLine",
|
|
2177
|
-
markGlyph: "rly_RelayDock-module__markGlyph",
|
|
2178
2552
|
layer: "rly_RelayDock-module__layer",
|
|
2179
2553
|
overlay: "rly_RelayDock-module__overlay",
|
|
2180
2554
|
panel: "rly_RelayDock-module__panel",
|
|
@@ -2198,7 +2572,7 @@ var fe = {
|
|
|
2198
2572
|
ready: "rly_RelayDock-module__ready",
|
|
2199
2573
|
state: "rly_RelayDock-module__state",
|
|
2200
2574
|
footer: "rly_RelayDock-module__footer"
|
|
2201
|
-
},
|
|
2575
|
+
}, K = (e) => c(lr, e), ur = "(max-width: 40rem), (max-height: 40rem) and (pointer: coarse)", dr = [
|
|
2202
2576
|
"a[href]",
|
|
2203
2577
|
"button:not([disabled])",
|
|
2204
2578
|
"iframe:not([tabindex=\"-1\"])",
|
|
@@ -2208,40 +2582,7 @@ var fe = {
|
|
|
2208
2582
|
"textarea:not([disabled])",
|
|
2209
2583
|
"[contenteditable]:not([contenteditable=\"false\"])",
|
|
2210
2584
|
"[tabindex]:not([tabindex=\"-1\"])"
|
|
2211
|
-
].join(","),
|
|
2212
|
-
let t = e.activeElement;
|
|
2213
|
-
return t === null ? null : t.shadowRoot === null ? t : cn(t.shadowRoot) ?? t;
|
|
2214
|
-
}, ln = (e) => {
|
|
2215
|
-
let t = e.getRootNode();
|
|
2216
|
-
return on(t) ? cn(t) : e.ownerDocument.activeElement;
|
|
2217
|
-
}, un = (e) => {
|
|
2218
|
-
let t = e.getRootNode();
|
|
2219
|
-
return sn(t) && _(t.host) ? t.host : null;
|
|
2220
|
-
}, dn = (e) => "assignedSlot" in e, fn = (e) => e.nodeType === 1, pn = (e, t) => {
|
|
2221
|
-
if (t !== void 0 && t.has(e)) {
|
|
2222
|
-
let n = t.get(e);
|
|
2223
|
-
return n != null && fn(n) ? n : null;
|
|
2224
|
-
}
|
|
2225
|
-
return (dn(e) ? e.assignedSlot : null) ?? e.parentElement ?? un(e);
|
|
2226
|
-
}, mn = (e, t, n) => {
|
|
2227
|
-
if (t === null) return !1;
|
|
2228
|
-
if (e.contains(t)) return !0;
|
|
2229
|
-
let r = /* @__PURE__ */ new Set(), i = t;
|
|
2230
|
-
for (; !r.has(i);) {
|
|
2231
|
-
r.add(i);
|
|
2232
|
-
let t = pn(i, n);
|
|
2233
|
-
if (t === null) return !1;
|
|
2234
|
-
if (t === e || e.contains(t)) return !0;
|
|
2235
|
-
i = t;
|
|
2236
|
-
}
|
|
2237
|
-
return !1;
|
|
2238
|
-
}, hn = (e, t) => mn(e, t), gn = (e) => {
|
|
2239
|
-
let t = e.activeElement;
|
|
2240
|
-
return _(t) ? t.shadowRoot === null ? t : gn(t.shadowRoot) ?? t : null;
|
|
2241
|
-
}, _n = (e) => {
|
|
2242
|
-
let t = gn(e);
|
|
2243
|
-
return t === e.body || t === e.documentElement ? null : t;
|
|
2244
|
-
}, vn = (e, t) => {
|
|
2585
|
+
].join(","), fr = "button, fieldset, input, object, optgroup, option, output, select, textarea", pr = (e, t) => {
|
|
2245
2586
|
if (e.matches(":disabled")) return !1;
|
|
2246
2587
|
let n = e.ownerDocument.defaultView;
|
|
2247
2588
|
if (n === null) return !_(e) || e.hidden === !1;
|
|
@@ -2252,44 +2593,44 @@ var fe = {
|
|
|
2252
2593
|
if (_(i) && i.inert) return !1;
|
|
2253
2594
|
if (i.tagName === "DETAILS" && !i.hasAttribute("open")) {
|
|
2254
2595
|
let n = i.querySelector(":scope > summary:first-of-type");
|
|
2255
|
-
if (n === null || !
|
|
2596
|
+
if (n === null || !kn(n, e, t)) return !1;
|
|
2256
2597
|
}
|
|
2257
|
-
if (i !== e && i.tagName === "FIELDSET" && i.hasAttribute("disabled") && e.matches(
|
|
2598
|
+
if (i !== e && i.tagName === "FIELDSET" && i.hasAttribute("disabled") && e.matches(fr)) {
|
|
2258
2599
|
let n = i.querySelector(":scope > legend:first-of-type");
|
|
2259
|
-
if (n === null || !
|
|
2600
|
+
if (n === null || !kn(n, e, t)) return !1;
|
|
2260
2601
|
}
|
|
2261
2602
|
let r = n.getComputedStyle(i);
|
|
2262
2603
|
if (_(i) && i.hidden !== !1 || r.display === "none" || i === e && r.display === "contents" || i !== e && r.contentVisibility === "hidden") return !1;
|
|
2263
|
-
i =
|
|
2604
|
+
i = On(i, t);
|
|
2264
2605
|
}
|
|
2265
2606
|
return !0;
|
|
2266
|
-
},
|
|
2267
|
-
let n = e.getRootNode(), r = /* @__PURE__ */ new Set(), i =
|
|
2607
|
+
}, mr = (e, t) => {
|
|
2608
|
+
let n = e.getRootNode(), r = /* @__PURE__ */ new Set(), i = On(e, t);
|
|
2268
2609
|
for (; i !== null && !r.has(i);) {
|
|
2269
2610
|
if (r.add(i), i.getRootNode() !== n) return !1;
|
|
2270
2611
|
if (_(i) && i.isContentEditable) return !0;
|
|
2271
|
-
i =
|
|
2612
|
+
i = On(i, t);
|
|
2272
2613
|
}
|
|
2273
2614
|
return !1;
|
|
2274
|
-
},
|
|
2275
|
-
if (e.namespaceURI ===
|
|
2615
|
+
}, hr = (e) => _(e) && e.tagName === "INPUT" && e.getAttribute("type")?.toLowerCase() === "radio", gr = (e) => "tabIndex" in e && d(e.tabIndex), _r = "http://www.w3.org/2000/svg", vr = (e) => {
|
|
2616
|
+
if (e.namespaceURI === _r && e.localName === "a" && e.hasAttribute("href")) {
|
|
2276
2617
|
let t = e.getAttribute("tabindex");
|
|
2277
2618
|
if (t === null) return 0;
|
|
2278
2619
|
let n = Number.parseInt(t, 10);
|
|
2279
2620
|
return Number.isNaN(n) ? 0 : n;
|
|
2280
2621
|
}
|
|
2281
|
-
return
|
|
2282
|
-
},
|
|
2283
|
-
let n =
|
|
2622
|
+
return gr(e) ? e.tabIndex : null;
|
|
2623
|
+
}, yr = (e) => e.tagName === "SLOT" && "assignedElements" in e, br = (e) => yr(e) && Sn(e.getRootNode()), xr = (e, t) => {
|
|
2624
|
+
let n = vr(e) ?? -1, r = vr(t) ?? -1, i = n > 0, a = r > 0;
|
|
2284
2625
|
return i === a ? i && a && n !== r ? n - r : 0 : i ? -1 : 1;
|
|
2285
|
-
},
|
|
2286
|
-
let t =
|
|
2626
|
+
}, Sr = (e) => {
|
|
2627
|
+
let t = vr(e);
|
|
2287
2628
|
return t !== null && e.hasAttribute("tabindex") && t < 0;
|
|
2288
|
-
},
|
|
2629
|
+
}, Cr = (e) => Sr(e) && (yr(e) || _(e) && e.shadowRoot?.delegatesFocus === !0), wr = (e, t, n, r) => {
|
|
2289
2630
|
if (e.name.length === 0) return !0;
|
|
2290
|
-
let i = n.filter(({ element: n, nativeRoot: i }) => i === t &&
|
|
2631
|
+
let i = n.filter(({ element: n, nativeRoot: i }) => i === t && hr(n) && n.name === e.name && n.form === e.form && pr(n, r)).map(({ element: e }) => e).filter(hr).find((e) => e.checked);
|
|
2291
2632
|
return i === void 0 ? e.tabIndex >= 0 : i === e;
|
|
2292
|
-
},
|
|
2633
|
+
}, Tr = (e) => {
|
|
2293
2634
|
let t = (e, r, i) => {
|
|
2294
2635
|
let a = [], o = /* @__PURE__ */ new Map(), s = (e, i) => {
|
|
2295
2636
|
if (a.push({
|
|
@@ -2297,16 +2638,16 @@ var fe = {
|
|
|
2297
2638
|
element: e,
|
|
2298
2639
|
focusScope: r,
|
|
2299
2640
|
nativeRoot: e.getRootNode()
|
|
2300
|
-
}),
|
|
2641
|
+
}), br(e)) {
|
|
2301
2642
|
let n = e.assignedNodes({ flatten: !1 }), r = e.assignedElements({ flatten: !1 }), i = [...e.children];
|
|
2302
2643
|
o.set(e, t(n.length > 0 ? r : i, e, e));
|
|
2303
2644
|
return;
|
|
2304
2645
|
}
|
|
2305
|
-
if (
|
|
2646
|
+
if (yr(e)) {
|
|
2306
2647
|
o.set(e, t([...e.children], e, e));
|
|
2307
2648
|
return;
|
|
2308
2649
|
}
|
|
2309
|
-
if (e.shadowRoot !== null && (!
|
|
2650
|
+
if (e.shadowRoot !== null && (!Sr(e) || e.shadowRoot.delegatesFocus === !0)) o.set(e, n(e.shadowRoot, e.shadowRoot, e));
|
|
2310
2651
|
else if (e.shadowRoot === null) for (let t of e.children) s(t, e);
|
|
2311
2652
|
};
|
|
2312
2653
|
for (let t of e) s(t, i);
|
|
@@ -2315,7 +2656,7 @@ var fe = {
|
|
|
2315
2656
|
nested: o
|
|
2316
2657
|
};
|
|
2317
2658
|
}, n = (e, n, r) => t([...e.children], n, r), r = (e) => {
|
|
2318
|
-
let t = [...e.entries].sort((e, t) =>
|
|
2659
|
+
let t = [...e.entries].sort((e, t) => xr(e.element, t.element)), n = [];
|
|
2319
2660
|
for (let i of t) {
|
|
2320
2661
|
n.push(i);
|
|
2321
2662
|
let t = e.nested.get(i.element);
|
|
@@ -2324,26 +2665,26 @@ var fe = {
|
|
|
2324
2665
|
return n;
|
|
2325
2666
|
};
|
|
2326
2667
|
return r(n(e, e, e));
|
|
2327
|
-
},
|
|
2668
|
+
}, Er = (e, t, n) => t.filter((r) => {
|
|
2328
2669
|
let { element: i, nativeRoot: a } = r;
|
|
2329
2670
|
if (i.tagName === "SLOT") return !1;
|
|
2330
|
-
let o =
|
|
2671
|
+
let o = vr(i);
|
|
2331
2672
|
if (o === null) return !1;
|
|
2332
2673
|
let s = i, c = /* @__PURE__ */ new Set();
|
|
2333
2674
|
for (; !c.has(s);) {
|
|
2334
2675
|
c.add(s);
|
|
2335
|
-
let t =
|
|
2676
|
+
let t = On(s, n);
|
|
2336
2677
|
if (t === null || t === e) break;
|
|
2337
|
-
if (
|
|
2678
|
+
if (Cr(t)) return !1;
|
|
2338
2679
|
s = t;
|
|
2339
2680
|
}
|
|
2340
|
-
return !i.matches(
|
|
2341
|
-
}).map(({ element: e }) => e),
|
|
2342
|
-
let t =
|
|
2343
|
-
return t !== null && t >= 0 || _(e) && e.isContentEditable && !e.hasAttribute("tabindex") && !
|
|
2344
|
-
}),
|
|
2681
|
+
return !i.matches(dr) || i.shadowRoot?.delegatesFocus === !0 || !pr(i, n) || hr(i) && !wr(i, a, t, n) ? !1 : o >= 0 || _(i) && i.isContentEditable && !i.hasAttribute("tabindex") && !mr(i, n) || i.matches("details > summary:first-of-type") && !Sr(i);
|
|
2682
|
+
}).map(({ element: e }) => e), Dr = (e) => a(e) && "tagName" in e && e.tagName === "IFRAME" && "contentDocument" in e, Or = (e) => a(e) && "nodeType" in e && e.nodeType === 1, kr = (e) => [...e.querySelectorAll(dr)].filter((e) => {
|
|
2683
|
+
let t = vr(e);
|
|
2684
|
+
return t !== null && t >= 0 || _(e) && e.isContentEditable && !e.hasAttribute("tabindex") && !mr(e, /* @__PURE__ */ new Map());
|
|
2685
|
+
}), Ar = (e) => {
|
|
2345
2686
|
let t = e.ownerDocument, n = /* @__PURE__ */ new Map(), r = (t, n) => {
|
|
2346
|
-
let r =
|
|
2687
|
+
let r = Tr(e), i = Er(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];
|
|
2347
2688
|
((a < 0 ? void 0 : i[a + (n ? -1 : 1)]) ?? o)?.focus();
|
|
2348
2689
|
}, i = (e) => {
|
|
2349
2690
|
let t = n.get(e), i = e.contentDocument;
|
|
@@ -2357,7 +2698,7 @@ var fe = {
|
|
|
2357
2698
|
}
|
|
2358
2699
|
let a = (t) => {
|
|
2359
2700
|
if (t.defaultPrevented || t.key !== "Tab") return;
|
|
2360
|
-
let n =
|
|
2701
|
+
let n = kr(i), a = Or(t.target) ? t.target : i.activeElement, o = n[0], s = n[n.length - 1];
|
|
2361
2702
|
(t.shiftKey ? a === o : a === s) && (t.preventDefault(), r(e, t.shiftKey));
|
|
2362
2703
|
};
|
|
2363
2704
|
i.addEventListener("keydown", a, !0), n.set(e, {
|
|
@@ -2377,9 +2718,9 @@ var fe = {
|
|
|
2377
2718
|
onLoad: t
|
|
2378
2719
|
}), e.addEventListener("load", t), i(e);
|
|
2379
2720
|
}, o = () => {
|
|
2380
|
-
for (let { element: t } of
|
|
2721
|
+
for (let { element: t } of Tr(e)) t.tagName === "IFRAME" && Dr(t) && a(t);
|
|
2381
2722
|
}, s = (e) => {
|
|
2382
|
-
|
|
2723
|
+
Dr(e.target) && a(e.target);
|
|
2383
2724
|
};
|
|
2384
2725
|
t.addEventListener("focusin", s, !0), o();
|
|
2385
2726
|
let c = t.defaultView?.MutationObserver, l = c === void 0 ? null : new c(o);
|
|
@@ -2390,70 +2731,58 @@ var fe = {
|
|
|
2390
2731
|
t.removeEventListener("focusin", s, !0), l?.disconnect();
|
|
2391
2732
|
for (let [e, t] of n) e.removeEventListener("load", t.onLoad), t.frameDocument !== null && t.frameDocument.removeEventListener("keydown", t.onKeyDown, !0);
|
|
2392
2733
|
};
|
|
2393
|
-
},
|
|
2734
|
+
}, jr = (e, t) => {
|
|
2394
2735
|
if (e === null || !("matchMedia" in e)) return () => void 0;
|
|
2395
|
-
let n = e.matchMedia(
|
|
2736
|
+
let n = e.matchMedia(ur);
|
|
2396
2737
|
return n.addEventListener("change", t), () => n.removeEventListener("change", t);
|
|
2397
|
-
},
|
|
2398
|
-
let t =
|
|
2399
|
-
return
|
|
2400
|
-
},
|
|
2401
|
-
"aria-hidden": "true",
|
|
2402
|
-
className: q("mark"),
|
|
2403
|
-
children: [/* @__PURE__ */ D("span", { className: q("markLine") }), /* @__PURE__ */ D("svg", {
|
|
2404
|
-
className: q("markGlyph"),
|
|
2405
|
-
focusable: "false",
|
|
2406
|
-
viewBox: "0 0 24 24",
|
|
2407
|
-
children: /* @__PURE__ */ D("path", {
|
|
2408
|
-
d: "M12 3.5 14 10l6.5 2-6.5 2-2 6.5L10 14l-6.5-2 6.5-2Z",
|
|
2409
|
-
fill: "currentColor"
|
|
2410
|
-
})
|
|
2411
|
-
})]
|
|
2412
|
-
}), Vn = ({ context: e, labelId: t }) => {
|
|
2738
|
+
}, Mr = (e) => e !== null && "matchMedia" in e && e.matchMedia(ur).matches, Nr = () => !1, Pr = (e) => {
|
|
2739
|
+
let t = w((t) => jr(e, t), [e]), n = w(() => Mr(e), [e]);
|
|
2740
|
+
return me(t, n, Nr);
|
|
2741
|
+
}, Fr = ({ context: e, labelId: t }) => {
|
|
2413
2742
|
if (e.length === 0) throw Error("RelayDock context must contain at least one chip");
|
|
2414
2743
|
let n = /* @__PURE__ */ new Set();
|
|
2415
2744
|
return /* @__PURE__ */ O("section", {
|
|
2416
2745
|
"aria-labelledby": t,
|
|
2417
|
-
className:
|
|
2746
|
+
className: K("context"),
|
|
2418
2747
|
children: [/* @__PURE__ */ D("h2", {
|
|
2419
|
-
className:
|
|
2748
|
+
className: K("sectionLabel"),
|
|
2420
2749
|
id: t,
|
|
2421
2750
|
children: "Context"
|
|
2422
2751
|
}), /* @__PURE__ */ D("ul", {
|
|
2423
|
-
className:
|
|
2752
|
+
className: K("chipList"),
|
|
2424
2753
|
children: e.map((e) => {
|
|
2425
2754
|
let t = o(e.id, "RelayDock context chip id");
|
|
2426
2755
|
if (n.has(t)) throw Error(`Duplicate RelayDock context chip id: ${t}`);
|
|
2427
2756
|
return n.add(t), /* @__PURE__ */ O("li", {
|
|
2428
|
-
className:
|
|
2757
|
+
className: K("chip"),
|
|
2429
2758
|
"data-rly-relay-dock-context": t,
|
|
2430
2759
|
children: [/* @__PURE__ */ D("span", {
|
|
2431
|
-
className:
|
|
2760
|
+
className: K("chipLabel"),
|
|
2432
2761
|
children: o(e.label, "RelayDock context chip label")
|
|
2433
2762
|
}), /* @__PURE__ */ D("span", {
|
|
2434
|
-
className:
|
|
2763
|
+
className: K("chipValue"),
|
|
2435
2764
|
children: o(e.value, "RelayDock context chip value")
|
|
2436
2765
|
})]
|
|
2437
2766
|
}, t);
|
|
2438
2767
|
})
|
|
2439
2768
|
})]
|
|
2440
2769
|
});
|
|
2441
|
-
},
|
|
2442
|
-
let n =
|
|
2770
|
+
}, Ir = ({ labelId: e, selection: t }) => {
|
|
2771
|
+
let n = T(), r = T();
|
|
2443
2772
|
return /* @__PURE__ */ O("section", {
|
|
2444
2773
|
"aria-labelledby": e,
|
|
2445
|
-
className:
|
|
2774
|
+
className: K("selection"),
|
|
2446
2775
|
children: [/* @__PURE__ */ D("h2", {
|
|
2447
|
-
className:
|
|
2776
|
+
className: K("sectionLabel"),
|
|
2448
2777
|
id: e,
|
|
2449
2778
|
children: "Run with"
|
|
2450
2779
|
}), /* @__PURE__ */ O("div", {
|
|
2451
|
-
className:
|
|
2452
|
-
children: [/* @__PURE__ */ D(
|
|
2780
|
+
className: K("selectionGrid"),
|
|
2781
|
+
children: [/* @__PURE__ */ D(C, {
|
|
2453
2782
|
controlId: `rly-relay-dock-profile-${n}`,
|
|
2454
2783
|
label: "Profile",
|
|
2455
2784
|
size: "compact",
|
|
2456
|
-
children: (e) => /* @__PURE__ */ D(
|
|
2785
|
+
children: (e) => /* @__PURE__ */ D(oe, {
|
|
2457
2786
|
...e,
|
|
2458
2787
|
...t.profile.disabled === void 0 ? {} : { disabled: t.profile.disabled },
|
|
2459
2788
|
onValueChange: t.profile.onValueChange,
|
|
@@ -2461,11 +2790,11 @@ var fe = {
|
|
|
2461
2790
|
size: "compact",
|
|
2462
2791
|
value: t.profile.value
|
|
2463
2792
|
})
|
|
2464
|
-
}), /* @__PURE__ */ D(
|
|
2793
|
+
}), /* @__PURE__ */ D(C, {
|
|
2465
2794
|
controlId: `rly-relay-dock-model-${r}`,
|
|
2466
2795
|
label: "Model",
|
|
2467
2796
|
size: "compact",
|
|
2468
|
-
children: (e) => /* @__PURE__ */ D(
|
|
2797
|
+
children: (e) => /* @__PURE__ */ D(oe, {
|
|
2469
2798
|
...e,
|
|
2470
2799
|
...t.model.disabled === void 0 ? {} : { disabled: t.model.disabled },
|
|
2471
2800
|
onValueChange: t.model.onValueChange,
|
|
@@ -2476,10 +2805,10 @@ var fe = {
|
|
|
2476
2805
|
})]
|
|
2477
2806
|
})]
|
|
2478
2807
|
});
|
|
2479
|
-
},
|
|
2808
|
+
}, Lr = ({ state: e }) => {
|
|
2480
2809
|
if (e.status === "ready") return /* @__PURE__ */ D("section", {
|
|
2481
2810
|
"aria-live": "polite",
|
|
2482
|
-
className:
|
|
2811
|
+
className: K("ready"),
|
|
2483
2812
|
"data-rly-relay-dock-state": "ready",
|
|
2484
2813
|
children: e.content
|
|
2485
2814
|
});
|
|
@@ -2487,64 +2816,64 @@ var fe = {
|
|
|
2487
2816
|
return /* @__PURE__ */ D(ne, {
|
|
2488
2817
|
action: "action" in e ? e.action : void 0,
|
|
2489
2818
|
announce: t,
|
|
2490
|
-
className:
|
|
2819
|
+
className: K("state"),
|
|
2491
2820
|
"data-rly-relay-dock-state": e.status,
|
|
2492
2821
|
description: e.description,
|
|
2493
2822
|
title: o(e.title, `RelayDock ${e.status} title`),
|
|
2494
2823
|
tone: n
|
|
2495
2824
|
});
|
|
2496
|
-
},
|
|
2497
|
-
let i =
|
|
2825
|
+
}, Rr = ({ context: e, footer: t, selection: n, state: r }) => {
|
|
2826
|
+
let i = T(), a = T();
|
|
2498
2827
|
return /* @__PURE__ */ O("div", {
|
|
2499
|
-
className:
|
|
2828
|
+
className: K("contents"),
|
|
2500
2829
|
"data-rly-relay-dock-scroll": "",
|
|
2501
2830
|
children: [
|
|
2502
2831
|
/* @__PURE__ */ O("div", {
|
|
2503
|
-
className:
|
|
2504
|
-
children: [/* @__PURE__ */ D(
|
|
2832
|
+
className: K("fixedContext"),
|
|
2833
|
+
children: [/* @__PURE__ */ D(Fr, {
|
|
2505
2834
|
context: e,
|
|
2506
2835
|
labelId: i
|
|
2507
|
-
}), /* @__PURE__ */ D(
|
|
2836
|
+
}), /* @__PURE__ */ D(Ir, {
|
|
2508
2837
|
labelId: a,
|
|
2509
2838
|
selection: n
|
|
2510
2839
|
})]
|
|
2511
2840
|
}),
|
|
2512
2841
|
/* @__PURE__ */ D("section", {
|
|
2513
2842
|
"aria-label": "Relay thread",
|
|
2514
|
-
className:
|
|
2843
|
+
className: K("body"),
|
|
2515
2844
|
tabIndex: 0,
|
|
2516
|
-
children: /* @__PURE__ */ D(
|
|
2845
|
+
children: /* @__PURE__ */ D(Lr, { state: r })
|
|
2517
2846
|
}),
|
|
2518
2847
|
t == null ? null : /* @__PURE__ */ D("footer", {
|
|
2519
|
-
className:
|
|
2848
|
+
className: K("footer"),
|
|
2520
2849
|
children: t
|
|
2521
2850
|
})
|
|
2522
2851
|
]
|
|
2523
2852
|
});
|
|
2524
|
-
},
|
|
2525
|
-
let r =
|
|
2526
|
-
return
|
|
2853
|
+
}, zr = ({ restoreDocument: e, restoreTarget: t, target: n }) => {
|
|
2854
|
+
let r = E(!1);
|
|
2855
|
+
return fe(() => {
|
|
2527
2856
|
let i = n.current;
|
|
2528
|
-
i !== null && (r.current ||= (t.current =
|
|
2857
|
+
i !== null && (r.current ||= (t.current = Mn(e ?? i.ownerDocument), !0), i.focus());
|
|
2529
2858
|
}, [
|
|
2530
2859
|
e,
|
|
2531
2860
|
t,
|
|
2532
2861
|
n
|
|
2533
2862
|
]), null;
|
|
2534
|
-
},
|
|
2535
|
-
let r =
|
|
2536
|
-
return
|
|
2537
|
-
className:
|
|
2863
|
+
}, Br = ({ children: e, modal: t, modalLayer: n }) => {
|
|
2864
|
+
let r = E(null);
|
|
2865
|
+
return x(), ce(r, t), p(r, t), /* @__PURE__ */ D("div", {
|
|
2866
|
+
className: K("layer"),
|
|
2538
2867
|
"data-rly-modal-layer": n ? "" : void 0,
|
|
2539
2868
|
"data-rly-relay-dock-modal": t ? "true" : "false",
|
|
2540
2869
|
ref: r,
|
|
2541
2870
|
children: e
|
|
2542
2871
|
});
|
|
2543
|
-
},
|
|
2544
|
-
let v = `${s}-description`, y =
|
|
2545
|
-
|
|
2872
|
+
}, Vr = ({ closeRef: t, compactViewport: r, context: i, description: a, footer: o, headingId: s, modal: c, onClose: l, parentModalPresent: u, restoreDocument: d, restoreTargetRef: p, selection: m, state: h, title: g }) => {
|
|
2873
|
+
let v = `${s}-description`, y = E(null);
|
|
2874
|
+
fe(() => {
|
|
2546
2875
|
let e = y.current;
|
|
2547
|
-
if (c && e !== null) return
|
|
2876
|
+
if (c && e !== null) return Ar(e);
|
|
2548
2877
|
}, [c]);
|
|
2549
2878
|
let b = (e) => {
|
|
2550
2879
|
let t = e.currentTarget;
|
|
@@ -2555,23 +2884,23 @@ var fe = {
|
|
|
2555
2884
|
return;
|
|
2556
2885
|
}
|
|
2557
2886
|
if (!c || e.key !== "Tab") return;
|
|
2558
|
-
let n =
|
|
2887
|
+
let n = Tr(t), r = new Map(n.map(({ composedParent: e, element: t }) => [t, e])), i = (e) => {
|
|
2559
2888
|
let t = /* @__PURE__ */ new Set(), n = e;
|
|
2560
2889
|
for (; !t.has(n);) {
|
|
2561
2890
|
t.add(n);
|
|
2562
|
-
let e =
|
|
2891
|
+
let e = On(n, r);
|
|
2563
2892
|
if (e === null) return null;
|
|
2564
2893
|
if (_(e) && e.shadowRoot?.delegatesFocus === !0) return e;
|
|
2565
2894
|
n = e;
|
|
2566
2895
|
}
|
|
2567
2896
|
return null;
|
|
2568
|
-
}, a =
|
|
2897
|
+
}, a = Er(t, n, r), o = a[0] ?? t, s = a[a.length - 1] ?? t, u = wn(t), d = new Set(a), f = u !== null && An(t, u) && !a.some((e) => e === u), p = (e) => {
|
|
2569
2898
|
let t = /* @__PURE__ */ new Set(), i = e;
|
|
2570
2899
|
for (; !t.has(i);) {
|
|
2571
2900
|
t.add(i);
|
|
2572
2901
|
let e = n.findIndex(({ element: e }) => e === i);
|
|
2573
2902
|
if (e >= 0) return e;
|
|
2574
|
-
let a =
|
|
2903
|
+
let a = On(i, r);
|
|
2575
2904
|
if (a === null) return -1;
|
|
2576
2905
|
i = a;
|
|
2577
2906
|
}
|
|
@@ -2580,49 +2909,50 @@ var fe = {
|
|
|
2580
2909
|
if (h < 0) return null;
|
|
2581
2910
|
for (let t = h + e; t >= 0 && t < n.length; t += e) {
|
|
2582
2911
|
let e = n[t]?.element;
|
|
2583
|
-
if (e !== void 0 && d.has(e) &&
|
|
2912
|
+
if (e !== void 0 && d.has(e) && gr(e)) return e;
|
|
2584
2913
|
}
|
|
2585
2914
|
return null;
|
|
2586
|
-
})(e.shiftKey ? -1 : 1) : null, v = m !== null && g !== null &&
|
|
2587
|
-
(b ||
|
|
2915
|
+
})(e.shiftKey ? -1 : 1) : null, v = m !== null && g !== null && kn(m, g, r), y = f && !v && (g === null || !An(t, g)), b = e.shiftKey && (u === o || !An(t, u) || v || y), ee = !e.shiftKey && (u === s || !An(t, u) || v || y);
|
|
2916
|
+
(b || ee) && (e.preventDefault(), (v && g !== null ? g : e.shiftKey ? s : o).focus());
|
|
2588
2917
|
};
|
|
2589
|
-
return /* @__PURE__ */ D(n, { children: (n) => /* @__PURE__ */ D(
|
|
2918
|
+
return /* @__PURE__ */ D(n, { children: (n) => /* @__PURE__ */ D(ue.Root, {
|
|
2590
2919
|
container: n,
|
|
2591
|
-
children: /* @__PURE__ */ O(
|
|
2920
|
+
children: /* @__PURE__ */ O(Br, {
|
|
2592
2921
|
modal: c,
|
|
2593
2922
|
modalLayer: c || u,
|
|
2594
2923
|
children: [c ? /* @__PURE__ */ D("div", {
|
|
2595
2924
|
"aria-hidden": "true",
|
|
2596
|
-
className:
|
|
2925
|
+
className: K("overlay"),
|
|
2597
2926
|
"data-rly-relay-dock-overlay": "",
|
|
2598
2927
|
onPointerDown: l
|
|
2599
2928
|
}) : null, /* @__PURE__ */ O("section", {
|
|
2600
2929
|
"aria-describedby": v,
|
|
2601
2930
|
"aria-labelledby": s,
|
|
2602
2931
|
"aria-modal": c ? !0 : void 0,
|
|
2603
|
-
className:
|
|
2932
|
+
className: f(K("panel"), K(c ? "sheet" : "rail")),
|
|
2604
2933
|
"data-rly-relay-dock-presentation": r ? "mobile-sheet" : c ? "overlay" : "rail",
|
|
2934
|
+
"data-rly-relay-surface": "",
|
|
2605
2935
|
onKeyDown: b,
|
|
2606
2936
|
ref: y,
|
|
2607
2937
|
role: c ? "dialog" : "complementary",
|
|
2608
2938
|
tabIndex: -1,
|
|
2609
2939
|
children: [
|
|
2610
2940
|
/* @__PURE__ */ O("header", {
|
|
2611
|
-
className:
|
|
2941
|
+
className: K("railHeader"),
|
|
2612
2942
|
children: [/* @__PURE__ */ O("div", {
|
|
2613
|
-
className:
|
|
2943
|
+
className: K("railHeading"),
|
|
2614
2944
|
children: [/* @__PURE__ */ D("h1", {
|
|
2615
|
-
className:
|
|
2945
|
+
className: K("title"),
|
|
2616
2946
|
id: s,
|
|
2617
2947
|
children: g
|
|
2618
2948
|
}), /* @__PURE__ */ D("p", {
|
|
2619
|
-
className:
|
|
2949
|
+
className: K("description"),
|
|
2620
2950
|
id: v,
|
|
2621
2951
|
children: a
|
|
2622
2952
|
})]
|
|
2623
2953
|
}), /* @__PURE__ */ D("button", {
|
|
2624
2954
|
"aria-label": `Close ${g}`,
|
|
2625
|
-
className:
|
|
2955
|
+
className: K("close"),
|
|
2626
2956
|
onClick: l,
|
|
2627
2957
|
ref: t,
|
|
2628
2958
|
type: "button",
|
|
@@ -2632,12 +2962,12 @@ var fe = {
|
|
|
2632
2962
|
})
|
|
2633
2963
|
})]
|
|
2634
2964
|
}),
|
|
2635
|
-
/* @__PURE__ */ D(
|
|
2636
|
-
restoreDocument:
|
|
2965
|
+
/* @__PURE__ */ D(zr, {
|
|
2966
|
+
restoreDocument: d,
|
|
2637
2967
|
restoreTarget: p,
|
|
2638
2968
|
target: t
|
|
2639
2969
|
}),
|
|
2640
|
-
/* @__PURE__ */ D(
|
|
2970
|
+
/* @__PURE__ */ D(Rr, {
|
|
2641
2971
|
context: i,
|
|
2642
2972
|
footer: o,
|
|
2643
2973
|
selection: m,
|
|
@@ -2647,55 +2977,227 @@ var fe = {
|
|
|
2647
2977
|
})]
|
|
2648
2978
|
})
|
|
2649
2979
|
}) });
|
|
2650
|
-
},
|
|
2651
|
-
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:
|
|
2652
|
-
modal:
|
|
2980
|
+
}, Hr = (e) => {
|
|
2981
|
+
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: d, selection: p, state: m, title: _ = "Relay", triggerLabel: y = "Open Relay", ...b } = e, [x, S] = pe(i), ne = te(), re = g(), ie = t(), C = (u ?? x) && re && ie.available, ae = Pr(ie.available ? ie.container.ownerDocument.defaultView : null), oe = ae || s === "overlay", se = E(null), ce = E(null), le = E(null), ue = E({
|
|
2982
|
+
modal: oe,
|
|
2653
2983
|
open: !1
|
|
2654
|
-
}),
|
|
2984
|
+
}), w = T(), de = o(a, "RelayDock description"), me = o(_, "RelayDock title"), he = o(y, "RelayDock triggerLabel"), ge = (e) => {
|
|
2655
2985
|
u === void 0 && S(e), l?.(e);
|
|
2656
2986
|
};
|
|
2657
|
-
return
|
|
2658
|
-
let e =
|
|
2659
|
-
|
|
2660
|
-
modal:
|
|
2661
|
-
open:
|
|
2662
|
-
}, !e.open &&
|
|
2663
|
-
}, [
|
|
2987
|
+
return fe(() => {
|
|
2988
|
+
let e = ue.current;
|
|
2989
|
+
ue.current = {
|
|
2990
|
+
modal: oe,
|
|
2991
|
+
open: C
|
|
2992
|
+
}, !e.open && C ? (h(), ce.current?.focus()) : e.open && C && e.modal !== oe ? ce.current?.focus() : e.open && !C && (v(le.current ?? se.current), le.current = null);
|
|
2993
|
+
}, [oe, C]), /* @__PURE__ */ O("div", {
|
|
2664
2994
|
...b,
|
|
2665
|
-
className:
|
|
2995
|
+
className: f(K("root"), n),
|
|
2666
2996
|
"data-rly-relay-dock": "",
|
|
2667
|
-
"data-rly-relay-dock-open":
|
|
2668
|
-
ref:
|
|
2997
|
+
"data-rly-relay-dock-open": C ? "true" : "false",
|
|
2998
|
+
ref: d,
|
|
2669
2999
|
children: [/* @__PURE__ */ O("button", {
|
|
2670
|
-
"aria-expanded":
|
|
2671
|
-
"aria-haspopup":
|
|
2672
|
-
className:
|
|
3000
|
+
"aria-expanded": C,
|
|
3001
|
+
"aria-haspopup": oe ? "dialog" : void 0,
|
|
3002
|
+
className: K("trigger"),
|
|
2673
3003
|
"data-rly-relay-dock-trigger": "",
|
|
2674
|
-
inert:
|
|
3004
|
+
inert: C,
|
|
2675
3005
|
onClick: (e) => {
|
|
2676
|
-
e.currentTarget.focus(),
|
|
3006
|
+
e.currentTarget.focus(), ge(!0);
|
|
2677
3007
|
},
|
|
2678
|
-
ref:
|
|
3008
|
+
ref: se,
|
|
2679
3009
|
type: "button",
|
|
2680
|
-
children: [/* @__PURE__ */ D(
|
|
2681
|
-
}),
|
|
2682
|
-
closeRef:
|
|
2683
|
-
compactViewport:
|
|
3010
|
+
children: [/* @__PURE__ */ D(Vn.Tile, { size: 32 }), /* @__PURE__ */ D("span", { children: he })]
|
|
3011
|
+
}), C ? /* @__PURE__ */ D(ee, { children: /* @__PURE__ */ D(Vr, {
|
|
3012
|
+
closeRef: ce,
|
|
3013
|
+
compactViewport: ae,
|
|
2684
3014
|
context: r,
|
|
2685
|
-
description:
|
|
3015
|
+
description: de,
|
|
2686
3016
|
footer: c,
|
|
2687
|
-
headingId:
|
|
2688
|
-
modal:
|
|
2689
|
-
onClose: () =>
|
|
2690
|
-
parentModalPresent:
|
|
2691
|
-
restoreDocument:
|
|
2692
|
-
restoreTargetRef:
|
|
3017
|
+
headingId: w,
|
|
3018
|
+
modal: oe,
|
|
3019
|
+
onClose: () => ge(!1),
|
|
3020
|
+
parentModalPresent: ne,
|
|
3021
|
+
restoreDocument: se.current?.ownerDocument ?? null,
|
|
3022
|
+
restoreTargetRef: le,
|
|
2693
3023
|
selection: p,
|
|
2694
3024
|
state: m,
|
|
2695
|
-
title:
|
|
3025
|
+
title: me
|
|
2696
3026
|
}) }) : null]
|
|
2697
3027
|
});
|
|
2698
|
-
},
|
|
3028
|
+
}, Ur = {
|
|
3029
|
+
root: "rly_RelayPanel-module__root",
|
|
3030
|
+
overlay: "rly_RelayPanel-module__overlay",
|
|
3031
|
+
"relay-panel-enter": "rly_RelayPanel-module__relay-panel-enter",
|
|
3032
|
+
pinned: "rly_RelayPanel-module__pinned",
|
|
3033
|
+
fullscreen: "rly_RelayPanel-module__fullscreen",
|
|
3034
|
+
header: "rly_RelayPanel-module__header",
|
|
3035
|
+
heading: "rly_RelayPanel-module__heading",
|
|
3036
|
+
title: "rly_RelayPanel-module__title",
|
|
3037
|
+
scope: "rly_RelayPanel-module__scope",
|
|
3038
|
+
revision: "rly_RelayPanel-module__revision",
|
|
3039
|
+
tools: "rly_RelayPanel-module__tools",
|
|
3040
|
+
tabs: "rly_RelayPanel-module__tabs",
|
|
3041
|
+
body: "rly_RelayPanel-module__body",
|
|
3042
|
+
freshness: "rly_RelayPanel-module__freshness",
|
|
3043
|
+
scroll: "rly_RelayPanel-module__scroll",
|
|
3044
|
+
footer: "rly_RelayPanel-module__footer",
|
|
3045
|
+
"relay-panel-enter-rtl": "rly_RelayPanel-module__relay-panel-enter-rtl"
|
|
3046
|
+
}, q = (e) => c(Ur, e), Wr = [
|
|
3047
|
+
"overlay",
|
|
3048
|
+
"pinned",
|
|
3049
|
+
"fullscreen"
|
|
3050
|
+
], Gr = 440, Kr = (e, t) => {
|
|
3051
|
+
l(e) ? e(t) : e != null && (e.current = t);
|
|
3052
|
+
}, qr = (e) => {
|
|
3053
|
+
let { launcher: t, onClose: r, presentation: i, ref: a } = e, o = T(), s = E(null), c = E(null), l = w((e) => {
|
|
3054
|
+
s.current = e, Kr(a, e);
|
|
3055
|
+
}, [a]), u = w(() => {
|
|
3056
|
+
r(), t.current?.focus();
|
|
3057
|
+
}, [t, r]);
|
|
3058
|
+
return i === "fullscreen" ? /* @__PURE__ */ D(n, { children: (n) => /* @__PURE__ */ D(le.Root, {
|
|
3059
|
+
modal: !0,
|
|
3060
|
+
onOpenChange: (e) => {
|
|
3061
|
+
e || r();
|
|
3062
|
+
},
|
|
3063
|
+
open: !0,
|
|
3064
|
+
children: /* @__PURE__ */ D(le.Portal, {
|
|
3065
|
+
container: n,
|
|
3066
|
+
children: /* @__PURE__ */ D(Jr, { children: /* @__PURE__ */ D(le.Content, {
|
|
3067
|
+
"aria-describedby": void 0,
|
|
3068
|
+
className: f(q("root"), q("fullscreen")),
|
|
3069
|
+
"data-rly-relay-panel": "fullscreen",
|
|
3070
|
+
"data-rly-relay-surface": "",
|
|
3071
|
+
onCloseAutoFocus: (e) => {
|
|
3072
|
+
e.preventDefault(), v(t.current);
|
|
3073
|
+
},
|
|
3074
|
+
onEscapeKeyDown: (e) => {
|
|
3075
|
+
(ln(e) || mn(s.current, e.composedPath())) && e.preventDefault();
|
|
3076
|
+
},
|
|
3077
|
+
ref: l,
|
|
3078
|
+
children: /* @__PURE__ */ D(Xr, {
|
|
3079
|
+
...e,
|
|
3080
|
+
close: u,
|
|
3081
|
+
heading: /* @__PURE__ */ D(le.Title, {
|
|
3082
|
+
asChild: !0,
|
|
3083
|
+
children: /* @__PURE__ */ D("p", {
|
|
3084
|
+
className: q("title"),
|
|
3085
|
+
children: Yr(e.title)
|
|
3086
|
+
})
|
|
3087
|
+
})
|
|
3088
|
+
})
|
|
3089
|
+
}) })
|
|
3090
|
+
})
|
|
3091
|
+
}) }) : /* @__PURE__ */ D("aside", {
|
|
3092
|
+
"aria-labelledby": o,
|
|
3093
|
+
className: f(q("root"), q(i)),
|
|
3094
|
+
"data-rly-relay-panel": i,
|
|
3095
|
+
"data-rly-relay-surface": "",
|
|
3096
|
+
onKeyDown: (e) => {
|
|
3097
|
+
e.key !== "Escape" || e.defaultPrevented || ln(e.nativeEvent) || c.current !== e.nativeEvent && (e.preventDefault(), u());
|
|
3098
|
+
},
|
|
3099
|
+
onKeyDownCapture: (e) => {
|
|
3100
|
+
e.key === "Escape" && mn(e.currentTarget, e.nativeEvent.composedPath()) && (c.current = e.nativeEvent);
|
|
3101
|
+
},
|
|
3102
|
+
ref: l,
|
|
3103
|
+
children: /* @__PURE__ */ D(Xr, {
|
|
3104
|
+
...e,
|
|
3105
|
+
close: u,
|
|
3106
|
+
heading: /* @__PURE__ */ D("p", {
|
|
3107
|
+
className: q("title"),
|
|
3108
|
+
id: o,
|
|
3109
|
+
children: Yr(e.title)
|
|
3110
|
+
})
|
|
3111
|
+
})
|
|
3112
|
+
});
|
|
3113
|
+
}, Jr = ({ children: e }) => {
|
|
3114
|
+
let t = E(null);
|
|
3115
|
+
return x(), ce(t, !0), p(t, !0), /* @__PURE__ */ D("div", {
|
|
3116
|
+
"data-rly-modal-layer": "",
|
|
3117
|
+
ref: t,
|
|
3118
|
+
children: e
|
|
3119
|
+
});
|
|
3120
|
+
}, Yr = (e) => o(e ?? "Relay", "RelayPanel title"), Xr = (e) => {
|
|
3121
|
+
let { close: t, footer: n, freshness: r, heading: i, options: a, pin: s, scope: c } = e, l = (e) => /* @__PURE__ */ O("div", {
|
|
3122
|
+
className: q("body"),
|
|
3123
|
+
children: [r === void 0 ? null : /* @__PURE__ */ D("div", {
|
|
3124
|
+
className: q("freshness"),
|
|
3125
|
+
children: r
|
|
3126
|
+
}), /* @__PURE__ */ D("div", {
|
|
3127
|
+
className: q("scroll"),
|
|
3128
|
+
tabIndex: 0,
|
|
3129
|
+
children: e
|
|
3130
|
+
})]
|
|
3131
|
+
});
|
|
3132
|
+
return /* @__PURE__ */ O(he, { children: [
|
|
3133
|
+
/* @__PURE__ */ O("header", {
|
|
3134
|
+
className: q("header"),
|
|
3135
|
+
children: [
|
|
3136
|
+
/* @__PURE__ */ D(Vn.Tile, { size: 24 }),
|
|
3137
|
+
/* @__PURE__ */ O("div", {
|
|
3138
|
+
className: q("heading"),
|
|
3139
|
+
children: [i, /* @__PURE__ */ O("p", {
|
|
3140
|
+
className: q("scope"),
|
|
3141
|
+
children: [o(c.label, "RelayPanel scope label"), c.revision === void 0 ? null : /* @__PURE__ */ O(he, { children: [" at ", /* @__PURE__ */ D("span", {
|
|
3142
|
+
className: q("revision"),
|
|
3143
|
+
children: o(c.revision, "RelayPanel scope revision")
|
|
3144
|
+
})] })]
|
|
3145
|
+
})]
|
|
3146
|
+
}),
|
|
3147
|
+
/* @__PURE__ */ O("div", {
|
|
3148
|
+
className: q("tools"),
|
|
3149
|
+
children: [
|
|
3150
|
+
s === void 0 ? null : /* @__PURE__ */ D(se, {
|
|
3151
|
+
"aria-pressed": s.pinned,
|
|
3152
|
+
icon: "pin",
|
|
3153
|
+
label: s.pinned ? "Unpin" : "Pin beside the page",
|
|
3154
|
+
onClick: () => s.onPinnedChange(!s.pinned),
|
|
3155
|
+
variant: "quiet"
|
|
3156
|
+
}),
|
|
3157
|
+
a,
|
|
3158
|
+
/* @__PURE__ */ D(se, {
|
|
3159
|
+
icon: "close",
|
|
3160
|
+
label: "Close Relay",
|
|
3161
|
+
onClick: t,
|
|
3162
|
+
variant: "quiet"
|
|
3163
|
+
})
|
|
3164
|
+
]
|
|
3165
|
+
})
|
|
3166
|
+
]
|
|
3167
|
+
}),
|
|
3168
|
+
e.tabs === void 0 ? l(e.children) : /* @__PURE__ */ D(ie, {
|
|
3169
|
+
"aria-label": "Relay views",
|
|
3170
|
+
className: q("tabs"),
|
|
3171
|
+
"data-mobile-layout": "single-row",
|
|
3172
|
+
items: e.tabs.map((e) => ({
|
|
3173
|
+
content: l(e.content),
|
|
3174
|
+
label: e.count === void 0 ? e.label : `${e.label} ${e.count}`,
|
|
3175
|
+
value: e.value
|
|
3176
|
+
})),
|
|
3177
|
+
onValueChange: e.onTabChange,
|
|
3178
|
+
value: e.selectedTab
|
|
3179
|
+
}),
|
|
3180
|
+
n === void 0 ? null : /* @__PURE__ */ D("div", {
|
|
3181
|
+
className: q("footer"),
|
|
3182
|
+
children: n
|
|
3183
|
+
})
|
|
3184
|
+
] });
|
|
3185
|
+
}, Zr = "(max-width: 640px)", Qr = (e) => `(min-width: ${Math.max(1440, e + 440)}px)`, $r = (e) => {
|
|
3186
|
+
let t = w((t) => {
|
|
3187
|
+
let n = window.matchMedia(e);
|
|
3188
|
+
return n.addEventListener("change", t), () => n.removeEventListener("change", t);
|
|
3189
|
+
}, [e]);
|
|
3190
|
+
return me(t, () => window.matchMedia(e).matches, () => !1);
|
|
3191
|
+
}, ei = ({ minHostWidth: e, pinned: t }) => {
|
|
3192
|
+
let n = $r(Zr), r = $r(Qr(e));
|
|
3193
|
+
return n ? {
|
|
3194
|
+
canPin: !1,
|
|
3195
|
+
presentation: "fullscreen"
|
|
3196
|
+
} : {
|
|
3197
|
+
canPin: r,
|
|
3198
|
+
presentation: t && r ? "pinned" : "overlay"
|
|
3199
|
+
};
|
|
3200
|
+
}, ti = /^(?:--[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, ni = /* @__PURE__ */ new Set([
|
|
2699
3201
|
"auto",
|
|
2700
3202
|
"default",
|
|
2701
3203
|
"inherit",
|
|
@@ -2705,7 +3207,7 @@ var fe = {
|
|
|
2705
3207
|
"revert",
|
|
2706
3208
|
"revert-layer",
|
|
2707
3209
|
"unset"
|
|
2708
|
-
]),
|
|
3210
|
+
]), ri = (e) => {
|
|
2709
3211
|
if (e === void 0) return;
|
|
2710
3212
|
let t = {
|
|
2711
3213
|
relay: e.relay,
|
|
@@ -2718,13 +3220,13 @@ var fe = {
|
|
|
2718
3220
|
], r = /* @__PURE__ */ new Set();
|
|
2719
3221
|
for (let [e, t] of n) {
|
|
2720
3222
|
let n = o(t, `Release transition ${e} name`);
|
|
2721
|
-
if (n === "root" ||
|
|
2722
|
-
if (!
|
|
3223
|
+
if (n === "root" || ni.has(n.toLowerCase())) throw Error(`Release transition ${e} name must not use a reserved CSS value: ${n}`);
|
|
3224
|
+
if (!ti.test(n)) throw Error(`Release transition ${e} name must be a valid unescaped CSS custom identifier: ${n}`);
|
|
2723
3225
|
if (r.has(n)) throw Error(`Release transition names must be unique: ${n}`);
|
|
2724
3226
|
r.add(n);
|
|
2725
3227
|
}
|
|
2726
3228
|
return Object.freeze(t);
|
|
2727
|
-
},
|
|
3229
|
+
}, ii = {
|
|
2728
3230
|
blocked: !0,
|
|
2729
3231
|
ready: !0,
|
|
2730
3232
|
deploying: !0,
|
|
@@ -2732,8 +3234,8 @@ var fe = {
|
|
|
2732
3234
|
shipped: !0,
|
|
2733
3235
|
held: !0,
|
|
2734
3236
|
unknown: !0
|
|
2735
|
-
},
|
|
2736
|
-
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(
|
|
3237
|
+
}, ai = (e) => {
|
|
3238
|
+
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(ii, e.state)) throw Error("Release presentation state must be supported");
|
|
2737
3239
|
e.freshnessDateTime !== void 0 && (o(e.freshnessDateTime, "Release presentation freshnessDateTime"), o(e.freshnessTime, "Release presentation freshnessTime"));
|
|
2738
3240
|
let t = /* @__PURE__ */ new Set();
|
|
2739
3241
|
for (let n of e.facts) {
|
|
@@ -2742,7 +3244,7 @@ var fe = {
|
|
|
2742
3244
|
t.add(e), o(n.label, `Release presentation fact label for ${e}`), o(n.value, `Release presentation fact value for ${e}`);
|
|
2743
3245
|
}
|
|
2744
3246
|
return e;
|
|
2745
|
-
},
|
|
3247
|
+
}, oi = {
|
|
2746
3248
|
root: "rly_ReleaseRelay-module__root",
|
|
2747
3249
|
tiles: "rly_ReleaseRelay-module__tiles",
|
|
2748
3250
|
handoff: "rly_ReleaseRelay-module__handoff",
|
|
@@ -2754,7 +3256,7 @@ var fe = {
|
|
|
2754
3256
|
algorithmValue: "rly_ReleaseRelay-module__algorithmValue",
|
|
2755
3257
|
compact: "rly_ReleaseRelay-module__compact",
|
|
2756
3258
|
hero: "rly_ReleaseRelay-module__hero"
|
|
2757
|
-
}, J = (e) => c(
|
|
3259
|
+
}, J = (e) => c(oi, e), si = u({
|
|
2758
3260
|
0: { name: "orbit" },
|
|
2759
3261
|
1: { name: "split" },
|
|
2760
3262
|
2: { name: "brace" },
|
|
@@ -2771,7 +3273,7 @@ var fe = {
|
|
|
2771
3273
|
13: { name: "spark" },
|
|
2772
3274
|
14: { name: "stack" },
|
|
2773
3275
|
15: { name: "compass" }
|
|
2774
|
-
}),
|
|
3276
|
+
}), ci = u({ size: {
|
|
2775
3277
|
compact: {
|
|
2776
3278
|
className: J("compact"),
|
|
2777
3279
|
purpose: "Release rows and compact previews",
|
|
@@ -2791,7 +3293,7 @@ var fe = {
|
|
|
2791
3293
|
"type-card-title"
|
|
2792
3294
|
]
|
|
2793
3295
|
}
|
|
2794
|
-
} }),
|
|
3296
|
+
} }), li = u({ size: "compact" }), ui = {
|
|
2795
3297
|
0: "M12 4a8 8 0 1 1-6.9 4M5.1 8H9V4.1",
|
|
2796
3298
|
1: "M5 5v4c0 2 1 3 3 3h8c2 0 3 1 3 3v4M12 12V5",
|
|
2797
3299
|
2: "M9 4H7v5l-3 3 3 3v5h2M15 4h2v5l3 3-3 3v5h-2",
|
|
@@ -2808,7 +3310,7 @@ var fe = {
|
|
|
2808
3310
|
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",
|
|
2809
3311
|
14: "m4 8 8-4 8 4-8 4Zm0 4 8 4 8-4M4 16l8 4 8-4",
|
|
2810
3312
|
15: "m12 3 3 6 6 3-6 3-3 6-3-6-6-3 6-3Zm0 6v6M9 12h6"
|
|
2811
|
-
},
|
|
3313
|
+
}, di = (e) => {
|
|
2812
3314
|
if (e.length !== 3) throw Error("ReleaseRelay symbolIndices must contain exactly three indices");
|
|
2813
3315
|
let t = /* @__PURE__ */ new Set();
|
|
2814
3316
|
for (let n of e) {
|
|
@@ -2817,11 +3319,11 @@ var fe = {
|
|
|
2817
3319
|
t.add(n);
|
|
2818
3320
|
}
|
|
2819
3321
|
return e;
|
|
2820
|
-
},
|
|
2821
|
-
let s = o(e, "ReleaseRelay algorithm"), c = o(n, "ReleaseRelay codename"), l =
|
|
3322
|
+
}, fi = ({ algorithm: e, className: t, codename: n, size: r = "compact", symbolIndices: i, ...a }) => {
|
|
3323
|
+
let s = o(e, "ReleaseRelay algorithm"), c = o(n, "ReleaseRelay codename"), l = di(i), u = `Release relay, ${c}, symbols ${l.map((e) => si[e].name).join(", ")}.`;
|
|
2822
3324
|
return /* @__PURE__ */ O("figure", {
|
|
2823
3325
|
...a,
|
|
2824
|
-
className:
|
|
3326
|
+
className: f(J("root"), ci.size[r].className, t),
|
|
2825
3327
|
"data-rly-release-relay-size": r,
|
|
2826
3328
|
children: [/* @__PURE__ */ O("span", {
|
|
2827
3329
|
"aria-label": u,
|
|
@@ -2836,13 +3338,13 @@ var fe = {
|
|
|
2836
3338
|
className: J("tile"),
|
|
2837
3339
|
"data-rly-release-relay-position": t,
|
|
2838
3340
|
"data-rly-release-symbol-index": e,
|
|
2839
|
-
"data-rly-release-symbol-name":
|
|
3341
|
+
"data-rly-release-symbol-name": si[e].name,
|
|
2840
3342
|
children: /* @__PURE__ */ D("svg", {
|
|
2841
3343
|
className: J("glyph"),
|
|
2842
3344
|
focusable: "false",
|
|
2843
3345
|
viewBox: "0 0 24 24",
|
|
2844
3346
|
children: /* @__PURE__ */ D("path", {
|
|
2845
|
-
d:
|
|
3347
|
+
d: ui[e],
|
|
2846
3348
|
fill: "none",
|
|
2847
3349
|
stroke: "currentColor",
|
|
2848
3350
|
strokeLinecap: "round",
|
|
@@ -2866,7 +3368,7 @@ var fe = {
|
|
|
2866
3368
|
})]
|
|
2867
3369
|
})]
|
|
2868
3370
|
});
|
|
2869
|
-
},
|
|
3371
|
+
}, pi = {
|
|
2870
3372
|
body: "rly_ReleasePreview-module__body",
|
|
2871
3373
|
summary: "rly_ReleasePreview-module__summary",
|
|
2872
3374
|
releaseMeta: "rly_ReleasePreview-module__releaseMeta",
|
|
@@ -2886,42 +3388,42 @@ var fe = {
|
|
|
2886
3388
|
sheetFooter: "rly_ReleasePreview-module__sheetFooter",
|
|
2887
3389
|
dialogClose: "rly_ReleasePreview-module__dialogClose",
|
|
2888
3390
|
fullViewButton: "rly_ReleasePreview-module__fullViewButton"
|
|
2889
|
-
}, Y = (e) => c(
|
|
2890
|
-
let
|
|
2891
|
-
dateTime:
|
|
2892
|
-
state:
|
|
2893
|
-
time:
|
|
2894
|
-
}),
|
|
3391
|
+
}, Y = (e) => c(pi, e), mi = ({ 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: p, workset: m }) => {
|
|
3392
|
+
let h = ai(d), g = ri(p), _ = o(c, "ReleasePreview openFullViewLabel"), v = E(null), ee = h.freshnessDateTime === void 0 ? /* @__PURE__ */ D(ft, { state: h.freshness }) : /* @__PURE__ */ D(ft, {
|
|
3393
|
+
dateTime: h.freshnessDateTime,
|
|
3394
|
+
state: h.freshness,
|
|
3395
|
+
time: h.freshnessTime
|
|
3396
|
+
}), x = `Release preview: ${h.version} ${h.codename}`, S = /* @__PURE__ */ O("div", {
|
|
2895
3397
|
className: Y("body"),
|
|
2896
3398
|
"data-rly-release-preview-presentation": l,
|
|
2897
|
-
"data-rly-release-state":
|
|
3399
|
+
"data-rly-release-state": h.state,
|
|
2898
3400
|
children: [
|
|
2899
3401
|
/* @__PURE__ */ O("section", {
|
|
2900
3402
|
"aria-label": "Release summary",
|
|
2901
3403
|
className: Y("summary"),
|
|
2902
3404
|
"data-rly-release-preview-summary": "",
|
|
2903
|
-
ref:
|
|
3405
|
+
ref: v,
|
|
2904
3406
|
tabIndex: -1,
|
|
2905
3407
|
children: [
|
|
2906
3408
|
/* @__PURE__ */ O("div", {
|
|
2907
3409
|
className: Y("identityRow"),
|
|
2908
|
-
children: [/* @__PURE__ */ D(
|
|
2909
|
-
algorithm:
|
|
2910
|
-
codename:
|
|
2911
|
-
"data-rly-release-transition-name":
|
|
3410
|
+
children: [/* @__PURE__ */ D(fi, {
|
|
3411
|
+
algorithm: h.algorithm,
|
|
3412
|
+
codename: h.codename,
|
|
3413
|
+
"data-rly-release-transition-name": g?.relay,
|
|
2912
3414
|
"data-rly-release-transition-part": "relay",
|
|
2913
3415
|
size: "hero",
|
|
2914
|
-
style:
|
|
2915
|
-
symbolIndices:
|
|
3416
|
+
style: g === void 0 ? void 0 : { viewTransitionName: g.relay },
|
|
3417
|
+
symbolIndices: h.symbolIndices
|
|
2916
3418
|
}), /* @__PURE__ */ O("div", {
|
|
2917
3419
|
className: Y("releaseMeta"),
|
|
2918
3420
|
children: [/* @__PURE__ */ D("p", {
|
|
2919
3421
|
className: Y("version"),
|
|
2920
|
-
"data-rly-release-transition-name":
|
|
3422
|
+
"data-rly-release-transition-name": g?.version,
|
|
2921
3423
|
"data-rly-release-transition-part": "version",
|
|
2922
|
-
style:
|
|
2923
|
-
children:
|
|
2924
|
-
}),
|
|
3424
|
+
style: g === void 0 ? void 0 : { viewTransitionName: g.version },
|
|
3425
|
+
children: h.version
|
|
3426
|
+
}), ee]
|
|
2925
3427
|
})]
|
|
2926
3428
|
}),
|
|
2927
3429
|
/* @__PURE__ */ O("div", {
|
|
@@ -2931,34 +3433,34 @@ var fe = {
|
|
|
2931
3433
|
children: [/* @__PURE__ */ D("span", {
|
|
2932
3434
|
className: Y("eyebrow"),
|
|
2933
3435
|
children: "Owner"
|
|
2934
|
-
}),
|
|
3436
|
+
}), h.owner === void 0 ? /* @__PURE__ */ D("span", {
|
|
2935
3437
|
className: Y("unassigned"),
|
|
2936
3438
|
"data-rly-release-owner": "unassigned",
|
|
2937
3439
|
children: "Unassigned"
|
|
2938
|
-
}) : /* @__PURE__ */ D(P, { person:
|
|
3440
|
+
}) : /* @__PURE__ */ D(P, { person: h.owner })]
|
|
2939
3441
|
}), /* @__PURE__ */ O("div", {
|
|
2940
3442
|
className: Y("personGroup"),
|
|
2941
3443
|
children: [/* @__PURE__ */ D("span", {
|
|
2942
3444
|
className: Y("eyebrow"),
|
|
2943
3445
|
children: "Approver"
|
|
2944
|
-
}),
|
|
3446
|
+
}), h.approver === void 0 ? /* @__PURE__ */ D("span", {
|
|
2945
3447
|
className: Y("unassigned"),
|
|
2946
3448
|
"data-rly-release-approver": "unassigned",
|
|
2947
3449
|
children: "Unassigned"
|
|
2948
|
-
}) : /* @__PURE__ */ D(P, { person:
|
|
3450
|
+
}) : /* @__PURE__ */ D(P, { person: h.approver })]
|
|
2949
3451
|
})]
|
|
2950
3452
|
}),
|
|
2951
|
-
/* @__PURE__ */ D(
|
|
2952
|
-
"data-rly-release-transition-name":
|
|
3453
|
+
/* @__PURE__ */ D(xt, {
|
|
3454
|
+
"data-rly-release-transition-name": g?.verdict,
|
|
2953
3455
|
"data-rly-release-transition-part": "verdict",
|
|
2954
|
-
reason:
|
|
2955
|
-
style:
|
|
2956
|
-
tone:
|
|
2957
|
-
verdict:
|
|
3456
|
+
reason: h.reason,
|
|
3457
|
+
style: g === void 0 ? void 0 : { viewTransitionName: g.verdict },
|
|
3458
|
+
tone: h.tone,
|
|
3459
|
+
verdict: h.verdict
|
|
2958
3460
|
}),
|
|
2959
3461
|
/* @__PURE__ */ D("dl", {
|
|
2960
3462
|
className: Y("facts"),
|
|
2961
|
-
children:
|
|
3463
|
+
children: h.facts.map((e) => /* @__PURE__ */ O("div", {
|
|
2962
3464
|
className: Y("fact"),
|
|
2963
3465
|
children: [/* @__PURE__ */ D("dt", { children: e.label }), /* @__PURE__ */ D("dd", { children: e.value })]
|
|
2964
3466
|
}, e.id))
|
|
@@ -2978,12 +3480,12 @@ var fe = {
|
|
|
2978
3480
|
/* @__PURE__ */ D("div", {
|
|
2979
3481
|
className: Y("slot"),
|
|
2980
3482
|
"data-rly-release-preview-slot": "stages",
|
|
2981
|
-
children:
|
|
3483
|
+
children: f
|
|
2982
3484
|
}),
|
|
2983
3485
|
/* @__PURE__ */ D("div", {
|
|
2984
3486
|
className: Y("slot"),
|
|
2985
3487
|
"data-rly-release-preview-slot": "workset",
|
|
2986
|
-
children:
|
|
3488
|
+
children: m
|
|
2987
3489
|
}),
|
|
2988
3490
|
/* @__PURE__ */ D("div", {
|
|
2989
3491
|
className: Y("slot"),
|
|
@@ -2996,44 +3498,44 @@ var fe = {
|
|
|
2996
3498
|
children: e
|
|
2997
3499
|
})
|
|
2998
3500
|
]
|
|
2999
|
-
}),
|
|
3501
|
+
}), te = /* @__PURE__ */ D(b, {
|
|
3000
3502
|
className: Y("fullViewButton"),
|
|
3001
3503
|
onClick: a,
|
|
3002
3504
|
size: "default",
|
|
3003
3505
|
variant: "secondary",
|
|
3004
|
-
children:
|
|
3506
|
+
children: _
|
|
3005
3507
|
});
|
|
3006
|
-
return l === "sheet" ? /* @__PURE__ */ D(
|
|
3508
|
+
return l === "sheet" ? /* @__PURE__ */ D(y.Root, {
|
|
3007
3509
|
onOpenChange: i,
|
|
3008
3510
|
open: s,
|
|
3009
|
-
children: /* @__PURE__ */ O(
|
|
3511
|
+
children: /* @__PURE__ */ O(y.Content, {
|
|
3010
3512
|
entryMotion: n,
|
|
3011
|
-
initialFocusRef:
|
|
3012
|
-
title:
|
|
3013
|
-
children: [/* @__PURE__ */ D(
|
|
3513
|
+
initialFocusRef: v,
|
|
3514
|
+
title: x,
|
|
3515
|
+
children: [/* @__PURE__ */ D(y.Body, {
|
|
3014
3516
|
"data-rly-release-preview-scroll": "sheet",
|
|
3015
|
-
children:
|
|
3016
|
-
}), /* @__PURE__ */ D(
|
|
3517
|
+
children: S
|
|
3518
|
+
}), /* @__PURE__ */ D(y.Footer, {
|
|
3017
3519
|
className: Y("sheetFooter"),
|
|
3018
3520
|
"data-rly-release-preview-footer": "sheet",
|
|
3019
|
-
children:
|
|
3521
|
+
children: te
|
|
3020
3522
|
})]
|
|
3021
3523
|
})
|
|
3022
|
-
}) : /* @__PURE__ */ D(
|
|
3524
|
+
}) : /* @__PURE__ */ D(ae.Root, {
|
|
3023
3525
|
onOpenChange: i,
|
|
3024
3526
|
open: s,
|
|
3025
|
-
children: /* @__PURE__ */ D(
|
|
3527
|
+
children: /* @__PURE__ */ D(ae.Content, {
|
|
3026
3528
|
className: Y("dialogSurface"),
|
|
3027
3529
|
entryMotion: n,
|
|
3028
|
-
initialFocusRef:
|
|
3530
|
+
initialFocusRef: v,
|
|
3029
3531
|
size: "wide",
|
|
3030
|
-
title:
|
|
3532
|
+
title: x,
|
|
3031
3533
|
children: /* @__PURE__ */ O("div", {
|
|
3032
3534
|
className: Y("dialogFrame"),
|
|
3033
3535
|
children: [
|
|
3034
3536
|
/* @__PURE__ */ D("div", {
|
|
3035
3537
|
className: Y("dialogClose"),
|
|
3036
|
-
children: /* @__PURE__ */ D(
|
|
3538
|
+
children: /* @__PURE__ */ D(ae.Close, {
|
|
3037
3539
|
size: "compact",
|
|
3038
3540
|
variant: "quiet",
|
|
3039
3541
|
children: "Close preview"
|
|
@@ -3042,18 +3544,18 @@ var fe = {
|
|
|
3042
3544
|
/* @__PURE__ */ D("div", {
|
|
3043
3545
|
className: Y("dialogScroll"),
|
|
3044
3546
|
"data-rly-release-preview-scroll": "dialog",
|
|
3045
|
-
children:
|
|
3547
|
+
children: S
|
|
3046
3548
|
}),
|
|
3047
3549
|
/* @__PURE__ */ D("footer", {
|
|
3048
3550
|
className: Y("dialogFooter"),
|
|
3049
3551
|
"data-rly-release-preview-footer": "dialog",
|
|
3050
|
-
children:
|
|
3552
|
+
children: te
|
|
3051
3553
|
})
|
|
3052
3554
|
]
|
|
3053
3555
|
})
|
|
3054
3556
|
})
|
|
3055
3557
|
});
|
|
3056
|
-
},
|
|
3558
|
+
}, hi = {
|
|
3057
3559
|
root: "rly_ReleaseRow-module__root",
|
|
3058
3560
|
identity: "rly_ReleaseRow-module__identity",
|
|
3059
3561
|
verdictBlock: "rly_ReleaseRow-module__verdictBlock",
|
|
@@ -3069,11 +3571,11 @@ var fe = {
|
|
|
3069
3571
|
facts: "rly_ReleaseRow-module__facts",
|
|
3070
3572
|
agentEntry: "rly_ReleaseRow-module__agentEntry",
|
|
3071
3573
|
previewButton: "rly_ReleaseRow-module__previewButton"
|
|
3072
|
-
}, X = (e) => c(
|
|
3073
|
-
let c =
|
|
3574
|
+
}, X = (e) => c(hi, e), gi = ({ agentEntry: e, className: t, onPreview: n, previewLabel: r = "Preview release", release: i, transitionNames: a, ...s }) => {
|
|
3575
|
+
let c = ai(i), l = ri(a), u = o(r, "ReleaseRow previewLabel"), d = `rly-release-row-verdict-${T()}`, p = c.freshnessDateTime === void 0 ? /* @__PURE__ */ D(ft, {
|
|
3074
3576
|
size: "compact",
|
|
3075
3577
|
state: c.freshness
|
|
3076
|
-
}) : /* @__PURE__ */ D(
|
|
3578
|
+
}) : /* @__PURE__ */ D(ft, {
|
|
3077
3579
|
dateTime: c.freshnessDateTime,
|
|
3078
3580
|
size: "compact",
|
|
3079
3581
|
state: c.freshness,
|
|
@@ -3081,14 +3583,14 @@ var fe = {
|
|
|
3081
3583
|
});
|
|
3082
3584
|
return /* @__PURE__ */ O("article", {
|
|
3083
3585
|
...s,
|
|
3084
|
-
className:
|
|
3586
|
+
className: f(X("root"), t),
|
|
3085
3587
|
"data-rly-release-id": c.id,
|
|
3086
3588
|
"data-rly-release-state": c.state,
|
|
3087
3589
|
children: [
|
|
3088
3590
|
/* @__PURE__ */ O("div", {
|
|
3089
3591
|
className: X("identity"),
|
|
3090
3592
|
children: [
|
|
3091
|
-
/* @__PURE__ */ D(
|
|
3593
|
+
/* @__PURE__ */ D(fi, {
|
|
3092
3594
|
algorithm: c.algorithm,
|
|
3093
3595
|
codename: c.codename,
|
|
3094
3596
|
"data-rly-release-transition-name": l?.relay,
|
|
@@ -3108,14 +3610,14 @@ var fe = {
|
|
|
3108
3610
|
]
|
|
3109
3611
|
}),
|
|
3110
3612
|
/* @__PURE__ */ O("section", {
|
|
3111
|
-
"aria-labelledby":
|
|
3613
|
+
"aria-labelledby": d,
|
|
3112
3614
|
className: X("verdictBlock"),
|
|
3113
3615
|
"data-rly-release-transition-name": l?.verdict,
|
|
3114
3616
|
"data-rly-release-transition-part": "verdict",
|
|
3115
3617
|
style: l === void 0 ? void 0 : { viewTransitionName: l.verdict },
|
|
3116
3618
|
children: [/* @__PURE__ */ D("h2", {
|
|
3117
3619
|
className: X("verdict"),
|
|
3118
|
-
id:
|
|
3620
|
+
id: d,
|
|
3119
3621
|
children: c.verdict
|
|
3120
3622
|
}), /* @__PURE__ */ D("p", {
|
|
3121
3623
|
className: X("reason"),
|
|
@@ -3170,7 +3672,7 @@ var fe = {
|
|
|
3170
3672
|
})
|
|
3171
3673
|
]
|
|
3172
3674
|
});
|
|
3173
|
-
},
|
|
3675
|
+
}, _i = {
|
|
3174
3676
|
root: "rly_StageRail-module__root",
|
|
3175
3677
|
heading: "rly_StageRail-module__heading",
|
|
3176
3678
|
list: "rly_StageRail-module__list",
|
|
@@ -3189,7 +3691,7 @@ var fe = {
|
|
|
3189
3691
|
word: "rly_StageRail-module__word",
|
|
3190
3692
|
wordState: "rly_StageRail-module__wordState",
|
|
3191
3693
|
wordReason: "rly_StageRail-module__wordReason"
|
|
3192
|
-
}, Z = (e) => c(
|
|
3694
|
+
}, Z = (e) => c(_i, e), vi = u({ size: {
|
|
3193
3695
|
compact: {
|
|
3194
3696
|
className: Z("compact"),
|
|
3195
3697
|
purpose: "Dense release and entity stage summaries",
|
|
@@ -3221,7 +3723,7 @@ var fe = {
|
|
|
3221
3723
|
"color-held-ink"
|
|
3222
3724
|
]
|
|
3223
3725
|
}
|
|
3224
|
-
} }),
|
|
3726
|
+
} }), yi = u({ size: "default" }), bi = (e) => {
|
|
3225
3727
|
let t = /* @__PURE__ */ new Set();
|
|
3226
3728
|
for (let n of e) {
|
|
3227
3729
|
let e = o(n.id, "StageRail stage id");
|
|
@@ -3229,12 +3731,12 @@ var fe = {
|
|
|
3229
3731
|
t.add(e);
|
|
3230
3732
|
}
|
|
3231
3733
|
return e;
|
|
3232
|
-
},
|
|
3233
|
-
let s = o(n, "StageRail heading"), c = o(t, "StageRail emptyLabel"), l =
|
|
3734
|
+
}, xi = (e) => e === "critical" ? "blocked" : e === "caution" ? "held" : "quiet", Si = ({ className: e, emptyLabel: t = "No stages recorded.", heading: n, size: r = "default", stages: i, ...a }) => {
|
|
3735
|
+
let s = o(n, "StageRail heading"), c = o(t, "StageRail emptyLabel"), l = bi(i), u = `rly-stage-rail-${T()}`;
|
|
3234
3736
|
return /* @__PURE__ */ O("section", {
|
|
3235
3737
|
...a,
|
|
3236
3738
|
"aria-labelledby": r === "words" ? void 0 : u,
|
|
3237
|
-
className:
|
|
3739
|
+
className: f(Z("root"), vi.size[r].className, l.length > 6 && Z("long"), e),
|
|
3238
3740
|
"data-rly-stage-rail-size": r,
|
|
3239
3741
|
children: [r === "words" ? null : /* @__PURE__ */ D("h2", {
|
|
3240
3742
|
className: Z("heading"),
|
|
@@ -3254,7 +3756,7 @@ var fe = {
|
|
|
3254
3756
|
" ",
|
|
3255
3757
|
/* @__PURE__ */ D("span", {
|
|
3256
3758
|
className: Z("wordState"),
|
|
3257
|
-
"data-rly-stage-word":
|
|
3759
|
+
"data-rly-stage-word": xi(e.tone),
|
|
3258
3760
|
children: e.state
|
|
3259
3761
|
}),
|
|
3260
3762
|
e.reason === void 0 ? null : /* @__PURE__ */ O("span", {
|
|
@@ -3288,7 +3790,7 @@ var fe = {
|
|
|
3288
3790
|
className: Z("name"),
|
|
3289
3791
|
children: e.name
|
|
3290
3792
|
}),
|
|
3291
|
-
/* @__PURE__ */ D(
|
|
3793
|
+
/* @__PURE__ */ D(m, {
|
|
3292
3794
|
label: e.state,
|
|
3293
3795
|
size: r === "default" ? "default" : "compact",
|
|
3294
3796
|
tone: e.tone
|
|
@@ -3307,7 +3809,7 @@ var fe = {
|
|
|
3307
3809
|
}, e.id))
|
|
3308
3810
|
})]
|
|
3309
3811
|
});
|
|
3310
|
-
},
|
|
3812
|
+
}, Ci = {
|
|
3311
3813
|
root: "rly_TimelineRow-module__root",
|
|
3312
3814
|
time: "rly_TimelineRow-module__time",
|
|
3313
3815
|
marker: "rly_TimelineRow-module__marker",
|
|
@@ -3328,33 +3830,33 @@ var fe = {
|
|
|
3328
3830
|
provenance: "rly_TimelineRow-module__provenance",
|
|
3329
3831
|
key: "rly_TimelineRow-module__key",
|
|
3330
3832
|
keyItem: "rly_TimelineRow-module__keyItem"
|
|
3331
|
-
}, Q = (e) => c(
|
|
3833
|
+
}, Q = (e) => c(Ci, e), wi = {
|
|
3332
3834
|
human: "Human",
|
|
3333
3835
|
agent: "Agent",
|
|
3334
3836
|
plugin: "Plugin",
|
|
3335
3837
|
system: "System"
|
|
3336
|
-
},
|
|
3838
|
+
}, Ti = {
|
|
3337
3839
|
auto: "markAuto",
|
|
3338
3840
|
approved: "markApproved",
|
|
3339
3841
|
pending: "markPending",
|
|
3340
3842
|
unknown: "markUnknown",
|
|
3341
3843
|
flag: "markFlag"
|
|
3342
|
-
},
|
|
3844
|
+
}, Ei = (e) => {
|
|
3343
3845
|
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"), e.provenance !== void 0) {
|
|
3344
|
-
if (!Object.hasOwn(
|
|
3846
|
+
if (!Object.hasOwn(Ti, e.provenance.kind)) throw Error("TimelineRow provenance kind must be auto, approved, pending, unknown, or flag");
|
|
3345
3847
|
o(e.provenance.label, "TimelineRow provenance label");
|
|
3346
3848
|
}
|
|
3347
|
-
if (!Object.hasOwn(
|
|
3849
|
+
if (!Object.hasOwn(wi, e.actorKind)) throw Error("TimelineRow event actorKind must be human, agent, plugin, or system");
|
|
3348
3850
|
return e;
|
|
3349
|
-
},
|
|
3350
|
-
let a =
|
|
3851
|
+
}, Di = ({ className: e, continued: t, event: n, ...i }) => {
|
|
3852
|
+
let a = Ei(n), o = `rly-timeline-row-${T()}`, s = /* @__PURE__ */ D("h2", {
|
|
3351
3853
|
className: Q("title"),
|
|
3352
3854
|
id: o,
|
|
3353
3855
|
children: a.title
|
|
3354
3856
|
});
|
|
3355
3857
|
return /* @__PURE__ */ O("li", {
|
|
3356
3858
|
...i,
|
|
3357
|
-
className:
|
|
3859
|
+
className: f(Q("root"), e),
|
|
3358
3860
|
"data-rly-timeline-actor": a.actorKind,
|
|
3359
3861
|
"data-rly-timeline-event-id": a.id,
|
|
3360
3862
|
children: [
|
|
@@ -3367,7 +3869,7 @@ var fe = {
|
|
|
3367
3869
|
"aria-hidden": "true",
|
|
3368
3870
|
className: Q("marker"),
|
|
3369
3871
|
children: [/* @__PURE__ */ D("span", {
|
|
3370
|
-
className: a.provenance === void 0 ? Q("dot") : Q(
|
|
3872
|
+
className: a.provenance === void 0 ? Q("dot") : Q(Ti[a.provenance.kind]),
|
|
3371
3873
|
"data-rly-timeline-provenance": a.provenance?.kind
|
|
3372
3874
|
}), t ? /* @__PURE__ */ D("span", {
|
|
3373
3875
|
className: Q("connector"),
|
|
@@ -3399,9 +3901,9 @@ var fe = {
|
|
|
3399
3901
|
children: [
|
|
3400
3902
|
/* @__PURE__ */ D("span", {
|
|
3401
3903
|
className: Q("actorKind"),
|
|
3402
|
-
children:
|
|
3904
|
+
children: wi[a.actorKind]
|
|
3403
3905
|
}),
|
|
3404
|
-
a.service === void 0 ? null : /* @__PURE__ */ D(
|
|
3906
|
+
a.service === void 0 ? null : /* @__PURE__ */ D(L, {
|
|
3405
3907
|
service: a.service,
|
|
3406
3908
|
size: "compact"
|
|
3407
3909
|
}),
|
|
@@ -3413,13 +3915,13 @@ var fe = {
|
|
|
3413
3915
|
})
|
|
3414
3916
|
]
|
|
3415
3917
|
});
|
|
3416
|
-
},
|
|
3918
|
+
}, Oi = {
|
|
3417
3919
|
auto: "applied automatically",
|
|
3418
3920
|
approved: "approved",
|
|
3419
3921
|
pending: "waiting for approval",
|
|
3420
3922
|
unknown: "couldn't read",
|
|
3421
3923
|
flag: "flag only"
|
|
3422
|
-
},
|
|
3924
|
+
}, ki = ({ className: e, kinds: t = [
|
|
3423
3925
|
"auto",
|
|
3424
3926
|
"approved",
|
|
3425
3927
|
"pending",
|
|
@@ -3428,21 +3930,21 @@ var fe = {
|
|
|
3428
3930
|
], label: n, labels: r = {}, ...i }) => /* @__PURE__ */ D("ul", {
|
|
3429
3931
|
...i,
|
|
3430
3932
|
"aria-label": o(n, "TimelineProvenanceKey label"),
|
|
3431
|
-
className:
|
|
3933
|
+
className: f(Q("key"), e),
|
|
3432
3934
|
role: "list",
|
|
3433
3935
|
children: t.map((e) => /* @__PURE__ */ O("li", {
|
|
3434
3936
|
className: Q("keyItem"),
|
|
3435
3937
|
children: [
|
|
3436
3938
|
/* @__PURE__ */ D("span", {
|
|
3437
3939
|
"aria-hidden": "true",
|
|
3438
|
-
className: Q(
|
|
3940
|
+
className: Q(Ti[e]),
|
|
3439
3941
|
"data-rly-timeline-provenance": e
|
|
3440
3942
|
}),
|
|
3441
3943
|
" ",
|
|
3442
|
-
r[e] ??
|
|
3944
|
+
r[e] ?? Oi[e]
|
|
3443
3945
|
]
|
|
3444
3946
|
}, e))
|
|
3445
|
-
}),
|
|
3947
|
+
}), Ai = {
|
|
3446
3948
|
root: "rly_WorksetCard-module__root",
|
|
3447
3949
|
heading: "rly_WorksetCard-module__heading",
|
|
3448
3950
|
dimensions: "rly_WorksetCard-module__dimensions",
|
|
@@ -3462,38 +3964,38 @@ var fe = {
|
|
|
3462
3964
|
conceptLabel: "rly_WorksetCard-module__conceptLabel",
|
|
3463
3965
|
emptyLink: "rly_WorksetCard-module__emptyLink",
|
|
3464
3966
|
linkedWork: "rly_WorksetCard-module__linkedWork"
|
|
3465
|
-
}, $ = (e) => c(
|
|
3967
|
+
}, $ = (e) => c(Ai, e), ji = (e, t) => {
|
|
3466
3968
|
e !== void 0 && o(e, `${t} href`);
|
|
3467
|
-
},
|
|
3969
|
+
}, Mi = (e, t, n) => {
|
|
3468
3970
|
let r = o(e, `${n} id`);
|
|
3469
3971
|
if (t.has(r)) throw Error(`${n} ids must be unique: ${r}`);
|
|
3470
3972
|
return t.add(r), r;
|
|
3471
|
-
},
|
|
3973
|
+
}, Ni = (e) => {
|
|
3472
3974
|
let t = /* @__PURE__ */ new Set();
|
|
3473
3975
|
for (let n of e) {
|
|
3474
|
-
let e =
|
|
3475
|
-
o(n.key, `WorksetCard Jira key for ${e}`), o(n.title, `WorksetCard Jira title for ${e}`), o(n.state, `WorksetCard Jira state for ${e}`),
|
|
3976
|
+
let e = Mi(n.id, t, "WorksetCard Jira item");
|
|
3977
|
+
o(n.key, `WorksetCard Jira key for ${e}`), o(n.title, `WorksetCard Jira title for ${e}`), o(n.state, `WorksetCard Jira state for ${e}`), ji(n.href, `WorksetCard Jira item ${e}`);
|
|
3476
3978
|
}
|
|
3477
|
-
},
|
|
3979
|
+
}, Pi = (e) => {
|
|
3478
3980
|
let t = /* @__PURE__ */ new Set();
|
|
3479
3981
|
for (let n of e) {
|
|
3480
|
-
let e =
|
|
3481
|
-
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}`),
|
|
3982
|
+
let e = Mi(n.id, t, "WorksetCard pull request group");
|
|
3983
|
+
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}`), ji(n.href, `WorksetCard pull request group ${e}`);
|
|
3482
3984
|
for (let t of n.linkedJiraKeys) o(t, `WorksetCard linked Jira key for ${e}`);
|
|
3483
3985
|
}
|
|
3484
|
-
},
|
|
3986
|
+
}, Fi = (e) => {
|
|
3485
3987
|
let t = /* @__PURE__ */ new Set();
|
|
3486
3988
|
for (let n of e) {
|
|
3487
|
-
let e =
|
|
3488
|
-
if (o(n.label, `WorksetCard gap label for ${e}`), o(n.reason, `WorksetCard gap reason for ${e}`), !Object.hasOwn(
|
|
3989
|
+
let e = Mi(n.id, t, "WorksetCard gap");
|
|
3990
|
+
if (o(n.label, `WorksetCard gap label for ${e}`), o(n.reason, `WorksetCard gap reason for ${e}`), !Object.hasOwn(mt.service, n.service)) throw Error(`WorksetCard gap service for ${e} must be supported`);
|
|
3489
3991
|
}
|
|
3490
|
-
},
|
|
3992
|
+
}, Ii = (e) => {
|
|
3491
3993
|
let t = /* @__PURE__ */ new Set();
|
|
3492
3994
|
for (let n of e) {
|
|
3493
|
-
let e =
|
|
3494
|
-
o(n.title, `WorksetCard pipeline title for ${e}`), o(n.reference, `WorksetCard pipeline reference for ${e}`), o(n.state, `WorksetCard pipeline state for ${e}`),
|
|
3995
|
+
let e = Mi(n.id, t, "WorksetCard pipeline");
|
|
3996
|
+
o(n.title, `WorksetCard pipeline title for ${e}`), o(n.reference, `WorksetCard pipeline reference for ${e}`), o(n.state, `WorksetCard pipeline state for ${e}`), ji(n.href, `WorksetCard pipeline ${e}`);
|
|
3495
3997
|
}
|
|
3496
|
-
},
|
|
3998
|
+
}, Li = ({ href: e, reference: t, title: n }) => {
|
|
3497
3999
|
let i = /* @__PURE__ */ O("span", {
|
|
3498
4000
|
className: $("identity"),
|
|
3499
4001
|
children: [/* @__PURE__ */ D("span", {
|
|
@@ -3509,17 +4011,17 @@ var fe = {
|
|
|
3509
4011
|
href: e,
|
|
3510
4012
|
children: i
|
|
3511
4013
|
});
|
|
3512
|
-
},
|
|
3513
|
-
let p = o(r, "WorksetCard heading"),
|
|
3514
|
-
|
|
3515
|
-
let
|
|
4014
|
+
}, Ri = ({ 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, ...d }) => {
|
|
4015
|
+
let p = o(r, "WorksetCard heading"), h = o(i, "WorksetCard jiraEmptyLabel"), g = o(l, "WorksetCard pullRequestEmptyLabel"), _ = o(t, "WorksetCard gapEmptyLabel"), v = o(s, "WorksetCard pipelineEmptyLabel");
|
|
4016
|
+
Ni(a), Pi(u), Fi(n), Ii(c);
|
|
4017
|
+
let y = `rly-workset-${T()}`;
|
|
3516
4018
|
return /* @__PURE__ */ O("section", {
|
|
3517
|
-
...
|
|
3518
|
-
"aria-labelledby":
|
|
3519
|
-
className:
|
|
4019
|
+
...d,
|
|
4020
|
+
"aria-labelledby": y,
|
|
4021
|
+
className: f($("root"), e),
|
|
3520
4022
|
children: [/* @__PURE__ */ D("h2", {
|
|
3521
4023
|
className: $("heading"),
|
|
3522
|
-
id:
|
|
4024
|
+
id: y,
|
|
3523
4025
|
children: p
|
|
3524
4026
|
}), /* @__PURE__ */ O("div", {
|
|
3525
4027
|
className: $("dimensions"),
|
|
@@ -3529,25 +4031,25 @@ var fe = {
|
|
|
3529
4031
|
"data-rly-workset-dimension": "jira",
|
|
3530
4032
|
children: [/* @__PURE__ */ O("div", {
|
|
3531
4033
|
className: $("dimensionHeading"),
|
|
3532
|
-
children: [/* @__PURE__ */ D(
|
|
4034
|
+
children: [/* @__PURE__ */ D(L, {
|
|
3533
4035
|
service: "jira",
|
|
3534
4036
|
size: "compact"
|
|
3535
4037
|
}), /* @__PURE__ */ D("h3", { children: "Jira work" })]
|
|
3536
4038
|
}), a.length === 0 ? /* @__PURE__ */ D("p", {
|
|
3537
4039
|
className: $("empty"),
|
|
3538
|
-
children:
|
|
4040
|
+
children: h
|
|
3539
4041
|
}) : /* @__PURE__ */ D("ul", {
|
|
3540
4042
|
className: $("list"),
|
|
3541
4043
|
children: a.map((e) => /* @__PURE__ */ O("li", {
|
|
3542
4044
|
className: $("item"),
|
|
3543
4045
|
"data-rly-workset-jira-id": e.id,
|
|
3544
4046
|
children: [
|
|
3545
|
-
/* @__PURE__ */ D(
|
|
4047
|
+
/* @__PURE__ */ D(Li, {
|
|
3546
4048
|
...e.href === void 0 ? {} : { href: e.href },
|
|
3547
4049
|
reference: e.key,
|
|
3548
4050
|
title: e.title
|
|
3549
4051
|
}),
|
|
3550
|
-
/* @__PURE__ */ D(
|
|
4052
|
+
/* @__PURE__ */ D(m, {
|
|
3551
4053
|
label: e.state,
|
|
3552
4054
|
size: "compact",
|
|
3553
4055
|
tone: e.tone
|
|
@@ -3566,26 +4068,26 @@ var fe = {
|
|
|
3566
4068
|
children: [
|
|
3567
4069
|
/* @__PURE__ */ O("div", {
|
|
3568
4070
|
className: $("dimensionHeading"),
|
|
3569
|
-
children: [/* @__PURE__ */ D(
|
|
4071
|
+
children: [/* @__PURE__ */ D(L, {
|
|
3570
4072
|
service: "codecommit",
|
|
3571
4073
|
size: "compact"
|
|
3572
4074
|
}), /* @__PURE__ */ D("h3", { children: "Pull request groups" })]
|
|
3573
4075
|
}),
|
|
3574
4076
|
u.length === 0 ? /* @__PURE__ */ D("p", {
|
|
3575
4077
|
className: $("empty"),
|
|
3576
|
-
children:
|
|
4078
|
+
children: g
|
|
3577
4079
|
}) : /* @__PURE__ */ D("ul", {
|
|
3578
4080
|
className: $("list"),
|
|
3579
4081
|
children: u.map((e) => /* @__PURE__ */ O("li", {
|
|
3580
4082
|
className: $("item"),
|
|
3581
4083
|
"data-rly-workset-pr-id": e.id,
|
|
3582
4084
|
children: [
|
|
3583
|
-
/* @__PURE__ */ D(
|
|
4085
|
+
/* @__PURE__ */ D(Li, {
|
|
3584
4086
|
...e.href === void 0 ? {} : { href: e.href },
|
|
3585
4087
|
reference: e.reference,
|
|
3586
4088
|
title: e.title
|
|
3587
4089
|
}),
|
|
3588
|
-
/* @__PURE__ */ D(
|
|
4090
|
+
/* @__PURE__ */ D(m, {
|
|
3589
4091
|
label: e.state,
|
|
3590
4092
|
size: "compact",
|
|
3591
4093
|
tone: e.tone
|
|
@@ -3617,14 +4119,14 @@ var fe = {
|
|
|
3617
4119
|
className: $("gaps"),
|
|
3618
4120
|
children: [/* @__PURE__ */ D("h4", { children: "Relationship gaps" }), n.length === 0 ? /* @__PURE__ */ D("p", {
|
|
3619
4121
|
className: $("empty"),
|
|
3620
|
-
children:
|
|
4122
|
+
children: _
|
|
3621
4123
|
}) : /* @__PURE__ */ D("ul", {
|
|
3622
4124
|
className: $("gapList"),
|
|
3623
4125
|
children: n.map((e) => /* @__PURE__ */ O("li", {
|
|
3624
4126
|
className: $("gap"),
|
|
3625
4127
|
"data-rly-workset-gap-id": e.id,
|
|
3626
4128
|
children: [
|
|
3627
|
-
/* @__PURE__ */ D(
|
|
4129
|
+
/* @__PURE__ */ D(L, {
|
|
3628
4130
|
service: e.service,
|
|
3629
4131
|
size: "compact"
|
|
3630
4132
|
}),
|
|
@@ -3641,25 +4143,25 @@ var fe = {
|
|
|
3641
4143
|
"data-rly-workset-dimension": "pipelines",
|
|
3642
4144
|
children: [/* @__PURE__ */ O("div", {
|
|
3643
4145
|
className: $("dimensionHeading"),
|
|
3644
|
-
children: [/* @__PURE__ */ D(
|
|
4146
|
+
children: [/* @__PURE__ */ D(L, {
|
|
3645
4147
|
service: "codepipeline",
|
|
3646
4148
|
size: "compact"
|
|
3647
4149
|
}), /* @__PURE__ */ D("h3", { children: "Pipeline delivery" })]
|
|
3648
4150
|
}), c.length === 0 ? /* @__PURE__ */ D("p", {
|
|
3649
4151
|
className: $("empty"),
|
|
3650
|
-
children:
|
|
4152
|
+
children: v
|
|
3651
4153
|
}) : /* @__PURE__ */ D("ul", {
|
|
3652
4154
|
className: $("list"),
|
|
3653
4155
|
children: c.map((e) => /* @__PURE__ */ O("li", {
|
|
3654
4156
|
className: $("item"),
|
|
3655
4157
|
"data-rly-workset-pipeline-id": e.id,
|
|
3656
4158
|
children: [
|
|
3657
|
-
/* @__PURE__ */ D(
|
|
4159
|
+
/* @__PURE__ */ D(Li, {
|
|
3658
4160
|
...e.href === void 0 ? {} : { href: e.href },
|
|
3659
4161
|
reference: e.reference,
|
|
3660
4162
|
title: e.title
|
|
3661
4163
|
}),
|
|
3662
|
-
/* @__PURE__ */ D(
|
|
4164
|
+
/* @__PURE__ */ D(m, {
|
|
3663
4165
|
label: e.state,
|
|
3664
4166
|
size: "compact",
|
|
3665
4167
|
tone: e.tone
|
|
@@ -3672,7 +4174,7 @@ var fe = {
|
|
|
3672
4174
|
person: e.approver,
|
|
3673
4175
|
size: "compact"
|
|
3674
4176
|
}),
|
|
3675
|
-
/* @__PURE__ */ D(
|
|
4177
|
+
/* @__PURE__ */ D(Si, {
|
|
3676
4178
|
heading: `${e.reference} stages`,
|
|
3677
4179
|
size: "compact",
|
|
3678
4180
|
stages: e.stages
|
|
@@ -3686,6 +4188,6 @@ var fe = {
|
|
|
3686
4188
|
});
|
|
3687
4189
|
};
|
|
3688
4190
|
//#endregion
|
|
3689
|
-
export {
|
|
4191
|
+
export { ot as $, Yt as A, Pt as B, qn as C, sn as D, Vn as E, Ut as F, yt as G, Et as H, Bt as I, mt as J, xt as K, zt as L, Kt as M, Jt as N, rn as O, Ht as P, ct as Q, Vt as R, Kn as S, Ln as T, Tt as U, jt as V, Ct as W, ft as X, L as Y, lt as Z, Hr as _, vi as a, Xe as at, Yn as b, mi as c, P as ct, ci as d, Le as dt, at as et, fi as f, je as ft, ei as g, qr as h, ve as ht, yi as i, $e as it, qt as j, Xt as k, li as l, Ve as lt, Gr as m, Se as mt, ki as n, tt as nt, Si as o, qe as ot, Wr as p, De as pt, ht as q, Di as r, et as rt, gi as s, Ke as st, Ri as t, it as tt, si as u, Be as ut, Zn as v, In as w, Un as x, cr as y, Lt as z };
|
|
3690
4192
|
|
|
3691
|
-
//# sourceMappingURL=patterns-
|
|
4193
|
+
//# sourceMappingURL=patterns-CDBnXTUD.js.map
|