@knpkv/rly 0.6.1 → 0.9.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 +85 -1
- package/dist/{Dialog-CplGpe1F.js → Dialog-_t9OodCK.js} +16 -12
- package/dist/Dialog-_t9OodCK.js.map +1 -0
- package/dist/ThemeProvider-BFeldMeE.js +87 -0
- package/dist/ThemeProvider-BFeldMeE.js.map +1 -0
- package/dist/base.css +17 -0
- package/dist/components.css +1 -1
- package/dist/dts/foundations/ThemeProvider.d.ts +31 -1
- package/dist/dts/foundations/ThemeProvider.d.ts.map +1 -1
- package/dist/dts/foundations/index.d.ts +2 -2
- package/dist/dts/foundations/index.d.ts.map +1 -1
- package/dist/dts/patterns/DecisionBar.d.ts +68 -0
- package/dist/dts/patterns/DecisionBar.d.ts.map +1 -0
- package/dist/dts/patterns/Hero.d.ts +69 -0
- package/dist/dts/patterns/Hero.d.ts.map +1 -0
- package/dist/dts/patterns/Region.d.ts +56 -0
- package/dist/dts/patterns/Region.d.ts.map +1 -0
- package/dist/dts/patterns/RelayDock.d.ts.map +1 -1
- package/dist/dts/patterns/StageRail.d.ts +11 -1
- package/dist/dts/patterns/StageRail.d.ts.map +1 -1
- package/dist/dts/patterns/TimelineRow.d.ts +25 -0
- package/dist/dts/patterns/TimelineRow.d.ts.map +1 -1
- package/dist/dts/patterns/index.d.ts +8 -2
- package/dist/dts/patterns/index.d.ts.map +1 -1
- package/dist/dts/primitives/ChartLegend.d.ts +23 -0
- package/dist/dts/primitives/ChartLegend.d.ts.map +1 -0
- package/dist/dts/primitives/LimitTrack.d.ts +62 -0
- package/dist/dts/primitives/LimitTrack.d.ts.map +1 -0
- package/dist/dts/primitives/Notice.d.ts +64 -0
- package/dist/dts/primitives/Notice.d.ts.map +1 -0
- package/dist/dts/primitives/Select.d.ts.map +1 -1
- package/dist/dts/primitives/StatePanel.d.ts +8 -1
- package/dist/dts/primitives/StatePanel.d.ts.map +1 -1
- package/dist/dts/primitives/ThemeSelect.d.ts +27 -0
- package/dist/dts/primitives/ThemeSelect.d.ts.map +1 -0
- package/dist/dts/primitives/TrackKey.d.ts +20 -0
- package/dist/dts/primitives/TrackKey.d.ts.map +1 -0
- package/dist/dts/primitives/index.d.ts +10 -0
- package/dist/dts/primitives/index.d.ts.map +1 -1
- package/dist/dts/tokens/semantic-tokens.d.ts +1 -1
- package/dist/dts/tokens/semantic-tokens.d.ts.map +1 -1
- package/dist/foundations/index.js +4 -4
- package/dist/generated-tokens.css +36 -0
- package/dist/index.js +9 -8
- package/dist/patterns/index.js +2 -2
- package/dist/{patterns-QMuqnQKw.js → patterns-lOWLKH70.js} +1247 -948
- package/dist/patterns-lOWLKH70.js.map +1 -0
- package/dist/primitives/index.js +3 -3
- package/dist/primitives-Dj-qYrUZ.js +583 -0
- package/dist/primitives-Dj-qYrUZ.js.map +1 -0
- package/dist/styles.css +1 -1
- package/dist/tokens/index.js +1 -1
- package/dist/{tokens-CjK9bxo7.js → tokens-DaF1m6rr.js} +2 -2
- package/dist/tokens-DaF1m6rr.js.map +1 -0
- package/package.json +3 -2
- package/registry/components.json +856 -12
- package/registry/search.json +215 -2
- package/dist/Dialog-CplGpe1F.js.map +0 -1
- package/dist/foundations-CEGDSEb-.js +0 -29
- package/dist/foundations-CEGDSEb-.js.map +0 -1
- package/dist/patterns-QMuqnQKw.js.map +0 -1
- package/dist/primitives-BXWPLy2C.js +0 -346
- package/dist/primitives-BXWPLy2C.js.map +0 -1
- package/dist/tokens-CjK9bxo7.js.map +0 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { i as e, r as t, t as n } from "./PortalProvider-CN_81Fy3.js";
|
|
2
2
|
import { n as r } from "./LinkProvider-DMkhwZ3P.js";
|
|
3
3
|
import { a as i, c as a, i as o, l as s, n as c, r as l, s as u, t as d } from "./component-DKy8kjZl.js";
|
|
4
|
-
import { A as f, F as p, I as m, L as h, M as g, N as _, P as v, R as y, T as b, f as x, g as S, h as C, i as ee, j as te, l as ne, t as w, w as T, y as
|
|
5
|
-
import { Portal as
|
|
6
|
-
import { useCallback as
|
|
7
|
-
import { Fragment as
|
|
8
|
-
var
|
|
4
|
+
import { A as f, F as p, I as m, L as h, M as g, N as _, P as v, R as y, T as b, f as x, g as S, h as C, i as ee, j as te, l as ne, t as w, w as T, y as re, z as ie } from "./Dialog-_t9OodCK.js";
|
|
5
|
+
import { Portal as ae } from "radix-ui";
|
|
6
|
+
import { useCallback as oe, useId as E, useLayoutEffect as se, useRef as ce, useState as le, useSyncExternalStore as ue } from "react";
|
|
7
|
+
import { Fragment as de, jsx as D, jsxs as O } from "react/jsx-runtime";
|
|
8
|
+
var fe = {
|
|
9
9
|
root: "rly_AgentContextButton-module__root",
|
|
10
10
|
mark: "rly_AgentContextButton-module__mark",
|
|
11
11
|
glyph: "rly_AgentContextButton-module__glyph",
|
|
@@ -17,62 +17,62 @@ var ue = {
|
|
|
17
17
|
context: "rly_AgentContextButton-module__context",
|
|
18
18
|
job: "rly_AgentContextButton-module__job",
|
|
19
19
|
count: "rly_AgentContextButton-module__count"
|
|
20
|
-
},
|
|
20
|
+
}, k = (e) => c(fe, e), pe = () => /* @__PURE__ */ D("span", {
|
|
21
21
|
"aria-hidden": "true",
|
|
22
|
-
className:
|
|
23
|
-
children: /* @__PURE__ */
|
|
24
|
-
className:
|
|
22
|
+
className: k("mark"),
|
|
23
|
+
children: /* @__PURE__ */ D("svg", {
|
|
24
|
+
className: k("glyph"),
|
|
25
25
|
focusable: "false",
|
|
26
26
|
viewBox: "0 0 24 24",
|
|
27
|
-
children: /* @__PURE__ */
|
|
27
|
+
children: /* @__PURE__ */ D("path", {
|
|
28
28
|
d: "M12 3.5 14 10l6.5 2-6.5 2-2 6.5L10 14l-6.5-2 6.5-2Z",
|
|
29
29
|
fill: "currentColor"
|
|
30
30
|
})
|
|
31
31
|
})
|
|
32
|
-
}),
|
|
32
|
+
}), me = ({ actionLabel: e = "Ask agent", agentName: t, className: n, context: r, contextLabel: i = "Context", job: a, type: s, ...c }) => {
|
|
33
33
|
let l = o(e, "AgentContextButton actionLabel"), u = o(t, "AgentContextButton agentName"), f = o(r, "AgentContextButton context"), p = o(i, "AgentContextButton contextLabel"), m = a === void 0 ? void 0 : o(a.status, "AgentContextButton job status");
|
|
34
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
|
-
return /* @__PURE__ */
|
|
35
|
+
return /* @__PURE__ */ O("button", {
|
|
36
36
|
...c,
|
|
37
|
-
className: d(
|
|
37
|
+
className: d(k("root"), n),
|
|
38
38
|
"data-rly-agent-context-button": "",
|
|
39
39
|
type: s ?? "button",
|
|
40
40
|
children: [
|
|
41
|
-
/* @__PURE__ */
|
|
42
|
-
/* @__PURE__ */
|
|
43
|
-
className:
|
|
41
|
+
/* @__PURE__ */ D(pe, {}),
|
|
42
|
+
/* @__PURE__ */ O("span", {
|
|
43
|
+
className: k("copy"),
|
|
44
44
|
children: [
|
|
45
|
-
/* @__PURE__ */
|
|
46
|
-
className:
|
|
45
|
+
/* @__PURE__ */ D("span", {
|
|
46
|
+
className: k("action"),
|
|
47
47
|
children: l
|
|
48
48
|
}),
|
|
49
|
-
/* @__PURE__ */
|
|
50
|
-
className:
|
|
49
|
+
/* @__PURE__ */ D("span", {
|
|
50
|
+
className: k("agent"),
|
|
51
51
|
children: u
|
|
52
52
|
}),
|
|
53
|
-
/* @__PURE__ */
|
|
54
|
-
className:
|
|
55
|
-
children: [/* @__PURE__ */
|
|
56
|
-
className:
|
|
53
|
+
/* @__PURE__ */ O("span", {
|
|
54
|
+
className: k("contextRow"),
|
|
55
|
+
children: [/* @__PURE__ */ D("span", {
|
|
56
|
+
className: k("contextLabel"),
|
|
57
57
|
children: p
|
|
58
|
-
}), /* @__PURE__ */
|
|
59
|
-
className:
|
|
58
|
+
}), /* @__PURE__ */ D("span", {
|
|
59
|
+
className: k("context"),
|
|
60
60
|
children: f
|
|
61
61
|
})]
|
|
62
62
|
})
|
|
63
63
|
]
|
|
64
64
|
}),
|
|
65
|
-
m === void 0 ? null : /* @__PURE__ */
|
|
66
|
-
className:
|
|
65
|
+
m === void 0 ? null : /* @__PURE__ */ O("span", {
|
|
66
|
+
className: k("job"),
|
|
67
67
|
"data-rly-agent-job": "",
|
|
68
|
-
children: [m, a?.count === void 0 ? null : /* @__PURE__ */
|
|
69
|
-
className:
|
|
68
|
+
children: [m, a?.count === void 0 ? null : /* @__PURE__ */ D("span", {
|
|
69
|
+
className: k("count"),
|
|
70
70
|
children: a.count
|
|
71
71
|
})]
|
|
72
72
|
})
|
|
73
73
|
]
|
|
74
74
|
});
|
|
75
|
-
},
|
|
75
|
+
}, he = {
|
|
76
76
|
drawer: "rly_AgentDrawer-module__drawer",
|
|
77
77
|
body: "rly_AgentDrawer-module__body",
|
|
78
78
|
slot: "rly_AgentDrawer-module__slot",
|
|
@@ -85,88 +85,88 @@ var ue = {
|
|
|
85
85
|
eyebrow: "rly_AgentDrawer-module__eyebrow",
|
|
86
86
|
slotTitle: "rly_AgentDrawer-module__slotTitle",
|
|
87
87
|
contextSummary: "rly_AgentDrawer-module__contextSummary"
|
|
88
|
-
},
|
|
88
|
+
}, A = (e) => c(he, e), ge = () => /* @__PURE__ */ D("span", {
|
|
89
89
|
"aria-hidden": "true",
|
|
90
|
-
className:
|
|
91
|
-
children: /* @__PURE__ */
|
|
92
|
-
className:
|
|
90
|
+
className: A("mark"),
|
|
91
|
+
children: /* @__PURE__ */ D("svg", {
|
|
92
|
+
className: A("glyph"),
|
|
93
93
|
focusable: "false",
|
|
94
94
|
viewBox: "0 0 24 24",
|
|
95
|
-
children: /* @__PURE__ */
|
|
95
|
+
children: /* @__PURE__ */ D("path", {
|
|
96
96
|
d: "M12 3.5 14 10l6.5 2-6.5 2-2 6.5L10 14l-6.5-2 6.5-2Z",
|
|
97
97
|
fill: "currentColor"
|
|
98
98
|
})
|
|
99
99
|
})
|
|
100
|
-
}),
|
|
101
|
-
className:
|
|
100
|
+
}), _e = ({ children: e, label: t, name: n }) => /* @__PURE__ */ O("section", {
|
|
101
|
+
className: A("slot"),
|
|
102
102
|
"data-rly-agent-drawer-slot": n,
|
|
103
|
-
children: [/* @__PURE__ */
|
|
104
|
-
className:
|
|
103
|
+
children: [/* @__PURE__ */ D("h2", {
|
|
104
|
+
className: A("slotTitle"),
|
|
105
105
|
children: t
|
|
106
|
-
}), /* @__PURE__ */
|
|
107
|
-
className:
|
|
106
|
+
}), /* @__PURE__ */ D("div", {
|
|
107
|
+
className: A("slotContent"),
|
|
108
108
|
children: e
|
|
109
109
|
})]
|
|
110
|
-
}),
|
|
111
|
-
let h = o(e, "AgentDrawer agentName"), g = o(a, "AgentDrawer contextSummary"), _ = o(p, "AgentDrawer title"), v =
|
|
112
|
-
return /* @__PURE__ */
|
|
110
|
+
}), ve = ({ agentName: e, capabilities: t, className: n, composer: r, context: i, contextSummary: a, evidence: s, onOpenChange: c, open: l, thread: u, title: p, ...m }) => {
|
|
111
|
+
let h = o(e, "AgentDrawer agentName"), g = o(a, "AgentDrawer contextSummary"), _ = o(p, "AgentDrawer title"), v = ce(null);
|
|
112
|
+
return /* @__PURE__ */ D(f.Root, {
|
|
113
113
|
onOpenChange: c,
|
|
114
114
|
open: l,
|
|
115
|
-
children: /* @__PURE__ */
|
|
116
|
-
className: d(
|
|
115
|
+
children: /* @__PURE__ */ D(f.Content, {
|
|
116
|
+
className: d(A("drawer"), n),
|
|
117
117
|
description: `Context-aware session with ${h}`,
|
|
118
118
|
initialFocusRef: v,
|
|
119
119
|
title: _,
|
|
120
|
-
children: /* @__PURE__ */
|
|
120
|
+
children: /* @__PURE__ */ O(f.Body, {
|
|
121
121
|
...m,
|
|
122
|
-
className:
|
|
122
|
+
className: A("body"),
|
|
123
123
|
children: [
|
|
124
|
-
/* @__PURE__ */
|
|
125
|
-
className: d(
|
|
124
|
+
/* @__PURE__ */ O("section", {
|
|
125
|
+
className: d(A("slot"), A("contextSlot")),
|
|
126
126
|
"data-rly-agent-drawer-slot": "context",
|
|
127
127
|
ref: v,
|
|
128
128
|
tabIndex: -1,
|
|
129
|
-
children: [/* @__PURE__ */
|
|
130
|
-
className:
|
|
131
|
-
children: [/* @__PURE__ */
|
|
132
|
-
className:
|
|
133
|
-
children: [/* @__PURE__ */
|
|
134
|
-
className:
|
|
129
|
+
children: [/* @__PURE__ */ O("div", {
|
|
130
|
+
className: A("identity"),
|
|
131
|
+
children: [/* @__PURE__ */ D(ge, {}), /* @__PURE__ */ O("div", {
|
|
132
|
+
className: A("identityCopy"),
|
|
133
|
+
children: [/* @__PURE__ */ D("span", {
|
|
134
|
+
className: A("eyebrow"),
|
|
135
135
|
children: h
|
|
136
|
-
}), /* @__PURE__ */
|
|
137
|
-
className:
|
|
136
|
+
}), /* @__PURE__ */ D("h2", {
|
|
137
|
+
className: A("contextSummary"),
|
|
138
138
|
children: g
|
|
139
139
|
})]
|
|
140
140
|
})]
|
|
141
|
-
}), /* @__PURE__ */
|
|
142
|
-
className:
|
|
141
|
+
}), /* @__PURE__ */ D("div", {
|
|
142
|
+
className: A("slotContent"),
|
|
143
143
|
children: i
|
|
144
144
|
})]
|
|
145
145
|
}),
|
|
146
|
-
/* @__PURE__ */
|
|
146
|
+
/* @__PURE__ */ D(_e, {
|
|
147
147
|
label: "Evidence",
|
|
148
148
|
name: "evidence",
|
|
149
149
|
children: s
|
|
150
150
|
}),
|
|
151
|
-
/* @__PURE__ */
|
|
151
|
+
/* @__PURE__ */ D(_e, {
|
|
152
152
|
label: "Capabilities",
|
|
153
153
|
name: "capabilities",
|
|
154
154
|
children: t
|
|
155
155
|
}),
|
|
156
|
-
/* @__PURE__ */
|
|
156
|
+
/* @__PURE__ */ O("section", {
|
|
157
157
|
"aria-live": "polite",
|
|
158
158
|
"aria-relevant": "additions text",
|
|
159
|
-
className:
|
|
159
|
+
className: A("slot"),
|
|
160
160
|
"data-rly-agent-drawer-slot": "thread",
|
|
161
|
-
children: [/* @__PURE__ */
|
|
162
|
-
className:
|
|
161
|
+
children: [/* @__PURE__ */ D("h2", {
|
|
162
|
+
className: A("slotTitle"),
|
|
163
163
|
children: "Thread"
|
|
164
|
-
}), /* @__PURE__ */
|
|
165
|
-
className:
|
|
164
|
+
}), /* @__PURE__ */ D("div", {
|
|
165
|
+
className: A("slotContent"),
|
|
166
166
|
children: u
|
|
167
167
|
})]
|
|
168
168
|
}),
|
|
169
|
-
/* @__PURE__ */
|
|
169
|
+
/* @__PURE__ */ D(_e, {
|
|
170
170
|
label: "Message",
|
|
171
171
|
name: "composer",
|
|
172
172
|
children: r
|
|
@@ -175,7 +175,7 @@ var ue = {
|
|
|
175
175
|
})
|
|
176
176
|
})
|
|
177
177
|
});
|
|
178
|
-
},
|
|
178
|
+
}, ye = {
|
|
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 ue = {
|
|
|
187
187
|
slot: "rly_AgentJob-module__slot",
|
|
188
188
|
footer: "rly_AgentJob-module__footer",
|
|
189
189
|
outcome: "rly_AgentJob-module__outcome"
|
|
190
|
-
},
|
|
190
|
+
}, j = (e) => c(ye, e), be = (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
|
+
}, xe = {
|
|
194
194
|
queued: {
|
|
195
195
|
label: "Queued",
|
|
196
196
|
tone: "neutral"
|
|
@@ -215,83 +215,83 @@ var ue = {
|
|
|
215
215
|
label: "Cancelled",
|
|
216
216
|
tone: "neutral"
|
|
217
217
|
}
|
|
218
|
-
},
|
|
218
|
+
}, Se = (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
|
-
},
|
|
220
|
+
}, Ce = ({ cancelLabel: e = "Request cancellation", capability: t, className: n, context: r, evidence: i, heading: a, onCancel: s, outcome: c, progress: l, provider: u, revision: f, sandbox: p, state: m, ...h }) => {
|
|
221
221
|
let g = o(a, "AgentJob heading"), _ = o(u, "AgentJob provider"), v = o(t, "AgentJob capability"), y = o(e, "AgentJob cancelLabel");
|
|
222
|
-
|
|
223
|
-
let x =
|
|
224
|
-
return /* @__PURE__ */
|
|
222
|
+
be(r, "AgentJob context"), be(i, "AgentJob evidence"), (m === "succeeded" || m === "failed" || m === "cancelled") && be(c, "AgentJob terminal outcome"), p !== void 0 && o(p, "AgentJob sandbox"), f !== void 0 && o(f, "AgentJob revision"), Se(l);
|
|
223
|
+
let x = xe[m], S = m === "queued" || m === "running", C = `rly-agent-job-progress-${E()}`;
|
|
224
|
+
return /* @__PURE__ */ O("article", {
|
|
225
225
|
...h,
|
|
226
226
|
"aria-busy": m === "queued" || m === "running" || m === "cancel-requested",
|
|
227
|
-
className: d(
|
|
227
|
+
className: d(j("root"), n),
|
|
228
228
|
"data-rly-agent-job-state": m,
|
|
229
229
|
children: [
|
|
230
|
-
/* @__PURE__ */
|
|
231
|
-
className:
|
|
230
|
+
/* @__PURE__ */ O("header", {
|
|
231
|
+
className: j("header"),
|
|
232
232
|
children: [
|
|
233
|
-
/* @__PURE__ */
|
|
233
|
+
/* @__PURE__ */ D("span", {
|
|
234
234
|
"aria-hidden": "true",
|
|
235
|
-
className:
|
|
235
|
+
className: j("agentGlyph"),
|
|
236
236
|
children: "AI"
|
|
237
237
|
}),
|
|
238
|
-
/* @__PURE__ */
|
|
239
|
-
className:
|
|
240
|
-
children: [/* @__PURE__ */
|
|
241
|
-
className:
|
|
238
|
+
/* @__PURE__ */ O("span", {
|
|
239
|
+
className: j("titleBlock"),
|
|
240
|
+
children: [/* @__PURE__ */ O("span", {
|
|
241
|
+
className: j("eyebrow"),
|
|
242
242
|
children: [
|
|
243
243
|
_,
|
|
244
244
|
" · ",
|
|
245
245
|
v
|
|
246
246
|
]
|
|
247
|
-
}), /* @__PURE__ */
|
|
247
|
+
}), /* @__PURE__ */ D("h2", { children: g })]
|
|
248
248
|
}),
|
|
249
|
-
/* @__PURE__ */
|
|
249
|
+
/* @__PURE__ */ D(T, {
|
|
250
250
|
label: x.label,
|
|
251
251
|
size: "compact",
|
|
252
252
|
tone: x.tone
|
|
253
253
|
})
|
|
254
254
|
]
|
|
255
255
|
}),
|
|
256
|
-
l === void 0 ? null : /* @__PURE__ */
|
|
257
|
-
className:
|
|
258
|
-
children: [/* @__PURE__ */
|
|
259
|
-
className:
|
|
256
|
+
l === void 0 ? null : /* @__PURE__ */ O("div", {
|
|
257
|
+
className: j("progressBlock"),
|
|
258
|
+
children: [/* @__PURE__ */ O("span", {
|
|
259
|
+
className: j("progressLabel"),
|
|
260
260
|
id: C,
|
|
261
|
-
children: ["Progress ", /* @__PURE__ */
|
|
262
|
-
}), /* @__PURE__ */
|
|
261
|
+
children: ["Progress ", /* @__PURE__ */ O("strong", { children: [Math.round(l), "%"] })]
|
|
262
|
+
}), /* @__PURE__ */ D("progress", {
|
|
263
263
|
"aria-labelledby": C,
|
|
264
264
|
max: 100,
|
|
265
265
|
value: l
|
|
266
266
|
})]
|
|
267
267
|
}),
|
|
268
|
-
/* @__PURE__ */
|
|
269
|
-
className:
|
|
268
|
+
/* @__PURE__ */ O("dl", {
|
|
269
|
+
className: j("metadata"),
|
|
270
270
|
children: [
|
|
271
|
-
/* @__PURE__ */
|
|
272
|
-
/* @__PURE__ */
|
|
273
|
-
p === void 0 ? null : /* @__PURE__ */
|
|
274
|
-
f === void 0 ? null : /* @__PURE__ */
|
|
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: v })] }),
|
|
273
|
+
p === void 0 ? null : /* @__PURE__ */ O("div", { children: [/* @__PURE__ */ D("dt", { children: "Sandbox" }), /* @__PURE__ */ D("dd", { children: /* @__PURE__ */ D("code", { children: p }) })] }),
|
|
274
|
+
f === void 0 ? null : /* @__PURE__ */ O("div", { children: [/* @__PURE__ */ D("dt", { children: "Revision" }), /* @__PURE__ */ D("dd", { children: /* @__PURE__ */ D("code", { children: f }) })] })
|
|
275
275
|
]
|
|
276
276
|
}),
|
|
277
|
-
/* @__PURE__ */
|
|
278
|
-
className:
|
|
277
|
+
/* @__PURE__ */ O("section", {
|
|
278
|
+
className: j("slot"),
|
|
279
279
|
"data-rly-agent-job-context": "",
|
|
280
|
-
children: [/* @__PURE__ */
|
|
280
|
+
children: [/* @__PURE__ */ D("h3", { children: "Exact context" }), r]
|
|
281
281
|
}),
|
|
282
|
-
/* @__PURE__ */
|
|
283
|
-
className:
|
|
282
|
+
/* @__PURE__ */ O("section", {
|
|
283
|
+
className: j("slot"),
|
|
284
284
|
"data-rly-agent-job-evidence": "",
|
|
285
|
-
children: [/* @__PURE__ */
|
|
285
|
+
children: [/* @__PURE__ */ D("h3", { children: "Evidence" }), i]
|
|
286
286
|
}),
|
|
287
|
-
c === void 0 ? null : /* @__PURE__ */
|
|
288
|
-
className: d(
|
|
287
|
+
c === void 0 ? null : /* @__PURE__ */ O("section", {
|
|
288
|
+
className: d(j("slot"), j("outcome")),
|
|
289
289
|
"data-rly-agent-job-outcome": m,
|
|
290
|
-
children: [/* @__PURE__ */
|
|
290
|
+
children: [/* @__PURE__ */ D("h3", { children: "Terminal outcome" }), c]
|
|
291
291
|
}),
|
|
292
|
-
S && s !== void 0 ? /* @__PURE__ */
|
|
293
|
-
className:
|
|
294
|
-
children: /* @__PURE__ */
|
|
292
|
+
S && s !== void 0 ? /* @__PURE__ */ D("footer", {
|
|
293
|
+
className: j("footer"),
|
|
294
|
+
children: /* @__PURE__ */ D(b, {
|
|
295
295
|
onClick: s,
|
|
296
296
|
size: "compact",
|
|
297
297
|
variant: "quiet",
|
|
@@ -300,7 +300,7 @@ var ue = {
|
|
|
300
300
|
}) : null
|
|
301
301
|
]
|
|
302
302
|
});
|
|
303
|
-
},
|
|
303
|
+
}, we = {
|
|
304
304
|
root: "rly_AgentProposal-module__root",
|
|
305
305
|
header: "rly_AgentProposal-module__header",
|
|
306
306
|
agentIdentity: "rly_AgentProposal-module__agentIdentity",
|
|
@@ -315,10 +315,10 @@ var ue = {
|
|
|
315
315
|
outcome: "rly_AgentProposal-module__outcome",
|
|
316
316
|
state: "rly_AgentProposal-module__state",
|
|
317
317
|
facts: "rly_AgentProposal-module__facts"
|
|
318
|
-
},
|
|
318
|
+
}, M = (e) => c(we, e), Te = (e) => {
|
|
319
319
|
o(e.id, "AgentProposal agent id"), o(e.name, "AgentProposal agent name"), o(e.role, "AgentProposal agent role"), o(e.avatarFallback, "AgentProposal agent avatarFallback"), e.avatarSrc !== void 0 && o(e.avatarSrc, "AgentProposal agent avatarSrc");
|
|
320
|
-
},
|
|
321
|
-
if (o(e.id, "AgentProposal id"),
|
|
320
|
+
}, Ee = (e) => {
|
|
321
|
+
if (o(e.id, "AgentProposal id"), Te(e.agent), o(e.capability, "AgentProposal capability"), o(e.context, "AgentProposal context"), o(e.expectedRevision, "AgentProposal expectedRevision"), o(e.impact, "AgentProposal impact"), o(e.target, "AgentProposal target"), e.evidence.length === 0) throw Error("AgentProposal evidence must contain at least one reference");
|
|
322
322
|
let t = /* @__PURE__ */ new Set();
|
|
323
323
|
for (let n of e.evidence) {
|
|
324
324
|
let e = o(n.id, "AgentProposal evidence id");
|
|
@@ -326,82 +326,82 @@ var ue = {
|
|
|
326
326
|
t.add(e), o(n.label, `AgentProposal evidence label for ${e}`), o(n.reference, `AgentProposal evidence reference for ${e}`);
|
|
327
327
|
}
|
|
328
328
|
return e;
|
|
329
|
-
},
|
|
330
|
-
let a =
|
|
331
|
-
return /* @__PURE__ */
|
|
329
|
+
}, De = ({ className: e, outcome: t, proposal: n, state: r, ...i }) => {
|
|
330
|
+
let a = Ee(n), o = `rly-agent-proposal-${E()}`, s = `rly-agent-proposal-reference-${E()}`;
|
|
331
|
+
return /* @__PURE__ */ O("section", {
|
|
332
332
|
...i,
|
|
333
333
|
"aria-labelledby": `${o} ${s}`,
|
|
334
|
-
className: d(
|
|
334
|
+
className: d(M("root"), e),
|
|
335
335
|
"data-rly-agent-proposal-id": a.id,
|
|
336
336
|
children: [
|
|
337
|
-
/* @__PURE__ */
|
|
338
|
-
className:
|
|
339
|
-
children: [/* @__PURE__ */
|
|
340
|
-
className:
|
|
341
|
-
children: [/* @__PURE__ */
|
|
337
|
+
/* @__PURE__ */ O("header", {
|
|
338
|
+
className: M("header"),
|
|
339
|
+
children: [/* @__PURE__ */ O("div", {
|
|
340
|
+
className: M("agentIdentity"),
|
|
341
|
+
children: [/* @__PURE__ */ D(re, {
|
|
342
342
|
decorative: !0,
|
|
343
343
|
fallback: a.agent.avatarFallback,
|
|
344
344
|
form: "rounded-square",
|
|
345
345
|
...a.agent.avatarSrc === void 0 ? {} : { src: a.agent.avatarSrc }
|
|
346
|
-
}), /* @__PURE__ */
|
|
347
|
-
className:
|
|
346
|
+
}), /* @__PURE__ */ O("div", {
|
|
347
|
+
className: M("agentText"),
|
|
348
348
|
children: [
|
|
349
|
-
/* @__PURE__ */
|
|
350
|
-
className:
|
|
349
|
+
/* @__PURE__ */ D("p", {
|
|
350
|
+
className: M("eyebrow"),
|
|
351
351
|
children: "Agent proposal"
|
|
352
352
|
}),
|
|
353
|
-
/* @__PURE__ */
|
|
354
|
-
className:
|
|
353
|
+
/* @__PURE__ */ D("h2", {
|
|
354
|
+
className: M("heading"),
|
|
355
355
|
id: o,
|
|
356
356
|
children: a.agent.name
|
|
357
357
|
}),
|
|
358
|
-
/* @__PURE__ */
|
|
359
|
-
className:
|
|
358
|
+
/* @__PURE__ */ D("p", {
|
|
359
|
+
className: M("agentRole"),
|
|
360
360
|
children: a.agent.role
|
|
361
361
|
}),
|
|
362
|
-
/* @__PURE__ */
|
|
363
|
-
className:
|
|
362
|
+
/* @__PURE__ */ D("code", {
|
|
363
|
+
className: M("proposalReference"),
|
|
364
364
|
id: s,
|
|
365
365
|
children: a.id
|
|
366
366
|
})
|
|
367
367
|
]
|
|
368
368
|
})]
|
|
369
|
-
}), /* @__PURE__ */
|
|
370
|
-
className:
|
|
369
|
+
}), /* @__PURE__ */ D("div", {
|
|
370
|
+
className: M("state"),
|
|
371
371
|
"data-rly-agent-proposal-slot": "state",
|
|
372
372
|
children: r
|
|
373
373
|
})]
|
|
374
374
|
}),
|
|
375
|
-
/* @__PURE__ */
|
|
376
|
-
className:
|
|
375
|
+
/* @__PURE__ */ D("p", {
|
|
376
|
+
className: M("boundary"),
|
|
377
377
|
children: "This is an agent proposal. It is not human authorization."
|
|
378
378
|
}),
|
|
379
|
-
/* @__PURE__ */
|
|
380
|
-
className:
|
|
381
|
-
children: [/* @__PURE__ */
|
|
379
|
+
/* @__PURE__ */ O("p", {
|
|
380
|
+
className: M("context"),
|
|
381
|
+
children: [/* @__PURE__ */ D("span", { children: "Context" }), a.context]
|
|
382
382
|
}),
|
|
383
|
-
/* @__PURE__ */
|
|
384
|
-
className:
|
|
383
|
+
/* @__PURE__ */ O("dl", {
|
|
384
|
+
className: M("facts"),
|
|
385
385
|
children: [
|
|
386
|
-
/* @__PURE__ */
|
|
387
|
-
/* @__PURE__ */
|
|
388
|
-
/* @__PURE__ */
|
|
389
|
-
/* @__PURE__ */
|
|
386
|
+
/* @__PURE__ */ O("div", { children: [/* @__PURE__ */ D("dt", { children: "Capability" }), /* @__PURE__ */ D("dd", { children: a.capability })] }),
|
|
387
|
+
/* @__PURE__ */ O("div", { children: [/* @__PURE__ */ D("dt", { children: "Target" }), /* @__PURE__ */ D("dd", { children: a.target })] }),
|
|
388
|
+
/* @__PURE__ */ O("div", { children: [/* @__PURE__ */ D("dt", { children: "Expected revision" }), /* @__PURE__ */ D("dd", { children: a.expectedRevision })] }),
|
|
389
|
+
/* @__PURE__ */ O("div", { children: [/* @__PURE__ */ D("dt", { children: "Impact" }), /* @__PURE__ */ D("dd", { children: a.impact })] })
|
|
390
390
|
]
|
|
391
391
|
}),
|
|
392
|
-
/* @__PURE__ */
|
|
393
|
-
className:
|
|
392
|
+
/* @__PURE__ */ O("div", {
|
|
393
|
+
className: M("evidence"),
|
|
394
394
|
"data-rly-agent-proposal-evidence": "",
|
|
395
|
-
children: [/* @__PURE__ */
|
|
395
|
+
children: [/* @__PURE__ */ D("h3", { children: "Evidence" }), /* @__PURE__ */ D("ul", { children: a.evidence.map((e) => /* @__PURE__ */ O("li", { children: [/* @__PURE__ */ D("span", { children: e.label }), /* @__PURE__ */ D("code", { children: e.reference })] }, e.id)) })]
|
|
396
396
|
}),
|
|
397
|
-
/* @__PURE__ */
|
|
398
|
-
className:
|
|
397
|
+
/* @__PURE__ */ O("div", {
|
|
398
|
+
className: M("outcome"),
|
|
399
399
|
"data-rly-agent-proposal-slot": "outcome",
|
|
400
|
-
children: [/* @__PURE__ */
|
|
400
|
+
children: [/* @__PURE__ */ D("h3", { children: "Outcome" }), t]
|
|
401
401
|
})
|
|
402
402
|
]
|
|
403
403
|
});
|
|
404
|
-
},
|
|
404
|
+
}, Oe = {
|
|
405
405
|
root: "rly_AgentThread-module__root",
|
|
406
406
|
header: "rly_AgentThread-module__header",
|
|
407
407
|
messageHead: "rly_AgentThread-module__messageHead",
|
|
@@ -422,128 +422,128 @@ var ue = {
|
|
|
422
422
|
content: "rly_AgentThread-module__content",
|
|
423
423
|
evidence: "rly_AgentThread-module__evidence",
|
|
424
424
|
visuallyHidden: "rly_AgentThread-module__visuallyHidden"
|
|
425
|
-
},
|
|
425
|
+
}, N = (e) => c(Oe, e), ke = (e, t) => {
|
|
426
426
|
if (e == null || i(e)) throw Error(`${t} must contain renderable content`);
|
|
427
427
|
s(e) && o(e, t);
|
|
428
|
-
},
|
|
428
|
+
}, Ae = (e) => {
|
|
429
429
|
let t = e.trim().split(/\s+/u), n = Array.from(t[0] ?? "")[0] ?? "", r = Array.from(t[t.length - 1] ?? "")[0] ?? "";
|
|
430
430
|
return o(`${n}${t.length > 1 ? r : ""}`, "AgentThread actor fallback");
|
|
431
|
-
},
|
|
431
|
+
}, je = (e) => {
|
|
432
432
|
if (e.kind === "human") {
|
|
433
433
|
o(e.person.id, "AgentThread human id"), o(e.person.name, "AgentThread human name"), o(e.person.role, "AgentThread human role"), e.person.avatarFallback !== void 0 && o(e.person.avatarFallback, "AgentThread human avatarFallback"), e.person.avatarSrc !== void 0 && o(e.person.avatarSrc, "AgentThread human avatarSrc");
|
|
434
434
|
return;
|
|
435
435
|
}
|
|
436
436
|
o(e.id, `AgentThread ${e.kind} id`), o(e.name, `AgentThread ${e.kind} name`), e.kind === "agent" && (o(e.role, "AgentThread agent role"), e.avatarFallback !== void 0 && o(e.avatarFallback, "AgentThread agent avatarFallback"));
|
|
437
|
-
},
|
|
438
|
-
let t = e.kind === "human" ? e.person.name : e.name, n = e.kind === "human" ? e.person.role : e.kind === "agent" ? e.role : "System event", r = e.kind === "human" ? e.person.avatarFallback ??
|
|
439
|
-
return /* @__PURE__ */
|
|
440
|
-
className: d(
|
|
437
|
+
}, Me = (e) => {
|
|
438
|
+
let t = e.kind === "human" ? e.person.name : e.name, n = e.kind === "human" ? e.person.role : e.kind === "agent" ? e.role : "System event", r = e.kind === "human" ? e.person.avatarFallback ?? Ae(t) : e.kind === "agent" ? e.avatarFallback ?? Ae(t) : "·", i = e.kind === "human" ? e.person.avatarSrc : void 0;
|
|
439
|
+
return /* @__PURE__ */ O("div", {
|
|
440
|
+
className: d(N("actor"), N(e.kind)),
|
|
441
441
|
"data-rly-agent-thread-actor": e.kind,
|
|
442
|
-
children: [/* @__PURE__ */
|
|
443
|
-
className:
|
|
442
|
+
children: [/* @__PURE__ */ D(re, {
|
|
443
|
+
className: N("avatar"),
|
|
444
444
|
"data-rly-agent-thread-avatar-form": e.kind === "human" ? "circle" : "rounded-square",
|
|
445
445
|
decorative: !0,
|
|
446
446
|
fallback: r,
|
|
447
447
|
form: e.kind === "human" ? "circle" : "rounded-square",
|
|
448
448
|
size: "default",
|
|
449
449
|
...i === void 0 ? {} : { src: i }
|
|
450
|
-
}), /* @__PURE__ */
|
|
451
|
-
className:
|
|
452
|
-
children: [/* @__PURE__ */
|
|
450
|
+
}), /* @__PURE__ */ O("span", {
|
|
451
|
+
className: N("actorText"),
|
|
452
|
+
children: [/* @__PURE__ */ D("strong", { children: t }), /* @__PURE__ */ D("span", { children: n })]
|
|
453
453
|
})]
|
|
454
454
|
});
|
|
455
|
-
},
|
|
455
|
+
}, Ne = ({ announcement: e, className: t, composer: n, context: r, emptyLabel: i = "No messages yet.", heading: a, messages: s, ...c }) => {
|
|
456
456
|
let l = o(a, "AgentThread heading"), u = o(i, "AgentThread emptyLabel");
|
|
457
|
-
|
|
457
|
+
ke(r, "AgentThread context"), ke(n, "AgentThread composer"), e !== void 0 && o(e, "AgentThread announcement");
|
|
458
458
|
let f = /* @__PURE__ */ new Set();
|
|
459
459
|
for (let e of s) {
|
|
460
460
|
let t = o(e.id, "AgentThread message id");
|
|
461
461
|
if (f.has(t)) throw Error(`AgentThread message ids must be unique: ${t}`);
|
|
462
|
-
f.add(t),
|
|
462
|
+
f.add(t), je(e.actor), ke(e.content, `AgentThread message content for ${t}`), o(e.dateTime, `AgentThread message dateTime for ${t}`), o(e.time, `AgentThread message time for ${t}`);
|
|
463
463
|
}
|
|
464
|
-
return /* @__PURE__ */
|
|
464
|
+
return /* @__PURE__ */ O("section", {
|
|
465
465
|
...c,
|
|
466
|
-
className: d(
|
|
466
|
+
className: d(N("root"), t),
|
|
467
467
|
"data-rly-agent-thread": "",
|
|
468
468
|
children: [
|
|
469
|
-
/* @__PURE__ */
|
|
470
|
-
className:
|
|
471
|
-
children: [/* @__PURE__ */
|
|
469
|
+
/* @__PURE__ */ O("header", {
|
|
470
|
+
className: N("header"),
|
|
471
|
+
children: [/* @__PURE__ */ D("span", {
|
|
472
472
|
"aria-hidden": "true",
|
|
473
|
-
className:
|
|
473
|
+
className: N("agentGlyph"),
|
|
474
474
|
children: "AI"
|
|
475
|
-
}), /* @__PURE__ */
|
|
475
|
+
}), /* @__PURE__ */ D("h2", { children: l })]
|
|
476
476
|
}),
|
|
477
|
-
/* @__PURE__ */
|
|
478
|
-
className:
|
|
477
|
+
/* @__PURE__ */ O("div", {
|
|
478
|
+
className: N("context"),
|
|
479
479
|
"data-rly-agent-thread-context": "",
|
|
480
|
-
children: [/* @__PURE__ */
|
|
481
|
-
className:
|
|
480
|
+
children: [/* @__PURE__ */ D("span", {
|
|
481
|
+
className: N("conceptLabel"),
|
|
482
482
|
children: "Exact context"
|
|
483
483
|
}), r]
|
|
484
484
|
}),
|
|
485
|
-
s.length === 0 ? /* @__PURE__ */
|
|
486
|
-
className:
|
|
485
|
+
s.length === 0 ? /* @__PURE__ */ D("p", {
|
|
486
|
+
className: N("empty"),
|
|
487
487
|
children: u
|
|
488
|
-
}) : /* @__PURE__ */
|
|
488
|
+
}) : /* @__PURE__ */ D("ol", {
|
|
489
489
|
"aria-label": `${l} messages`,
|
|
490
|
-
className:
|
|
491
|
-
children: s.map((e) => /* @__PURE__ */
|
|
492
|
-
className:
|
|
490
|
+
className: N("messages"),
|
|
491
|
+
children: s.map((e) => /* @__PURE__ */ O("li", {
|
|
492
|
+
className: N("message"),
|
|
493
493
|
"data-rly-agent-thread-message": e.id,
|
|
494
494
|
children: [
|
|
495
|
-
/* @__PURE__ */
|
|
496
|
-
className:
|
|
497
|
-
children: [
|
|
495
|
+
/* @__PURE__ */ O("div", {
|
|
496
|
+
className: N("messageHead"),
|
|
497
|
+
children: [Me(e.actor), /* @__PURE__ */ D("time", {
|
|
498
498
|
dateTime: e.dateTime,
|
|
499
499
|
children: e.time
|
|
500
500
|
})]
|
|
501
501
|
}),
|
|
502
|
-
/* @__PURE__ */
|
|
503
|
-
className:
|
|
502
|
+
/* @__PURE__ */ D("div", {
|
|
503
|
+
className: N("content"),
|
|
504
504
|
children: e.content
|
|
505
505
|
}),
|
|
506
|
-
e.evidence === void 0 ? null : /* @__PURE__ */
|
|
507
|
-
className:
|
|
506
|
+
e.evidence === void 0 ? null : /* @__PURE__ */ D("div", {
|
|
507
|
+
className: N("evidence"),
|
|
508
508
|
"data-rly-agent-thread-evidence": "",
|
|
509
509
|
children: e.evidence
|
|
510
510
|
}),
|
|
511
|
-
e.actions === void 0 ? null : /* @__PURE__ */
|
|
512
|
-
className:
|
|
511
|
+
e.actions === void 0 ? null : /* @__PURE__ */ D("div", {
|
|
512
|
+
className: N("actions"),
|
|
513
513
|
"data-rly-agent-thread-actions": "",
|
|
514
514
|
children: e.actions
|
|
515
515
|
})
|
|
516
516
|
]
|
|
517
517
|
}, e.id))
|
|
518
518
|
}),
|
|
519
|
-
/* @__PURE__ */
|
|
519
|
+
/* @__PURE__ */ D("p", {
|
|
520
520
|
"aria-atomic": "true",
|
|
521
521
|
"aria-live": "polite",
|
|
522
|
-
className:
|
|
522
|
+
className: N("visuallyHidden"),
|
|
523
523
|
children: e
|
|
524
524
|
}),
|
|
525
|
-
/* @__PURE__ */
|
|
526
|
-
className:
|
|
525
|
+
/* @__PURE__ */ D("div", {
|
|
526
|
+
className: N("composer"),
|
|
527
527
|
"data-rly-agent-thread-composer": "",
|
|
528
528
|
children: n
|
|
529
529
|
})
|
|
530
530
|
]
|
|
531
531
|
});
|
|
532
|
-
},
|
|
532
|
+
}, Pe = {
|
|
533
533
|
root: "rly_Person-module__root",
|
|
534
534
|
compact: "rly_Person-module__compact",
|
|
535
535
|
defaultSize: "rly_Person-module__defaultSize",
|
|
536
536
|
identity: "rly_Person-module__identity",
|
|
537
537
|
name: "rly_Person-module__name",
|
|
538
538
|
role: "rly_Person-module__role"
|
|
539
|
-
},
|
|
539
|
+
}, Fe = (e) => c(Pe, e), Ie = l({ size: {
|
|
540
540
|
compact: {
|
|
541
|
-
className:
|
|
541
|
+
className: Fe("compact"),
|
|
542
542
|
purpose: "Dense identity row with complete attribution",
|
|
543
543
|
tokens: ["space-24", "type-meta"]
|
|
544
544
|
},
|
|
545
545
|
default: {
|
|
546
|
-
className:
|
|
546
|
+
className: Fe("defaultSize"),
|
|
547
547
|
purpose: "Standard identity row with complete attribution",
|
|
548
548
|
tokens: [
|
|
549
549
|
"space-32",
|
|
@@ -551,87 +551,87 @@ var ue = {
|
|
|
551
551
|
"type-meta"
|
|
552
552
|
]
|
|
553
553
|
}
|
|
554
|
-
} }),
|
|
554
|
+
} }), Le = l({ size: "default" }), Re = (e) => {
|
|
555
555
|
let t = e.trim().split(/\s+/u), n = t[0] ?? "", r = t[t.length - 1] ?? n, i = Array.from(n), a = i[0] ?? "", s = t.length > 1 ? Array.from(r)[0] ?? "" : i[1] ?? "";
|
|
556
556
|
return o(`${a}${s}`, "Person avatar fallback");
|
|
557
|
-
},
|
|
558
|
-
let i =
|
|
559
|
-
return /* @__PURE__ */
|
|
557
|
+
}, ze = (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 }) => {
|
|
558
|
+
let i = ze(t), a = i.avatarFallback ?? Re(i.name);
|
|
559
|
+
return /* @__PURE__ */ O("div", {
|
|
560
560
|
...r,
|
|
561
|
-
className: d(
|
|
561
|
+
className: d(Fe("root"), Ie.size[n].className, e),
|
|
562
562
|
"data-rly-person-size": n,
|
|
563
|
-
children: [/* @__PURE__ */
|
|
563
|
+
children: [/* @__PURE__ */ D(re, {
|
|
564
564
|
decorative: !0,
|
|
565
565
|
fallback: a,
|
|
566
566
|
size: n === "compact" ? "small" : "default",
|
|
567
567
|
...i.avatarSrc === void 0 ? {} : { src: i.avatarSrc }
|
|
568
|
-
}), /* @__PURE__ */
|
|
569
|
-
className:
|
|
570
|
-
children: [/* @__PURE__ */
|
|
571
|
-
className:
|
|
568
|
+
}), /* @__PURE__ */ O("span", {
|
|
569
|
+
className: Fe("identity"),
|
|
570
|
+
children: [/* @__PURE__ */ D("span", {
|
|
571
|
+
className: Fe("name"),
|
|
572
572
|
children: i.name
|
|
573
|
-
}), /* @__PURE__ */
|
|
574
|
-
className:
|
|
573
|
+
}), /* @__PURE__ */ D("span", {
|
|
574
|
+
className: Fe("role"),
|
|
575
575
|
children: i.role
|
|
576
576
|
})]
|
|
577
577
|
})]
|
|
578
578
|
});
|
|
579
|
-
},
|
|
579
|
+
}, Be = {
|
|
580
580
|
root: "rly_PeopleStrip-module__root",
|
|
581
581
|
compact: "rly_PeopleStrip-module__compact",
|
|
582
582
|
defaultSize: "rly_PeopleStrip-module__defaultSize",
|
|
583
583
|
personItem: "rly_PeopleStrip-module__personItem",
|
|
584
584
|
controlItem: "rly_PeopleStrip-module__controlItem",
|
|
585
585
|
overflow: "rly_PeopleStrip-module__overflow"
|
|
586
|
-
},
|
|
586
|
+
}, Ve = (e) => c(Be, e), He = l({ size: {
|
|
587
587
|
compact: {
|
|
588
|
-
className:
|
|
588
|
+
className: Ve("compact"),
|
|
589
589
|
purpose: "Dense attributed people list for narrow surfaces",
|
|
590
590
|
tokens: ["space-8", "space-40"]
|
|
591
591
|
},
|
|
592
592
|
default: {
|
|
593
|
-
className:
|
|
593
|
+
className: Ve("defaultSize"),
|
|
594
594
|
purpose: "Standard attributed people list",
|
|
595
595
|
tokens: ["space-12", "space-40"]
|
|
596
596
|
}
|
|
597
|
-
} }),
|
|
597
|
+
} }), Ue = l({ size: "default" }), We = (e) => {
|
|
598
598
|
if (!Number.isInteger(e) || e < 1) throw Error("PeopleStrip limit must be a positive integer");
|
|
599
599
|
return e;
|
|
600
|
-
},
|
|
600
|
+
}, Ge = (e) => {
|
|
601
601
|
let t = /* @__PURE__ */ new Set();
|
|
602
602
|
for (let n of e) {
|
|
603
603
|
let e = o(n.id, "PeopleStrip person id");
|
|
604
604
|
if (o(n.name, `PeopleStrip name for ${e}`), o(n.role, `PeopleStrip role for ${e}`), t.has(e)) throw Error(`PeopleStrip person ids must be unique: ${e}`);
|
|
605
605
|
t.add(e);
|
|
606
606
|
}
|
|
607
|
-
},
|
|
608
|
-
let l = o(e, "PeopleStrip aria-label"), u =
|
|
609
|
-
|
|
607
|
+
}, Ke = ({ "aria-label": e, className: t, expanded: n, limit: r = 3, onExpandedChange: i, people: a, size: s = "default", ...c }) => {
|
|
608
|
+
let l = o(e, "PeopleStrip aria-label"), u = We(r);
|
|
609
|
+
Ge(a);
|
|
610
610
|
let f = Math.max(a.length - u, 0), p = n ? a : a.slice(0, u);
|
|
611
|
-
return /* @__PURE__ */
|
|
611
|
+
return /* @__PURE__ */ O("ul", {
|
|
612
612
|
...c,
|
|
613
613
|
"aria-label": l,
|
|
614
|
-
className: d(
|
|
614
|
+
className: d(Ve("root"), He.size[s].className, t),
|
|
615
615
|
"data-rly-people-strip-size": s,
|
|
616
|
-
children: [p.map((e) => /* @__PURE__ */
|
|
617
|
-
className:
|
|
618
|
-
children: /* @__PURE__ */
|
|
616
|
+
children: [p.map((e) => /* @__PURE__ */ D("li", {
|
|
617
|
+
className: Ve("personItem"),
|
|
618
|
+
children: /* @__PURE__ */ D(P, {
|
|
619
619
|
person: e,
|
|
620
620
|
size: s
|
|
621
621
|
})
|
|
622
|
-
}, e.id)), f === 0 ? null : /* @__PURE__ */
|
|
623
|
-
className:
|
|
624
|
-
children: /* @__PURE__ */
|
|
622
|
+
}, e.id)), f === 0 ? null : /* @__PURE__ */ D("li", {
|
|
623
|
+
className: Ve("controlItem"),
|
|
624
|
+
children: /* @__PURE__ */ D("button", {
|
|
625
625
|
"aria-expanded": n,
|
|
626
626
|
"aria-label": n ? "Show fewer people" : `Show ${f} more people`,
|
|
627
|
-
className:
|
|
627
|
+
className: Ve("overflow"),
|
|
628
628
|
onClick: () => i(!n),
|
|
629
629
|
type: "button",
|
|
630
630
|
children: n ? "Show fewer" : `+${f} people`
|
|
631
631
|
})
|
|
632
632
|
})]
|
|
633
633
|
});
|
|
634
|
-
},
|
|
634
|
+
}, qe = {
|
|
635
635
|
root: "rly_CollaboratorGroup-module__root",
|
|
636
636
|
compact: "rly_CollaboratorGroup-module__compact",
|
|
637
637
|
defaultSize: "rly_CollaboratorGroup-module__defaultSize",
|
|
@@ -640,19 +640,19 @@ var ue = {
|
|
|
640
640
|
lane: "rly_CollaboratorGroup-module__lane",
|
|
641
641
|
laneHeading: "rly_CollaboratorGroup-module__laneHeading",
|
|
642
642
|
empty: "rly_CollaboratorGroup-module__empty"
|
|
643
|
-
},
|
|
643
|
+
}, Je = (e) => c(qe, e), Ye = l({ size: {
|
|
644
644
|
compact: {
|
|
645
|
-
className:
|
|
645
|
+
className: Je("compact"),
|
|
646
646
|
purpose: "Narrow entity attribution with explicit role lanes",
|
|
647
647
|
tokens: ["space-12", "type-label"]
|
|
648
648
|
},
|
|
649
649
|
default: {
|
|
650
|
-
className:
|
|
650
|
+
className: Je("defaultSize"),
|
|
651
651
|
purpose: "Standard entity attribution with explicit role lanes",
|
|
652
652
|
tokens: ["space-20", "type-card-title"]
|
|
653
653
|
}
|
|
654
|
-
} }),
|
|
655
|
-
let h = o(a, "CollaboratorGroup heading"), g = o(r, "CollaboratorGroup emptyLabel"), _ = `rly-collaborators-${
|
|
654
|
+
} }), Xe = l({ size: "default" }), Ze = ({ approvers: e = [], authors: t = [], className: n, emptyLabel: r = "No collaborators assigned.", expandedCategories: i, heading: a, limit: s = 3, onCategoryExpandedChange: c, operators: l = [], owners: u = [], reviewers: f = [], size: p = "default", ...m }) => {
|
|
655
|
+
let h = o(a, "CollaboratorGroup heading"), g = o(r, "CollaboratorGroup emptyLabel"), _ = `rly-collaborators-${E()}`, v = new Set(i), y = [
|
|
656
656
|
{
|
|
657
657
|
category: "authors",
|
|
658
658
|
label: "Authors",
|
|
@@ -679,26 +679,26 @@ var ue = {
|
|
|
679
679
|
people: e
|
|
680
680
|
}
|
|
681
681
|
].filter((e) => e.people.length > 0);
|
|
682
|
-
return /* @__PURE__ */
|
|
682
|
+
return /* @__PURE__ */ O("section", {
|
|
683
683
|
...m,
|
|
684
684
|
"aria-labelledby": _,
|
|
685
|
-
className: d(
|
|
685
|
+
className: d(Je("root"), Ye.size[p].className, n),
|
|
686
686
|
"data-rly-collaborator-group-size": p,
|
|
687
|
-
children: [/* @__PURE__ */
|
|
688
|
-
className:
|
|
687
|
+
children: [/* @__PURE__ */ D("h2", {
|
|
688
|
+
className: Je("heading"),
|
|
689
689
|
id: _,
|
|
690
690
|
children: h
|
|
691
|
-
}), y.length === 0 ? /* @__PURE__ */
|
|
692
|
-
className:
|
|
691
|
+
}), y.length === 0 ? /* @__PURE__ */ D("p", {
|
|
692
|
+
className: Je("empty"),
|
|
693
693
|
children: g
|
|
694
|
-
}) : /* @__PURE__ */
|
|
695
|
-
className:
|
|
696
|
-
children: y.map((e) => /* @__PURE__ */
|
|
697
|
-
className:
|
|
698
|
-
children: [/* @__PURE__ */
|
|
699
|
-
className:
|
|
694
|
+
}) : /* @__PURE__ */ D("div", {
|
|
695
|
+
className: Je("lanes"),
|
|
696
|
+
children: y.map((e) => /* @__PURE__ */ O("section", {
|
|
697
|
+
className: Je("lane"),
|
|
698
|
+
children: [/* @__PURE__ */ D("h3", {
|
|
699
|
+
className: Je("laneHeading"),
|
|
700
700
|
children: e.label
|
|
701
|
-
}), /* @__PURE__ */
|
|
701
|
+
}), /* @__PURE__ */ D(Ke, {
|
|
702
702
|
"aria-label": `${h}: ${e.label}`,
|
|
703
703
|
expanded: v.has(e.category),
|
|
704
704
|
limit: s,
|
|
@@ -709,7 +709,81 @@ var ue = {
|
|
|
709
709
|
}, e.category))
|
|
710
710
|
})]
|
|
711
711
|
});
|
|
712
|
-
},
|
|
712
|
+
}, Qe = {
|
|
713
|
+
root: "rly_DecisionBar-module__root",
|
|
714
|
+
inline: "rly_DecisionBar-module__inline",
|
|
715
|
+
sticky: "rly_DecisionBar-module__sticky",
|
|
716
|
+
target: "rly_DecisionBar-module__target",
|
|
717
|
+
clock: "rly_DecisionBar-module__clock",
|
|
718
|
+
actions: "rly_DecisionBar-module__actions",
|
|
719
|
+
status: "rly_DecisionBar-module__status",
|
|
720
|
+
reason: "rly_DecisionBar-module__reason",
|
|
721
|
+
note: "rly_DecisionBar-module__note"
|
|
722
|
+
}, F = (e) => c(Qe, e), $e = l({ placement: {
|
|
723
|
+
inline: {
|
|
724
|
+
className: F("inline"),
|
|
725
|
+
purpose: "In the flow of the detail it decides",
|
|
726
|
+
tokens: ["color-text-1", "color-text-2"]
|
|
727
|
+
},
|
|
728
|
+
sticky: {
|
|
729
|
+
className: F("sticky"),
|
|
730
|
+
purpose: "Pinned to the bottom of a phone viewport while its target is open, at thumb reach",
|
|
731
|
+
tokens: ["color-canvas", "color-border-1"]
|
|
732
|
+
}
|
|
733
|
+
} }), et = l({ placement: "inline" }), tt = ({ approveLabel: e = "Approve", className: t, clock: n, note: r, onApprove: i, onReject: a, placement: s = et.placement, rejectLabel: c = "Reject", state: l, status: u, target: f, ...p }) => {
|
|
734
|
+
let m = o(f, "DecisionBar target"), h = E(), g = `rly-decision-bar-reason-${h}`, _ = `rly-decision-bar-status-${h}`, v = l._tag !== "ready", y = l._tag === "off" ? l.reason : void 0, x = l._tag === "sending" ? `${l.action === "approve" ? e : c} sent; waiting for the server's answer.` : u ?? "", S = y === void 0 ? l._tag === "sending" ? _ : void 0 : g, C = (e) => () => {
|
|
735
|
+
v || e();
|
|
736
|
+
};
|
|
737
|
+
return /* @__PURE__ */ O("div", {
|
|
738
|
+
...p,
|
|
739
|
+
"aria-busy": l._tag === "sending" ? "true" : void 0,
|
|
740
|
+
className: d(F("root"), $e.placement[s].className, t),
|
|
741
|
+
"data-rly-decision-bar": "",
|
|
742
|
+
"data-state": l._tag,
|
|
743
|
+
children: [
|
|
744
|
+
/* @__PURE__ */ O("p", {
|
|
745
|
+
className: F("target"),
|
|
746
|
+
children: [m, n === void 0 ? null : /* @__PURE__ */ O(de, { children: [", ", /* @__PURE__ */ D("span", {
|
|
747
|
+
className: F("clock"),
|
|
748
|
+
children: n
|
|
749
|
+
})] })]
|
|
750
|
+
}),
|
|
751
|
+
/* @__PURE__ */ O("div", {
|
|
752
|
+
className: F("actions"),
|
|
753
|
+
children: [/* @__PURE__ */ D(b, {
|
|
754
|
+
"aria-describedby": S,
|
|
755
|
+
"aria-disabled": v ? !0 : void 0,
|
|
756
|
+
"aria-label": `${e}: ${m}`,
|
|
757
|
+
onClick: C(i),
|
|
758
|
+
variant: v ? "secondary" : "primary",
|
|
759
|
+
children: e
|
|
760
|
+
}), /* @__PURE__ */ D(b, {
|
|
761
|
+
"aria-describedby": S,
|
|
762
|
+
"aria-disabled": v ? !0 : void 0,
|
|
763
|
+
"aria-label": `${c}: ${m}`,
|
|
764
|
+
onClick: C(a),
|
|
765
|
+
variant: "secondary",
|
|
766
|
+
children: c
|
|
767
|
+
})]
|
|
768
|
+
}),
|
|
769
|
+
y === void 0 ? null : /* @__PURE__ */ D("p", {
|
|
770
|
+
className: F("reason"),
|
|
771
|
+
id: g,
|
|
772
|
+
children: y
|
|
773
|
+
}),
|
|
774
|
+
/* @__PURE__ */ D("p", {
|
|
775
|
+
className: F("status"),
|
|
776
|
+
id: _,
|
|
777
|
+
role: "status",
|
|
778
|
+
children: x
|
|
779
|
+
}),
|
|
780
|
+
r === void 0 ? null : /* @__PURE__ */ D("p", {
|
|
781
|
+
className: F("note"),
|
|
782
|
+
children: r
|
|
783
|
+
})
|
|
784
|
+
]
|
|
785
|
+
});
|
|
786
|
+
}, nt = {
|
|
713
787
|
root: "rly_FreshnessStamp-module__root",
|
|
714
788
|
stateWord: "rly_FreshnessStamp-module__stateWord",
|
|
715
789
|
separator: "rly_FreshnessStamp-module__separator",
|
|
@@ -721,82 +795,82 @@ var ue = {
|
|
|
721
795
|
missing: "rly_FreshnessStamp-module__missing",
|
|
722
796
|
stale: "rly_FreshnessStamp-module__stale",
|
|
723
797
|
unavailable: "rly_FreshnessStamp-module__unavailable"
|
|
724
|
-
},
|
|
798
|
+
}, I = (e) => c(nt, e), rt = l({
|
|
725
799
|
state: {
|
|
726
800
|
current: {
|
|
727
|
-
className:
|
|
801
|
+
className: I("current"),
|
|
728
802
|
purpose: "Current source observation",
|
|
729
803
|
tokens: ["color-success-ink", "color-success-tint"]
|
|
730
804
|
},
|
|
731
805
|
cached: {
|
|
732
|
-
className:
|
|
806
|
+
className: I("cached"),
|
|
733
807
|
purpose: "Valid cached source observation",
|
|
734
808
|
tokens: ["color-text-2", "color-surface-2"]
|
|
735
809
|
},
|
|
736
810
|
stale: {
|
|
737
|
-
className:
|
|
811
|
+
className: I("stale"),
|
|
738
812
|
purpose: "Source observation beyond its supplied freshness threshold",
|
|
739
813
|
tokens: ["color-held-ink", "color-held-tint"]
|
|
740
814
|
},
|
|
741
815
|
missing: {
|
|
742
|
-
className:
|
|
816
|
+
className: I("missing"),
|
|
743
817
|
purpose: "Provider authoritatively reported no object",
|
|
744
818
|
tokens: ["color-text-2", "color-surface-2"]
|
|
745
819
|
},
|
|
746
820
|
unavailable: {
|
|
747
|
-
className:
|
|
821
|
+
className: I("unavailable"),
|
|
748
822
|
purpose: "No valid source observation is available",
|
|
749
823
|
tokens: ["color-blocked-ink", "color-blocked-tint"]
|
|
750
824
|
}
|
|
751
825
|
},
|
|
752
826
|
size: {
|
|
753
827
|
compact: {
|
|
754
|
-
className:
|
|
828
|
+
className: I("compact"),
|
|
755
829
|
purpose: "Dense freshness metadata",
|
|
756
830
|
tokens: ["type-meta"]
|
|
757
831
|
},
|
|
758
832
|
default: {
|
|
759
|
-
className:
|
|
833
|
+
className: I("defaultSize"),
|
|
760
834
|
purpose: "Standard freshness metadata",
|
|
761
835
|
tokens: ["type-label", "type-meta"]
|
|
762
836
|
}
|
|
763
837
|
}
|
|
764
|
-
}),
|
|
838
|
+
}), it = l({ size: "default" }), at = {
|
|
765
839
|
current: "Current",
|
|
766
840
|
cached: "Cached",
|
|
767
841
|
stale: "Stale",
|
|
768
842
|
missing: "Missing",
|
|
769
843
|
unavailable: "Unavailable"
|
|
770
|
-
},
|
|
844
|
+
}, ot = {
|
|
771
845
|
current: "check",
|
|
772
846
|
cached: "clock",
|
|
773
847
|
stale: "clock",
|
|
774
848
|
missing: "minus",
|
|
775
849
|
unavailable: "alert"
|
|
776
|
-
},
|
|
850
|
+
}, L = ({ className: t, dateTime: n, size: r = "default", state: i, time: a, ...s }) => {
|
|
777
851
|
let c = a === void 0 ? void 0 : o(a, "FreshnessStamp time"), l = n === void 0 ? void 0 : o(n, "FreshnessStamp dateTime");
|
|
778
|
-
return /* @__PURE__ */
|
|
852
|
+
return /* @__PURE__ */ O("span", {
|
|
779
853
|
...s,
|
|
780
|
-
className: d(
|
|
854
|
+
className: d(I("root"), rt.state[i].className, rt.size[r].className, t),
|
|
781
855
|
"data-rly-freshness-state": i,
|
|
782
|
-
children: [/* @__PURE__ */
|
|
783
|
-
className:
|
|
784
|
-
children: [/* @__PURE__ */
|
|
856
|
+
children: [/* @__PURE__ */ O("span", {
|
|
857
|
+
className: I("stateWord"),
|
|
858
|
+
children: [/* @__PURE__ */ D(e, {
|
|
785
859
|
decorative: !0,
|
|
786
|
-
name:
|
|
860
|
+
name: ot[i],
|
|
787
861
|
size: "small"
|
|
788
|
-
}), /* @__PURE__ */
|
|
789
|
-
}), c === void 0 || l === void 0 ? null : /* @__PURE__ */
|
|
862
|
+
}), /* @__PURE__ */ D("span", { children: at[i] })]
|
|
863
|
+
}), c === void 0 || l === void 0 ? null : /* @__PURE__ */ O(de, { children: [/* @__PURE__ */ D("span", {
|
|
790
864
|
"aria-hidden": "true",
|
|
791
|
-
className:
|
|
865
|
+
className: I("separator"),
|
|
792
866
|
children: "·"
|
|
793
|
-
}), /* @__PURE__ */
|
|
794
|
-
className:
|
|
867
|
+
}), /* @__PURE__ */ D("time", {
|
|
868
|
+
className: I("time"),
|
|
795
869
|
dateTime: l,
|
|
796
870
|
children: c
|
|
797
871
|
})] })]
|
|
798
872
|
});
|
|
799
|
-
},
|
|
873
|
+
}, st = {
|
|
800
874
|
root: "rly_ServiceMark-module__root",
|
|
801
875
|
rail: "rly_ServiceMark-module__rail",
|
|
802
876
|
glyph: "rly_ServiceMark-module__glyph",
|
|
@@ -808,79 +882,79 @@ var ue = {
|
|
|
808
882
|
jira: "rly_ServiceMark-module__jira",
|
|
809
883
|
confluence: "rly_ServiceMark-module__confluence",
|
|
810
884
|
clockify: "rly_ServiceMark-module__clockify"
|
|
811
|
-
},
|
|
885
|
+
}, R = (e) => c(st, e), ct = l({
|
|
812
886
|
service: {
|
|
813
887
|
codecommit: {
|
|
814
|
-
className:
|
|
888
|
+
className: R("codecommit"),
|
|
815
889
|
purpose: "CodeCommit provenance",
|
|
816
890
|
tokens: ["color-service-codecommit"]
|
|
817
891
|
},
|
|
818
892
|
codepipeline: {
|
|
819
|
-
className:
|
|
893
|
+
className: R("codepipeline"),
|
|
820
894
|
purpose: "CodePipeline provenance",
|
|
821
895
|
tokens: ["color-service-codepipeline"]
|
|
822
896
|
},
|
|
823
897
|
jira: {
|
|
824
|
-
className:
|
|
898
|
+
className: R("jira"),
|
|
825
899
|
purpose: "Jira provenance",
|
|
826
900
|
tokens: ["color-service-jira"]
|
|
827
901
|
},
|
|
828
902
|
confluence: {
|
|
829
|
-
className:
|
|
903
|
+
className: R("confluence"),
|
|
830
904
|
purpose: "Confluence provenance",
|
|
831
905
|
tokens: ["color-service-confluence"]
|
|
832
906
|
},
|
|
833
907
|
clockify: {
|
|
834
|
-
className:
|
|
908
|
+
className: R("clockify"),
|
|
835
909
|
purpose: "Clockify provenance",
|
|
836
910
|
tokens: ["color-service-clockify"]
|
|
837
911
|
}
|
|
838
912
|
},
|
|
839
913
|
size: {
|
|
840
914
|
compact: {
|
|
841
|
-
className:
|
|
915
|
+
className: R("compact"),
|
|
842
916
|
purpose: "Dense provenance metadata",
|
|
843
917
|
tokens: ["space-24", "type-meta"]
|
|
844
918
|
},
|
|
845
919
|
default: {
|
|
846
|
-
className:
|
|
920
|
+
className: R("defaultSize"),
|
|
847
921
|
purpose: "Standard provenance identity",
|
|
848
922
|
tokens: ["space-32", "type-label"]
|
|
849
923
|
}
|
|
850
924
|
}
|
|
851
|
-
}),
|
|
925
|
+
}), lt = l({ size: "default" }), ut = {
|
|
852
926
|
codecommit: "CodeCommit",
|
|
853
927
|
codepipeline: "CodePipeline",
|
|
854
928
|
jira: "Jira",
|
|
855
929
|
confluence: "Confluence",
|
|
856
930
|
clockify: "Clockify"
|
|
857
|
-
},
|
|
858
|
-
codecommit: () => /* @__PURE__ */
|
|
931
|
+
}, dt = {
|
|
932
|
+
codecommit: () => /* @__PURE__ */ O("svg", {
|
|
859
933
|
"aria-hidden": "true",
|
|
860
|
-
className:
|
|
934
|
+
className: R("glyph"),
|
|
861
935
|
focusable: "false",
|
|
862
936
|
viewBox: "0 0 24 24",
|
|
863
937
|
children: [
|
|
864
|
-
/* @__PURE__ */
|
|
938
|
+
/* @__PURE__ */ D("path", {
|
|
865
939
|
d: "M6 5.5h7.5a3 3 0 0 1 3 3v7",
|
|
866
940
|
fill: "none",
|
|
867
941
|
stroke: "currentColor",
|
|
868
942
|
strokeLinecap: "round",
|
|
869
943
|
strokeWidth: "1.8"
|
|
870
944
|
}),
|
|
871
|
-
/* @__PURE__ */
|
|
945
|
+
/* @__PURE__ */ D("circle", {
|
|
872
946
|
cx: "6",
|
|
873
947
|
cy: "5.5",
|
|
874
948
|
fill: "currentColor",
|
|
875
949
|
r: "2"
|
|
876
950
|
}),
|
|
877
|
-
/* @__PURE__ */
|
|
951
|
+
/* @__PURE__ */ D("circle", {
|
|
878
952
|
cx: "16.5",
|
|
879
953
|
cy: "17.5",
|
|
880
954
|
fill: "currentColor",
|
|
881
955
|
r: "2"
|
|
882
956
|
}),
|
|
883
|
-
/* @__PURE__ */
|
|
957
|
+
/* @__PURE__ */ D("path", {
|
|
884
958
|
d: "m10 12 2-2 2 2-2 2Z",
|
|
885
959
|
fill: "none",
|
|
886
960
|
stroke: "currentColor",
|
|
@@ -889,13 +963,13 @@ var ue = {
|
|
|
889
963
|
})
|
|
890
964
|
]
|
|
891
965
|
}),
|
|
892
|
-
codepipeline: () => /* @__PURE__ */
|
|
966
|
+
codepipeline: () => /* @__PURE__ */ O("svg", {
|
|
893
967
|
"aria-hidden": "true",
|
|
894
|
-
className:
|
|
968
|
+
className: R("glyph"),
|
|
895
969
|
focusable: "false",
|
|
896
970
|
viewBox: "0 0 24 24",
|
|
897
971
|
children: [
|
|
898
|
-
/* @__PURE__ */
|
|
972
|
+
/* @__PURE__ */ D("rect", {
|
|
899
973
|
fill: "none",
|
|
900
974
|
height: "5",
|
|
901
975
|
rx: "1",
|
|
@@ -905,7 +979,7 @@ var ue = {
|
|
|
905
979
|
x: "2.5",
|
|
906
980
|
y: "9.5"
|
|
907
981
|
}),
|
|
908
|
-
/* @__PURE__ */
|
|
982
|
+
/* @__PURE__ */ D("rect", {
|
|
909
983
|
fill: "none",
|
|
910
984
|
height: "5",
|
|
911
985
|
rx: "1",
|
|
@@ -915,7 +989,7 @@ var ue = {
|
|
|
915
989
|
x: "16.5",
|
|
916
990
|
y: "9.5"
|
|
917
991
|
}),
|
|
918
|
-
/* @__PURE__ */
|
|
992
|
+
/* @__PURE__ */ D("path", {
|
|
919
993
|
d: "M8 12h7m-2.5-2.5L15 12l-2.5 2.5",
|
|
920
994
|
fill: "none",
|
|
921
995
|
stroke: "currentColor",
|
|
@@ -925,52 +999,52 @@ var ue = {
|
|
|
925
999
|
})
|
|
926
1000
|
]
|
|
927
1001
|
}),
|
|
928
|
-
jira: () => /* @__PURE__ */
|
|
1002
|
+
jira: () => /* @__PURE__ */ O("svg", {
|
|
929
1003
|
"aria-hidden": "true",
|
|
930
|
-
className:
|
|
1004
|
+
className: R("glyph"),
|
|
931
1005
|
focusable: "false",
|
|
932
1006
|
viewBox: "0 0 24 24",
|
|
933
1007
|
children: [
|
|
934
|
-
/* @__PURE__ */
|
|
1008
|
+
/* @__PURE__ */ D("path", {
|
|
935
1009
|
d: "m12 2.8 8.8 8.8a.6.6 0 0 1 0 .8L12 21.2l-8.8-8.8a.6.6 0 0 1 0-.8Z",
|
|
936
1010
|
fill: "currentColor"
|
|
937
1011
|
}),
|
|
938
|
-
/* @__PURE__ */
|
|
1012
|
+
/* @__PURE__ */ D("path", {
|
|
939
1013
|
d: "m12 7.2 4.8 4.8-4.8 4.8L7.2 12Z",
|
|
940
1014
|
fill: "var(--rly-color-surface-1)"
|
|
941
1015
|
}),
|
|
942
|
-
/* @__PURE__ */
|
|
1016
|
+
/* @__PURE__ */ D("path", {
|
|
943
1017
|
d: "m12 9.8 2.2 2.2-2.2 2.2L9.8 12Z",
|
|
944
1018
|
fill: "currentColor"
|
|
945
1019
|
})
|
|
946
1020
|
]
|
|
947
1021
|
}),
|
|
948
|
-
confluence: () => /* @__PURE__ */
|
|
1022
|
+
confluence: () => /* @__PURE__ */ O("svg", {
|
|
949
1023
|
"aria-hidden": "true",
|
|
950
|
-
className:
|
|
1024
|
+
className: R("glyph"),
|
|
951
1025
|
focusable: "false",
|
|
952
1026
|
viewBox: "0 0 24 24",
|
|
953
|
-
children: [/* @__PURE__ */
|
|
1027
|
+
children: [/* @__PURE__ */ D("path", {
|
|
954
1028
|
d: "M4 7.2c3.6 2.1 6.8 2.4 9.6.9L17 6.3l2.7 4.3-3.4 1.8c-4.6 2.4-9.5 1.8-14-1.5Z",
|
|
955
1029
|
fill: "currentColor"
|
|
956
|
-
}), /* @__PURE__ */
|
|
1030
|
+
}), /* @__PURE__ */ D("path", {
|
|
957
1031
|
d: "M20 16.8c-3.6-2.1-6.8-2.4-9.6-.9L7 17.7l-2.7-4.3 3.4-1.8c4.6-2.4 9.5-1.8 14 1.5Z",
|
|
958
1032
|
fill: "currentColor"
|
|
959
1033
|
})]
|
|
960
1034
|
}),
|
|
961
|
-
clockify: () => /* @__PURE__ */
|
|
1035
|
+
clockify: () => /* @__PURE__ */ O("svg", {
|
|
962
1036
|
"aria-hidden": "true",
|
|
963
|
-
className:
|
|
1037
|
+
className: R("glyph"),
|
|
964
1038
|
focusable: "false",
|
|
965
1039
|
viewBox: "0 0 24 24",
|
|
966
|
-
children: [/* @__PURE__ */
|
|
1040
|
+
children: [/* @__PURE__ */ D("circle", {
|
|
967
1041
|
cx: "11",
|
|
968
1042
|
cy: "13",
|
|
969
1043
|
fill: "none",
|
|
970
1044
|
r: "7",
|
|
971
1045
|
stroke: "currentColor",
|
|
972
1046
|
strokeWidth: "1.8"
|
|
973
|
-
}), /* @__PURE__ */
|
|
1047
|
+
}), /* @__PURE__ */ D("path", {
|
|
974
1048
|
d: "M11 9v4l3 2m1.5-10.7 1.8-1.8M18 7l2-2",
|
|
975
1049
|
fill: "none",
|
|
976
1050
|
stroke: "currentColor",
|
|
@@ -978,28 +1052,28 @@ var ue = {
|
|
|
978
1052
|
strokeWidth: "1.8"
|
|
979
1053
|
})]
|
|
980
1054
|
})
|
|
981
|
-
},
|
|
982
|
-
let i =
|
|
983
|
-
return /* @__PURE__ */
|
|
1055
|
+
}, z = ({ className: e, service: t, size: n = "default", ...r }) => {
|
|
1056
|
+
let i = dt[t], a = ut[t];
|
|
1057
|
+
return /* @__PURE__ */ O("span", {
|
|
984
1058
|
...r,
|
|
985
1059
|
"aria-label": a,
|
|
986
|
-
className: d(
|
|
1060
|
+
className: d(R("root"), ct.service[t].className, ct.size[n].className, e),
|
|
987
1061
|
"data-rly-service": t,
|
|
988
1062
|
role: "img",
|
|
989
1063
|
children: [
|
|
990
|
-
/* @__PURE__ */
|
|
1064
|
+
/* @__PURE__ */ D("span", {
|
|
991
1065
|
"aria-hidden": "true",
|
|
992
|
-
className:
|
|
1066
|
+
className: R("rail")
|
|
993
1067
|
}),
|
|
994
|
-
/* @__PURE__ */
|
|
995
|
-
/* @__PURE__ */
|
|
1068
|
+
/* @__PURE__ */ D(i, {}),
|
|
1069
|
+
/* @__PURE__ */ D("span", {
|
|
996
1070
|
"aria-hidden": "true",
|
|
997
|
-
className:
|
|
1071
|
+
className: R("name"),
|
|
998
1072
|
children: a
|
|
999
1073
|
})
|
|
1000
1074
|
]
|
|
1001
1075
|
});
|
|
1002
|
-
},
|
|
1076
|
+
}, ft = {
|
|
1003
1077
|
root: "rly_Verdict-module__root",
|
|
1004
1078
|
verdict: "rly_Verdict-module__verdict",
|
|
1005
1079
|
caution: "rly_Verdict-module__caution",
|
|
@@ -1010,64 +1084,64 @@ var ue = {
|
|
|
1010
1084
|
reasonPanel: "rly_Verdict-module__reasonPanel",
|
|
1011
1085
|
icon: "rly_Verdict-module__icon",
|
|
1012
1086
|
reason: "rly_Verdict-module__reason"
|
|
1013
|
-
},
|
|
1087
|
+
}, B = (e) => c(ft, e), pt = l({ tone: {
|
|
1014
1088
|
caution: {
|
|
1015
|
-
className:
|
|
1089
|
+
className: B("caution"),
|
|
1016
1090
|
purpose: "Intentional hold or caution requiring attention",
|
|
1017
1091
|
tokens: ["color-held-ink", "color-held-tint"]
|
|
1018
1092
|
},
|
|
1019
1093
|
critical: {
|
|
1020
|
-
className:
|
|
1094
|
+
className: B("critical"),
|
|
1021
1095
|
purpose: "Explicit blocker or failed prerequisite",
|
|
1022
1096
|
tokens: ["color-blocked-ink", "color-blocked-tint"]
|
|
1023
1097
|
},
|
|
1024
1098
|
neutral: {
|
|
1025
|
-
className:
|
|
1099
|
+
className: B("neutral"),
|
|
1026
1100
|
purpose: "Neutral, missing, or unavailable outcome",
|
|
1027
1101
|
tokens: ["color-text-2", "color-surface-2"]
|
|
1028
1102
|
},
|
|
1029
1103
|
positive: {
|
|
1030
|
-
className:
|
|
1104
|
+
className: B("positive"),
|
|
1031
1105
|
purpose: "Satisfied readiness or successful outcome",
|
|
1032
1106
|
tokens: ["color-success-ink", "color-success-tint"]
|
|
1033
1107
|
},
|
|
1034
1108
|
progress: {
|
|
1035
|
-
className:
|
|
1109
|
+
className: B("progress"),
|
|
1036
1110
|
purpose: "Active work or delivery progress",
|
|
1037
1111
|
tokens: ["color-deploying-ink", "color-deploying-tint"]
|
|
1038
1112
|
}
|
|
1039
|
-
} }),
|
|
1113
|
+
} }), mt = {
|
|
1040
1114
|
caution: "clock",
|
|
1041
1115
|
critical: "alert",
|
|
1042
1116
|
neutral: "minus",
|
|
1043
1117
|
positive: "check",
|
|
1044
1118
|
progress: "loader"
|
|
1045
|
-
},
|
|
1119
|
+
}, ht = ({ className: t, reason: n, tone: r, verdict: i, ...a }) => {
|
|
1046
1120
|
let s = o(n, "Verdict reason"), c = o(i, "Verdict verdict");
|
|
1047
|
-
return /* @__PURE__ */
|
|
1121
|
+
return /* @__PURE__ */ O("section", {
|
|
1048
1122
|
...a,
|
|
1049
|
-
className: d(
|
|
1123
|
+
className: d(B("root"), pt.tone[r].className, t),
|
|
1050
1124
|
"data-rly-verdict-tone": r,
|
|
1051
|
-
children: [/* @__PURE__ */
|
|
1052
|
-
className:
|
|
1125
|
+
children: [/* @__PURE__ */ D("h2", {
|
|
1126
|
+
className: B("verdict"),
|
|
1053
1127
|
children: c
|
|
1054
|
-
}), /* @__PURE__ */
|
|
1055
|
-
className:
|
|
1056
|
-
children: [/* @__PURE__ */
|
|
1128
|
+
}), /* @__PURE__ */ O("div", {
|
|
1129
|
+
className: B("reasonPanel"),
|
|
1130
|
+
children: [/* @__PURE__ */ D("span", {
|
|
1057
1131
|
"aria-hidden": "true",
|
|
1058
|
-
className:
|
|
1059
|
-
children: /* @__PURE__ */
|
|
1132
|
+
className: B("icon"),
|
|
1133
|
+
children: /* @__PURE__ */ D(e, {
|
|
1060
1134
|
decorative: !0,
|
|
1061
|
-
name:
|
|
1135
|
+
name: mt[r],
|
|
1062
1136
|
size: "large"
|
|
1063
1137
|
})
|
|
1064
|
-
}), /* @__PURE__ */
|
|
1065
|
-
className:
|
|
1138
|
+
}), /* @__PURE__ */ D("p", {
|
|
1139
|
+
className: B("reason"),
|
|
1066
1140
|
children: s
|
|
1067
1141
|
})]
|
|
1068
1142
|
})]
|
|
1069
1143
|
});
|
|
1070
|
-
},
|
|
1144
|
+
}, gt = {
|
|
1071
1145
|
root: "rly_EntityShell-module__root",
|
|
1072
1146
|
navigation: "rly_EntityShell-module__navigation",
|
|
1073
1147
|
header: "rly_EntityShell-module__header",
|
|
@@ -1084,59 +1158,59 @@ var ue = {
|
|
|
1084
1158
|
activity: "rly_EntityShell-module__activity",
|
|
1085
1159
|
asideSlot: "rly_EntityShell-module__asideSlot",
|
|
1086
1160
|
aside: "rly_EntityShell-module__aside"
|
|
1087
|
-
},
|
|
1161
|
+
}, V = (e) => c(gt, e), _t = ({ actions: e, activity: t, agentEntry: n, className: r, collaborators: i, content: a, evidence: s, facts: c, freshness: l, freshnessDateTime: u, freshnessTime: f, navigation: p, reason: m, relationships: h, service: g, title: _, tone: v, verdict: y, ...b }) => {
|
|
1088
1162
|
let x = o(_, "EntityShell title");
|
|
1089
1163
|
if (u === void 0 != (f === void 0)) throw Error("EntityShell freshnessDateTime and freshnessTime must be supplied together");
|
|
1090
|
-
let S = `rly-entity-shell-${
|
|
1091
|
-
return /* @__PURE__ */
|
|
1164
|
+
let S = `rly-entity-shell-${E()}`;
|
|
1165
|
+
return /* @__PURE__ */ O("article", {
|
|
1092
1166
|
...b,
|
|
1093
1167
|
"aria-labelledby": S,
|
|
1094
|
-
className: d(
|
|
1168
|
+
className: d(V("root"), r),
|
|
1095
1169
|
"data-rly-entity-shell": "",
|
|
1096
1170
|
children: [
|
|
1097
|
-
p === void 0 ? null : /* @__PURE__ */
|
|
1171
|
+
p === void 0 ? null : /* @__PURE__ */ D("nav", {
|
|
1098
1172
|
"aria-label": `${x} navigation`,
|
|
1099
|
-
className:
|
|
1173
|
+
className: V("navigation"),
|
|
1100
1174
|
"data-rly-entity-shell-slot": "navigation",
|
|
1101
1175
|
children: p
|
|
1102
1176
|
}),
|
|
1103
|
-
/* @__PURE__ */
|
|
1104
|
-
className:
|
|
1105
|
-
children: [/* @__PURE__ */
|
|
1106
|
-
className:
|
|
1107
|
-
children: [/* @__PURE__ */
|
|
1108
|
-
className:
|
|
1177
|
+
/* @__PURE__ */ O("header", {
|
|
1178
|
+
className: V("header"),
|
|
1179
|
+
children: [/* @__PURE__ */ O("div", {
|
|
1180
|
+
className: V("identity"),
|
|
1181
|
+
children: [/* @__PURE__ */ D(z, { service: g }), /* @__PURE__ */ D("h1", {
|
|
1182
|
+
className: V("title"),
|
|
1109
1183
|
id: S,
|
|
1110
1184
|
children: x
|
|
1111
1185
|
})]
|
|
1112
|
-
}), /* @__PURE__ */
|
|
1113
|
-
className:
|
|
1114
|
-
children: [/* @__PURE__ */
|
|
1186
|
+
}), /* @__PURE__ */ O("div", {
|
|
1187
|
+
className: V("hero"),
|
|
1188
|
+
children: [/* @__PURE__ */ D(ht, {
|
|
1115
1189
|
reason: m,
|
|
1116
1190
|
tone: v,
|
|
1117
1191
|
verdict: y
|
|
1118
|
-
}), /* @__PURE__ */
|
|
1119
|
-
className:
|
|
1192
|
+
}), /* @__PURE__ */ O("div", {
|
|
1193
|
+
className: V("headerAside"),
|
|
1120
1194
|
children: [
|
|
1121
|
-
/* @__PURE__ */
|
|
1122
|
-
className:
|
|
1195
|
+
/* @__PURE__ */ O("div", {
|
|
1196
|
+
className: V("freshness"),
|
|
1123
1197
|
"data-rly-entity-shell-slot": "freshness",
|
|
1124
|
-
children: [/* @__PURE__ */
|
|
1125
|
-
className:
|
|
1198
|
+
children: [/* @__PURE__ */ D("span", {
|
|
1199
|
+
className: V("slotLabel"),
|
|
1126
1200
|
children: "Freshness"
|
|
1127
|
-
}), u === void 0 || f === void 0 ? /* @__PURE__ */
|
|
1201
|
+
}), u === void 0 || f === void 0 ? /* @__PURE__ */ D(L, { state: l }) : /* @__PURE__ */ D(L, {
|
|
1128
1202
|
dateTime: u,
|
|
1129
1203
|
state: l,
|
|
1130
1204
|
time: f
|
|
1131
1205
|
})]
|
|
1132
1206
|
}),
|
|
1133
|
-
/* @__PURE__ */
|
|
1134
|
-
className:
|
|
1207
|
+
/* @__PURE__ */ D("div", {
|
|
1208
|
+
className: V("headerSlot"),
|
|
1135
1209
|
"data-rly-entity-shell-slot": "actions",
|
|
1136
1210
|
children: e
|
|
1137
1211
|
}),
|
|
1138
|
-
/* @__PURE__ */
|
|
1139
|
-
className:
|
|
1212
|
+
/* @__PURE__ */ D("div", {
|
|
1213
|
+
className: V("headerSlot"),
|
|
1140
1214
|
"data-rly-entity-shell-slot": "agent-entry",
|
|
1141
1215
|
children: n
|
|
1142
1216
|
})
|
|
@@ -1144,46 +1218,46 @@ var ue = {
|
|
|
1144
1218
|
})]
|
|
1145
1219
|
})]
|
|
1146
1220
|
}),
|
|
1147
|
-
/* @__PURE__ */
|
|
1148
|
-
className:
|
|
1149
|
-
children: [/* @__PURE__ */
|
|
1150
|
-
className:
|
|
1221
|
+
/* @__PURE__ */ O("div", {
|
|
1222
|
+
className: V("body"),
|
|
1223
|
+
children: [/* @__PURE__ */ D("section", {
|
|
1224
|
+
className: V("content"),
|
|
1151
1225
|
"data-rly-entity-shell-slot": "content",
|
|
1152
1226
|
children: a
|
|
1153
|
-
}), /* @__PURE__ */
|
|
1154
|
-
className:
|
|
1227
|
+
}), /* @__PURE__ */ O("aside", {
|
|
1228
|
+
className: V("aside"),
|
|
1155
1229
|
children: [
|
|
1156
|
-
c === void 0 ? null : /* @__PURE__ */
|
|
1157
|
-
className:
|
|
1230
|
+
c === void 0 ? null : /* @__PURE__ */ D("section", {
|
|
1231
|
+
className: V("asideSlot"),
|
|
1158
1232
|
"data-rly-entity-shell-slot": "facts",
|
|
1159
1233
|
children: c
|
|
1160
1234
|
}),
|
|
1161
|
-
s === void 0 ? null : /* @__PURE__ */
|
|
1162
|
-
className:
|
|
1235
|
+
s === void 0 ? null : /* @__PURE__ */ D("section", {
|
|
1236
|
+
className: V("asideSlot"),
|
|
1163
1237
|
"data-rly-entity-shell-slot": "evidence",
|
|
1164
1238
|
children: s
|
|
1165
1239
|
}),
|
|
1166
|
-
/* @__PURE__ */
|
|
1167
|
-
className:
|
|
1240
|
+
/* @__PURE__ */ D("section", {
|
|
1241
|
+
className: V("asideSlot"),
|
|
1168
1242
|
"data-rly-entity-shell-slot": "collaborators",
|
|
1169
1243
|
children: i
|
|
1170
1244
|
})
|
|
1171
1245
|
]
|
|
1172
1246
|
})]
|
|
1173
1247
|
}),
|
|
1174
|
-
/* @__PURE__ */
|
|
1175
|
-
className:
|
|
1248
|
+
/* @__PURE__ */ D("section", {
|
|
1249
|
+
className: V("relationships"),
|
|
1176
1250
|
"data-rly-entity-shell-slot": "relationships",
|
|
1177
1251
|
children: h
|
|
1178
1252
|
}),
|
|
1179
|
-
t === void 0 ? null : /* @__PURE__ */
|
|
1180
|
-
className:
|
|
1253
|
+
t === void 0 ? null : /* @__PURE__ */ D("section", {
|
|
1254
|
+
className: V("activity"),
|
|
1181
1255
|
"data-rly-entity-shell-slot": "activity",
|
|
1182
1256
|
children: t
|
|
1183
1257
|
})
|
|
1184
1258
|
]
|
|
1185
1259
|
});
|
|
1186
|
-
},
|
|
1260
|
+
}, vt = {
|
|
1187
1261
|
root: "rly_EntityTable-module__root",
|
|
1188
1262
|
defaultDensity: "rly_EntityTable-module__defaultDensity",
|
|
1189
1263
|
compact: "rly_EntityTable-module__compact",
|
|
@@ -1203,35 +1277,35 @@ var ue = {
|
|
|
1203
1277
|
cell: "rly_EntityTable-module__cell",
|
|
1204
1278
|
row: "rly_EntityTable-module__row",
|
|
1205
1279
|
body: "rly_EntityTable-module__body"
|
|
1206
|
-
},
|
|
1280
|
+
}, H = (e) => c(vt, e), yt = l({
|
|
1207
1281
|
density: {
|
|
1208
1282
|
default: {
|
|
1209
|
-
className:
|
|
1283
|
+
className: H("defaultDensity"),
|
|
1210
1284
|
purpose: "One labelled line per field when the table narrows to cards",
|
|
1211
1285
|
tokens: ["space-12"]
|
|
1212
1286
|
},
|
|
1213
1287
|
compact: {
|
|
1214
|
-
className:
|
|
1288
|
+
className: H("compact"),
|
|
1215
1289
|
purpose: "Narrow cards led by the first column, the rest as a two-column label and value grid",
|
|
1216
1290
|
tokens: ["space-8", "space-2"]
|
|
1217
1291
|
}
|
|
1218
1292
|
},
|
|
1219
1293
|
headingSize: {
|
|
1220
1294
|
section: {
|
|
1221
|
-
className:
|
|
1295
|
+
className: H("sectionHeading"),
|
|
1222
1296
|
purpose: "The table is a page section of its own",
|
|
1223
1297
|
tokens: ["type-section-title"]
|
|
1224
1298
|
},
|
|
1225
1299
|
card: {
|
|
1226
|
-
className:
|
|
1300
|
+
className: H("cardHeading"),
|
|
1227
1301
|
purpose: "The table sits in a panel beside other card-titled panels",
|
|
1228
1302
|
tokens: ["type-card-title"]
|
|
1229
1303
|
}
|
|
1230
1304
|
}
|
|
1231
|
-
}),
|
|
1305
|
+
}), bt = l({
|
|
1232
1306
|
density: "default",
|
|
1233
1307
|
headingSize: "section"
|
|
1234
|
-
}),
|
|
1308
|
+
}), xt = (e) => {
|
|
1235
1309
|
let t = /* @__PURE__ */ new Set();
|
|
1236
1310
|
for (let n of e) {
|
|
1237
1311
|
let e = o(n.id, "EntityTable column id");
|
|
@@ -1239,7 +1313,7 @@ var ue = {
|
|
|
1239
1313
|
t.add(e), o(n.label, `EntityTable column label for ${e}`);
|
|
1240
1314
|
}
|
|
1241
1315
|
return t;
|
|
1242
|
-
},
|
|
1316
|
+
}, St = (e, t) => {
|
|
1243
1317
|
let n = /* @__PURE__ */ new Set();
|
|
1244
1318
|
for (let r of e) {
|
|
1245
1319
|
let e = o(r.id, "EntityTable row id");
|
|
@@ -1254,54 +1328,54 @@ var ue = {
|
|
|
1254
1328
|
}
|
|
1255
1329
|
for (let n of t) if (!i.has(n)) throw Error(`EntityTable row ${e} is missing column: ${n}`);
|
|
1256
1330
|
}
|
|
1257
|
-
},
|
|
1331
|
+
}, Ct = (e) => e.state === "ready" || e.state === "stale" || e.state === "partial" || e.state === "error" || e.state === "unavailable" ? e.rows : [], wt = ({ direction: t }) => t === "none" ? null : /* @__PURE__ */ D(e, {
|
|
1258
1332
|
decorative: !0,
|
|
1259
1333
|
name: t === "ascending" ? "arrow-up" : "arrow-down",
|
|
1260
1334
|
size: "small"
|
|
1261
|
-
}),
|
|
1262
|
-
let l = o(i, "EntityTable heading"), u =
|
|
1263
|
-
if (
|
|
1335
|
+
}), Tt = ({ className: e, columns: t, data: n, density: r = "default", heading: i, headingSize: a = "section", onSortChange: s, ...c }) => {
|
|
1336
|
+
let l = o(i, "EntityTable heading"), u = xt(t), f = Ct(n);
|
|
1337
|
+
if (St(f, u), n.state === "ready" && f.length === 0) throw Error("EntityTable ready state must contain at least one row; use the empty state instead");
|
|
1264
1338
|
if (n.state === "loading") {
|
|
1265
1339
|
o(n.label, "EntityTable loading label");
|
|
1266
1340
|
let e = n.skeletonRows ?? 3;
|
|
1267
1341
|
if (!Number.isInteger(e) || e < 1 || e > 20) throw Error("EntityTable skeletonRows must be an integer from 1 to 20");
|
|
1268
1342
|
}
|
|
1269
1343
|
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"), f.length === 0)) throw Error(`EntityTable ${n.state} state must retain at least one cached row`);
|
|
1270
|
-
let p = `rly-entity-table-${
|
|
1344
|
+
let p = `rly-entity-table-${E()}`, 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, {
|
|
1271
1345
|
description: n.description,
|
|
1272
1346
|
title: n.title,
|
|
1273
1347
|
tone: n.tone
|
|
1274
1348
|
}) : null;
|
|
1275
|
-
return /* @__PURE__ */
|
|
1349
|
+
return /* @__PURE__ */ O("section", {
|
|
1276
1350
|
...c,
|
|
1277
1351
|
"aria-busy": n.state === "loading" ? "true" : void 0,
|
|
1278
1352
|
"aria-labelledby": p,
|
|
1279
|
-
className: d(
|
|
1353
|
+
className: d(H("root"), yt.density[r].className, yt.headingSize[a].className, e),
|
|
1280
1354
|
"data-rly-entity-table-density": r,
|
|
1281
1355
|
"data-rly-entity-table-state": n.state,
|
|
1282
|
-
children: [/* @__PURE__ */
|
|
1283
|
-
className:
|
|
1356
|
+
children: [/* @__PURE__ */ D("h2", {
|
|
1357
|
+
className: H("heading"),
|
|
1284
1358
|
id: p,
|
|
1285
1359
|
children: l
|
|
1286
|
-
}), n.state === "loading" ? /* @__PURE__ */
|
|
1360
|
+
}), n.state === "loading" ? /* @__PURE__ */ O("div", {
|
|
1287
1361
|
"aria-label": n.label,
|
|
1288
|
-
className:
|
|
1362
|
+
className: H("loading"),
|
|
1289
1363
|
role: "status",
|
|
1290
|
-
children: [/* @__PURE__ */
|
|
1291
|
-
className:
|
|
1364
|
+
children: [/* @__PURE__ */ D("span", {
|
|
1365
|
+
className: H("stateLabel"),
|
|
1292
1366
|
children: n.label
|
|
1293
|
-
}), Array.from({ length: n.skeletonRows ?? 3 }, (e, t) => /* @__PURE__ */
|
|
1367
|
+
}), Array.from({ length: n.skeletonRows ?? 3 }, (e, t) => /* @__PURE__ */ D(x, {
|
|
1294
1368
|
height: "48px",
|
|
1295
1369
|
variant: "block"
|
|
1296
1370
|
}, t))]
|
|
1297
|
-
}) : n.state === "empty" || n.state === "not-found" ? /* @__PURE__ */
|
|
1371
|
+
}) : n.state === "empty" || n.state === "not-found" ? /* @__PURE__ */ D(ne, {
|
|
1298
1372
|
description: n.description,
|
|
1299
1373
|
title: n.title
|
|
1300
|
-
}) : /* @__PURE__ */
|
|
1374
|
+
}) : /* @__PURE__ */ O(de, { children: [
|
|
1301
1375
|
_,
|
|
1302
|
-
r === "compact" ? m.length === 0 ? null : /* @__PURE__ */
|
|
1303
|
-
className:
|
|
1304
|
-
children: [/* @__PURE__ */
|
|
1376
|
+
r === "compact" ? m.length === 0 ? null : /* @__PURE__ */ O("div", {
|
|
1377
|
+
className: H("sortSelect"),
|
|
1378
|
+
children: [/* @__PURE__ */ D(C, {
|
|
1305
1379
|
"aria-label": "Sort by",
|
|
1306
1380
|
onValueChange: (e) => {
|
|
1307
1381
|
e !== h?.id && s(e);
|
|
@@ -1312,56 +1386,56 @@ var ue = {
|
|
|
1312
1386
|
})),
|
|
1313
1387
|
placeholder: "Sort by",
|
|
1314
1388
|
value: h?.id
|
|
1315
|
-
}), h === void 0 ? null : /* @__PURE__ */
|
|
1389
|
+
}), h === void 0 ? null : /* @__PURE__ */ D(S, {
|
|
1316
1390
|
icon: h.sortDirection === "ascending" ? "arrow-up" : "arrow-down",
|
|
1317
1391
|
label: `Reverse order, currently ${h.sortDirection}`,
|
|
1318
1392
|
onClick: () => s(h.id),
|
|
1319
1393
|
variant: "secondary"
|
|
1320
1394
|
})]
|
|
1321
|
-
}) : /* @__PURE__ */
|
|
1395
|
+
}) : /* @__PURE__ */ O("div", {
|
|
1322
1396
|
"aria-label": `${l} sorting`,
|
|
1323
|
-
className:
|
|
1397
|
+
className: H("sortControls"),
|
|
1324
1398
|
role: "group",
|
|
1325
|
-
children: [/* @__PURE__ */
|
|
1326
|
-
className:
|
|
1399
|
+
children: [/* @__PURE__ */ D("span", {
|
|
1400
|
+
className: H("sortLabel"),
|
|
1327
1401
|
children: "Sort"
|
|
1328
|
-
}), m.map((e) => /* @__PURE__ */
|
|
1402
|
+
}), m.map((e) => /* @__PURE__ */ O("button", {
|
|
1329
1403
|
"aria-label": `Sort by ${e.label}, currently ${e.sortDirection}`,
|
|
1330
|
-
className:
|
|
1404
|
+
className: H("sortButton"),
|
|
1331
1405
|
onClick: () => s(e.id),
|
|
1332
1406
|
type: "button",
|
|
1333
|
-
children: [/* @__PURE__ */
|
|
1407
|
+
children: [/* @__PURE__ */ D("span", { children: e.label }), /* @__PURE__ */ D(wt, { direction: e.sortDirection })]
|
|
1334
1408
|
}, e.id))]
|
|
1335
1409
|
}),
|
|
1336
|
-
/* @__PURE__ */
|
|
1410
|
+
/* @__PURE__ */ O("table", {
|
|
1337
1411
|
"aria-labelledby": p,
|
|
1338
|
-
className:
|
|
1339
|
-
children: [/* @__PURE__ */
|
|
1340
|
-
className:
|
|
1341
|
-
children: /* @__PURE__ */
|
|
1412
|
+
className: H("table"),
|
|
1413
|
+
children: [/* @__PURE__ */ D("thead", {
|
|
1414
|
+
className: H("head"),
|
|
1415
|
+
children: /* @__PURE__ */ D("tr", { children: t.map((e) => /* @__PURE__ */ D("th", {
|
|
1342
1416
|
"aria-label": e.label,
|
|
1343
1417
|
"aria-sort": e.sortable === !0 ? e.sortDirection : void 0,
|
|
1344
1418
|
scope: "col",
|
|
1345
|
-
children: e.sortable === !0 ? /* @__PURE__ */
|
|
1346
|
-
className:
|
|
1419
|
+
children: e.sortable === !0 ? /* @__PURE__ */ O(de, { children: [/* @__PURE__ */ D("span", {
|
|
1420
|
+
className: H("headerLabel"),
|
|
1347
1421
|
children: e.label
|
|
1348
|
-
}), /* @__PURE__ */
|
|
1422
|
+
}), /* @__PURE__ */ O("button", {
|
|
1349
1423
|
"aria-label": `Sort by ${e.label}, currently ${e.sortDirection}`,
|
|
1350
|
-
className:
|
|
1424
|
+
className: H("headerSort"),
|
|
1351
1425
|
onClick: () => s(e.id),
|
|
1352
1426
|
type: "button",
|
|
1353
|
-
children: [/* @__PURE__ */
|
|
1427
|
+
children: [/* @__PURE__ */ D("span", { children: e.label }), /* @__PURE__ */ D(wt, { direction: e.sortDirection })]
|
|
1354
1428
|
})] }) : e.label
|
|
1355
1429
|
}, e.id)) })
|
|
1356
|
-
}), /* @__PURE__ */
|
|
1357
|
-
className:
|
|
1430
|
+
}), /* @__PURE__ */ D("tbody", {
|
|
1431
|
+
className: H("body"),
|
|
1358
1432
|
children: f.map((e) => {
|
|
1359
1433
|
let n = new Map(e.cells.map((e) => [e.columnId, e.content]));
|
|
1360
|
-
return /* @__PURE__ */
|
|
1361
|
-
className:
|
|
1434
|
+
return /* @__PURE__ */ D("tr", {
|
|
1435
|
+
className: H("row"),
|
|
1362
1436
|
"data-rly-entity-row-id": e.id,
|
|
1363
|
-
children: t.map((e) => /* @__PURE__ */
|
|
1364
|
-
className:
|
|
1437
|
+
children: t.map((e) => /* @__PURE__ */ D("td", {
|
|
1438
|
+
className: H("cell"),
|
|
1365
1439
|
"data-label": g.get(e.id)?.label,
|
|
1366
1440
|
children: n.get(e.id)
|
|
1367
1441
|
}, e.id))
|
|
@@ -1371,53 +1445,53 @@ var ue = {
|
|
|
1371
1445
|
})
|
|
1372
1446
|
] })]
|
|
1373
1447
|
});
|
|
1374
|
-
},
|
|
1448
|
+
}, Et = {
|
|
1375
1449
|
root: "rly_EvidenceStamp-module__root",
|
|
1376
1450
|
source: "rly_EvidenceStamp-module__source",
|
|
1377
1451
|
freshness: "rly_EvidenceStamp-module__freshness",
|
|
1378
1452
|
conceptLabel: "rly_EvidenceStamp-module__conceptLabel",
|
|
1379
1453
|
sourceDetail: "rly_EvidenceStamp-module__sourceDetail",
|
|
1380
1454
|
reference: "rly_EvidenceStamp-module__reference"
|
|
1381
|
-
},
|
|
1382
|
-
let c = o(i, "EvidenceStamp reference"), l = n === void 0 || r === void 0 ? /* @__PURE__ */
|
|
1455
|
+
}, Dt = (e) => c(Et, e), Ot = ({ className: e, freshness: t, freshnessDateTime: n, freshnessTime: r, reference: i, service: a, ...s }) => {
|
|
1456
|
+
let c = o(i, "EvidenceStamp reference"), l = n === void 0 || r === void 0 ? /* @__PURE__ */ D(L, {
|
|
1383
1457
|
size: "compact",
|
|
1384
1458
|
state: t
|
|
1385
|
-
}) : /* @__PURE__ */
|
|
1459
|
+
}) : /* @__PURE__ */ D(L, {
|
|
1386
1460
|
dateTime: n,
|
|
1387
1461
|
size: "compact",
|
|
1388
1462
|
state: t,
|
|
1389
1463
|
time: r
|
|
1390
1464
|
});
|
|
1391
|
-
return /* @__PURE__ */
|
|
1465
|
+
return /* @__PURE__ */ O("div", {
|
|
1392
1466
|
...s,
|
|
1393
|
-
className: d(
|
|
1467
|
+
className: d(Dt("root"), e),
|
|
1394
1468
|
"data-rly-evidence-stamp": "",
|
|
1395
|
-
children: [/* @__PURE__ */
|
|
1396
|
-
className:
|
|
1469
|
+
children: [/* @__PURE__ */ O("div", {
|
|
1470
|
+
className: Dt("source"),
|
|
1397
1471
|
"data-rly-evidence-source": a,
|
|
1398
|
-
children: [/* @__PURE__ */
|
|
1399
|
-
className:
|
|
1472
|
+
children: [/* @__PURE__ */ D("span", {
|
|
1473
|
+
className: Dt("conceptLabel"),
|
|
1400
1474
|
children: "Evidence source"
|
|
1401
|
-
}), /* @__PURE__ */
|
|
1402
|
-
className:
|
|
1403
|
-
children: [/* @__PURE__ */
|
|
1475
|
+
}), /* @__PURE__ */ O("div", {
|
|
1476
|
+
className: Dt("sourceDetail"),
|
|
1477
|
+
children: [/* @__PURE__ */ D(z, {
|
|
1404
1478
|
service: a,
|
|
1405
1479
|
size: "compact"
|
|
1406
|
-
}), /* @__PURE__ */
|
|
1407
|
-
className:
|
|
1480
|
+
}), /* @__PURE__ */ D("code", {
|
|
1481
|
+
className: Dt("reference"),
|
|
1408
1482
|
children: c
|
|
1409
1483
|
})]
|
|
1410
1484
|
})]
|
|
1411
|
-
}), /* @__PURE__ */
|
|
1412
|
-
className:
|
|
1485
|
+
}), /* @__PURE__ */ O("div", {
|
|
1486
|
+
className: Dt("freshness"),
|
|
1413
1487
|
"data-rly-evidence-freshness": t,
|
|
1414
|
-
children: [/* @__PURE__ */
|
|
1415
|
-
className:
|
|
1488
|
+
children: [/* @__PURE__ */ D("span", {
|
|
1489
|
+
className: Dt("conceptLabel"),
|
|
1416
1490
|
children: "Freshness"
|
|
1417
1491
|
}), l]
|
|
1418
1492
|
})]
|
|
1419
1493
|
});
|
|
1420
|
-
},
|
|
1494
|
+
}, kt = {
|
|
1421
1495
|
root: "rly_GovernedActionReview-module__root",
|
|
1422
1496
|
header: "rly_GovernedActionReview-module__header",
|
|
1423
1497
|
eyebrow: "rly_GovernedActionReview-module__eyebrow",
|
|
@@ -1432,7 +1506,7 @@ var ue = {
|
|
|
1432
1506
|
decision: "rly_GovernedActionReview-module__decision",
|
|
1433
1507
|
confirmation: "rly_GovernedActionReview-module__confirmation",
|
|
1434
1508
|
actions: "rly_GovernedActionReview-module__actions"
|
|
1435
|
-
},
|
|
1509
|
+
}, U = (e) => c(kt, e), At = {
|
|
1436
1510
|
pending: {
|
|
1437
1511
|
label: "Awaiting human decision",
|
|
1438
1512
|
tone: "caution"
|
|
@@ -1461,87 +1535,87 @@ var ue = {
|
|
|
1461
1535
|
label: "Authorized action cancelled",
|
|
1462
1536
|
tone: "neutral"
|
|
1463
1537
|
}
|
|
1464
|
-
},
|
|
1465
|
-
let h =
|
|
1538
|
+
}, jt = ({ authorizeLabel: e = "Authorize exact action", className: t, confirmationLabel: n, isConfirmed: r, onAuthorize: i, onConfirmationChange: a, onReject: s, outcome: c, proposal: l, rejectLabel: u = "Reject proposal", reviewer: f, state: p, ...m }) => {
|
|
1539
|
+
let h = Ee(l), g = o(e, "GovernedActionReview authorizeLabel"), _ = o(n, "GovernedActionReview confirmationLabel"), v = o(u, "GovernedActionReview rejectLabel");
|
|
1466
1540
|
o(f.id, "GovernedActionReview reviewer id"), o(f.name, "GovernedActionReview reviewer name"), o(f.role, "GovernedActionReview reviewer role");
|
|
1467
|
-
let y = `rly-governed-action-${
|
|
1541
|
+
let y = `rly-governed-action-${E()}`, x = `rly-governed-action-reference-${E()}`, S = `rly-governed-confirmation-${E()}`, C = At[p], ee = () => {
|
|
1468
1542
|
p === "pending" && r && i();
|
|
1469
1543
|
};
|
|
1470
|
-
return /* @__PURE__ */
|
|
1544
|
+
return /* @__PURE__ */ O("section", {
|
|
1471
1545
|
...m,
|
|
1472
1546
|
"aria-labelledby": `${y} ${x}`,
|
|
1473
|
-
className: d(
|
|
1547
|
+
className: d(U("root"), t),
|
|
1474
1548
|
"data-rly-governed-action-state": p,
|
|
1475
1549
|
children: [
|
|
1476
|
-
/* @__PURE__ */
|
|
1477
|
-
className:
|
|
1478
|
-
children: [/* @__PURE__ */
|
|
1479
|
-
/* @__PURE__ */
|
|
1480
|
-
className:
|
|
1550
|
+
/* @__PURE__ */ O("header", {
|
|
1551
|
+
className: U("header"),
|
|
1552
|
+
children: [/* @__PURE__ */ O("div", { children: [
|
|
1553
|
+
/* @__PURE__ */ D("p", {
|
|
1554
|
+
className: U("eyebrow"),
|
|
1481
1555
|
children: "Human authorization"
|
|
1482
1556
|
}),
|
|
1483
|
-
/* @__PURE__ */
|
|
1484
|
-
className:
|
|
1557
|
+
/* @__PURE__ */ D("h2", {
|
|
1558
|
+
className: U("heading"),
|
|
1485
1559
|
id: y,
|
|
1486
1560
|
children: "Review exact proposed action"
|
|
1487
1561
|
}),
|
|
1488
|
-
/* @__PURE__ */
|
|
1489
|
-
className:
|
|
1562
|
+
/* @__PURE__ */ D("code", {
|
|
1563
|
+
className: U("proposalReference"),
|
|
1490
1564
|
id: x,
|
|
1491
1565
|
children: h.id
|
|
1492
1566
|
})
|
|
1493
|
-
] }), /* @__PURE__ */
|
|
1567
|
+
] }), /* @__PURE__ */ D(T, {
|
|
1494
1568
|
label: C.label,
|
|
1495
1569
|
tone: C.tone
|
|
1496
1570
|
})]
|
|
1497
1571
|
}),
|
|
1498
|
-
/* @__PURE__ */
|
|
1499
|
-
className:
|
|
1572
|
+
/* @__PURE__ */ D("p", {
|
|
1573
|
+
className: U("boundary"),
|
|
1500
1574
|
children: "The agent proposed this action. Only the named human reviewer can authorize it."
|
|
1501
1575
|
}),
|
|
1502
|
-
/* @__PURE__ */
|
|
1503
|
-
className:
|
|
1504
|
-
children: [/* @__PURE__ */
|
|
1576
|
+
/* @__PURE__ */ O("div", {
|
|
1577
|
+
className: U("reviewer"),
|
|
1578
|
+
children: [/* @__PURE__ */ D("span", { children: "Human reviewer" }), /* @__PURE__ */ D(P, { person: f })]
|
|
1505
1579
|
}),
|
|
1506
|
-
/* @__PURE__ */
|
|
1507
|
-
className:
|
|
1580
|
+
/* @__PURE__ */ O("dl", {
|
|
1581
|
+
className: U("facts"),
|
|
1508
1582
|
children: [
|
|
1509
|
-
/* @__PURE__ */
|
|
1510
|
-
/* @__PURE__ */
|
|
1511
|
-
/* @__PURE__ */
|
|
1512
|
-
/* @__PURE__ */
|
|
1583
|
+
/* @__PURE__ */ O("div", { children: [/* @__PURE__ */ D("dt", { children: "Proposal" }), /* @__PURE__ */ D("dd", { children: h.capability })] }),
|
|
1584
|
+
/* @__PURE__ */ O("div", { children: [/* @__PURE__ */ D("dt", { children: "Target" }), /* @__PURE__ */ D("dd", { children: h.target })] }),
|
|
1585
|
+
/* @__PURE__ */ O("div", { children: [/* @__PURE__ */ D("dt", { children: "Expected revision" }), /* @__PURE__ */ D("dd", { children: h.expectedRevision })] }),
|
|
1586
|
+
/* @__PURE__ */ O("div", { children: [/* @__PURE__ */ D("dt", { children: "Impact" }), /* @__PURE__ */ D("dd", { children: h.impact })] })
|
|
1513
1587
|
]
|
|
1514
1588
|
}),
|
|
1515
|
-
/* @__PURE__ */
|
|
1516
|
-
className:
|
|
1589
|
+
/* @__PURE__ */ O("div", {
|
|
1590
|
+
className: U("evidence"),
|
|
1517
1591
|
"data-rly-governed-action-evidence": "",
|
|
1518
|
-
children: [/* @__PURE__ */
|
|
1592
|
+
children: [/* @__PURE__ */ D("h3", { children: "Evidence reviewed before decision" }), /* @__PURE__ */ D("ul", { children: h.evidence.map((e) => /* @__PURE__ */ O("li", { children: [/* @__PURE__ */ D("span", { children: e.label }), /* @__PURE__ */ D("code", { children: e.reference })] }, e.id)) })]
|
|
1519
1593
|
}),
|
|
1520
|
-
p === "pending" ? /* @__PURE__ */
|
|
1521
|
-
className:
|
|
1594
|
+
p === "pending" ? /* @__PURE__ */ O("form", {
|
|
1595
|
+
className: U("decision"),
|
|
1522
1596
|
onSubmit: (e) => e.preventDefault(),
|
|
1523
1597
|
children: [
|
|
1524
|
-
/* @__PURE__ */
|
|
1525
|
-
className:
|
|
1598
|
+
/* @__PURE__ */ O("label", {
|
|
1599
|
+
className: U("confirmation"),
|
|
1526
1600
|
htmlFor: S,
|
|
1527
|
-
children: [/* @__PURE__ */
|
|
1601
|
+
children: [/* @__PURE__ */ D("input", {
|
|
1528
1602
|
checked: r,
|
|
1529
1603
|
id: S,
|
|
1530
1604
|
onChange: (e) => a(e.currentTarget.checked),
|
|
1531
1605
|
type: "checkbox"
|
|
1532
|
-
}), /* @__PURE__ */
|
|
1606
|
+
}), /* @__PURE__ */ D("span", { children: _ })]
|
|
1533
1607
|
}),
|
|
1534
|
-
/* @__PURE__ */
|
|
1535
|
-
className:
|
|
1608
|
+
/* @__PURE__ */ D("p", {
|
|
1609
|
+
className: U("confirmationHelp"),
|
|
1536
1610
|
children: "Confirm the exact proposal, target, revision, impact, and evidence above."
|
|
1537
1611
|
}),
|
|
1538
|
-
/* @__PURE__ */
|
|
1539
|
-
className:
|
|
1540
|
-
children: [/* @__PURE__ */
|
|
1612
|
+
/* @__PURE__ */ O("div", {
|
|
1613
|
+
className: U("actions"),
|
|
1614
|
+
children: [/* @__PURE__ */ D(b, {
|
|
1541
1615
|
onClick: s,
|
|
1542
1616
|
variant: "secondary",
|
|
1543
1617
|
children: v
|
|
1544
|
-
}), /* @__PURE__ */
|
|
1618
|
+
}), /* @__PURE__ */ D(b, {
|
|
1545
1619
|
disabled: !r,
|
|
1546
1620
|
onClick: ee,
|
|
1547
1621
|
variant: "primary",
|
|
@@ -1550,14 +1624,144 @@ var ue = {
|
|
|
1550
1624
|
})
|
|
1551
1625
|
]
|
|
1552
1626
|
}) : null,
|
|
1553
|
-
/* @__PURE__ */
|
|
1554
|
-
className:
|
|
1627
|
+
/* @__PURE__ */ O("div", {
|
|
1628
|
+
className: U("outcome"),
|
|
1555
1629
|
"data-rly-governed-action-outcome": "",
|
|
1556
|
-
children: [/* @__PURE__ */
|
|
1630
|
+
children: [/* @__PURE__ */ D("h3", { children: "Recorded outcome" }), c]
|
|
1557
1631
|
})
|
|
1558
1632
|
]
|
|
1559
1633
|
});
|
|
1560
|
-
},
|
|
1634
|
+
}, Mt = {
|
|
1635
|
+
root: "rly_Hero-module__root",
|
|
1636
|
+
fact: "rly_Hero-module__fact",
|
|
1637
|
+
caption: "rly_Hero-module__caption",
|
|
1638
|
+
heading: "rly_Hero-module__heading",
|
|
1639
|
+
line: "rly_Hero-module__line",
|
|
1640
|
+
text: "rly_Hero-module__text",
|
|
1641
|
+
display: "rly_Hero-module__display",
|
|
1642
|
+
word: "rly_Hero-module__word",
|
|
1643
|
+
blocked: "rly_Hero-module__blocked",
|
|
1644
|
+
held: "rly_Hero-module__held"
|
|
1645
|
+
}, W = (e) => c(Mt, e), Nt = l({ size: {
|
|
1646
|
+
heading: {
|
|
1647
|
+
className: W("heading"),
|
|
1648
|
+
purpose: "The page's one fact as a sentence at heading size, with its caption below",
|
|
1649
|
+
tokens: [
|
|
1650
|
+
"type-card-title-size",
|
|
1651
|
+
"color-text-1",
|
|
1652
|
+
"color-text-2"
|
|
1653
|
+
]
|
|
1654
|
+
},
|
|
1655
|
+
line: {
|
|
1656
|
+
className: W("line"),
|
|
1657
|
+
purpose: "The same fact folded to one line, when a detail with its own figure sits beside the list",
|
|
1658
|
+
tokens: [
|
|
1659
|
+
"type-body-size",
|
|
1660
|
+
"color-text-1",
|
|
1661
|
+
"color-text-2"
|
|
1662
|
+
]
|
|
1663
|
+
},
|
|
1664
|
+
display: {
|
|
1665
|
+
className: W("display"),
|
|
1666
|
+
purpose: "Read from across a room (a wall or desk board); not for ordinary screens",
|
|
1667
|
+
tokens: [
|
|
1668
|
+
"type-page-title-size",
|
|
1669
|
+
"color-text-1",
|
|
1670
|
+
"color-text-2"
|
|
1671
|
+
]
|
|
1672
|
+
}
|
|
1673
|
+
} }), Pt = l({ size: "heading" }), Ft = l({ tone: {
|
|
1674
|
+
blocked: {
|
|
1675
|
+
className: W("blocked"),
|
|
1676
|
+
purpose: "Can't proceed, failed, or can't decide",
|
|
1677
|
+
tokens: ["color-blocked-ink"]
|
|
1678
|
+
},
|
|
1679
|
+
held: {
|
|
1680
|
+
className: W("held"),
|
|
1681
|
+
purpose: "Degraded or waiting, but still working",
|
|
1682
|
+
tokens: ["color-held-ink"]
|
|
1683
|
+
}
|
|
1684
|
+
} }), It = ({ caption: e, className: t, fact: n, label: r = "Summary", size: i = Pt.size, ...a }) => {
|
|
1685
|
+
let o = d(W("root"), Nt.size[i].className, t);
|
|
1686
|
+
return i === "line" ? /* @__PURE__ */ D("section", {
|
|
1687
|
+
...a,
|
|
1688
|
+
"aria-label": r,
|
|
1689
|
+
className: o,
|
|
1690
|
+
"data-rly-hero": "",
|
|
1691
|
+
children: /* @__PURE__ */ O("p", {
|
|
1692
|
+
className: W("text"),
|
|
1693
|
+
children: [/* @__PURE__ */ D("strong", {
|
|
1694
|
+
className: W("fact"),
|
|
1695
|
+
children: n
|
|
1696
|
+
}), e === void 0 ? null : /* @__PURE__ */ O(de, { children: [" ", /* @__PURE__ */ D("span", {
|
|
1697
|
+
className: W("caption"),
|
|
1698
|
+
children: e
|
|
1699
|
+
})] })]
|
|
1700
|
+
})
|
|
1701
|
+
}) : /* @__PURE__ */ O("section", {
|
|
1702
|
+
...a,
|
|
1703
|
+
"aria-label": r,
|
|
1704
|
+
className: o,
|
|
1705
|
+
"data-rly-hero": "",
|
|
1706
|
+
children: [/* @__PURE__ */ D("p", {
|
|
1707
|
+
className: W("fact"),
|
|
1708
|
+
children: n
|
|
1709
|
+
}), e === void 0 ? null : /* @__PURE__ */ D("p", {
|
|
1710
|
+
className: W("caption"),
|
|
1711
|
+
children: e
|
|
1712
|
+
})]
|
|
1713
|
+
});
|
|
1714
|
+
}, Lt = ({ children: e, className: t, tone: n, ...r }) => /* @__PURE__ */ D("span", {
|
|
1715
|
+
...r,
|
|
1716
|
+
className: d(W("word"), Ft.tone[n].className, t),
|
|
1717
|
+
children: e
|
|
1718
|
+
}), Rt = {
|
|
1719
|
+
root: "rly_Region-module__root",
|
|
1720
|
+
default: "rly_Region-module__default",
|
|
1721
|
+
tray: "rly_Region-module__tray",
|
|
1722
|
+
header: "rly_Region-module__header",
|
|
1723
|
+
title: "rly_Region-module__title",
|
|
1724
|
+
count: "rly_Region-module__count",
|
|
1725
|
+
actions: "rly_Region-module__actions",
|
|
1726
|
+
body: "rly_Region-module__body"
|
|
1727
|
+
}, zt = (e) => c(Rt, e), Bt = l({ tone: {
|
|
1728
|
+
default: {
|
|
1729
|
+
className: zt("default"),
|
|
1730
|
+
purpose: "A main page region: list, detail or chart",
|
|
1731
|
+
tokens: ["color-surface-1", "color-border-1"]
|
|
1732
|
+
},
|
|
1733
|
+
tray: {
|
|
1734
|
+
className: zt("tray"),
|
|
1735
|
+
purpose: "A region holding individually actionable cards, one surface step down so the cards stand out",
|
|
1736
|
+
tokens: ["color-surface-2", "color-border-1"]
|
|
1737
|
+
}
|
|
1738
|
+
} }), Vt = l({ tone: "default" }), Ht = ({ actions: e, children: t, className: n, count: r, headingId: i, headingLevel: a = 2, title: s, tone: c = Vt.tone, ...l }) => {
|
|
1739
|
+
let u = o(s, "Region title"), f = `rly-region-${E()}`, p = i ?? f, m = a === 3 ? "h3" : "h2";
|
|
1740
|
+
return /* @__PURE__ */ O("section", {
|
|
1741
|
+
...l,
|
|
1742
|
+
"aria-labelledby": p,
|
|
1743
|
+
className: d(zt("root"), Bt.tone[c].className, n),
|
|
1744
|
+
"data-rly-region": "",
|
|
1745
|
+
children: [/* @__PURE__ */ O("header", {
|
|
1746
|
+
className: zt("header"),
|
|
1747
|
+
children: [/* @__PURE__ */ O(m, {
|
|
1748
|
+
className: zt("title"),
|
|
1749
|
+
id: p,
|
|
1750
|
+
tabIndex: -1,
|
|
1751
|
+
children: [u, r === void 0 ? null : /* @__PURE__ */ O(de, { children: [" ", /* @__PURE__ */ D("span", {
|
|
1752
|
+
className: zt("count"),
|
|
1753
|
+
children: r
|
|
1754
|
+
})] })]
|
|
1755
|
+
}), e === void 0 ? null : /* @__PURE__ */ D("div", {
|
|
1756
|
+
className: zt("actions"),
|
|
1757
|
+
children: e
|
|
1758
|
+
})]
|
|
1759
|
+
}), /* @__PURE__ */ D("div", {
|
|
1760
|
+
className: zt("body"),
|
|
1761
|
+
children: t
|
|
1762
|
+
})]
|
|
1763
|
+
});
|
|
1764
|
+
}, Ut = {
|
|
1561
1765
|
missing: {
|
|
1562
1766
|
icon: "alert",
|
|
1563
1767
|
label: "Missing"
|
|
@@ -1586,7 +1790,7 @@ var ue = {
|
|
|
1586
1790
|
icon: "arrow-right",
|
|
1587
1791
|
label: "Superseded"
|
|
1588
1792
|
}
|
|
1589
|
-
},
|
|
1793
|
+
}, Wt = {
|
|
1590
1794
|
forward: {
|
|
1591
1795
|
arrow: "→",
|
|
1592
1796
|
label: "Forward"
|
|
@@ -1599,30 +1803,30 @@ var ue = {
|
|
|
1599
1803
|
arrow: "↔",
|
|
1600
1804
|
label: "Bidirectional"
|
|
1601
1805
|
}
|
|
1602
|
-
},
|
|
1806
|
+
}, Gt = (e, t) => {
|
|
1603
1807
|
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`);
|
|
1604
|
-
},
|
|
1605
|
-
if (!Object.hasOwn(
|
|
1606
|
-
},
|
|
1808
|
+
}, Kt = (e, t) => {
|
|
1809
|
+
if (!Object.hasOwn(ct.service, e)) throw Error(`${t} service must be a supported rly service`);
|
|
1810
|
+
}, qt = (e, t) => {
|
|
1607
1811
|
if (e.state === "present") {
|
|
1608
|
-
o(e.id, `${t} id`), o(e.title, `${t} title`), o(e.reference, `${t} reference`),
|
|
1812
|
+
o(e.id, `${t} id`), o(e.title, `${t} title`), o(e.reference, `${t} reference`), Kt(e.service, t), e.href !== void 0 && o(e.href, `${t} href`), e.person !== void 0 && Gt(e.person, t);
|
|
1609
1813
|
return;
|
|
1610
1814
|
}
|
|
1611
1815
|
if (e.state === "missing") {
|
|
1612
|
-
o(e.label, `${t} missing label`), o(e.reason, `${t} missing reason`), e.service !== void 0 &&
|
|
1816
|
+
o(e.label, `${t} missing label`), o(e.reason, `${t} missing reason`), e.service !== void 0 && Kt(e.service, t);
|
|
1613
1817
|
return;
|
|
1614
1818
|
}
|
|
1615
1819
|
throw Error(`${t} state must be present or missing`);
|
|
1616
|
-
},
|
|
1820
|
+
}, Jt = (e) => {
|
|
1617
1821
|
let t = /* @__PURE__ */ new Set();
|
|
1618
1822
|
for (let n of e) {
|
|
1619
1823
|
let e = o(n.id, "Relationship id");
|
|
1620
1824
|
if (t.has(e)) throw Error(`Relationship ids must be unique: ${e}`);
|
|
1621
|
-
if (t.add(e), o(n.kind, `Relationship kind for ${e}`), !Object.hasOwn(
|
|
1622
|
-
if (!Object.hasOwn(
|
|
1623
|
-
|
|
1825
|
+
if (t.add(e), o(n.kind, `Relationship kind for ${e}`), !Object.hasOwn(Wt, n.direction)) throw Error(`Relationship direction for ${e} must be supported`);
|
|
1826
|
+
if (!Object.hasOwn(Ut, n.lifecycle)) throw Error(`Relationship lifecycle for ${e} must be supported`);
|
|
1827
|
+
qt(n.source, `Relationship ${e} source`), qt(n.target, `Relationship ${e} target`), n.evidence !== void 0 && o(n.evidence, `Relationship evidence for ${e}`), n.actor !== void 0 && Gt(n.actor, `Relationship ${e} actor`);
|
|
1624
1828
|
}
|
|
1625
|
-
},
|
|
1829
|
+
}, Yt = {
|
|
1626
1830
|
root: "rly_RelationshipChain-module__root",
|
|
1627
1831
|
heading: "rly_RelationshipChain-module__heading",
|
|
1628
1832
|
empty: "rly_RelationshipChain-module__empty",
|
|
@@ -1643,127 +1847,127 @@ var ue = {
|
|
|
1643
1847
|
relationship: "rly_RelationshipChain-module__relationship",
|
|
1644
1848
|
arrow: "rly_RelationshipChain-module__arrow",
|
|
1645
1849
|
actor: "rly_RelationshipChain-module__actor"
|
|
1646
|
-
}, G = (e) => c(
|
|
1647
|
-
if (t.state === "missing") return /* @__PURE__ */
|
|
1850
|
+
}, G = (e) => c(Yt, e), Xt = ({ endpoint: t }) => {
|
|
1851
|
+
if (t.state === "missing") return /* @__PURE__ */ O("div", {
|
|
1648
1852
|
className: d(G("endpoint"), G("missingEndpoint")),
|
|
1649
1853
|
"data-rly-endpoint-state": "missing",
|
|
1650
|
-
children: [t.service === void 0 ? null : /* @__PURE__ */
|
|
1854
|
+
children: [t.service === void 0 ? null : /* @__PURE__ */ D(z, {
|
|
1651
1855
|
service: t.service,
|
|
1652
1856
|
size: "compact"
|
|
1653
|
-
}), /* @__PURE__ */
|
|
1857
|
+
}), /* @__PURE__ */ O("span", {
|
|
1654
1858
|
className: G("missingIdentity"),
|
|
1655
|
-
children: [/* @__PURE__ */
|
|
1859
|
+
children: [/* @__PURE__ */ O("span", {
|
|
1656
1860
|
className: G("missingLabel"),
|
|
1657
|
-
children: [/* @__PURE__ */
|
|
1861
|
+
children: [/* @__PURE__ */ D(e, {
|
|
1658
1862
|
decorative: !0,
|
|
1659
1863
|
name: "alert",
|
|
1660
1864
|
size: "small"
|
|
1661
1865
|
}), t.label]
|
|
1662
|
-
}), /* @__PURE__ */
|
|
1866
|
+
}), /* @__PURE__ */ D("span", {
|
|
1663
1867
|
className: G("reference"),
|
|
1664
1868
|
children: t.reason
|
|
1665
1869
|
})]
|
|
1666
1870
|
})]
|
|
1667
1871
|
});
|
|
1668
|
-
let n = /* @__PURE__ */
|
|
1872
|
+
let n = /* @__PURE__ */ O("span", {
|
|
1669
1873
|
className: G("identity"),
|
|
1670
|
-
children: [/* @__PURE__ */
|
|
1874
|
+
children: [/* @__PURE__ */ D("span", {
|
|
1671
1875
|
className: G("title"),
|
|
1672
1876
|
children: t.title
|
|
1673
|
-
}), /* @__PURE__ */
|
|
1877
|
+
}), /* @__PURE__ */ D("span", {
|
|
1674
1878
|
className: G("reference"),
|
|
1675
1879
|
children: t.reference
|
|
1676
1880
|
})]
|
|
1677
1881
|
});
|
|
1678
|
-
return /* @__PURE__ */
|
|
1882
|
+
return /* @__PURE__ */ O("div", {
|
|
1679
1883
|
className: G("endpoint"),
|
|
1680
1884
|
"data-rly-endpoint-id": t.id,
|
|
1681
1885
|
"data-rly-endpoint-state": "present",
|
|
1682
1886
|
children: [
|
|
1683
|
-
/* @__PURE__ */
|
|
1887
|
+
/* @__PURE__ */ D(z, {
|
|
1684
1888
|
service: t.service,
|
|
1685
1889
|
size: "compact"
|
|
1686
1890
|
}),
|
|
1687
|
-
t.href === void 0 ? n : /* @__PURE__ */
|
|
1891
|
+
t.href === void 0 ? n : /* @__PURE__ */ D(r, {
|
|
1688
1892
|
className: G("endpointLink"),
|
|
1689
1893
|
href: t.href,
|
|
1690
1894
|
children: n
|
|
1691
1895
|
}),
|
|
1692
|
-
t.person === void 0 ? null : /* @__PURE__ */
|
|
1896
|
+
t.person === void 0 ? null : /* @__PURE__ */ D(P, {
|
|
1693
1897
|
person: t.person,
|
|
1694
1898
|
size: "compact"
|
|
1695
1899
|
})
|
|
1696
1900
|
]
|
|
1697
1901
|
});
|
|
1698
|
-
},
|
|
1902
|
+
}, Zt = ({ className: e, emptyLabel: t = "No relationships recorded.", heading: n, relationships: r, ...i }) => {
|
|
1699
1903
|
let a = o(n, "RelationshipChain heading"), s = o(t, "RelationshipChain emptyLabel");
|
|
1700
|
-
|
|
1701
|
-
let c = `${
|
|
1702
|
-
return /* @__PURE__ */
|
|
1904
|
+
Jt(r);
|
|
1905
|
+
let c = `${E()}-heading`;
|
|
1906
|
+
return /* @__PURE__ */ O("section", {
|
|
1703
1907
|
...i,
|
|
1704
1908
|
"aria-labelledby": c,
|
|
1705
1909
|
className: d(G("root"), e),
|
|
1706
|
-
children: [/* @__PURE__ */
|
|
1910
|
+
children: [/* @__PURE__ */ D("h2", {
|
|
1707
1911
|
className: G("heading"),
|
|
1708
1912
|
id: c,
|
|
1709
1913
|
children: a
|
|
1710
|
-
}), r.length === 0 ? /* @__PURE__ */
|
|
1914
|
+
}), r.length === 0 ? /* @__PURE__ */ D("p", {
|
|
1711
1915
|
className: G("empty"),
|
|
1712
1916
|
children: s
|
|
1713
|
-
}) : /* @__PURE__ */
|
|
1917
|
+
}) : /* @__PURE__ */ D("ol", {
|
|
1714
1918
|
className: G("list"),
|
|
1715
1919
|
children: r.map((e) => {
|
|
1716
|
-
let t =
|
|
1717
|
-
return /* @__PURE__ */
|
|
1920
|
+
let t = Wt[e.direction], n = Ut[e.lifecycle];
|
|
1921
|
+
return /* @__PURE__ */ O("li", {
|
|
1718
1922
|
className: G("item"),
|
|
1719
1923
|
"data-rly-relationship-id": e.id,
|
|
1720
1924
|
"data-rly-relationship-direction": e.direction,
|
|
1721
1925
|
"data-rly-relationship-kind": e.kind,
|
|
1722
1926
|
"data-rly-relationship-lifecycle": e.lifecycle,
|
|
1723
1927
|
children: [
|
|
1724
|
-
/* @__PURE__ */
|
|
1725
|
-
/* @__PURE__ */
|
|
1928
|
+
/* @__PURE__ */ D(Xt, { endpoint: e.source }),
|
|
1929
|
+
/* @__PURE__ */ O("div", {
|
|
1726
1930
|
className: G("relationship"),
|
|
1727
1931
|
"data-rly-relationship-detail": "",
|
|
1728
1932
|
children: [
|
|
1729
|
-
/* @__PURE__ */
|
|
1933
|
+
/* @__PURE__ */ O("span", {
|
|
1730
1934
|
className: G("direction"),
|
|
1731
|
-
children: [/* @__PURE__ */
|
|
1935
|
+
children: [/* @__PURE__ */ D("span", { children: t.label }), /* @__PURE__ */ D("span", {
|
|
1732
1936
|
"aria-hidden": "true",
|
|
1733
1937
|
className: G("arrow"),
|
|
1734
1938
|
children: t.arrow
|
|
1735
1939
|
})]
|
|
1736
1940
|
}),
|
|
1737
|
-
/* @__PURE__ */
|
|
1941
|
+
/* @__PURE__ */ D("span", {
|
|
1738
1942
|
className: G("kind"),
|
|
1739
1943
|
children: e.kind
|
|
1740
1944
|
}),
|
|
1741
|
-
/* @__PURE__ */
|
|
1945
|
+
/* @__PURE__ */ D(T, {
|
|
1742
1946
|
icon: n.icon,
|
|
1743
1947
|
label: n.label,
|
|
1744
1948
|
size: "compact",
|
|
1745
1949
|
tone: "neutral"
|
|
1746
1950
|
}),
|
|
1747
|
-
e.actor === void 0 ? null : /* @__PURE__ */
|
|
1951
|
+
e.actor === void 0 ? null : /* @__PURE__ */ O("div", {
|
|
1748
1952
|
className: G("actor"),
|
|
1749
1953
|
"data-rly-relationship-actor": e.actor.id,
|
|
1750
|
-
children: [/* @__PURE__ */
|
|
1954
|
+
children: [/* @__PURE__ */ D("span", {
|
|
1751
1955
|
className: G("fieldLabel"),
|
|
1752
1956
|
children: "Actor"
|
|
1753
|
-
}), /* @__PURE__ */
|
|
1957
|
+
}), /* @__PURE__ */ D(P, {
|
|
1754
1958
|
person: e.actor,
|
|
1755
1959
|
size: "compact"
|
|
1756
1960
|
})]
|
|
1757
1961
|
})
|
|
1758
1962
|
]
|
|
1759
1963
|
}),
|
|
1760
|
-
/* @__PURE__ */
|
|
1761
|
-
/* @__PURE__ */
|
|
1964
|
+
/* @__PURE__ */ D(Xt, { endpoint: e.target }),
|
|
1965
|
+
/* @__PURE__ */ O("p", {
|
|
1762
1966
|
className: G("evidence"),
|
|
1763
|
-
children: [/* @__PURE__ */
|
|
1967
|
+
children: [/* @__PURE__ */ D("span", {
|
|
1764
1968
|
className: G("fieldLabel"),
|
|
1765
1969
|
children: "Evidence"
|
|
1766
|
-
}), /* @__PURE__ */
|
|
1970
|
+
}), /* @__PURE__ */ D("span", {
|
|
1767
1971
|
"data-rly-relationship-evidence": "",
|
|
1768
1972
|
children: e.evidence ?? "No evidence recorded."
|
|
1769
1973
|
})]
|
|
@@ -1773,7 +1977,7 @@ var ue = {
|
|
|
1773
1977
|
})
|
|
1774
1978
|
})]
|
|
1775
1979
|
});
|
|
1776
|
-
},
|
|
1980
|
+
}, Qt = {
|
|
1777
1981
|
root: "rly_RelationshipTable-module__root",
|
|
1778
1982
|
heading: "rly_RelationshipTable-module__heading",
|
|
1779
1983
|
empty: "rly_RelationshipTable-module__empty",
|
|
@@ -1796,144 +2000,144 @@ var ue = {
|
|
|
1796
2000
|
arrow: "rly_RelationshipTable-module__arrow",
|
|
1797
2001
|
body: "rly_RelationshipTable-module__body",
|
|
1798
2002
|
row: "rly_RelationshipTable-module__row"
|
|
1799
|
-
}, K = (e) => c(
|
|
1800
|
-
if (t.state === "missing") return /* @__PURE__ */
|
|
2003
|
+
}, K = (e) => c(Qt, e), $t = ({ endpoint: t }) => {
|
|
2004
|
+
if (t.state === "missing") return /* @__PURE__ */ O("div", {
|
|
1801
2005
|
className: d(K("endpoint"), K("missingEndpoint")),
|
|
1802
2006
|
"data-rly-endpoint-state": "missing",
|
|
1803
|
-
children: [t.service === void 0 ? null : /* @__PURE__ */
|
|
2007
|
+
children: [t.service === void 0 ? null : /* @__PURE__ */ D(z, {
|
|
1804
2008
|
service: t.service,
|
|
1805
2009
|
size: "compact"
|
|
1806
|
-
}), /* @__PURE__ */
|
|
2010
|
+
}), /* @__PURE__ */ O("span", {
|
|
1807
2011
|
className: K("identity"),
|
|
1808
|
-
children: [/* @__PURE__ */
|
|
2012
|
+
children: [/* @__PURE__ */ O("span", {
|
|
1809
2013
|
className: K("missingLabel"),
|
|
1810
|
-
children: [/* @__PURE__ */
|
|
2014
|
+
children: [/* @__PURE__ */ D(e, {
|
|
1811
2015
|
decorative: !0,
|
|
1812
2016
|
name: "alert",
|
|
1813
2017
|
size: "small"
|
|
1814
2018
|
}), t.label]
|
|
1815
|
-
}), /* @__PURE__ */
|
|
2019
|
+
}), /* @__PURE__ */ D("span", {
|
|
1816
2020
|
className: K("reference"),
|
|
1817
2021
|
children: t.reason
|
|
1818
2022
|
})]
|
|
1819
2023
|
})]
|
|
1820
2024
|
});
|
|
1821
|
-
let n = /* @__PURE__ */
|
|
2025
|
+
let n = /* @__PURE__ */ O("span", {
|
|
1822
2026
|
className: K("identity"),
|
|
1823
|
-
children: [/* @__PURE__ */
|
|
2027
|
+
children: [/* @__PURE__ */ D("span", {
|
|
1824
2028
|
className: K("title"),
|
|
1825
2029
|
children: t.title
|
|
1826
|
-
}), /* @__PURE__ */
|
|
2030
|
+
}), /* @__PURE__ */ D("span", {
|
|
1827
2031
|
className: K("reference"),
|
|
1828
2032
|
children: t.reference
|
|
1829
2033
|
})]
|
|
1830
2034
|
});
|
|
1831
|
-
return /* @__PURE__ */
|
|
2035
|
+
return /* @__PURE__ */ O("div", {
|
|
1832
2036
|
className: K("endpoint"),
|
|
1833
2037
|
"data-rly-endpoint-id": t.id,
|
|
1834
2038
|
"data-rly-endpoint-state": "present",
|
|
1835
2039
|
children: [
|
|
1836
|
-
/* @__PURE__ */
|
|
2040
|
+
/* @__PURE__ */ D(z, {
|
|
1837
2041
|
service: t.service,
|
|
1838
2042
|
size: "compact"
|
|
1839
2043
|
}),
|
|
1840
|
-
t.href === void 0 ? n : /* @__PURE__ */
|
|
2044
|
+
t.href === void 0 ? n : /* @__PURE__ */ D(r, {
|
|
1841
2045
|
className: K("endpointLink"),
|
|
1842
2046
|
href: t.href,
|
|
1843
2047
|
children: n
|
|
1844
2048
|
}),
|
|
1845
|
-
t.person === void 0 ? null : /* @__PURE__ */
|
|
2049
|
+
t.person === void 0 ? null : /* @__PURE__ */ D(P, {
|
|
1846
2050
|
person: t.person,
|
|
1847
2051
|
size: "compact"
|
|
1848
2052
|
})
|
|
1849
2053
|
]
|
|
1850
2054
|
});
|
|
1851
|
-
},
|
|
2055
|
+
}, en = ({ className: e, emptyLabel: t = "No relationships recorded.", heading: n, relationships: r, ...i }) => {
|
|
1852
2056
|
let a = o(n, "RelationshipTable heading"), s = o(t, "RelationshipTable emptyLabel");
|
|
1853
|
-
|
|
1854
|
-
let c = `${
|
|
1855
|
-
return /* @__PURE__ */
|
|
2057
|
+
Jt(r);
|
|
2058
|
+
let c = `${E()}-heading`;
|
|
2059
|
+
return /* @__PURE__ */ O("section", {
|
|
1856
2060
|
...i,
|
|
1857
2061
|
"aria-labelledby": c,
|
|
1858
2062
|
className: d(K("root"), e),
|
|
1859
|
-
children: [/* @__PURE__ */
|
|
2063
|
+
children: [/* @__PURE__ */ D("h2", {
|
|
1860
2064
|
className: K("heading"),
|
|
1861
2065
|
id: c,
|
|
1862
2066
|
children: a
|
|
1863
|
-
}), r.length === 0 ? /* @__PURE__ */
|
|
2067
|
+
}), r.length === 0 ? /* @__PURE__ */ D("p", {
|
|
1864
2068
|
className: K("empty"),
|
|
1865
2069
|
children: s
|
|
1866
|
-
}) : /* @__PURE__ */
|
|
2070
|
+
}) : /* @__PURE__ */ O("table", {
|
|
1867
2071
|
"aria-labelledby": c,
|
|
1868
2072
|
className: K("table"),
|
|
1869
|
-
children: [/* @__PURE__ */
|
|
2073
|
+
children: [/* @__PURE__ */ D("thead", {
|
|
1870
2074
|
className: K("head"),
|
|
1871
|
-
children: /* @__PURE__ */
|
|
1872
|
-
/* @__PURE__ */
|
|
2075
|
+
children: /* @__PURE__ */ O("tr", { children: [
|
|
2076
|
+
/* @__PURE__ */ D("th", {
|
|
1873
2077
|
scope: "col",
|
|
1874
2078
|
children: "Source"
|
|
1875
2079
|
}),
|
|
1876
|
-
/* @__PURE__ */
|
|
2080
|
+
/* @__PURE__ */ D("th", {
|
|
1877
2081
|
scope: "col",
|
|
1878
2082
|
children: "Relationship"
|
|
1879
2083
|
}),
|
|
1880
|
-
/* @__PURE__ */
|
|
2084
|
+
/* @__PURE__ */ D("th", {
|
|
1881
2085
|
scope: "col",
|
|
1882
2086
|
children: "Target"
|
|
1883
2087
|
}),
|
|
1884
|
-
/* @__PURE__ */
|
|
2088
|
+
/* @__PURE__ */ D("th", {
|
|
1885
2089
|
scope: "col",
|
|
1886
2090
|
children: "Evidence"
|
|
1887
2091
|
})
|
|
1888
2092
|
] })
|
|
1889
|
-
}), /* @__PURE__ */
|
|
2093
|
+
}), /* @__PURE__ */ D("tbody", {
|
|
1890
2094
|
className: K("body"),
|
|
1891
2095
|
children: r.map((e) => {
|
|
1892
|
-
let t =
|
|
1893
|
-
return /* @__PURE__ */
|
|
2096
|
+
let t = Wt[e.direction], n = Ut[e.lifecycle];
|
|
2097
|
+
return /* @__PURE__ */ O("tr", {
|
|
1894
2098
|
className: K("row"),
|
|
1895
2099
|
"data-rly-relationship-id": e.id,
|
|
1896
2100
|
"data-rly-relationship-direction": e.direction,
|
|
1897
2101
|
"data-rly-relationship-kind": e.kind,
|
|
1898
2102
|
"data-rly-relationship-lifecycle": e.lifecycle,
|
|
1899
2103
|
children: [
|
|
1900
|
-
/* @__PURE__ */
|
|
2104
|
+
/* @__PURE__ */ D("td", {
|
|
1901
2105
|
className: K("cell"),
|
|
1902
2106
|
"data-label": "Source",
|
|
1903
|
-
children: /* @__PURE__ */
|
|
2107
|
+
children: /* @__PURE__ */ D($t, { endpoint: e.source })
|
|
1904
2108
|
}),
|
|
1905
|
-
/* @__PURE__ */
|
|
2109
|
+
/* @__PURE__ */ D("td", {
|
|
1906
2110
|
className: K("cell"),
|
|
1907
2111
|
"data-label": "Relationship",
|
|
1908
|
-
children: /* @__PURE__ */
|
|
2112
|
+
children: /* @__PURE__ */ O("div", {
|
|
1909
2113
|
className: K("relationship"),
|
|
1910
2114
|
"data-rly-relationship-detail": "",
|
|
1911
2115
|
children: [
|
|
1912
|
-
/* @__PURE__ */
|
|
2116
|
+
/* @__PURE__ */ O("span", {
|
|
1913
2117
|
className: K("direction"),
|
|
1914
|
-
children: [/* @__PURE__ */
|
|
2118
|
+
children: [/* @__PURE__ */ D("span", { children: t.label }), /* @__PURE__ */ D("span", {
|
|
1915
2119
|
"aria-hidden": "true",
|
|
1916
2120
|
className: K("arrow"),
|
|
1917
2121
|
children: t.arrow
|
|
1918
2122
|
})]
|
|
1919
2123
|
}),
|
|
1920
|
-
/* @__PURE__ */
|
|
2124
|
+
/* @__PURE__ */ D("span", {
|
|
1921
2125
|
className: K("kind"),
|
|
1922
2126
|
children: e.kind
|
|
1923
2127
|
}),
|
|
1924
|
-
/* @__PURE__ */
|
|
2128
|
+
/* @__PURE__ */ D(T, {
|
|
1925
2129
|
icon: n.icon,
|
|
1926
2130
|
label: n.label,
|
|
1927
2131
|
size: "compact",
|
|
1928
2132
|
tone: "neutral"
|
|
1929
2133
|
}),
|
|
1930
|
-
e.actor === void 0 ? null : /* @__PURE__ */
|
|
2134
|
+
e.actor === void 0 ? null : /* @__PURE__ */ O("div", {
|
|
1931
2135
|
className: K("actor"),
|
|
1932
2136
|
"data-rly-relationship-actor": e.actor.id,
|
|
1933
|
-
children: [/* @__PURE__ */
|
|
2137
|
+
children: [/* @__PURE__ */ D("span", {
|
|
1934
2138
|
className: K("fieldLabel"),
|
|
1935
2139
|
children: "Actor"
|
|
1936
|
-
}), /* @__PURE__ */
|
|
2140
|
+
}), /* @__PURE__ */ D(P, {
|
|
1937
2141
|
person: e.actor,
|
|
1938
2142
|
size: "compact"
|
|
1939
2143
|
})]
|
|
@@ -1941,15 +2145,15 @@ var ue = {
|
|
|
1941
2145
|
]
|
|
1942
2146
|
})
|
|
1943
2147
|
}),
|
|
1944
|
-
/* @__PURE__ */
|
|
2148
|
+
/* @__PURE__ */ D("td", {
|
|
1945
2149
|
className: K("cell"),
|
|
1946
2150
|
"data-label": "Target",
|
|
1947
|
-
children: /* @__PURE__ */
|
|
2151
|
+
children: /* @__PURE__ */ D($t, { endpoint: e.target })
|
|
1948
2152
|
}),
|
|
1949
|
-
/* @__PURE__ */
|
|
2153
|
+
/* @__PURE__ */ D("td", {
|
|
1950
2154
|
className: K("cell"),
|
|
1951
2155
|
"data-label": "Evidence",
|
|
1952
|
-
children: /* @__PURE__ */
|
|
2156
|
+
children: /* @__PURE__ */ D("span", {
|
|
1953
2157
|
className: K("evidence"),
|
|
1954
2158
|
"data-rly-relationship-evidence": "",
|
|
1955
2159
|
children: e.evidence ?? "No evidence recorded."
|
|
@@ -1961,7 +2165,7 @@ var ue = {
|
|
|
1961
2165
|
})]
|
|
1962
2166
|
})]
|
|
1963
2167
|
});
|
|
1964
|
-
},
|
|
2168
|
+
}, tn = {
|
|
1965
2169
|
root: "rly_RelayDock-module__root",
|
|
1966
2170
|
trigger: "rly_RelayDock-module__trigger",
|
|
1967
2171
|
close: "rly_RelayDock-module__close",
|
|
@@ -1991,7 +2195,7 @@ var ue = {
|
|
|
1991
2195
|
ready: "rly_RelayDock-module__ready",
|
|
1992
2196
|
state: "rly_RelayDock-module__state",
|
|
1993
2197
|
footer: "rly_RelayDock-module__footer"
|
|
1994
|
-
}, q = (e) => c(
|
|
2198
|
+
}, q = (e) => c(tn, e), nn = "(max-width: 40rem), (max-height: 40rem) and (pointer: coarse)", rn = [
|
|
1995
2199
|
"a[href]",
|
|
1996
2200
|
"button:not([disabled])",
|
|
1997
2201
|
"iframe:not([tabindex=\"-1\"])",
|
|
@@ -2001,40 +2205,40 @@ var ue = {
|
|
|
2001
2205
|
"textarea:not([disabled])",
|
|
2002
2206
|
"[contenteditable]:not([contenteditable=\"false\"])",
|
|
2003
2207
|
"[tabindex]:not([tabindex=\"-1\"])"
|
|
2004
|
-
].join(","),
|
|
2208
|
+
].join(","), an = "button, fieldset, input, object, optgroup, option, output, select, textarea", on = (e) => "activeElement" in e, sn = (e) => "host" in e && a(e.host), cn = (e) => {
|
|
2005
2209
|
let t = e.activeElement;
|
|
2006
|
-
return t === null ? null : t.shadowRoot === null ? t :
|
|
2007
|
-
},
|
|
2210
|
+
return t === null ? null : t.shadowRoot === null ? t : cn(t.shadowRoot) ?? t;
|
|
2211
|
+
}, ln = (e) => {
|
|
2008
2212
|
let t = e.getRootNode();
|
|
2009
|
-
return
|
|
2010
|
-
},
|
|
2213
|
+
return on(t) ? cn(t) : e.ownerDocument.activeElement;
|
|
2214
|
+
}, un = (e) => {
|
|
2011
2215
|
let t = e.getRootNode();
|
|
2012
|
-
return
|
|
2013
|
-
},
|
|
2216
|
+
return sn(t) && _(t.host) ? t.host : null;
|
|
2217
|
+
}, dn = (e) => "assignedSlot" in e, fn = (e) => e.nodeType === 1, pn = (e, t) => {
|
|
2014
2218
|
if (t !== void 0 && t.has(e)) {
|
|
2015
2219
|
let n = t.get(e);
|
|
2016
|
-
return n != null &&
|
|
2220
|
+
return n != null && fn(n) ? n : null;
|
|
2017
2221
|
}
|
|
2018
|
-
return (
|
|
2019
|
-
},
|
|
2222
|
+
return (dn(e) ? e.assignedSlot : null) ?? e.parentElement ?? un(e);
|
|
2223
|
+
}, mn = (e, t, n) => {
|
|
2020
2224
|
if (t === null) return !1;
|
|
2021
2225
|
if (e.contains(t)) return !0;
|
|
2022
2226
|
let r = /* @__PURE__ */ new Set(), i = t;
|
|
2023
2227
|
for (; !r.has(i);) {
|
|
2024
2228
|
r.add(i);
|
|
2025
|
-
let t =
|
|
2229
|
+
let t = pn(i, n);
|
|
2026
2230
|
if (t === null) return !1;
|
|
2027
2231
|
if (t === e || e.contains(t)) return !0;
|
|
2028
2232
|
i = t;
|
|
2029
2233
|
}
|
|
2030
2234
|
return !1;
|
|
2031
|
-
},
|
|
2235
|
+
}, hn = (e, t) => mn(e, t), gn = (e) => {
|
|
2032
2236
|
let t = e.activeElement;
|
|
2033
|
-
return _(t) ? t.shadowRoot === null ? t :
|
|
2034
|
-
},
|
|
2035
|
-
let t =
|
|
2237
|
+
return _(t) ? t.shadowRoot === null ? t : gn(t.shadowRoot) ?? t : null;
|
|
2238
|
+
}, _n = (e) => {
|
|
2239
|
+
let t = gn(e);
|
|
2036
2240
|
return t === e.body || t === e.documentElement ? null : t;
|
|
2037
|
-
},
|
|
2241
|
+
}, vn = (e, t) => {
|
|
2038
2242
|
if (e.matches(":disabled")) return !1;
|
|
2039
2243
|
let n = e.ownerDocument.defaultView;
|
|
2040
2244
|
if (n === null) return !_(e) || e.hidden === !1;
|
|
@@ -2045,44 +2249,44 @@ var ue = {
|
|
|
2045
2249
|
if (_(i) && i.inert) return !1;
|
|
2046
2250
|
if (i.tagName === "DETAILS" && !i.hasAttribute("open")) {
|
|
2047
2251
|
let n = i.querySelector(":scope > summary:first-of-type");
|
|
2048
|
-
if (n === null || !
|
|
2252
|
+
if (n === null || !mn(n, e, t)) return !1;
|
|
2049
2253
|
}
|
|
2050
|
-
if (i !== e && i.tagName === "FIELDSET" && i.hasAttribute("disabled") && e.matches(
|
|
2254
|
+
if (i !== e && i.tagName === "FIELDSET" && i.hasAttribute("disabled") && e.matches(an)) {
|
|
2051
2255
|
let n = i.querySelector(":scope > legend:first-of-type");
|
|
2052
|
-
if (n === null || !
|
|
2256
|
+
if (n === null || !mn(n, e, t)) return !1;
|
|
2053
2257
|
}
|
|
2054
2258
|
let r = n.getComputedStyle(i);
|
|
2055
2259
|
if (_(i) && i.hidden !== !1 || r.display === "none" || i === e && r.display === "contents" || i !== e && r.contentVisibility === "hidden") return !1;
|
|
2056
|
-
i =
|
|
2260
|
+
i = pn(i, t);
|
|
2057
2261
|
}
|
|
2058
2262
|
return !0;
|
|
2059
|
-
},
|
|
2060
|
-
let n = e.getRootNode(), r = /* @__PURE__ */ new Set(), i =
|
|
2263
|
+
}, yn = (e, t) => {
|
|
2264
|
+
let n = e.getRootNode(), r = /* @__PURE__ */ new Set(), i = pn(e, t);
|
|
2061
2265
|
for (; i !== null && !r.has(i);) {
|
|
2062
2266
|
if (r.add(i), i.getRootNode() !== n) return !1;
|
|
2063
2267
|
if (_(i) && i.isContentEditable) return !0;
|
|
2064
|
-
i =
|
|
2268
|
+
i = pn(i, t);
|
|
2065
2269
|
}
|
|
2066
2270
|
return !1;
|
|
2067
|
-
},
|
|
2068
|
-
if (e.namespaceURI ===
|
|
2271
|
+
}, bn = (e) => _(e) && e.tagName === "INPUT" && e.getAttribute("type")?.toLowerCase() === "radio", xn = (e) => "tabIndex" in e && u(e.tabIndex), Sn = "http://www.w3.org/2000/svg", Cn = (e) => {
|
|
2272
|
+
if (e.namespaceURI === Sn && e.localName === "a" && e.hasAttribute("href")) {
|
|
2069
2273
|
let t = e.getAttribute("tabindex");
|
|
2070
2274
|
if (t === null) return 0;
|
|
2071
2275
|
let n = Number.parseInt(t, 10);
|
|
2072
2276
|
return Number.isNaN(n) ? 0 : n;
|
|
2073
2277
|
}
|
|
2074
|
-
return
|
|
2075
|
-
},
|
|
2076
|
-
let n =
|
|
2278
|
+
return xn(e) ? e.tabIndex : null;
|
|
2279
|
+
}, wn = (e) => e.tagName === "SLOT" && "assignedElements" in e, Tn = (e) => wn(e) && sn(e.getRootNode()), En = (e, t) => {
|
|
2280
|
+
let n = Cn(e) ?? -1, r = Cn(t) ?? -1, i = n > 0, a = r > 0;
|
|
2077
2281
|
return i === a ? i && a && n !== r ? n - r : 0 : i ? -1 : 1;
|
|
2078
|
-
},
|
|
2079
|
-
let t =
|
|
2282
|
+
}, Dn = (e) => {
|
|
2283
|
+
let t = Cn(e);
|
|
2080
2284
|
return t !== null && e.hasAttribute("tabindex") && t < 0;
|
|
2081
|
-
},
|
|
2285
|
+
}, On = (e) => Dn(e) && (wn(e) || _(e) && e.shadowRoot?.delegatesFocus === !0), kn = (e, t, n, r) => {
|
|
2082
2286
|
if (e.name.length === 0) return !0;
|
|
2083
|
-
let i = n.filter(({ element: n, nativeRoot: i }) => i === t &&
|
|
2287
|
+
let i = n.filter(({ element: n, nativeRoot: i }) => i === t && bn(n) && n.name === e.name && n.form === e.form && vn(n, r)).map(({ element: e }) => e).filter(bn).find((e) => e.checked);
|
|
2084
2288
|
return i === void 0 ? e.tabIndex >= 0 : i === e;
|
|
2085
|
-
},
|
|
2289
|
+
}, An = (e) => {
|
|
2086
2290
|
let t = (e, r, i) => {
|
|
2087
2291
|
let a = [], o = /* @__PURE__ */ new Map(), s = (e, i) => {
|
|
2088
2292
|
if (a.push({
|
|
@@ -2090,16 +2294,16 @@ var ue = {
|
|
|
2090
2294
|
element: e,
|
|
2091
2295
|
focusScope: r,
|
|
2092
2296
|
nativeRoot: e.getRootNode()
|
|
2093
|
-
}),
|
|
2297
|
+
}), Tn(e)) {
|
|
2094
2298
|
let n = e.assignedNodes({ flatten: !1 }), r = e.assignedElements({ flatten: !1 }), i = [...e.children];
|
|
2095
2299
|
o.set(e, t(n.length > 0 ? r : i, e, e));
|
|
2096
2300
|
return;
|
|
2097
2301
|
}
|
|
2098
|
-
if (
|
|
2302
|
+
if (wn(e)) {
|
|
2099
2303
|
o.set(e, t([...e.children], e, e));
|
|
2100
2304
|
return;
|
|
2101
2305
|
}
|
|
2102
|
-
if (e.shadowRoot !== null && (!
|
|
2306
|
+
if (e.shadowRoot !== null && (!Dn(e) || e.shadowRoot.delegatesFocus === !0)) o.set(e, n(e.shadowRoot, e.shadowRoot, e));
|
|
2103
2307
|
else if (e.shadowRoot === null) for (let t of e.children) s(t, e);
|
|
2104
2308
|
};
|
|
2105
2309
|
for (let t of e) s(t, i);
|
|
@@ -2108,7 +2312,7 @@ var ue = {
|
|
|
2108
2312
|
nested: o
|
|
2109
2313
|
};
|
|
2110
2314
|
}, n = (e, n, r) => t([...e.children], n, r), r = (e) => {
|
|
2111
|
-
let t = [...e.entries].sort((e, t) =>
|
|
2315
|
+
let t = [...e.entries].sort((e, t) => En(e.element, t.element)), n = [];
|
|
2112
2316
|
for (let i of t) {
|
|
2113
2317
|
n.push(i);
|
|
2114
2318
|
let t = e.nested.get(i.element);
|
|
@@ -2117,26 +2321,26 @@ var ue = {
|
|
|
2117
2321
|
return n;
|
|
2118
2322
|
};
|
|
2119
2323
|
return r(n(e, e, e));
|
|
2120
|
-
},
|
|
2324
|
+
}, jn = (e, t, n) => t.filter((r) => {
|
|
2121
2325
|
let { element: i, nativeRoot: a } = r;
|
|
2122
2326
|
if (i.tagName === "SLOT") return !1;
|
|
2123
|
-
let o =
|
|
2327
|
+
let o = Cn(i);
|
|
2124
2328
|
if (o === null) return !1;
|
|
2125
2329
|
let s = i, c = /* @__PURE__ */ new Set();
|
|
2126
2330
|
for (; !c.has(s);) {
|
|
2127
2331
|
c.add(s);
|
|
2128
|
-
let t =
|
|
2332
|
+
let t = pn(s, n);
|
|
2129
2333
|
if (t === null || t === e) break;
|
|
2130
|
-
if (
|
|
2334
|
+
if (On(t)) return !1;
|
|
2131
2335
|
s = t;
|
|
2132
2336
|
}
|
|
2133
|
-
return !i.matches(
|
|
2134
|
-
}).map(({ element: e }) => e),
|
|
2135
|
-
let t =
|
|
2136
|
-
return t !== null && t >= 0 || _(e) && e.isContentEditable && !e.hasAttribute("tabindex") && !
|
|
2137
|
-
}),
|
|
2337
|
+
return !i.matches(rn) || i.shadowRoot?.delegatesFocus === !0 || !vn(i, n) || bn(i) && !kn(i, a, t, n) ? !1 : o >= 0 || _(i) && i.isContentEditable && !i.hasAttribute("tabindex") && !yn(i, n) || i.matches("details > summary:first-of-type") && !Dn(i);
|
|
2338
|
+
}).map(({ element: e }) => e), Mn = (e) => a(e) && "tagName" in e && e.tagName === "IFRAME" && "contentDocument" in e, Nn = (e) => a(e) && "nodeType" in e && e.nodeType === 1, Pn = (e) => [...e.querySelectorAll(rn)].filter((e) => {
|
|
2339
|
+
let t = Cn(e);
|
|
2340
|
+
return t !== null && t >= 0 || _(e) && e.isContentEditable && !e.hasAttribute("tabindex") && !yn(e, /* @__PURE__ */ new Map());
|
|
2341
|
+
}), Fn = (e) => {
|
|
2138
2342
|
let t = e.ownerDocument, n = /* @__PURE__ */ new Map(), r = (t, n) => {
|
|
2139
|
-
let r =
|
|
2343
|
+
let r = An(e), i = jn(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];
|
|
2140
2344
|
((a < 0 ? void 0 : i[a + (n ? -1 : 1)]) ?? o)?.focus();
|
|
2141
2345
|
}, i = (e) => {
|
|
2142
2346
|
let t = n.get(e), i = e.contentDocument;
|
|
@@ -2150,7 +2354,7 @@ var ue = {
|
|
|
2150
2354
|
}
|
|
2151
2355
|
let a = (t) => {
|
|
2152
2356
|
if (t.defaultPrevented || t.key !== "Tab") return;
|
|
2153
|
-
let n =
|
|
2357
|
+
let n = Pn(i), a = Nn(t.target) ? t.target : i.activeElement, o = n[0], s = n[n.length - 1];
|
|
2154
2358
|
(t.shiftKey ? a === o : a === s) && (t.preventDefault(), r(e, t.shiftKey));
|
|
2155
2359
|
};
|
|
2156
2360
|
i.addEventListener("keydown", a, !0), n.set(e, {
|
|
@@ -2170,9 +2374,9 @@ var ue = {
|
|
|
2170
2374
|
onLoad: t
|
|
2171
2375
|
}), e.addEventListener("load", t), i(e);
|
|
2172
2376
|
}, o = () => {
|
|
2173
|
-
for (let { element: t } of
|
|
2377
|
+
for (let { element: t } of An(e)) t.tagName === "IFRAME" && Mn(t) && a(t);
|
|
2174
2378
|
}, s = (e) => {
|
|
2175
|
-
|
|
2379
|
+
Mn(e.target) && a(e.target);
|
|
2176
2380
|
};
|
|
2177
2381
|
t.addEventListener("focusin", s, !0), o();
|
|
2178
2382
|
let c = t.defaultView?.MutationObserver, l = c === void 0 ? null : new c(o);
|
|
@@ -2183,47 +2387,47 @@ var ue = {
|
|
|
2183
2387
|
t.removeEventListener("focusin", s, !0), l?.disconnect();
|
|
2184
2388
|
for (let [e, t] of n) e.removeEventListener("load", t.onLoad), t.frameDocument !== null && t.frameDocument.removeEventListener("keydown", t.onKeyDown, !0);
|
|
2185
2389
|
};
|
|
2186
|
-
},
|
|
2390
|
+
}, In = (e, t) => {
|
|
2187
2391
|
if (e === null || !("matchMedia" in e)) return () => void 0;
|
|
2188
|
-
let n = e.matchMedia(
|
|
2392
|
+
let n = e.matchMedia(nn);
|
|
2189
2393
|
return n.addEventListener("change", t), () => n.removeEventListener("change", t);
|
|
2190
|
-
},
|
|
2191
|
-
let t =
|
|
2192
|
-
return
|
|
2193
|
-
},
|
|
2394
|
+
}, Ln = (e) => e !== null && "matchMedia" in e && e.matchMedia(nn).matches, Rn = () => !1, zn = (e) => {
|
|
2395
|
+
let t = oe((t) => In(e, t), [e]), n = oe(() => Ln(e), [e]);
|
|
2396
|
+
return ue(t, n, Rn);
|
|
2397
|
+
}, Bn = () => /* @__PURE__ */ O("span", {
|
|
2194
2398
|
"aria-hidden": "true",
|
|
2195
2399
|
className: q("mark"),
|
|
2196
|
-
children: [/* @__PURE__ */
|
|
2400
|
+
children: [/* @__PURE__ */ D("span", { className: q("markLine") }), /* @__PURE__ */ D("svg", {
|
|
2197
2401
|
className: q("markGlyph"),
|
|
2198
2402
|
focusable: "false",
|
|
2199
2403
|
viewBox: "0 0 24 24",
|
|
2200
|
-
children: /* @__PURE__ */
|
|
2404
|
+
children: /* @__PURE__ */ D("path", {
|
|
2201
2405
|
d: "M12 3.5 14 10l6.5 2-6.5 2-2 6.5L10 14l-6.5-2 6.5-2Z",
|
|
2202
2406
|
fill: "currentColor"
|
|
2203
2407
|
})
|
|
2204
2408
|
})]
|
|
2205
|
-
}),
|
|
2409
|
+
}), Vn = ({ context: e, labelId: t }) => {
|
|
2206
2410
|
if (e.length === 0) throw Error("RelayDock context must contain at least one chip");
|
|
2207
2411
|
let n = /* @__PURE__ */ new Set();
|
|
2208
|
-
return /* @__PURE__ */
|
|
2412
|
+
return /* @__PURE__ */ O("section", {
|
|
2209
2413
|
"aria-labelledby": t,
|
|
2210
2414
|
className: q("context"),
|
|
2211
|
-
children: [/* @__PURE__ */
|
|
2415
|
+
children: [/* @__PURE__ */ D("h2", {
|
|
2212
2416
|
className: q("sectionLabel"),
|
|
2213
2417
|
id: t,
|
|
2214
2418
|
children: "Context"
|
|
2215
|
-
}), /* @__PURE__ */
|
|
2419
|
+
}), /* @__PURE__ */ D("ul", {
|
|
2216
2420
|
className: q("chipList"),
|
|
2217
2421
|
children: e.map((e) => {
|
|
2218
2422
|
let t = o(e.id, "RelayDock context chip id");
|
|
2219
2423
|
if (n.has(t)) throw Error(`Duplicate RelayDock context chip id: ${t}`);
|
|
2220
|
-
return n.add(t), /* @__PURE__ */
|
|
2424
|
+
return n.add(t), /* @__PURE__ */ O("li", {
|
|
2221
2425
|
className: q("chip"),
|
|
2222
2426
|
"data-rly-relay-dock-context": t,
|
|
2223
|
-
children: [/* @__PURE__ */
|
|
2427
|
+
children: [/* @__PURE__ */ D("span", {
|
|
2224
2428
|
className: q("chipLabel"),
|
|
2225
2429
|
children: o(e.label, "RelayDock context chip label")
|
|
2226
|
-
}), /* @__PURE__ */
|
|
2430
|
+
}), /* @__PURE__ */ D("span", {
|
|
2227
2431
|
className: q("chipValue"),
|
|
2228
2432
|
children: o(e.value, "RelayDock context chip value")
|
|
2229
2433
|
})]
|
|
@@ -2231,22 +2435,22 @@ var ue = {
|
|
|
2231
2435
|
})
|
|
2232
2436
|
})]
|
|
2233
2437
|
});
|
|
2234
|
-
},
|
|
2235
|
-
let n =
|
|
2236
|
-
return /* @__PURE__ */
|
|
2438
|
+
}, Hn = ({ labelId: e, selection: t }) => {
|
|
2439
|
+
let n = E(), r = E();
|
|
2440
|
+
return /* @__PURE__ */ O("section", {
|
|
2237
2441
|
"aria-labelledby": e,
|
|
2238
2442
|
className: q("selection"),
|
|
2239
|
-
children: [/* @__PURE__ */
|
|
2443
|
+
children: [/* @__PURE__ */ D("h2", {
|
|
2240
2444
|
className: q("sectionLabel"),
|
|
2241
2445
|
id: e,
|
|
2242
2446
|
children: "Run with"
|
|
2243
|
-
}), /* @__PURE__ */
|
|
2447
|
+
}), /* @__PURE__ */ O("div", {
|
|
2244
2448
|
className: q("selectionGrid"),
|
|
2245
|
-
children: [/* @__PURE__ */
|
|
2449
|
+
children: [/* @__PURE__ */ D(ee, {
|
|
2246
2450
|
controlId: `rly-relay-dock-profile-${n}`,
|
|
2247
2451
|
label: "Profile",
|
|
2248
2452
|
size: "compact",
|
|
2249
|
-
children: (e) => /* @__PURE__ */
|
|
2453
|
+
children: (e) => /* @__PURE__ */ D(C, {
|
|
2250
2454
|
...e,
|
|
2251
2455
|
...t.profile.disabled === void 0 ? {} : { disabled: t.profile.disabled },
|
|
2252
2456
|
onValueChange: t.profile.onValueChange,
|
|
@@ -2254,11 +2458,11 @@ var ue = {
|
|
|
2254
2458
|
size: "compact",
|
|
2255
2459
|
value: t.profile.value
|
|
2256
2460
|
})
|
|
2257
|
-
}), /* @__PURE__ */
|
|
2461
|
+
}), /* @__PURE__ */ D(ee, {
|
|
2258
2462
|
controlId: `rly-relay-dock-model-${r}`,
|
|
2259
2463
|
label: "Model",
|
|
2260
2464
|
size: "compact",
|
|
2261
|
-
children: (e) => /* @__PURE__ */
|
|
2465
|
+
children: (e) => /* @__PURE__ */ D(C, {
|
|
2262
2466
|
...e,
|
|
2263
2467
|
...t.model.disabled === void 0 ? {} : { disabled: t.model.disabled },
|
|
2264
2468
|
onValueChange: t.model.onValueChange,
|
|
@@ -2269,15 +2473,15 @@ var ue = {
|
|
|
2269
2473
|
})]
|
|
2270
2474
|
})]
|
|
2271
2475
|
});
|
|
2272
|
-
},
|
|
2273
|
-
if (e.status === "ready") return /* @__PURE__ */
|
|
2476
|
+
}, Un = ({ state: e }) => {
|
|
2477
|
+
if (e.status === "ready") return /* @__PURE__ */ D("section", {
|
|
2274
2478
|
"aria-live": "polite",
|
|
2275
2479
|
className: q("ready"),
|
|
2276
2480
|
"data-rly-relay-dock-state": "ready",
|
|
2277
2481
|
children: e.content
|
|
2278
2482
|
});
|
|
2279
2483
|
let t = e.status === "error" ? "assertive" : "polite", n = e.status === "loading" ? "progress" : e.status === "error" ? "critical" : "neutral";
|
|
2280
|
-
return /* @__PURE__ */
|
|
2484
|
+
return /* @__PURE__ */ D(ne, {
|
|
2281
2485
|
action: "action" in e ? e.action : void 0,
|
|
2282
2486
|
announce: t,
|
|
2283
2487
|
className: q("state"),
|
|
@@ -2286,58 +2490,58 @@ var ue = {
|
|
|
2286
2490
|
title: o(e.title, `RelayDock ${e.status} title`),
|
|
2287
2491
|
tone: n
|
|
2288
2492
|
});
|
|
2289
|
-
},
|
|
2290
|
-
let i =
|
|
2291
|
-
return /* @__PURE__ */
|
|
2493
|
+
}, Wn = ({ context: e, footer: t, selection: n, state: r }) => {
|
|
2494
|
+
let i = E(), a = E();
|
|
2495
|
+
return /* @__PURE__ */ O("div", {
|
|
2292
2496
|
className: q("contents"),
|
|
2293
2497
|
"data-rly-relay-dock-scroll": "",
|
|
2294
2498
|
children: [
|
|
2295
|
-
/* @__PURE__ */
|
|
2499
|
+
/* @__PURE__ */ O("div", {
|
|
2296
2500
|
className: q("fixedContext"),
|
|
2297
|
-
children: [/* @__PURE__ */
|
|
2501
|
+
children: [/* @__PURE__ */ D(Vn, {
|
|
2298
2502
|
context: e,
|
|
2299
2503
|
labelId: i
|
|
2300
|
-
}), /* @__PURE__ */
|
|
2504
|
+
}), /* @__PURE__ */ D(Hn, {
|
|
2301
2505
|
labelId: a,
|
|
2302
2506
|
selection: n
|
|
2303
2507
|
})]
|
|
2304
2508
|
}),
|
|
2305
|
-
/* @__PURE__ */
|
|
2509
|
+
/* @__PURE__ */ D("section", {
|
|
2306
2510
|
"aria-label": "Relay thread",
|
|
2307
2511
|
className: q("body"),
|
|
2308
2512
|
tabIndex: 0,
|
|
2309
|
-
children: /* @__PURE__ */
|
|
2513
|
+
children: /* @__PURE__ */ D(Un, { state: r })
|
|
2310
2514
|
}),
|
|
2311
|
-
t == null ? null : /* @__PURE__ */
|
|
2515
|
+
t == null ? null : /* @__PURE__ */ D("footer", {
|
|
2312
2516
|
className: q("footer"),
|
|
2313
2517
|
children: t
|
|
2314
2518
|
})
|
|
2315
2519
|
]
|
|
2316
2520
|
});
|
|
2317
|
-
},
|
|
2318
|
-
let r =
|
|
2319
|
-
return
|
|
2521
|
+
}, Gn = ({ restoreDocument: e, restoreTarget: t, target: n }) => {
|
|
2522
|
+
let r = ce(!1);
|
|
2523
|
+
return se(() => {
|
|
2320
2524
|
let i = n.current;
|
|
2321
|
-
i !== null && (r.current ||= (t.current =
|
|
2525
|
+
i !== null && (r.current ||= (t.current = _n(e ?? i.ownerDocument), !0), i.focus());
|
|
2322
2526
|
}, [
|
|
2323
2527
|
e,
|
|
2324
2528
|
t,
|
|
2325
2529
|
n
|
|
2326
2530
|
]), null;
|
|
2327
|
-
},
|
|
2328
|
-
let r =
|
|
2329
|
-
return p(), m(r, t), h(r, t), /* @__PURE__ */
|
|
2531
|
+
}, Kn = ({ children: e, modal: t, modalLayer: n }) => {
|
|
2532
|
+
let r = ce(null);
|
|
2533
|
+
return p(), m(r, t), h(r, t), /* @__PURE__ */ D("div", {
|
|
2330
2534
|
className: q("layer"),
|
|
2331
2535
|
"data-rly-modal-layer": n ? "" : void 0,
|
|
2332
2536
|
"data-rly-relay-dock-modal": t ? "true" : "false",
|
|
2333
2537
|
ref: r,
|
|
2334
2538
|
children: e
|
|
2335
2539
|
});
|
|
2336
|
-
},
|
|
2337
|
-
let v = `${s}-description`, y =
|
|
2338
|
-
|
|
2540
|
+
}, qn = ({ closeRef: t, compactViewport: r, context: i, description: a, footer: o, headingId: s, modal: c, onClose: l, parentModalPresent: u, restoreDocument: f, restoreTargetRef: p, selection: m, state: h, title: g }) => {
|
|
2541
|
+
let v = `${s}-description`, y = ce(null);
|
|
2542
|
+
se(() => {
|
|
2339
2543
|
let e = y.current;
|
|
2340
|
-
if (c && e !== null) return
|
|
2544
|
+
if (c && e !== null) return Fn(e);
|
|
2341
2545
|
}, [c]);
|
|
2342
2546
|
let b = (e) => {
|
|
2343
2547
|
let t = e.currentTarget;
|
|
@@ -2348,23 +2552,23 @@ var ue = {
|
|
|
2348
2552
|
return;
|
|
2349
2553
|
}
|
|
2350
2554
|
if (!c || e.key !== "Tab") return;
|
|
2351
|
-
let n =
|
|
2555
|
+
let n = An(t), r = new Map(n.map(({ composedParent: e, element: t }) => [t, e])), i = (e) => {
|
|
2352
2556
|
let t = /* @__PURE__ */ new Set(), n = e;
|
|
2353
2557
|
for (; !t.has(n);) {
|
|
2354
2558
|
t.add(n);
|
|
2355
|
-
let e =
|
|
2559
|
+
let e = pn(n, r);
|
|
2356
2560
|
if (e === null) return null;
|
|
2357
2561
|
if (_(e) && e.shadowRoot?.delegatesFocus === !0) return e;
|
|
2358
2562
|
n = e;
|
|
2359
2563
|
}
|
|
2360
2564
|
return null;
|
|
2361
|
-
}, a =
|
|
2565
|
+
}, a = jn(t, n, r), o = a[0] ?? t, s = a[a.length - 1] ?? t, u = ln(t), d = new Set(a), f = u !== null && hn(t, u) && !a.some((e) => e === u), p = (e) => {
|
|
2362
2566
|
let t = /* @__PURE__ */ new Set(), i = e;
|
|
2363
2567
|
for (; !t.has(i);) {
|
|
2364
2568
|
t.add(i);
|
|
2365
2569
|
let e = n.findIndex(({ element: e }) => e === i);
|
|
2366
2570
|
if (e >= 0) return e;
|
|
2367
|
-
let a =
|
|
2571
|
+
let a = pn(i, r);
|
|
2368
2572
|
if (a === null) return -1;
|
|
2369
2573
|
i = a;
|
|
2370
2574
|
}
|
|
@@ -2373,23 +2577,23 @@ var ue = {
|
|
|
2373
2577
|
if (h < 0) return null;
|
|
2374
2578
|
for (let t = h + e; t >= 0 && t < n.length; t += e) {
|
|
2375
2579
|
let e = n[t]?.element;
|
|
2376
|
-
if (e !== void 0 && d.has(e) &&
|
|
2580
|
+
if (e !== void 0 && d.has(e) && xn(e)) return e;
|
|
2377
2581
|
}
|
|
2378
2582
|
return null;
|
|
2379
|
-
})(e.shiftKey ? -1 : 1) : null, v = m !== null && g !== null &&
|
|
2583
|
+
})(e.shiftKey ? -1 : 1) : null, v = m !== null && g !== null && mn(m, g, r), y = f && !v && (g === null || !hn(t, g)), b = e.shiftKey && (u === o || !hn(t, u) || v || y), x = !e.shiftKey && (u === s || !hn(t, u) || v || y);
|
|
2380
2584
|
(b || x) && (e.preventDefault(), (v && g !== null ? g : e.shiftKey ? s : o).focus());
|
|
2381
2585
|
};
|
|
2382
|
-
return /* @__PURE__ */
|
|
2586
|
+
return /* @__PURE__ */ D(n, { children: (n) => /* @__PURE__ */ D(ae.Root, {
|
|
2383
2587
|
container: n,
|
|
2384
|
-
children: /* @__PURE__ */
|
|
2588
|
+
children: /* @__PURE__ */ O(Kn, {
|
|
2385
2589
|
modal: c,
|
|
2386
2590
|
modalLayer: c || u,
|
|
2387
|
-
children: [c ? /* @__PURE__ */
|
|
2591
|
+
children: [c ? /* @__PURE__ */ D("div", {
|
|
2388
2592
|
"aria-hidden": "true",
|
|
2389
2593
|
className: q("overlay"),
|
|
2390
2594
|
"data-rly-relay-dock-overlay": "",
|
|
2391
2595
|
onPointerDown: l
|
|
2392
|
-
}) : null, /* @__PURE__ */
|
|
2596
|
+
}) : null, /* @__PURE__ */ O("section", {
|
|
2393
2597
|
"aria-describedby": v,
|
|
2394
2598
|
"aria-labelledby": s,
|
|
2395
2599
|
"aria-modal": c ? !0 : void 0,
|
|
@@ -2400,37 +2604,37 @@ var ue = {
|
|
|
2400
2604
|
role: c ? "dialog" : "complementary",
|
|
2401
2605
|
tabIndex: -1,
|
|
2402
2606
|
children: [
|
|
2403
|
-
/* @__PURE__ */
|
|
2607
|
+
/* @__PURE__ */ O("header", {
|
|
2404
2608
|
className: q("railHeader"),
|
|
2405
|
-
children: [/* @__PURE__ */
|
|
2609
|
+
children: [/* @__PURE__ */ O("div", {
|
|
2406
2610
|
className: q("railHeading"),
|
|
2407
|
-
children: [/* @__PURE__ */
|
|
2611
|
+
children: [/* @__PURE__ */ D("h1", {
|
|
2408
2612
|
className: q("title"),
|
|
2409
2613
|
id: s,
|
|
2410
2614
|
children: g
|
|
2411
|
-
}), /* @__PURE__ */
|
|
2615
|
+
}), /* @__PURE__ */ D("p", {
|
|
2412
2616
|
className: q("description"),
|
|
2413
2617
|
id: v,
|
|
2414
2618
|
children: a
|
|
2415
2619
|
})]
|
|
2416
|
-
}), /* @__PURE__ */
|
|
2620
|
+
}), /* @__PURE__ */ D("button", {
|
|
2417
2621
|
"aria-label": `Close ${g}`,
|
|
2418
2622
|
className: q("close"),
|
|
2419
2623
|
onClick: l,
|
|
2420
2624
|
ref: t,
|
|
2421
2625
|
type: "button",
|
|
2422
|
-
children: /* @__PURE__ */
|
|
2626
|
+
children: /* @__PURE__ */ D(e, {
|
|
2423
2627
|
decorative: !0,
|
|
2424
2628
|
name: "close"
|
|
2425
2629
|
})
|
|
2426
2630
|
})]
|
|
2427
2631
|
}),
|
|
2428
|
-
/* @__PURE__ */
|
|
2632
|
+
/* @__PURE__ */ D(Gn, {
|
|
2429
2633
|
restoreDocument: f,
|
|
2430
2634
|
restoreTarget: p,
|
|
2431
2635
|
target: t
|
|
2432
2636
|
}),
|
|
2433
|
-
/* @__PURE__ */
|
|
2637
|
+
/* @__PURE__ */ D(Wn, {
|
|
2434
2638
|
context: i,
|
|
2435
2639
|
footer: o,
|
|
2436
2640
|
selection: m,
|
|
@@ -2440,55 +2644,55 @@ var ue = {
|
|
|
2440
2644
|
})]
|
|
2441
2645
|
})
|
|
2442
2646
|
}) });
|
|
2443
|
-
},
|
|
2444
|
-
let { className: n, context: r, defaultOpen: i = !1, description: a = "Ask in this context or prepare approval-bound work.", desktopPresentation: s = "overlay", footer: c, onOpenChange: l, open: u, ref: f, selection: p, state: m, title: h = "Relay", triggerLabel: _ = "Open Relay", ...b } = e, [x, S] =
|
|
2445
|
-
modal:
|
|
2647
|
+
}, Jn = (e) => {
|
|
2648
|
+
let { className: n, context: r, defaultOpen: i = !1, description: a = "Ask in this context or prepare approval-bound work.", desktopPresentation: s = "overlay", footer: c, onOpenChange: l, open: u, ref: f, selection: p, state: m, title: h = "Relay", triggerLabel: _ = "Open Relay", ...b } = e, [x, S] = le(i), C = y(), ee = ie(), ne = t(), w = (u ?? x) && ee && ne.available, T = zn(ne.available ? ne.container.ownerDocument.defaultView : null), re = T || s === "overlay", ae = ce(null), oe = ce(null), ue = ce(null), de = ce({
|
|
2649
|
+
modal: re,
|
|
2446
2650
|
open: !1
|
|
2447
|
-
}),
|
|
2651
|
+
}), fe = E(), k = o(a, "RelayDock description"), pe = o(h, "RelayDock title"), me = o(_, "RelayDock triggerLabel"), he = (e) => {
|
|
2448
2652
|
u === void 0 && S(e), l?.(e);
|
|
2449
2653
|
};
|
|
2450
|
-
return
|
|
2451
|
-
let e =
|
|
2452
|
-
|
|
2453
|
-
modal:
|
|
2654
|
+
return se(() => {
|
|
2655
|
+
let e = de.current;
|
|
2656
|
+
de.current = {
|
|
2657
|
+
modal: re,
|
|
2454
2658
|
open: w
|
|
2455
|
-
}, !e.open && w ? (g(),
|
|
2456
|
-
}, [
|
|
2659
|
+
}, !e.open && w ? (g(), oe.current?.focus()) : e.open && w && e.modal !== re ? oe.current?.focus() : e.open && !w && (v(ue.current ?? ae.current), ue.current = null);
|
|
2660
|
+
}, [re, w]), /* @__PURE__ */ O("div", {
|
|
2457
2661
|
...b,
|
|
2458
2662
|
className: d(q("root"), n),
|
|
2459
2663
|
"data-rly-relay-dock": "",
|
|
2460
2664
|
"data-rly-relay-dock-open": w ? "true" : "false",
|
|
2461
2665
|
ref: f,
|
|
2462
|
-
children: [/* @__PURE__ */
|
|
2666
|
+
children: [/* @__PURE__ */ O("button", {
|
|
2463
2667
|
"aria-expanded": w,
|
|
2464
|
-
"aria-haspopup":
|
|
2668
|
+
"aria-haspopup": re ? "dialog" : void 0,
|
|
2465
2669
|
className: q("trigger"),
|
|
2466
2670
|
"data-rly-relay-dock-trigger": "",
|
|
2467
|
-
|
|
2671
|
+
inert: w,
|
|
2468
2672
|
onClick: (e) => {
|
|
2469
|
-
e.currentTarget.focus(),
|
|
2673
|
+
e.currentTarget.focus(), he(!0);
|
|
2470
2674
|
},
|
|
2471
|
-
ref:
|
|
2675
|
+
ref: ae,
|
|
2472
2676
|
type: "button",
|
|
2473
|
-
children: [/* @__PURE__ */
|
|
2474
|
-
}), w ? /* @__PURE__ */
|
|
2475
|
-
closeRef:
|
|
2677
|
+
children: [/* @__PURE__ */ D(Bn, {}), /* @__PURE__ */ D("span", { children: me })]
|
|
2678
|
+
}), w ? /* @__PURE__ */ D(te, { children: /* @__PURE__ */ D(qn, {
|
|
2679
|
+
closeRef: oe,
|
|
2476
2680
|
compactViewport: T,
|
|
2477
2681
|
context: r,
|
|
2478
|
-
description:
|
|
2682
|
+
description: k,
|
|
2479
2683
|
footer: c,
|
|
2480
|
-
headingId:
|
|
2481
|
-
modal:
|
|
2482
|
-
onClose: () =>
|
|
2684
|
+
headingId: fe,
|
|
2685
|
+
modal: re,
|
|
2686
|
+
onClose: () => he(!1),
|
|
2483
2687
|
parentModalPresent: C,
|
|
2484
|
-
restoreDocument:
|
|
2485
|
-
restoreTargetRef:
|
|
2688
|
+
restoreDocument: ae.current?.ownerDocument ?? null,
|
|
2689
|
+
restoreTargetRef: ue,
|
|
2486
2690
|
selection: p,
|
|
2487
2691
|
state: m,
|
|
2488
|
-
title:
|
|
2692
|
+
title: pe
|
|
2489
2693
|
}) }) : null]
|
|
2490
2694
|
});
|
|
2491
|
-
},
|
|
2695
|
+
}, Yn = /^(?:--[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, Xn = /* @__PURE__ */ new Set([
|
|
2492
2696
|
"auto",
|
|
2493
2697
|
"default",
|
|
2494
2698
|
"inherit",
|
|
@@ -2498,7 +2702,7 @@ var ue = {
|
|
|
2498
2702
|
"revert",
|
|
2499
2703
|
"revert-layer",
|
|
2500
2704
|
"unset"
|
|
2501
|
-
]),
|
|
2705
|
+
]), Zn = (e) => {
|
|
2502
2706
|
if (e === void 0) return;
|
|
2503
2707
|
let t = {
|
|
2504
2708
|
relay: e.relay,
|
|
@@ -2511,13 +2715,13 @@ var ue = {
|
|
|
2511
2715
|
], r = /* @__PURE__ */ new Set();
|
|
2512
2716
|
for (let [e, t] of n) {
|
|
2513
2717
|
let n = o(t, `Release transition ${e} name`);
|
|
2514
|
-
if (n === "root" ||
|
|
2515
|
-
if (!
|
|
2718
|
+
if (n === "root" || Xn.has(n.toLowerCase())) throw Error(`Release transition ${e} name must not use a reserved CSS value: ${n}`);
|
|
2719
|
+
if (!Yn.test(n)) throw Error(`Release transition ${e} name must be a valid unescaped CSS custom identifier: ${n}`);
|
|
2516
2720
|
if (r.has(n)) throw Error(`Release transition names must be unique: ${n}`);
|
|
2517
2721
|
r.add(n);
|
|
2518
2722
|
}
|
|
2519
2723
|
return Object.freeze(t);
|
|
2520
|
-
},
|
|
2724
|
+
}, Qn = {
|
|
2521
2725
|
blocked: !0,
|
|
2522
2726
|
ready: !0,
|
|
2523
2727
|
deploying: !0,
|
|
@@ -2525,8 +2729,8 @@ var ue = {
|
|
|
2525
2729
|
shipped: !0,
|
|
2526
2730
|
held: !0,
|
|
2527
2731
|
unknown: !0
|
|
2528
|
-
},
|
|
2529
|
-
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(
|
|
2732
|
+
}, $n = (e) => {
|
|
2733
|
+
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(Qn, e.state)) throw Error("Release presentation state must be supported");
|
|
2530
2734
|
e.freshnessDateTime !== void 0 && (o(e.freshnessDateTime, "Release presentation freshnessDateTime"), o(e.freshnessTime, "Release presentation freshnessTime"));
|
|
2531
2735
|
let t = /* @__PURE__ */ new Set();
|
|
2532
2736
|
for (let n of e.facts) {
|
|
@@ -2535,7 +2739,7 @@ var ue = {
|
|
|
2535
2739
|
t.add(e), o(n.label, `Release presentation fact label for ${e}`), o(n.value, `Release presentation fact value for ${e}`);
|
|
2536
2740
|
}
|
|
2537
2741
|
return e;
|
|
2538
|
-
},
|
|
2742
|
+
}, er = {
|
|
2539
2743
|
root: "rly_ReleaseRelay-module__root",
|
|
2540
2744
|
tiles: "rly_ReleaseRelay-module__tiles",
|
|
2541
2745
|
handoff: "rly_ReleaseRelay-module__handoff",
|
|
@@ -2546,7 +2750,7 @@ var ue = {
|
|
|
2546
2750
|
algorithm: "rly_ReleaseRelay-module__algorithm",
|
|
2547
2751
|
compact: "rly_ReleaseRelay-module__compact",
|
|
2548
2752
|
hero: "rly_ReleaseRelay-module__hero"
|
|
2549
|
-
}, J = (e) => c(
|
|
2753
|
+
}, J = (e) => c(er, e), tr = l({
|
|
2550
2754
|
0: { name: "orbit" },
|
|
2551
2755
|
1: { name: "split" },
|
|
2552
2756
|
2: { name: "brace" },
|
|
@@ -2563,7 +2767,7 @@ var ue = {
|
|
|
2563
2767
|
13: { name: "spark" },
|
|
2564
2768
|
14: { name: "stack" },
|
|
2565
2769
|
15: { name: "compass" }
|
|
2566
|
-
}),
|
|
2770
|
+
}), nr = l({ size: {
|
|
2567
2771
|
compact: {
|
|
2568
2772
|
className: J("compact"),
|
|
2569
2773
|
purpose: "Release rows and compact previews",
|
|
@@ -2583,7 +2787,7 @@ var ue = {
|
|
|
2583
2787
|
"type-card-title"
|
|
2584
2788
|
]
|
|
2585
2789
|
}
|
|
2586
|
-
} }),
|
|
2790
|
+
} }), rr = l({ size: "compact" }), ir = {
|
|
2587
2791
|
0: "M12 4a8 8 0 1 1-6.9 4M5.1 8H9V4.1",
|
|
2588
2792
|
1: "M5 5v4c0 2 1 3 3 3h8c2 0 3 1 3 3v4M12 12V5",
|
|
2589
2793
|
2: "M9 4H7v5l-3 3 3 3v5h2M15 4h2v5l3 3-3 3v5h-2",
|
|
@@ -2600,7 +2804,7 @@ var ue = {
|
|
|
2600
2804
|
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",
|
|
2601
2805
|
14: "m4 8 8-4 8 4-8 4Zm0 4 8 4 8-4M4 16l8 4 8-4",
|
|
2602
2806
|
15: "m12 3 3 6 6 3-6 3-3 6-3-6-6-3 6-3Zm0 6v6M9 12h6"
|
|
2603
|
-
},
|
|
2807
|
+
}, ar = (e) => {
|
|
2604
2808
|
if (e.length !== 3) throw Error("ReleaseRelay symbolIndices must contain exactly three indices");
|
|
2605
2809
|
let t = /* @__PURE__ */ new Set();
|
|
2606
2810
|
for (let n of e) {
|
|
@@ -2609,32 +2813,32 @@ var ue = {
|
|
|
2609
2813
|
t.add(n);
|
|
2610
2814
|
}
|
|
2611
2815
|
return e;
|
|
2612
|
-
},
|
|
2613
|
-
let s = o(e, "ReleaseRelay algorithm"), c = o(n, "ReleaseRelay codename"), l =
|
|
2614
|
-
return /* @__PURE__ */
|
|
2816
|
+
}, or = ({ algorithm: e, className: t, codename: n, size: r = "compact", symbolIndices: i, ...a }) => {
|
|
2817
|
+
let s = o(e, "ReleaseRelay algorithm"), c = o(n, "ReleaseRelay codename"), l = ar(i), u = `Release relay, ${c}, symbols ${l.map((e) => tr[e].name).join(", ")}.`;
|
|
2818
|
+
return /* @__PURE__ */ O("figure", {
|
|
2615
2819
|
...a,
|
|
2616
|
-
className: d(J("root"),
|
|
2820
|
+
className: d(J("root"), nr.size[r].className, t),
|
|
2617
2821
|
"data-rly-release-relay-size": r,
|
|
2618
|
-
children: [/* @__PURE__ */
|
|
2822
|
+
children: [/* @__PURE__ */ O("span", {
|
|
2619
2823
|
"aria-label": u,
|
|
2620
2824
|
className: J("tiles"),
|
|
2621
2825
|
role: "img",
|
|
2622
|
-
children: [/* @__PURE__ */
|
|
2826
|
+
children: [/* @__PURE__ */ D("span", {
|
|
2623
2827
|
"aria-hidden": "true",
|
|
2624
2828
|
className: J("handoff"),
|
|
2625
2829
|
"data-rly-release-relay-handoff": ""
|
|
2626
|
-
}), l.map((e, t) => /* @__PURE__ */
|
|
2830
|
+
}), l.map((e, t) => /* @__PURE__ */ D("span", {
|
|
2627
2831
|
"aria-hidden": "true",
|
|
2628
2832
|
className: J("tile"),
|
|
2629
2833
|
"data-rly-release-relay-position": t,
|
|
2630
2834
|
"data-rly-release-symbol-index": e,
|
|
2631
|
-
"data-rly-release-symbol-name":
|
|
2632
|
-
children: /* @__PURE__ */
|
|
2835
|
+
"data-rly-release-symbol-name": tr[e].name,
|
|
2836
|
+
children: /* @__PURE__ */ D("svg", {
|
|
2633
2837
|
className: J("glyph"),
|
|
2634
2838
|
focusable: "false",
|
|
2635
2839
|
viewBox: "0 0 24 24",
|
|
2636
|
-
children: /* @__PURE__ */
|
|
2637
|
-
d:
|
|
2840
|
+
children: /* @__PURE__ */ D("path", {
|
|
2841
|
+
d: ir[e],
|
|
2638
2842
|
fill: "none",
|
|
2639
2843
|
stroke: "currentColor",
|
|
2640
2844
|
strokeLinecap: "round",
|
|
@@ -2644,18 +2848,18 @@ var ue = {
|
|
|
2644
2848
|
})
|
|
2645
2849
|
})
|
|
2646
2850
|
}, e))]
|
|
2647
|
-
}), /* @__PURE__ */
|
|
2851
|
+
}), /* @__PURE__ */ O("figcaption", {
|
|
2648
2852
|
className: J("identity"),
|
|
2649
|
-
children: [/* @__PURE__ */
|
|
2853
|
+
children: [/* @__PURE__ */ D("span", {
|
|
2650
2854
|
className: J("codename"),
|
|
2651
2855
|
children: c
|
|
2652
|
-
}), /* @__PURE__ */
|
|
2856
|
+
}), /* @__PURE__ */ O("span", {
|
|
2653
2857
|
className: J("algorithm"),
|
|
2654
2858
|
children: ["Identity algorithm: ", s]
|
|
2655
2859
|
})]
|
|
2656
2860
|
})]
|
|
2657
2861
|
});
|
|
2658
|
-
},
|
|
2862
|
+
}, sr = {
|
|
2659
2863
|
body: "rly_ReleasePreview-module__body",
|
|
2660
2864
|
summary: "rly_ReleasePreview-module__summary",
|
|
2661
2865
|
releaseMeta: "rly_ReleasePreview-module__releaseMeta",
|
|
@@ -2675,26 +2879,26 @@ var ue = {
|
|
|
2675
2879
|
sheetFooter: "rly_ReleasePreview-module__sheetFooter",
|
|
2676
2880
|
dialogClose: "rly_ReleasePreview-module__dialogClose",
|
|
2677
2881
|
fullViewButton: "rly_ReleasePreview-module__fullViewButton"
|
|
2678
|
-
}, Y = (e) => c(
|
|
2679
|
-
let g =
|
|
2882
|
+
}, Y = (e) => c(sr, e), cr = ({ 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: p, transitionNames: m, workset: h }) => {
|
|
2883
|
+
let g = $n(d), _ = Zn(m), v = o(c, "ReleasePreview openFullViewLabel"), y = ce(null), x = g.freshnessDateTime === void 0 ? /* @__PURE__ */ D(L, { state: g.freshness }) : /* @__PURE__ */ D(L, {
|
|
2680
2884
|
dateTime: g.freshnessDateTime,
|
|
2681
2885
|
state: g.freshness,
|
|
2682
2886
|
time: g.freshnessTime
|
|
2683
|
-
}), S = `Release preview: ${g.version} ${g.codename}`, C = /* @__PURE__ */
|
|
2887
|
+
}), S = `Release preview: ${g.version} ${g.codename}`, C = /* @__PURE__ */ O("div", {
|
|
2684
2888
|
className: Y("body"),
|
|
2685
2889
|
"data-rly-release-preview-presentation": l,
|
|
2686
2890
|
"data-rly-release-state": g.state,
|
|
2687
2891
|
children: [
|
|
2688
|
-
/* @__PURE__ */
|
|
2892
|
+
/* @__PURE__ */ O("section", {
|
|
2689
2893
|
"aria-label": "Release summary",
|
|
2690
2894
|
className: Y("summary"),
|
|
2691
2895
|
"data-rly-release-preview-summary": "",
|
|
2692
2896
|
ref: y,
|
|
2693
2897
|
tabIndex: -1,
|
|
2694
2898
|
children: [
|
|
2695
|
-
/* @__PURE__ */
|
|
2899
|
+
/* @__PURE__ */ O("div", {
|
|
2696
2900
|
className: Y("identityRow"),
|
|
2697
|
-
children: [/* @__PURE__ */
|
|
2901
|
+
children: [/* @__PURE__ */ D(or, {
|
|
2698
2902
|
algorithm: g.algorithm,
|
|
2699
2903
|
codename: g.codename,
|
|
2700
2904
|
"data-rly-release-transition-name": _?.relay,
|
|
@@ -2702,9 +2906,9 @@ var ue = {
|
|
|
2702
2906
|
size: "hero",
|
|
2703
2907
|
style: _ === void 0 ? void 0 : { viewTransitionName: _.relay },
|
|
2704
2908
|
symbolIndices: g.symbolIndices
|
|
2705
|
-
}), /* @__PURE__ */
|
|
2909
|
+
}), /* @__PURE__ */ O("div", {
|
|
2706
2910
|
className: Y("releaseMeta"),
|
|
2707
|
-
children: [/* @__PURE__ */
|
|
2911
|
+
children: [/* @__PURE__ */ D("p", {
|
|
2708
2912
|
className: Y("version"),
|
|
2709
2913
|
"data-rly-release-transition-name": _?.version,
|
|
2710
2914
|
"data-rly-release-transition-part": "version",
|
|
@@ -2713,31 +2917,31 @@ var ue = {
|
|
|
2713
2917
|
}), x]
|
|
2714
2918
|
})]
|
|
2715
2919
|
}),
|
|
2716
|
-
/* @__PURE__ */
|
|
2920
|
+
/* @__PURE__ */ O("div", {
|
|
2717
2921
|
className: Y("people"),
|
|
2718
|
-
children: [/* @__PURE__ */
|
|
2922
|
+
children: [/* @__PURE__ */ O("div", {
|
|
2719
2923
|
className: Y("personGroup"),
|
|
2720
|
-
children: [/* @__PURE__ */
|
|
2924
|
+
children: [/* @__PURE__ */ D("span", {
|
|
2721
2925
|
className: Y("eyebrow"),
|
|
2722
2926
|
children: "Owner"
|
|
2723
|
-
}), g.owner === void 0 ? /* @__PURE__ */
|
|
2927
|
+
}), g.owner === void 0 ? /* @__PURE__ */ D("span", {
|
|
2724
2928
|
className: Y("unassigned"),
|
|
2725
2929
|
"data-rly-release-owner": "unassigned",
|
|
2726
2930
|
children: "Unassigned"
|
|
2727
|
-
}) : /* @__PURE__ */
|
|
2728
|
-
}), /* @__PURE__ */
|
|
2931
|
+
}) : /* @__PURE__ */ D(P, { person: g.owner })]
|
|
2932
|
+
}), /* @__PURE__ */ O("div", {
|
|
2729
2933
|
className: Y("personGroup"),
|
|
2730
|
-
children: [/* @__PURE__ */
|
|
2934
|
+
children: [/* @__PURE__ */ D("span", {
|
|
2731
2935
|
className: Y("eyebrow"),
|
|
2732
2936
|
children: "Approver"
|
|
2733
|
-
}), g.approver === void 0 ? /* @__PURE__ */
|
|
2937
|
+
}), g.approver === void 0 ? /* @__PURE__ */ D("span", {
|
|
2734
2938
|
className: Y("unassigned"),
|
|
2735
2939
|
"data-rly-release-approver": "unassigned",
|
|
2736
2940
|
children: "Unassigned"
|
|
2737
|
-
}) : /* @__PURE__ */
|
|
2941
|
+
}) : /* @__PURE__ */ D(P, { person: g.approver })]
|
|
2738
2942
|
})]
|
|
2739
2943
|
}),
|
|
2740
|
-
/* @__PURE__ */
|
|
2944
|
+
/* @__PURE__ */ D(ht, {
|
|
2741
2945
|
"data-rly-release-transition-name": _?.verdict,
|
|
2742
2946
|
"data-rly-release-transition-part": "verdict",
|
|
2743
2947
|
reason: g.reason,
|
|
@@ -2745,95 +2949,95 @@ var ue = {
|
|
|
2745
2949
|
tone: g.tone,
|
|
2746
2950
|
verdict: g.verdict
|
|
2747
2951
|
}),
|
|
2748
|
-
/* @__PURE__ */
|
|
2952
|
+
/* @__PURE__ */ D("dl", {
|
|
2749
2953
|
className: Y("facts"),
|
|
2750
|
-
children: g.facts.map((e) => /* @__PURE__ */
|
|
2954
|
+
children: g.facts.map((e) => /* @__PURE__ */ O("div", {
|
|
2751
2955
|
className: Y("fact"),
|
|
2752
|
-
children: [/* @__PURE__ */
|
|
2956
|
+
children: [/* @__PURE__ */ D("dt", { children: e.label }), /* @__PURE__ */ D("dd", { children: e.value })]
|
|
2753
2957
|
}, e.id))
|
|
2754
2958
|
})
|
|
2755
2959
|
]
|
|
2756
2960
|
}),
|
|
2757
|
-
t === void 0 ? null : /* @__PURE__ */
|
|
2961
|
+
t === void 0 ? null : /* @__PURE__ */ D("div", {
|
|
2758
2962
|
className: Y("slot"),
|
|
2759
2963
|
"data-rly-release-preview-slot": "collaborators",
|
|
2760
2964
|
children: t
|
|
2761
2965
|
}),
|
|
2762
|
-
/* @__PURE__ */
|
|
2966
|
+
/* @__PURE__ */ D("div", {
|
|
2763
2967
|
className: Y("slot"),
|
|
2764
2968
|
"data-rly-release-preview-slot": "primary-action",
|
|
2765
2969
|
children: u
|
|
2766
2970
|
}),
|
|
2767
|
-
/* @__PURE__ */
|
|
2971
|
+
/* @__PURE__ */ D("div", {
|
|
2768
2972
|
className: Y("slot"),
|
|
2769
2973
|
"data-rly-release-preview-slot": "stages",
|
|
2770
2974
|
children: p
|
|
2771
2975
|
}),
|
|
2772
|
-
/* @__PURE__ */
|
|
2976
|
+
/* @__PURE__ */ D("div", {
|
|
2773
2977
|
className: Y("slot"),
|
|
2774
2978
|
"data-rly-release-preview-slot": "workset",
|
|
2775
2979
|
children: h
|
|
2776
2980
|
}),
|
|
2777
|
-
/* @__PURE__ */
|
|
2981
|
+
/* @__PURE__ */ D("div", {
|
|
2778
2982
|
className: Y("slot"),
|
|
2779
2983
|
"data-rly-release-preview-slot": "evidence",
|
|
2780
2984
|
children: r
|
|
2781
2985
|
}),
|
|
2782
|
-
/* @__PURE__ */
|
|
2986
|
+
/* @__PURE__ */ D("div", {
|
|
2783
2987
|
className: Y("slot"),
|
|
2784
2988
|
"data-rly-release-preview-slot": "agent-entry",
|
|
2785
2989
|
children: e
|
|
2786
2990
|
})
|
|
2787
2991
|
]
|
|
2788
|
-
}), ee = /* @__PURE__ */
|
|
2992
|
+
}), ee = /* @__PURE__ */ D(b, {
|
|
2789
2993
|
className: Y("fullViewButton"),
|
|
2790
2994
|
onClick: a,
|
|
2791
2995
|
size: "default",
|
|
2792
2996
|
variant: "secondary",
|
|
2793
2997
|
children: v
|
|
2794
2998
|
});
|
|
2795
|
-
return l === "sheet" ? /* @__PURE__ */
|
|
2999
|
+
return l === "sheet" ? /* @__PURE__ */ D(f.Root, {
|
|
2796
3000
|
onOpenChange: i,
|
|
2797
3001
|
open: s,
|
|
2798
|
-
children: /* @__PURE__ */
|
|
3002
|
+
children: /* @__PURE__ */ O(f.Content, {
|
|
2799
3003
|
entryMotion: n,
|
|
2800
3004
|
initialFocusRef: y,
|
|
2801
3005
|
title: S,
|
|
2802
|
-
children: [/* @__PURE__ */
|
|
3006
|
+
children: [/* @__PURE__ */ D(f.Body, {
|
|
2803
3007
|
"data-rly-release-preview-scroll": "sheet",
|
|
2804
3008
|
children: C
|
|
2805
|
-
}), /* @__PURE__ */
|
|
3009
|
+
}), /* @__PURE__ */ D(f.Footer, {
|
|
2806
3010
|
className: Y("sheetFooter"),
|
|
2807
3011
|
"data-rly-release-preview-footer": "sheet",
|
|
2808
3012
|
children: ee
|
|
2809
3013
|
})]
|
|
2810
3014
|
})
|
|
2811
|
-
}) : /* @__PURE__ */
|
|
3015
|
+
}) : /* @__PURE__ */ D(w.Root, {
|
|
2812
3016
|
onOpenChange: i,
|
|
2813
3017
|
open: s,
|
|
2814
|
-
children: /* @__PURE__ */
|
|
3018
|
+
children: /* @__PURE__ */ D(w.Content, {
|
|
2815
3019
|
className: Y("dialogSurface"),
|
|
2816
3020
|
entryMotion: n,
|
|
2817
3021
|
initialFocusRef: y,
|
|
2818
3022
|
size: "wide",
|
|
2819
3023
|
title: S,
|
|
2820
|
-
children: /* @__PURE__ */
|
|
3024
|
+
children: /* @__PURE__ */ O("div", {
|
|
2821
3025
|
className: Y("dialogFrame"),
|
|
2822
3026
|
children: [
|
|
2823
|
-
/* @__PURE__ */
|
|
3027
|
+
/* @__PURE__ */ D("div", {
|
|
2824
3028
|
className: Y("dialogClose"),
|
|
2825
|
-
children: /* @__PURE__ */
|
|
3029
|
+
children: /* @__PURE__ */ D(w.Close, {
|
|
2826
3030
|
size: "compact",
|
|
2827
3031
|
variant: "quiet",
|
|
2828
3032
|
children: "Close preview"
|
|
2829
3033
|
})
|
|
2830
3034
|
}),
|
|
2831
|
-
/* @__PURE__ */
|
|
3035
|
+
/* @__PURE__ */ D("div", {
|
|
2832
3036
|
className: Y("dialogScroll"),
|
|
2833
3037
|
"data-rly-release-preview-scroll": "dialog",
|
|
2834
3038
|
children: C
|
|
2835
3039
|
}),
|
|
2836
|
-
/* @__PURE__ */
|
|
3040
|
+
/* @__PURE__ */ D("footer", {
|
|
2837
3041
|
className: Y("dialogFooter"),
|
|
2838
3042
|
"data-rly-release-preview-footer": "dialog",
|
|
2839
3043
|
children: ee
|
|
@@ -2842,7 +3046,7 @@ var ue = {
|
|
|
2842
3046
|
})
|
|
2843
3047
|
})
|
|
2844
3048
|
});
|
|
2845
|
-
},
|
|
3049
|
+
}, lr = {
|
|
2846
3050
|
root: "rly_ReleaseRow-module__root",
|
|
2847
3051
|
identity: "rly_ReleaseRow-module__identity",
|
|
2848
3052
|
verdictBlock: "rly_ReleaseRow-module__verdictBlock",
|
|
@@ -2858,26 +3062,26 @@ var ue = {
|
|
|
2858
3062
|
facts: "rly_ReleaseRow-module__facts",
|
|
2859
3063
|
agentEntry: "rly_ReleaseRow-module__agentEntry",
|
|
2860
3064
|
previewButton: "rly_ReleaseRow-module__previewButton"
|
|
2861
|
-
}, X = (e) => c(
|
|
2862
|
-
let c =
|
|
3065
|
+
}, X = (e) => c(lr, e), ur = ({ agentEntry: e, className: t, onPreview: n, previewLabel: r = "Preview release", release: i, transitionNames: a, ...s }) => {
|
|
3066
|
+
let c = $n(i), l = Zn(a), u = o(r, "ReleaseRow previewLabel"), f = `rly-release-row-verdict-${E()}`, p = c.freshnessDateTime === void 0 ? /* @__PURE__ */ D(L, {
|
|
2863
3067
|
size: "compact",
|
|
2864
3068
|
state: c.freshness
|
|
2865
|
-
}) : /* @__PURE__ */
|
|
3069
|
+
}) : /* @__PURE__ */ D(L, {
|
|
2866
3070
|
dateTime: c.freshnessDateTime,
|
|
2867
3071
|
size: "compact",
|
|
2868
3072
|
state: c.freshness,
|
|
2869
3073
|
time: c.freshnessTime
|
|
2870
3074
|
});
|
|
2871
|
-
return /* @__PURE__ */
|
|
3075
|
+
return /* @__PURE__ */ O("article", {
|
|
2872
3076
|
...s,
|
|
2873
3077
|
className: d(X("root"), t),
|
|
2874
3078
|
"data-rly-release-id": c.id,
|
|
2875
3079
|
"data-rly-release-state": c.state,
|
|
2876
3080
|
children: [
|
|
2877
|
-
/* @__PURE__ */
|
|
3081
|
+
/* @__PURE__ */ O("div", {
|
|
2878
3082
|
className: X("identity"),
|
|
2879
3083
|
children: [
|
|
2880
|
-
/* @__PURE__ */
|
|
3084
|
+
/* @__PURE__ */ D(or, {
|
|
2881
3085
|
algorithm: c.algorithm,
|
|
2882
3086
|
codename: c.codename,
|
|
2883
3087
|
"data-rly-release-transition-name": l?.relay,
|
|
@@ -2886,7 +3090,7 @@ var ue = {
|
|
|
2886
3090
|
style: l === void 0 ? void 0 : { viewTransitionName: l.relay },
|
|
2887
3091
|
symbolIndices: c.symbolIndices
|
|
2888
3092
|
}),
|
|
2889
|
-
/* @__PURE__ */
|
|
3093
|
+
/* @__PURE__ */ D("p", {
|
|
2890
3094
|
className: X("version"),
|
|
2891
3095
|
"data-rly-release-transition-name": l?.version,
|
|
2892
3096
|
"data-rly-release-transition-part": "version",
|
|
@@ -2896,70 +3100,70 @@ var ue = {
|
|
|
2896
3100
|
p
|
|
2897
3101
|
]
|
|
2898
3102
|
}),
|
|
2899
|
-
/* @__PURE__ */
|
|
3103
|
+
/* @__PURE__ */ O("section", {
|
|
2900
3104
|
"aria-labelledby": f,
|
|
2901
3105
|
className: X("verdictBlock"),
|
|
2902
3106
|
"data-rly-release-transition-name": l?.verdict,
|
|
2903
3107
|
"data-rly-release-transition-part": "verdict",
|
|
2904
3108
|
style: l === void 0 ? void 0 : { viewTransitionName: l.verdict },
|
|
2905
|
-
children: [/* @__PURE__ */
|
|
3109
|
+
children: [/* @__PURE__ */ D("h2", {
|
|
2906
3110
|
className: X("verdict"),
|
|
2907
3111
|
id: f,
|
|
2908
3112
|
children: c.verdict
|
|
2909
|
-
}), /* @__PURE__ */
|
|
3113
|
+
}), /* @__PURE__ */ D("p", {
|
|
2910
3114
|
className: X("reason"),
|
|
2911
3115
|
children: c.reason
|
|
2912
3116
|
})]
|
|
2913
3117
|
}),
|
|
2914
|
-
/* @__PURE__ */
|
|
3118
|
+
/* @__PURE__ */ O("div", {
|
|
2915
3119
|
className: X("people"),
|
|
2916
|
-
children: [/* @__PURE__ */
|
|
3120
|
+
children: [/* @__PURE__ */ O("div", {
|
|
2917
3121
|
className: X("personGroup"),
|
|
2918
|
-
children: [/* @__PURE__ */
|
|
3122
|
+
children: [/* @__PURE__ */ D("span", {
|
|
2919
3123
|
className: X("eyebrow"),
|
|
2920
3124
|
children: "Owner"
|
|
2921
|
-
}), c.owner === void 0 ? /* @__PURE__ */
|
|
3125
|
+
}), c.owner === void 0 ? /* @__PURE__ */ D("span", {
|
|
2922
3126
|
className: X("unassigned"),
|
|
2923
3127
|
"data-rly-release-owner": "unassigned",
|
|
2924
3128
|
children: "Unassigned"
|
|
2925
|
-
}) : /* @__PURE__ */
|
|
3129
|
+
}) : /* @__PURE__ */ D(P, {
|
|
2926
3130
|
person: c.owner,
|
|
2927
3131
|
size: "compact"
|
|
2928
3132
|
})]
|
|
2929
|
-
}), c.approver === void 0 ? null : /* @__PURE__ */
|
|
3133
|
+
}), c.approver === void 0 ? null : /* @__PURE__ */ O("div", {
|
|
2930
3134
|
className: X("personGroup"),
|
|
2931
|
-
children: [/* @__PURE__ */
|
|
3135
|
+
children: [/* @__PURE__ */ D("span", {
|
|
2932
3136
|
className: X("eyebrow"),
|
|
2933
3137
|
children: "Approver"
|
|
2934
|
-
}), /* @__PURE__ */
|
|
3138
|
+
}), /* @__PURE__ */ D(P, {
|
|
2935
3139
|
person: c.approver,
|
|
2936
3140
|
size: "compact"
|
|
2937
3141
|
})]
|
|
2938
3142
|
})]
|
|
2939
3143
|
}),
|
|
2940
|
-
/* @__PURE__ */
|
|
3144
|
+
/* @__PURE__ */ D("dl", {
|
|
2941
3145
|
className: X("facts"),
|
|
2942
|
-
children: c.facts.map((e) => /* @__PURE__ */
|
|
3146
|
+
children: c.facts.map((e) => /* @__PURE__ */ O("div", {
|
|
2943
3147
|
className: X("fact"),
|
|
2944
3148
|
"data-rly-release-fact": e.id,
|
|
2945
|
-
children: [/* @__PURE__ */
|
|
3149
|
+
children: [/* @__PURE__ */ D("dt", { children: e.label }), /* @__PURE__ */ D("dd", { children: e.value })]
|
|
2946
3150
|
}, e.id))
|
|
2947
3151
|
}),
|
|
2948
|
-
/* @__PURE__ */
|
|
3152
|
+
/* @__PURE__ */ O("div", {
|
|
2949
3153
|
className: X("actions"),
|
|
2950
|
-
children: [/* @__PURE__ */
|
|
3154
|
+
children: [/* @__PURE__ */ D(b, {
|
|
2951
3155
|
className: X("previewButton"),
|
|
2952
3156
|
onClick: n,
|
|
2953
3157
|
size: "default",
|
|
2954
3158
|
children: u
|
|
2955
|
-
}), e === void 0 ? null : /* @__PURE__ */
|
|
3159
|
+
}), e === void 0 ? null : /* @__PURE__ */ D("div", {
|
|
2956
3160
|
className: X("agentEntry"),
|
|
2957
3161
|
children: e
|
|
2958
3162
|
})]
|
|
2959
3163
|
})
|
|
2960
3164
|
]
|
|
2961
3165
|
});
|
|
2962
|
-
},
|
|
3166
|
+
}, dr = {
|
|
2963
3167
|
root: "rly_StageRail-module__root",
|
|
2964
3168
|
heading: "rly_StageRail-module__heading",
|
|
2965
3169
|
list: "rly_StageRail-module__list",
|
|
@@ -2972,8 +3176,13 @@ var ue = {
|
|
|
2972
3176
|
empty: "rly_StageRail-module__empty",
|
|
2973
3177
|
compact: "rly_StageRail-module__compact",
|
|
2974
3178
|
defaultSize: "rly_StageRail-module__defaultSize",
|
|
2975
|
-
long: "rly_StageRail-module__long"
|
|
2976
|
-
|
|
3179
|
+
long: "rly_StageRail-module__long",
|
|
3180
|
+
words: "rly_StageRail-module__words",
|
|
3181
|
+
wordList: "rly_StageRail-module__wordList",
|
|
3182
|
+
word: "rly_StageRail-module__word",
|
|
3183
|
+
wordState: "rly_StageRail-module__wordState",
|
|
3184
|
+
wordReason: "rly_StageRail-module__wordReason"
|
|
3185
|
+
}, Z = (e) => c(dr, e), fr = l({ size: {
|
|
2977
3186
|
compact: {
|
|
2978
3187
|
className: Z("compact"),
|
|
2979
3188
|
purpose: "Dense release and entity stage summaries",
|
|
@@ -2993,8 +3202,19 @@ var ue = {
|
|
|
2993
3202
|
"type-card-title",
|
|
2994
3203
|
"type-body"
|
|
2995
3204
|
]
|
|
3205
|
+
},
|
|
3206
|
+
words: {
|
|
3207
|
+
className: Z("words"),
|
|
3208
|
+
purpose: "Stages as one line of words inside a row or fact (no markers, chips or owners); only blocking and held states take ink",
|
|
3209
|
+
tokens: [
|
|
3210
|
+
"type-meta",
|
|
3211
|
+
"color-text-1",
|
|
3212
|
+
"color-text-2",
|
|
3213
|
+
"color-blocked-ink",
|
|
3214
|
+
"color-held-ink"
|
|
3215
|
+
]
|
|
2996
3216
|
}
|
|
2997
|
-
} }),
|
|
3217
|
+
} }), pr = l({ size: "default" }), mr = (e) => {
|
|
2998
3218
|
let t = /* @__PURE__ */ new Set();
|
|
2999
3219
|
for (let n of e) {
|
|
3000
3220
|
let e = o(n.id, "StageRail stage id");
|
|
@@ -3002,54 +3222,75 @@ var ue = {
|
|
|
3002
3222
|
t.add(e);
|
|
3003
3223
|
}
|
|
3004
3224
|
return e;
|
|
3005
|
-
},
|
|
3006
|
-
let s = o(n, "StageRail heading"), c = o(t, "StageRail emptyLabel"), l =
|
|
3007
|
-
return /* @__PURE__ */
|
|
3225
|
+
}, hr = (e) => e === "critical" ? "blocked" : e === "caution" ? "held" : "quiet", gr = ({ className: e, emptyLabel: t = "No stages recorded.", heading: n, size: r = "default", stages: i, ...a }) => {
|
|
3226
|
+
let s = o(n, "StageRail heading"), c = o(t, "StageRail emptyLabel"), l = mr(i), u = `rly-stage-rail-${E()}`;
|
|
3227
|
+
return /* @__PURE__ */ O("section", {
|
|
3008
3228
|
...a,
|
|
3009
|
-
"aria-labelledby": u,
|
|
3010
|
-
className: d(Z("root"),
|
|
3229
|
+
"aria-labelledby": r === "words" ? void 0 : u,
|
|
3230
|
+
className: d(Z("root"), fr.size[r].className, l.length > 6 && Z("long"), e),
|
|
3011
3231
|
"data-rly-stage-rail-size": r,
|
|
3012
|
-
children: [/* @__PURE__ */
|
|
3232
|
+
children: [r === "words" ? null : /* @__PURE__ */ D("h2", {
|
|
3013
3233
|
className: Z("heading"),
|
|
3014
3234
|
id: u,
|
|
3015
3235
|
children: s
|
|
3016
|
-
}), l.length === 0 ? /* @__PURE__ */
|
|
3236
|
+
}), l.length === 0 ? /* @__PURE__ */ D("p", {
|
|
3017
3237
|
className: Z("empty"),
|
|
3018
3238
|
children: c
|
|
3019
|
-
}) : /* @__PURE__ */
|
|
3239
|
+
}) : r === "words" ? /* @__PURE__ */ D("ol", {
|
|
3240
|
+
"aria-label": s,
|
|
3241
|
+
className: Z("wordList"),
|
|
3242
|
+
children: l.map((e, t) => /* @__PURE__ */ O("li", {
|
|
3243
|
+
className: Z("word"),
|
|
3244
|
+
"data-rly-stage-id": e.id,
|
|
3245
|
+
children: [
|
|
3246
|
+
e.name,
|
|
3247
|
+
" ",
|
|
3248
|
+
/* @__PURE__ */ D("span", {
|
|
3249
|
+
className: Z("wordState"),
|
|
3250
|
+
"data-rly-stage-word": hr(e.tone),
|
|
3251
|
+
children: e.state
|
|
3252
|
+
}),
|
|
3253
|
+
e.reason === void 0 ? null : /* @__PURE__ */ O("span", {
|
|
3254
|
+
className: Z("wordReason"),
|
|
3255
|
+
children: [": ", e.reason]
|
|
3256
|
+
}),
|
|
3257
|
+
t === l.length - 1 ? null : ","
|
|
3258
|
+
]
|
|
3259
|
+
}, e.id))
|
|
3260
|
+
}) : /* @__PURE__ */ D("ol", {
|
|
3020
3261
|
className: Z("list"),
|
|
3021
|
-
children: l.map((e, t) => /* @__PURE__ */
|
|
3262
|
+
children: l.map((e, t) => /* @__PURE__ */ O("li", {
|
|
3022
3263
|
className: Z("item"),
|
|
3023
3264
|
"data-rly-stage-id": e.id,
|
|
3024
3265
|
children: [
|
|
3025
|
-
/* @__PURE__ */
|
|
3266
|
+
/* @__PURE__ */ D("span", {
|
|
3026
3267
|
"aria-hidden": "true",
|
|
3027
3268
|
className: Z("marker"),
|
|
3028
3269
|
"data-rly-stage-marker": "",
|
|
3029
3270
|
children: t + 1
|
|
3030
3271
|
}),
|
|
3031
|
-
t === l.length - 1 ? null : /* @__PURE__ */
|
|
3272
|
+
t === l.length - 1 ? null : /* @__PURE__ */ D("span", {
|
|
3032
3273
|
"aria-hidden": "true",
|
|
3033
3274
|
className: Z("connector"),
|
|
3034
3275
|
"data-rly-stage-connector": ""
|
|
3035
3276
|
}),
|
|
3036
|
-
/* @__PURE__ */
|
|
3277
|
+
/* @__PURE__ */ O("div", {
|
|
3037
3278
|
className: Z("content"),
|
|
3038
3279
|
children: [
|
|
3039
|
-
/* @__PURE__ */
|
|
3280
|
+
/* @__PURE__ */ D("h3", {
|
|
3040
3281
|
className: Z("name"),
|
|
3041
3282
|
children: e.name
|
|
3042
3283
|
}),
|
|
3043
|
-
/* @__PURE__ */
|
|
3284
|
+
/* @__PURE__ */ D(T, {
|
|
3044
3285
|
label: e.state,
|
|
3045
|
-
size: r === "
|
|
3286
|
+
size: r === "default" ? "default" : "compact",
|
|
3046
3287
|
tone: e.tone
|
|
3047
3288
|
}),
|
|
3048
|
-
e.reason === void 0 ? null : /* @__PURE__ */
|
|
3289
|
+
e.reason === void 0 ? null : /* @__PURE__ */ D("p", {
|
|
3049
3290
|
className: Z("reason"),
|
|
3050
3291
|
children: e.reason
|
|
3051
3292
|
}),
|
|
3052
|
-
e.owner === void 0 ? null : /* @__PURE__ */
|
|
3293
|
+
e.owner === void 0 ? null : /* @__PURE__ */ D(P, {
|
|
3053
3294
|
person: e.owner,
|
|
3054
3295
|
size: r
|
|
3055
3296
|
})
|
|
@@ -3059,7 +3300,7 @@ var ue = {
|
|
|
3059
3300
|
}, e.id))
|
|
3060
3301
|
})]
|
|
3061
3302
|
});
|
|
3062
|
-
},
|
|
3303
|
+
}, _r = {
|
|
3063
3304
|
root: "rly_TimelineRow-module__root",
|
|
3064
3305
|
time: "rly_TimelineRow-module__time",
|
|
3065
3306
|
marker: "rly_TimelineRow-module__marker",
|
|
@@ -3071,64 +3312,93 @@ var ue = {
|
|
|
3071
3312
|
link: "rly_TimelineRow-module__link",
|
|
3072
3313
|
detail: "rly_TimelineRow-module__detail",
|
|
3073
3314
|
actorKind: "rly_TimelineRow-module__actorKind",
|
|
3074
|
-
actor: "rly_TimelineRow-module__actor"
|
|
3075
|
-
|
|
3315
|
+
actor: "rly_TimelineRow-module__actor",
|
|
3316
|
+
markAuto: "rly_TimelineRow-module__markAuto",
|
|
3317
|
+
markApproved: "rly_TimelineRow-module__markApproved",
|
|
3318
|
+
markPending: "rly_TimelineRow-module__markPending",
|
|
3319
|
+
markUnknown: "rly_TimelineRow-module__markUnknown",
|
|
3320
|
+
markFlag: "rly_TimelineRow-module__markFlag",
|
|
3321
|
+
provenance: "rly_TimelineRow-module__provenance",
|
|
3322
|
+
key: "rly_TimelineRow-module__key",
|
|
3323
|
+
keyItem: "rly_TimelineRow-module__keyItem"
|
|
3324
|
+
}, Q = (e) => c(_r, e), vr = {
|
|
3076
3325
|
human: "Human",
|
|
3077
3326
|
agent: "Agent",
|
|
3078
3327
|
plugin: "Plugin",
|
|
3079
3328
|
system: "System"
|
|
3080
|
-
},
|
|
3081
|
-
|
|
3329
|
+
}, yr = {
|
|
3330
|
+
auto: "markAuto",
|
|
3331
|
+
approved: "markApproved",
|
|
3332
|
+
pending: "markPending",
|
|
3333
|
+
unknown: "markUnknown",
|
|
3334
|
+
flag: "markFlag"
|
|
3335
|
+
}, br = (e) => {
|
|
3336
|
+
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) {
|
|
3337
|
+
if (!Object.hasOwn(yr, e.provenance.kind)) throw Error("TimelineRow provenance kind must be auto, approved, pending, unknown, or flag");
|
|
3338
|
+
o(e.provenance.label, "TimelineRow provenance label");
|
|
3339
|
+
}
|
|
3340
|
+
if (!Object.hasOwn(vr, e.actorKind)) throw Error("TimelineRow event actorKind must be human, agent, plugin, or system");
|
|
3082
3341
|
return e;
|
|
3083
|
-
},
|
|
3084
|
-
let a =
|
|
3342
|
+
}, xr = ({ className: e, continued: t, event: n, ...i }) => {
|
|
3343
|
+
let a = br(n), o = `rly-timeline-row-${E()}`, s = /* @__PURE__ */ D("h2", {
|
|
3085
3344
|
className: Q("title"),
|
|
3086
3345
|
id: o,
|
|
3087
3346
|
children: a.title
|
|
3088
3347
|
});
|
|
3089
|
-
return /* @__PURE__ */
|
|
3348
|
+
return /* @__PURE__ */ O("li", {
|
|
3090
3349
|
...i,
|
|
3091
3350
|
className: d(Q("root"), e),
|
|
3092
3351
|
"data-rly-timeline-actor": a.actorKind,
|
|
3093
3352
|
"data-rly-timeline-event-id": a.id,
|
|
3094
3353
|
children: [
|
|
3095
|
-
/* @__PURE__ */
|
|
3354
|
+
/* @__PURE__ */ D("time", {
|
|
3096
3355
|
className: Q("time"),
|
|
3097
3356
|
dateTime: a.dateTime,
|
|
3098
3357
|
children: a.time
|
|
3099
3358
|
}),
|
|
3100
|
-
/* @__PURE__ */
|
|
3359
|
+
/* @__PURE__ */ O("span", {
|
|
3101
3360
|
"aria-hidden": "true",
|
|
3102
3361
|
className: Q("marker"),
|
|
3103
|
-
children: [/* @__PURE__ */
|
|
3362
|
+
children: [/* @__PURE__ */ D("span", {
|
|
3363
|
+
className: a.provenance === void 0 ? Q("dot") : Q(yr[a.provenance.kind]),
|
|
3364
|
+
"data-rly-timeline-provenance": a.provenance?.kind
|
|
3365
|
+
}), t ? /* @__PURE__ */ D("span", {
|
|
3104
3366
|
className: Q("connector"),
|
|
3105
3367
|
"data-rly-timeline-connector": ""
|
|
3106
3368
|
}) : null]
|
|
3107
3369
|
}),
|
|
3108
|
-
/* @__PURE__ */
|
|
3370
|
+
/* @__PURE__ */ O("article", {
|
|
3109
3371
|
"aria-labelledby": o,
|
|
3110
3372
|
className: Q("content"),
|
|
3111
|
-
children: [
|
|
3112
|
-
|
|
3113
|
-
|
|
3114
|
-
|
|
3115
|
-
|
|
3116
|
-
|
|
3117
|
-
|
|
3118
|
-
|
|
3373
|
+
children: [
|
|
3374
|
+
a.href === void 0 ? s : /* @__PURE__ */ D(r, {
|
|
3375
|
+
className: Q("link"),
|
|
3376
|
+
href: a.href,
|
|
3377
|
+
children: s
|
|
3378
|
+
}),
|
|
3379
|
+
/* @__PURE__ */ D("p", {
|
|
3380
|
+
className: Q("detail"),
|
|
3381
|
+
children: a.detail
|
|
3382
|
+
}),
|
|
3383
|
+
a.provenance === void 0 ? null : /* @__PURE__ */ D("p", {
|
|
3384
|
+
className: Q("provenance"),
|
|
3385
|
+
"data-rly-timeline-provenance-label": a.provenance.kind,
|
|
3386
|
+
children: a.provenance.label
|
|
3387
|
+
})
|
|
3388
|
+
]
|
|
3119
3389
|
}),
|
|
3120
|
-
/* @__PURE__ */
|
|
3390
|
+
/* @__PURE__ */ O("div", {
|
|
3121
3391
|
className: Q("meta"),
|
|
3122
3392
|
children: [
|
|
3123
|
-
/* @__PURE__ */
|
|
3393
|
+
/* @__PURE__ */ D("span", {
|
|
3124
3394
|
className: Q("actorKind"),
|
|
3125
|
-
children:
|
|
3395
|
+
children: vr[a.actorKind]
|
|
3126
3396
|
}),
|
|
3127
|
-
a.service === void 0 ? null : /* @__PURE__ */
|
|
3397
|
+
a.service === void 0 ? null : /* @__PURE__ */ D(z, {
|
|
3128
3398
|
service: a.service,
|
|
3129
3399
|
size: "compact"
|
|
3130
3400
|
}),
|
|
3131
|
-
a.actor === void 0 ? null : /* @__PURE__ */
|
|
3401
|
+
a.actor === void 0 ? null : /* @__PURE__ */ D("div", {
|
|
3132
3402
|
className: Q("actor"),
|
|
3133
3403
|
children: a.actor
|
|
3134
3404
|
})
|
|
@@ -3136,7 +3406,36 @@ var ue = {
|
|
|
3136
3406
|
})
|
|
3137
3407
|
]
|
|
3138
3408
|
});
|
|
3139
|
-
},
|
|
3409
|
+
}, Sr = {
|
|
3410
|
+
auto: "applied automatically",
|
|
3411
|
+
approved: "approved",
|
|
3412
|
+
pending: "waiting for approval",
|
|
3413
|
+
unknown: "couldn't read",
|
|
3414
|
+
flag: "flag only"
|
|
3415
|
+
}, Cr = ({ className: e, kinds: t = [
|
|
3416
|
+
"auto",
|
|
3417
|
+
"approved",
|
|
3418
|
+
"pending",
|
|
3419
|
+
"unknown",
|
|
3420
|
+
"flag"
|
|
3421
|
+
], label: n, labels: r = {}, ...i }) => /* @__PURE__ */ D("ul", {
|
|
3422
|
+
...i,
|
|
3423
|
+
"aria-label": o(n, "TimelineProvenanceKey label"),
|
|
3424
|
+
className: d(Q("key"), e),
|
|
3425
|
+
role: "list",
|
|
3426
|
+
children: t.map((e) => /* @__PURE__ */ O("li", {
|
|
3427
|
+
className: Q("keyItem"),
|
|
3428
|
+
children: [
|
|
3429
|
+
/* @__PURE__ */ D("span", {
|
|
3430
|
+
"aria-hidden": "true",
|
|
3431
|
+
className: Q(yr[e]),
|
|
3432
|
+
"data-rly-timeline-provenance": e
|
|
3433
|
+
}),
|
|
3434
|
+
" ",
|
|
3435
|
+
r[e] ?? Sr[e]
|
|
3436
|
+
]
|
|
3437
|
+
}, e))
|
|
3438
|
+
}), wr = {
|
|
3140
3439
|
root: "rly_WorksetCard-module__root",
|
|
3141
3440
|
heading: "rly_WorksetCard-module__heading",
|
|
3142
3441
|
dimensions: "rly_WorksetCard-module__dimensions",
|
|
@@ -3156,97 +3455,97 @@ var ue = {
|
|
|
3156
3455
|
conceptLabel: "rly_WorksetCard-module__conceptLabel",
|
|
3157
3456
|
emptyLink: "rly_WorksetCard-module__emptyLink",
|
|
3158
3457
|
linkedWork: "rly_WorksetCard-module__linkedWork"
|
|
3159
|
-
}, $ = (e) => c(
|
|
3458
|
+
}, $ = (e) => c(wr, e), Tr = (e, t) => {
|
|
3160
3459
|
e !== void 0 && o(e, `${t} href`);
|
|
3161
|
-
},
|
|
3460
|
+
}, Er = (e, t, n) => {
|
|
3162
3461
|
let r = o(e, `${n} id`);
|
|
3163
3462
|
if (t.has(r)) throw Error(`${n} ids must be unique: ${r}`);
|
|
3164
3463
|
return t.add(r), r;
|
|
3165
|
-
},
|
|
3464
|
+
}, Dr = (e) => {
|
|
3166
3465
|
let t = /* @__PURE__ */ new Set();
|
|
3167
3466
|
for (let n of e) {
|
|
3168
|
-
let e =
|
|
3169
|
-
o(n.key, `WorksetCard Jira key for ${e}`), o(n.title, `WorksetCard Jira title for ${e}`), o(n.state, `WorksetCard Jira state for ${e}`),
|
|
3467
|
+
let e = Er(n.id, t, "WorksetCard Jira item");
|
|
3468
|
+
o(n.key, `WorksetCard Jira key for ${e}`), o(n.title, `WorksetCard Jira title for ${e}`), o(n.state, `WorksetCard Jira state for ${e}`), Tr(n.href, `WorksetCard Jira item ${e}`);
|
|
3170
3469
|
}
|
|
3171
|
-
},
|
|
3470
|
+
}, Or = (e) => {
|
|
3172
3471
|
let t = /* @__PURE__ */ new Set();
|
|
3173
3472
|
for (let n of e) {
|
|
3174
|
-
let e =
|
|
3175
|
-
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}`),
|
|
3473
|
+
let e = Er(n.id, t, "WorksetCard pull request group");
|
|
3474
|
+
o(n.title, `WorksetCard pull request title for ${e}`), o(n.reference, `WorksetCard pull request reference for ${e}`), o(n.state, `WorksetCard pull request state for ${e}`), Tr(n.href, `WorksetCard pull request group ${e}`);
|
|
3176
3475
|
for (let t of n.linkedJiraKeys) o(t, `WorksetCard linked Jira key for ${e}`);
|
|
3177
3476
|
}
|
|
3178
|
-
},
|
|
3477
|
+
}, kr = (e) => {
|
|
3179
3478
|
let t = /* @__PURE__ */ new Set();
|
|
3180
3479
|
for (let n of e) {
|
|
3181
|
-
let e =
|
|
3182
|
-
if (o(n.label, `WorksetCard gap label for ${e}`), o(n.reason, `WorksetCard gap reason for ${e}`), !Object.hasOwn(
|
|
3480
|
+
let e = Er(n.id, t, "WorksetCard gap");
|
|
3481
|
+
if (o(n.label, `WorksetCard gap label for ${e}`), o(n.reason, `WorksetCard gap reason for ${e}`), !Object.hasOwn(ct.service, n.service)) throw Error(`WorksetCard gap service for ${e} must be supported`);
|
|
3183
3482
|
}
|
|
3184
|
-
},
|
|
3483
|
+
}, Ar = (e) => {
|
|
3185
3484
|
let t = /* @__PURE__ */ new Set();
|
|
3186
3485
|
for (let n of e) {
|
|
3187
|
-
let e =
|
|
3188
|
-
o(n.title, `WorksetCard pipeline title for ${e}`), o(n.reference, `WorksetCard pipeline reference for ${e}`), o(n.state, `WorksetCard pipeline state for ${e}`),
|
|
3486
|
+
let e = Er(n.id, t, "WorksetCard pipeline");
|
|
3487
|
+
o(n.title, `WorksetCard pipeline title for ${e}`), o(n.reference, `WorksetCard pipeline reference for ${e}`), o(n.state, `WorksetCard pipeline state for ${e}`), Tr(n.href, `WorksetCard pipeline ${e}`);
|
|
3189
3488
|
}
|
|
3190
|
-
},
|
|
3191
|
-
let i = /* @__PURE__ */
|
|
3489
|
+
}, jr = ({ href: e, reference: t, title: n }) => {
|
|
3490
|
+
let i = /* @__PURE__ */ O("span", {
|
|
3192
3491
|
className: $("identity"),
|
|
3193
|
-
children: [/* @__PURE__ */
|
|
3492
|
+
children: [/* @__PURE__ */ D("span", {
|
|
3194
3493
|
className: $("itemTitle"),
|
|
3195
3494
|
children: n
|
|
3196
|
-
}), /* @__PURE__ */
|
|
3495
|
+
}), /* @__PURE__ */ D("span", {
|
|
3197
3496
|
className: $("reference"),
|
|
3198
3497
|
children: t
|
|
3199
3498
|
})]
|
|
3200
3499
|
});
|
|
3201
|
-
return e === void 0 ? i : /* @__PURE__ */
|
|
3500
|
+
return e === void 0 ? i : /* @__PURE__ */ D(r, {
|
|
3202
3501
|
className: $("link"),
|
|
3203
3502
|
href: e,
|
|
3204
3503
|
children: i
|
|
3205
3504
|
});
|
|
3206
|
-
},
|
|
3505
|
+
}, Mr = ({ className: e, gapEmptyLabel: t = "No relationship gaps recorded.", gaps: n, heading: r, jiraEmptyLabel: i = "No Jira work recorded.", jiraItems: a, pipelineEmptyLabel: s = "No pipeline delivery recorded.", pipelines: c, pullRequestEmptyLabel: l = "No pull request groups recorded.", pullRequestGroups: u, ...f }) => {
|
|
3207
3506
|
let p = o(r, "WorksetCard heading"), m = o(i, "WorksetCard jiraEmptyLabel"), h = o(l, "WorksetCard pullRequestEmptyLabel"), g = o(t, "WorksetCard gapEmptyLabel"), _ = o(s, "WorksetCard pipelineEmptyLabel");
|
|
3208
|
-
|
|
3209
|
-
let v = `rly-workset-${
|
|
3210
|
-
return /* @__PURE__ */
|
|
3507
|
+
Dr(a), Or(u), kr(n), Ar(c);
|
|
3508
|
+
let v = `rly-workset-${E()}`;
|
|
3509
|
+
return /* @__PURE__ */ O("section", {
|
|
3211
3510
|
...f,
|
|
3212
3511
|
"aria-labelledby": v,
|
|
3213
3512
|
className: d($("root"), e),
|
|
3214
|
-
children: [/* @__PURE__ */
|
|
3513
|
+
children: [/* @__PURE__ */ D("h2", {
|
|
3215
3514
|
className: $("heading"),
|
|
3216
3515
|
id: v,
|
|
3217
3516
|
children: p
|
|
3218
|
-
}), /* @__PURE__ */
|
|
3517
|
+
}), /* @__PURE__ */ O("div", {
|
|
3219
3518
|
className: $("dimensions"),
|
|
3220
3519
|
children: [
|
|
3221
|
-
/* @__PURE__ */
|
|
3520
|
+
/* @__PURE__ */ O("section", {
|
|
3222
3521
|
className: $("dimension"),
|
|
3223
3522
|
"data-rly-workset-dimension": "jira",
|
|
3224
|
-
children: [/* @__PURE__ */
|
|
3523
|
+
children: [/* @__PURE__ */ O("div", {
|
|
3225
3524
|
className: $("dimensionHeading"),
|
|
3226
|
-
children: [/* @__PURE__ */
|
|
3525
|
+
children: [/* @__PURE__ */ D(z, {
|
|
3227
3526
|
service: "jira",
|
|
3228
3527
|
size: "compact"
|
|
3229
|
-
}), /* @__PURE__ */
|
|
3230
|
-
}), a.length === 0 ? /* @__PURE__ */
|
|
3528
|
+
}), /* @__PURE__ */ D("h3", { children: "Jira work" })]
|
|
3529
|
+
}), a.length === 0 ? /* @__PURE__ */ D("p", {
|
|
3231
3530
|
className: $("empty"),
|
|
3232
3531
|
children: m
|
|
3233
|
-
}) : /* @__PURE__ */
|
|
3532
|
+
}) : /* @__PURE__ */ D("ul", {
|
|
3234
3533
|
className: $("list"),
|
|
3235
|
-
children: a.map((e) => /* @__PURE__ */
|
|
3534
|
+
children: a.map((e) => /* @__PURE__ */ O("li", {
|
|
3236
3535
|
className: $("item"),
|
|
3237
3536
|
"data-rly-workset-jira-id": e.id,
|
|
3238
3537
|
children: [
|
|
3239
|
-
/* @__PURE__ */
|
|
3538
|
+
/* @__PURE__ */ D(jr, {
|
|
3240
3539
|
...e.href === void 0 ? {} : { href: e.href },
|
|
3241
3540
|
reference: e.key,
|
|
3242
3541
|
title: e.title
|
|
3243
3542
|
}),
|
|
3244
|
-
/* @__PURE__ */
|
|
3543
|
+
/* @__PURE__ */ D(T, {
|
|
3245
3544
|
label: e.state,
|
|
3246
3545
|
size: "compact",
|
|
3247
3546
|
tone: e.tone
|
|
3248
3547
|
}),
|
|
3249
|
-
e.owner === void 0 ? null : /* @__PURE__ */
|
|
3548
|
+
e.owner === void 0 ? null : /* @__PURE__ */ D(P, {
|
|
3250
3549
|
person: e.owner,
|
|
3251
3550
|
size: "compact"
|
|
3252
3551
|
})
|
|
@@ -3254,119 +3553,119 @@ var ue = {
|
|
|
3254
3553
|
}, e.id))
|
|
3255
3554
|
})]
|
|
3256
3555
|
}),
|
|
3257
|
-
/* @__PURE__ */
|
|
3556
|
+
/* @__PURE__ */ O("section", {
|
|
3258
3557
|
className: $("dimension"),
|
|
3259
3558
|
"data-rly-workset-dimension": "pull-requests",
|
|
3260
3559
|
children: [
|
|
3261
|
-
/* @__PURE__ */
|
|
3560
|
+
/* @__PURE__ */ O("div", {
|
|
3262
3561
|
className: $("dimensionHeading"),
|
|
3263
|
-
children: [/* @__PURE__ */
|
|
3562
|
+
children: [/* @__PURE__ */ D(z, {
|
|
3264
3563
|
service: "codecommit",
|
|
3265
3564
|
size: "compact"
|
|
3266
|
-
}), /* @__PURE__ */
|
|
3565
|
+
}), /* @__PURE__ */ D("h3", { children: "Pull request groups" })]
|
|
3267
3566
|
}),
|
|
3268
|
-
u.length === 0 ? /* @__PURE__ */
|
|
3567
|
+
u.length === 0 ? /* @__PURE__ */ D("p", {
|
|
3269
3568
|
className: $("empty"),
|
|
3270
3569
|
children: h
|
|
3271
|
-
}) : /* @__PURE__ */
|
|
3570
|
+
}) : /* @__PURE__ */ D("ul", {
|
|
3272
3571
|
className: $("list"),
|
|
3273
|
-
children: u.map((e) => /* @__PURE__ */
|
|
3572
|
+
children: u.map((e) => /* @__PURE__ */ O("li", {
|
|
3274
3573
|
className: $("item"),
|
|
3275
3574
|
"data-rly-workset-pr-id": e.id,
|
|
3276
3575
|
children: [
|
|
3277
|
-
/* @__PURE__ */
|
|
3576
|
+
/* @__PURE__ */ D(jr, {
|
|
3278
3577
|
...e.href === void 0 ? {} : { href: e.href },
|
|
3279
3578
|
reference: e.reference,
|
|
3280
3579
|
title: e.title
|
|
3281
3580
|
}),
|
|
3282
|
-
/* @__PURE__ */
|
|
3581
|
+
/* @__PURE__ */ D(T, {
|
|
3283
3582
|
label: e.state,
|
|
3284
3583
|
size: "compact",
|
|
3285
3584
|
tone: e.tone
|
|
3286
3585
|
}),
|
|
3287
|
-
/* @__PURE__ */
|
|
3586
|
+
/* @__PURE__ */ O("div", {
|
|
3288
3587
|
className: $("linkedWork"),
|
|
3289
|
-
children: [/* @__PURE__ */
|
|
3588
|
+
children: [/* @__PURE__ */ D("span", {
|
|
3290
3589
|
className: $("conceptLabel"),
|
|
3291
3590
|
children: "Linked Jira work"
|
|
3292
|
-
}), e.linkedJiraKeys.length === 0 ? /* @__PURE__ */
|
|
3591
|
+
}), e.linkedJiraKeys.length === 0 ? /* @__PURE__ */ D("span", {
|
|
3293
3592
|
className: $("emptyLink"),
|
|
3294
3593
|
children: "No Jira links recorded."
|
|
3295
|
-
}) : /* @__PURE__ */
|
|
3594
|
+
}) : /* @__PURE__ */ D("ul", {
|
|
3296
3595
|
className: $("keyList"),
|
|
3297
|
-
children: e.linkedJiraKeys.map((e, t) => /* @__PURE__ */
|
|
3596
|
+
children: e.linkedJiraKeys.map((e, t) => /* @__PURE__ */ D("li", {
|
|
3298
3597
|
"data-rly-linked-jira-key": e,
|
|
3299
3598
|
children: e
|
|
3300
3599
|
}, `${e}-${t}`))
|
|
3301
3600
|
})]
|
|
3302
3601
|
}),
|
|
3303
|
-
e.author === void 0 ? null : /* @__PURE__ */
|
|
3602
|
+
e.author === void 0 ? null : /* @__PURE__ */ D(P, {
|
|
3304
3603
|
person: e.author,
|
|
3305
3604
|
size: "compact"
|
|
3306
3605
|
})
|
|
3307
3606
|
]
|
|
3308
3607
|
}, e.id))
|
|
3309
3608
|
}),
|
|
3310
|
-
/* @__PURE__ */
|
|
3609
|
+
/* @__PURE__ */ O("div", {
|
|
3311
3610
|
className: $("gaps"),
|
|
3312
|
-
children: [/* @__PURE__ */
|
|
3611
|
+
children: [/* @__PURE__ */ D("h4", { children: "Relationship gaps" }), n.length === 0 ? /* @__PURE__ */ D("p", {
|
|
3313
3612
|
className: $("empty"),
|
|
3314
3613
|
children: g
|
|
3315
|
-
}) : /* @__PURE__ */
|
|
3614
|
+
}) : /* @__PURE__ */ D("ul", {
|
|
3316
3615
|
className: $("gapList"),
|
|
3317
|
-
children: n.map((e) => /* @__PURE__ */
|
|
3616
|
+
children: n.map((e) => /* @__PURE__ */ O("li", {
|
|
3318
3617
|
className: $("gap"),
|
|
3319
3618
|
"data-rly-workset-gap-id": e.id,
|
|
3320
3619
|
children: [
|
|
3321
|
-
/* @__PURE__ */
|
|
3620
|
+
/* @__PURE__ */ D(z, {
|
|
3322
3621
|
service: e.service,
|
|
3323
3622
|
size: "compact"
|
|
3324
3623
|
}),
|
|
3325
|
-
/* @__PURE__ */
|
|
3326
|
-
/* @__PURE__ */
|
|
3624
|
+
/* @__PURE__ */ D("strong", { children: e.label }),
|
|
3625
|
+
/* @__PURE__ */ D("span", { children: e.reason })
|
|
3327
3626
|
]
|
|
3328
3627
|
}, e.id))
|
|
3329
3628
|
})]
|
|
3330
3629
|
})
|
|
3331
3630
|
]
|
|
3332
3631
|
}),
|
|
3333
|
-
/* @__PURE__ */
|
|
3632
|
+
/* @__PURE__ */ O("section", {
|
|
3334
3633
|
className: $("dimension"),
|
|
3335
3634
|
"data-rly-workset-dimension": "pipelines",
|
|
3336
|
-
children: [/* @__PURE__ */
|
|
3635
|
+
children: [/* @__PURE__ */ O("div", {
|
|
3337
3636
|
className: $("dimensionHeading"),
|
|
3338
|
-
children: [/* @__PURE__ */
|
|
3637
|
+
children: [/* @__PURE__ */ D(z, {
|
|
3339
3638
|
service: "codepipeline",
|
|
3340
3639
|
size: "compact"
|
|
3341
|
-
}), /* @__PURE__ */
|
|
3342
|
-
}), c.length === 0 ? /* @__PURE__ */
|
|
3640
|
+
}), /* @__PURE__ */ D("h3", { children: "Pipeline delivery" })]
|
|
3641
|
+
}), c.length === 0 ? /* @__PURE__ */ D("p", {
|
|
3343
3642
|
className: $("empty"),
|
|
3344
3643
|
children: _
|
|
3345
|
-
}) : /* @__PURE__ */
|
|
3644
|
+
}) : /* @__PURE__ */ D("ul", {
|
|
3346
3645
|
className: $("list"),
|
|
3347
|
-
children: c.map((e) => /* @__PURE__ */
|
|
3646
|
+
children: c.map((e) => /* @__PURE__ */ O("li", {
|
|
3348
3647
|
className: $("item"),
|
|
3349
3648
|
"data-rly-workset-pipeline-id": e.id,
|
|
3350
3649
|
children: [
|
|
3351
|
-
/* @__PURE__ */
|
|
3650
|
+
/* @__PURE__ */ D(jr, {
|
|
3352
3651
|
...e.href === void 0 ? {} : { href: e.href },
|
|
3353
3652
|
reference: e.reference,
|
|
3354
3653
|
title: e.title
|
|
3355
3654
|
}),
|
|
3356
|
-
/* @__PURE__ */
|
|
3655
|
+
/* @__PURE__ */ D(T, {
|
|
3357
3656
|
label: e.state,
|
|
3358
3657
|
size: "compact",
|
|
3359
3658
|
tone: e.tone
|
|
3360
3659
|
}),
|
|
3361
|
-
e.operator === void 0 ? null : /* @__PURE__ */
|
|
3660
|
+
e.operator === void 0 ? null : /* @__PURE__ */ D(P, {
|
|
3362
3661
|
person: e.operator,
|
|
3363
3662
|
size: "compact"
|
|
3364
3663
|
}),
|
|
3365
|
-
e.approver === void 0 ? null : /* @__PURE__ */
|
|
3664
|
+
e.approver === void 0 ? null : /* @__PURE__ */ D(P, {
|
|
3366
3665
|
person: e.approver,
|
|
3367
3666
|
size: "compact"
|
|
3368
3667
|
}),
|
|
3369
|
-
/* @__PURE__ */
|
|
3668
|
+
/* @__PURE__ */ D(gr, {
|
|
3370
3669
|
heading: `${e.reference} stages`,
|
|
3371
3670
|
size: "compact",
|
|
3372
3671
|
stages: e.stages
|
|
@@ -3380,6 +3679,6 @@ var ue = {
|
|
|
3380
3679
|
});
|
|
3381
3680
|
};
|
|
3382
3681
|
//#endregion
|
|
3383
|
-
export {
|
|
3682
|
+
export { De as $, yt as A, tt as B, Pt as C, Ot as D, jt as E, ct as F, Ye as G, $e as H, z as I, He as J, Ke as K, L, pt as M, ht as N, Tt as O, lt as P, Ne as Q, it as R, Lt as S, Ft as T, Ze as U, et as V, Xe as W, Le as X, P as Y, Ie as Z, Ut as _, fr as a, Ht as b, cr as c, nr as d, Ce as et, or as f, Wt as g, Zt as h, pr as i, _t as j, bt as k, rr as l, en as m, Cr as n, me as nt, gr as o, Jn as p, Ue as q, xr as r, ur as s, Mr as t, ve as tt, tr as u, Vt as v, Nt as w, It as x, Bt as y, rt as z };
|
|
3384
3683
|
|
|
3385
|
-
//# sourceMappingURL=patterns-
|
|
3684
|
+
//# sourceMappingURL=patterns-lOWLKH70.js.map
|