@tinyactors/scxmljs 0.1.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/LICENSE +21 -0
- package/README.md +174 -0
- package/THIRD_PARTY_NOTICES +63 -0
- package/dist/bridge.d.ts +44 -0
- package/dist/bridge.js +254 -0
- package/dist/bridge.js.map +1 -0
- package/dist/clock.d.ts +113 -0
- package/dist/clock.js +310 -0
- package/dist/clock.js.map +1 -0
- package/dist/common.d.ts +15 -0
- package/dist/common.js +14 -0
- package/dist/common.js.map +1 -0
- package/dist/datamodel-base.d.ts +122 -0
- package/dist/datamodel-base.js +268 -0
- package/dist/datamodel-base.js.map +1 -0
- package/dist/datamodel-quickjs.d.ts +21 -0
- package/dist/datamodel-quickjs.js +286 -0
- package/dist/datamodel-quickjs.js.map +1 -0
- package/dist/datamodel-trusted.d.ts +1 -0
- package/dist/datamodel-trusted.js +149 -0
- package/dist/datamodel-trusted.js.map +1 -0
- package/dist/diagnostics.d.ts +39 -0
- package/dist/diagnostics.js +154 -0
- package/dist/diagnostics.js.map +1 -0
- package/dist/element-events.d.ts +85 -0
- package/dist/element-events.js +129 -0
- package/dist/element-events.js.map +1 -0
- package/dist/events.d.ts +31 -0
- package/dist/events.js +33 -0
- package/dist/events.js.map +1 -0
- package/dist/explorer/element.d.ts +150 -0
- package/dist/explorer/element.js +1791 -0
- package/dist/explorer/element.js.map +1 -0
- package/dist/explorer/layout.d.ts +43 -0
- package/dist/explorer/layout.js +50 -0
- package/dist/explorer/layout.js.map +1 -0
- package/dist/explorer/strings.d.ts +275 -0
- package/dist/explorer/strings.js +135 -0
- package/dist/explorer/strings.js.map +1 -0
- package/dist/explorer/styles.d.ts +10 -0
- package/dist/explorer/styles.js +265 -0
- package/dist/explorer/styles.js.map +1 -0
- package/dist/explorer/viewmodel.d.ts +284 -0
- package/dist/explorer/viewmodel.js +481 -0
- package/dist/explorer/viewmodel.js.map +1 -0
- package/dist/explorer.d.ts +21 -0
- package/dist/explorer.js +22 -0
- package/dist/explorer.js.map +1 -0
- package/dist/index.d.ts +34 -0
- package/dist/index.js +39 -0
- package/dist/index.js.map +1 -0
- package/dist/model.d.ts +157 -0
- package/dist/model.js +485 -0
- package/dist/model.js.map +1 -0
- package/dist/session-events.d.ts +136 -0
- package/dist/session-events.js +114 -0
- package/dist/session-events.js.map +1 -0
- package/dist/session.d.ts +412 -0
- package/dist/session.js +1399 -0
- package/dist/session.js.map +1 -0
- package/dist/themes/tinyactors.css +44 -0
- package/dist/trusted.d.ts +15 -0
- package/dist/trusted.js +30 -0
- package/dist/trusted.js.map +1 -0
- package/dist/ui/announcer.d.ts +22 -0
- package/dist/ui/announcer.js +31 -0
- package/dist/ui/announcer.js.map +1 -0
- package/dist/ui/svg.d.ts +8 -0
- package/dist/ui/svg.js +29 -0
- package/dist/ui/svg.js.map +1 -0
- package/dist/ui/theme.d.ts +34 -0
- package/dist/ui/theme.js +151 -0
- package/dist/ui/theme.js.map +1 -0
- package/dist/view/element.d.ts +172 -0
- package/dist/view/element.js +1045 -0
- package/dist/view/element.js.map +1 -0
- package/dist/view/layout.d.ts +154 -0
- package/dist/view/layout.js +1122 -0
- package/dist/view/layout.js.map +1 -0
- package/dist/view/strings.d.ts +72 -0
- package/dist/view/strings.js +48 -0
- package/dist/view/strings.js.map +1 -0
- package/dist/view/styles.d.ts +1 -0
- package/dist/view/styles.js +115 -0
- package/dist/view/styles.js.map +1 -0
- package/dist/view.d.ts +20 -0
- package/dist/view.js +21 -0
- package/dist/view.js.map +1 -0
- package/package.json +87 -0
|
@@ -0,0 +1,275 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Every user-visible string of `<scxml-explorer>`, with English defaults.
|
|
3
|
+
*
|
|
4
|
+
* Hosts translate by setting a partial override:
|
|
5
|
+
*
|
|
6
|
+
* explorer.strings = { follow: "Folgen", transitions: (n) => `${n} Übergänge` };
|
|
7
|
+
*
|
|
8
|
+
* Plain keys are strings; keys that interpolate values or counts are functions,
|
|
9
|
+
* so a translation controls word order and plural forms (the English defaults
|
|
10
|
+
* use `Intl.PluralRules`).
|
|
11
|
+
*/
|
|
12
|
+
import type { StepInfo } from "./viewmodel.js";
|
|
13
|
+
/** The kinds of state the explorer names. */
|
|
14
|
+
export type StateKindName = "atomic" | "compound" | "parallel" | "final" | "history" | "scxml";
|
|
15
|
+
/** Every user-visible string of `<scxml-explorer>`. Set `explorer.strings` to a partial object to translate. */
|
|
16
|
+
export interface ExplorerStrings {
|
|
17
|
+
/** Level switch: the System level. */
|
|
18
|
+
levelSystem: string;
|
|
19
|
+
/** Level switch: the Machine level. */
|
|
20
|
+
levelMachine: string;
|
|
21
|
+
/** Accessible name of the level switch. */
|
|
22
|
+
levelLabel: string;
|
|
23
|
+
/** Accessible name of the breadcrumb navigation. */
|
|
24
|
+
breadcrumbLabel: string;
|
|
25
|
+
/** Title of the "…" crumb that expands a long path. */
|
|
26
|
+
showWholePath: string;
|
|
27
|
+
/** The follow toggle. */
|
|
28
|
+
follow: string;
|
|
29
|
+
/** Tooltip of the follow toggle. */
|
|
30
|
+
followHint: string;
|
|
31
|
+
/** Play button (while paused). English: "▶ Play". */
|
|
32
|
+
play: string;
|
|
33
|
+
/** Pause button (while playing). English: "⏸ Pause". */
|
|
34
|
+
pause: string;
|
|
35
|
+
/** Tooltip of the play/pause button. English: "Play / pause (Space)". */
|
|
36
|
+
playHint: string;
|
|
37
|
+
/** Step button. English: "Step ⏭". */
|
|
38
|
+
step: string;
|
|
39
|
+
/** Tooltip of the step button. English: "Run until the next step of any machine (.)". */
|
|
40
|
+
stepHint: string;
|
|
41
|
+
/** Accessible name of the speed buttons. English: "Speed". */
|
|
42
|
+
speedLabel: string;
|
|
43
|
+
/** Tooltip of the virtual time readout. English: "virtual time". */
|
|
44
|
+
virtualTime: string;
|
|
45
|
+
/** Virtual time display, e.g. "t = 12.4 s". */
|
|
46
|
+
clockTime: (formatted: string) => string;
|
|
47
|
+
/** Tasks ready to run now. */
|
|
48
|
+
queued: (n: number) => string;
|
|
49
|
+
/** Time until the next timer fires. */
|
|
50
|
+
nextTimer: (formatted: string) => string;
|
|
51
|
+
/** Nothing pending on the clock. */
|
|
52
|
+
idle: string;
|
|
53
|
+
/** The machine's first step (no triggering event). */
|
|
54
|
+
start: string;
|
|
55
|
+
/** A step in which no transition fired. */
|
|
56
|
+
noTransition: string;
|
|
57
|
+
/** Heading of the tree pane. English: "States". */
|
|
58
|
+
statesPane: string;
|
|
59
|
+
/** Placeholder of the tree filter. English: "Find state…". */
|
|
60
|
+
findState: string;
|
|
61
|
+
/** Accessible name of the tree filter. English: "Filter states". */
|
|
62
|
+
filterStates: string;
|
|
63
|
+
/** Label of the "active states only" toggle. English: "active". */
|
|
64
|
+
activeOnly: string;
|
|
65
|
+
/** Accessible name of the tree. English: "States". */
|
|
66
|
+
treeLabel: string;
|
|
67
|
+
/** Tree count while filtering: matches of total. */
|
|
68
|
+
matchesOf: (matches: number, total: number) => string;
|
|
69
|
+
/** Tree empty state while filtering. English: "No state matches.". */
|
|
70
|
+
noStateMatches: string;
|
|
71
|
+
/** Tree empty state for a chart without states. English: "No states.". */
|
|
72
|
+
noStates: string;
|
|
73
|
+
/** Accessible name of a tree row's expand button. English: "Expand". */
|
|
74
|
+
expand: string;
|
|
75
|
+
/** Accessible name of a tree row's collapse button. English: "Collapse". */
|
|
76
|
+
collapse: string;
|
|
77
|
+
/** Badge on active states. English: "active". */
|
|
78
|
+
active: string;
|
|
79
|
+
/** Badge on inactive states. English: "inactive". */
|
|
80
|
+
inactive: string;
|
|
81
|
+
/** Badge on active states waiting on an I/O processor or invoked service. English: "waiting". */
|
|
82
|
+
waiting: string;
|
|
83
|
+
/** Badge on a terminated machine. English: "terminated". */
|
|
84
|
+
terminated: string;
|
|
85
|
+
/** Screen-reader suffix for a state on the active path that isn't active itself. */
|
|
86
|
+
containsActive: string;
|
|
87
|
+
/** Name of a kind of state. */
|
|
88
|
+
kind: (kind: StateKindName) => string;
|
|
89
|
+
/** Title of the initial-state marker. */
|
|
90
|
+
initial: string;
|
|
91
|
+
/** Accessible name of the focus layout switch. English: "Layout". */
|
|
92
|
+
layoutLabel: string;
|
|
93
|
+
/** Focus layout switch: automatic. English: "Auto". */
|
|
94
|
+
layoutAuto: string;
|
|
95
|
+
/** Focus layout switch: diagram. English: "Diagram". */
|
|
96
|
+
layoutDiagram: string;
|
|
97
|
+
/** Focus layout switch: list. English: "List". */
|
|
98
|
+
layoutList: string;
|
|
99
|
+
/** Subtitle of the focus: kind, direct children, all descendants. */
|
|
100
|
+
focusSummary: (kind: string, children: number, inside: number) => string;
|
|
101
|
+
/** Link to the parent state. */
|
|
102
|
+
up: (parent: string) => string;
|
|
103
|
+
/** Heading of the exits ("doors" leaving the focus). English: "Leaves to". */
|
|
104
|
+
leavesTo: string;
|
|
105
|
+
/** Heading of the entries ("doors" into the focus). English: "Entered from". */
|
|
106
|
+
enteredFrom: string;
|
|
107
|
+
/** Heading of a state's authoring warnings (`model.warnings`) in its detail. */
|
|
108
|
+
warningsTitle: string;
|
|
109
|
+
/** Tooltip of a door. */
|
|
110
|
+
transitions: (n: number) => string;
|
|
111
|
+
/** Where a door's state lives. */
|
|
112
|
+
inState: (container: string) => string;
|
|
113
|
+
/** Which child of the focus a door leaves from. */
|
|
114
|
+
fromState: (child: string) => string;
|
|
115
|
+
/** Stand-in for the machine as a door's container. */
|
|
116
|
+
machine: string;
|
|
117
|
+
/** Collapse a list expanded with "+N more". English: "Show fewer". */
|
|
118
|
+
showFewer: string;
|
|
119
|
+
/** "+N more" buttons. */
|
|
120
|
+
more: (n: number) => string;
|
|
121
|
+
/** Drill into a card's states. */
|
|
122
|
+
inside: (n: number) => string;
|
|
123
|
+
/** Number of invokes in a state. */
|
|
124
|
+
invokes: (n: number) => string;
|
|
125
|
+
/** Tooltip for the count of transitions that stay inside a state. */
|
|
126
|
+
staysInside: string;
|
|
127
|
+
/** Number of events a state reacts to. */
|
|
128
|
+
events: (n: number) => string;
|
|
129
|
+
/** List group: children on the active path. English: "On the active path". */
|
|
130
|
+
groupActivePath: string;
|
|
131
|
+
/** List group: children one transition away from the active path. English: "One step away". */
|
|
132
|
+
groupOneStep: string;
|
|
133
|
+
/** List group: all other children. English: "Everything else". */
|
|
134
|
+
groupElse: string;
|
|
135
|
+
/** Count after a list group title. */
|
|
136
|
+
groupCount: (title: string, n: number) => string;
|
|
137
|
+
/** Title of a list row's drill-in button. */
|
|
138
|
+
statesInside: (n: number) => string;
|
|
139
|
+
/** More targets than shown. */
|
|
140
|
+
moreTargets: (n: number) => string;
|
|
141
|
+
/** Search in a large focus list. */
|
|
142
|
+
findAmongStates: (n: number) => string;
|
|
143
|
+
/** Show every child of a large focus list (with count). */
|
|
144
|
+
showAll: (n: number) => string;
|
|
145
|
+
/** Open a lane that has more states than shown. */
|
|
146
|
+
openLane: (n: number) => string;
|
|
147
|
+
/** Title of the System level. English: "System". */
|
|
148
|
+
system: string;
|
|
149
|
+
/** Subtitle of the System level. */
|
|
150
|
+
systemSummary: (machines: number, services: number, messages: number) => string;
|
|
151
|
+
/** Heading of the machines column. English: "Machines". */
|
|
152
|
+
machines: string;
|
|
153
|
+
/** Heading of the external services column. English: "External services". */
|
|
154
|
+
services: string;
|
|
155
|
+
/** Placeholder of the machine filter (with the number of machines). */
|
|
156
|
+
findAmongMachines: (n: number) => string;
|
|
157
|
+
/** How an invoked machine was started. */
|
|
158
|
+
invokedAs: (invokeid: string, from?: string) => string;
|
|
159
|
+
/** Machine card: the machines and services it talks to. */
|
|
160
|
+
talksTo: (names: string) => string;
|
|
161
|
+
/** A machine's status. */
|
|
162
|
+
status: (status: "idle" | "running" | "done") => string;
|
|
163
|
+
/** Tooltip of a service's traffic counts. */
|
|
164
|
+
trafficHint: string;
|
|
165
|
+
/** Traffic counts on a service card. */
|
|
166
|
+
traffic: (out: number, inn: number) => string;
|
|
167
|
+
/** Detail pane prompt before a service is selected. English: "Select a service or a machine.". */
|
|
168
|
+
selectService: string;
|
|
169
|
+
/** Heading of a service's connections. English: "Talks with". */
|
|
170
|
+
talksWith: string;
|
|
171
|
+
/** Heading of a service's traffic log. English: "Recent traffic". */
|
|
172
|
+
recentTraffic: string;
|
|
173
|
+
/** Inspector switch: the accepted events, with their count. */
|
|
174
|
+
accepts: (n: number) => string;
|
|
175
|
+
/** Inspector switch: state detail. English: "State". */
|
|
176
|
+
stateTab: string;
|
|
177
|
+
/** Inspector switch: service detail. English: "Service". */
|
|
178
|
+
serviceTab: string;
|
|
179
|
+
/** Accessible name of the event scope switch. English: "Scope". */
|
|
180
|
+
scopeLabel: string;
|
|
181
|
+
/** Scope switch: events accepted inside the focus (with count). */
|
|
182
|
+
scopeHere: (n: number) => string;
|
|
183
|
+
/** Scope switch: also those inherited from ancestors (with count). */
|
|
184
|
+
scopeInherited: (n: number) => string;
|
|
185
|
+
/** Scope switch: all accepted events (with count). */
|
|
186
|
+
scopeAll: (n: number) => string;
|
|
187
|
+
/** Tag on events accepted by an ancestor of the focus. */
|
|
188
|
+
inherited: string;
|
|
189
|
+
/** Tag on events accepted outside the focus. */
|
|
190
|
+
elsewhere: string;
|
|
191
|
+
/** Placeholder of the event filter. English: "Find event…". */
|
|
192
|
+
findEvent: string;
|
|
193
|
+
/** Accessible name of the event filter. English: "Filter events". */
|
|
194
|
+
filterEvents: string;
|
|
195
|
+
/** Label of the event data field. English: "data". */
|
|
196
|
+
eventData: string;
|
|
197
|
+
/** Accessible name of the event data field. English: "Event data (JSON)". */
|
|
198
|
+
eventDataLabel: string;
|
|
199
|
+
/** Validation message for event data that isn't JSON. English: "invalid JSON". */
|
|
200
|
+
invalidJson: string;
|
|
201
|
+
/** Events empty state while filtering. English: "No accepted event matches.". */
|
|
202
|
+
noEventMatches: string;
|
|
203
|
+
/** Events empty state after the machine terminated. English: "The machine has terminated.". */
|
|
204
|
+
machineTerminated: string;
|
|
205
|
+
/** Events empty state when nothing is accepted. English: "Nothing is accepted right now.". */
|
|
206
|
+
nothingAccepted: string;
|
|
207
|
+
/** Group name for events without a dotted prefix. English: "(no prefix)". */
|
|
208
|
+
noPrefix: string;
|
|
209
|
+
/** Send button. English: "Send". */
|
|
210
|
+
send: string;
|
|
211
|
+
/** Accessible name / tooltip of a Send button. */
|
|
212
|
+
sendEvent: (name: string) => string;
|
|
213
|
+
/** Tooltip of a disabled Send button for a wildcard descriptor. English: "a wildcard can't be sent". */
|
|
214
|
+
cannotSendWildcard: string;
|
|
215
|
+
/** A transition without a target. */
|
|
216
|
+
stays: string;
|
|
217
|
+
/** Marks an internal transition. English: "(internal)". */
|
|
218
|
+
internal: string;
|
|
219
|
+
/** Narrow layout: link to the full list of accepted events. */
|
|
220
|
+
allEvents: (n: number) => string;
|
|
221
|
+
/** Accessible name of the accepted-events list. English: "Accepted events". */
|
|
222
|
+
acceptedEventsLabel: string;
|
|
223
|
+
/** Detail pane: where a top-level state lives. English: "top level". */
|
|
224
|
+
topLevel: string;
|
|
225
|
+
/** Detail pane row label: kind. English: "kind". */
|
|
226
|
+
detailKind: string;
|
|
227
|
+
/** Detail pane row label: id. English: "id". */
|
|
228
|
+
detailId: string;
|
|
229
|
+
/** Detail pane row label: nested states. English: "states". */
|
|
230
|
+
detailStates: string;
|
|
231
|
+
/** Direct children and all descendants. */
|
|
232
|
+
directAndInside: (direct: number, inside: number) => string;
|
|
233
|
+
/** Detail pane row label: initial state. English: "initial". */
|
|
234
|
+
detailInitial: string;
|
|
235
|
+
/** Detail pane row label: history type. English: "history". */
|
|
236
|
+
detailHistory: string;
|
|
237
|
+
/** Detail pane row label: data variables. English: "data". */
|
|
238
|
+
detailData: string;
|
|
239
|
+
/** Focus a state from its detail pane. */
|
|
240
|
+
focusState: (name: string) => string;
|
|
241
|
+
/** Detail pane heading: entry and exit actions. English: "Actions". */
|
|
242
|
+
actions: string;
|
|
243
|
+
/** Prefix for entry actions. English: "entry". */
|
|
244
|
+
entry: string;
|
|
245
|
+
/** Prefix for exit actions. English: "exit". */
|
|
246
|
+
exit: string;
|
|
247
|
+
/** Detail pane heading: invokes. English: "Invokes". */
|
|
248
|
+
invokesTitle: string;
|
|
249
|
+
/** An invoke without `src` (inline content). English: "(inline)". */
|
|
250
|
+
inline: string;
|
|
251
|
+
/** Detail pane heading: transitions. English: "Transitions". */
|
|
252
|
+
transitionsTitle: string;
|
|
253
|
+
/** Transitions table column: event. English: "event". */
|
|
254
|
+
columnEvent: string;
|
|
255
|
+
/** Transitions table column: condition. English: "if". */
|
|
256
|
+
columnIf: string;
|
|
257
|
+
/** Transitions table column: target. English: "to". */
|
|
258
|
+
columnTo: string;
|
|
259
|
+
/** Narrow layout tab: System. English: "System". */
|
|
260
|
+
tabSystem: string;
|
|
261
|
+
/** Narrow layout tab: tree. English: "States". */
|
|
262
|
+
tabStates: string;
|
|
263
|
+
/** Narrow layout tab: focus. English: "Focus". */
|
|
264
|
+
tabFocus: string;
|
|
265
|
+
/** Narrow layout tab: accepted events. English: "Accepts". */
|
|
266
|
+
tabEvents: string;
|
|
267
|
+
/** Narrow layout tab: detail. English: "Detail". */
|
|
268
|
+
tabDetail: string;
|
|
269
|
+
/** Announced after a step: machine, event and the transitions taken. */
|
|
270
|
+
announceStep: (step: StepInfo) => string;
|
|
271
|
+
/** Announced when the UI sends an event. */
|
|
272
|
+
announceSent: (name: string, machine: string) => string;
|
|
273
|
+
}
|
|
274
|
+
/** The English defaults of `ExplorerStrings`; unset keys of `explorer.strings` fall back to these. */
|
|
275
|
+
export declare const defaultStrings: ExplorerStrings;
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
const plural = new Intl.PluralRules("en");
|
|
2
|
+
/** English count phrase: "1 state", "3 states". */
|
|
3
|
+
const count = (n, one, other) => `${n} ${plural.select(n) === "one" ? one : other}`;
|
|
4
|
+
/** The English defaults of `ExplorerStrings`; unset keys of `explorer.strings` fall back to these. */
|
|
5
|
+
export const defaultStrings = {
|
|
6
|
+
levelSystem: "System",
|
|
7
|
+
levelMachine: "Machine",
|
|
8
|
+
levelLabel: "Level",
|
|
9
|
+
breadcrumbLabel: "Breadcrumb",
|
|
10
|
+
showWholePath: "Show the whole path",
|
|
11
|
+
follow: "Follow",
|
|
12
|
+
followHint: "Keep the focus on the part of the machine that is moving",
|
|
13
|
+
play: "▶ Play",
|
|
14
|
+
pause: "⏸ Pause",
|
|
15
|
+
playHint: "Play / pause (Space)",
|
|
16
|
+
step: "Step ⏭",
|
|
17
|
+
stepHint: "Run until the next step of any machine (.)",
|
|
18
|
+
speedLabel: "Speed",
|
|
19
|
+
virtualTime: "virtual time",
|
|
20
|
+
clockTime: (t) => `t = ${t}`,
|
|
21
|
+
queued: (n) => `${n} queued`,
|
|
22
|
+
nextTimer: (t) => `next timer in ${t}`,
|
|
23
|
+
idle: "idle",
|
|
24
|
+
start: "start",
|
|
25
|
+
noTransition: "no transition",
|
|
26
|
+
statesPane: "States",
|
|
27
|
+
findState: "Find state…",
|
|
28
|
+
filterStates: "Filter states",
|
|
29
|
+
activeOnly: "active",
|
|
30
|
+
treeLabel: "States",
|
|
31
|
+
matchesOf: (m, t) => `${m} / ${t}`,
|
|
32
|
+
noStateMatches: "No state matches.",
|
|
33
|
+
noStates: "No states.",
|
|
34
|
+
expand: "Expand",
|
|
35
|
+
collapse: "Collapse",
|
|
36
|
+
active: "active",
|
|
37
|
+
inactive: "inactive",
|
|
38
|
+
waiting: "waiting",
|
|
39
|
+
terminated: "terminated",
|
|
40
|
+
containsActive: "contains active states",
|
|
41
|
+
kind: (k) => k,
|
|
42
|
+
initial: "initial",
|
|
43
|
+
layoutLabel: "Layout",
|
|
44
|
+
layoutAuto: "Auto",
|
|
45
|
+
layoutDiagram: "Diagram",
|
|
46
|
+
layoutList: "List",
|
|
47
|
+
focusSummary: (kind, n, inside) => `${kind} · ${count(n, "state", "states")} · ${inside} inside`,
|
|
48
|
+
up: (p) => `↑ ${p}`,
|
|
49
|
+
leavesTo: "Leaves to",
|
|
50
|
+
enteredFrom: "Entered from",
|
|
51
|
+
warningsTitle: "Warnings",
|
|
52
|
+
transitions: (n) => count(n, "transition", "transitions"),
|
|
53
|
+
inState: (c) => `in ${c}`,
|
|
54
|
+
fromState: (c) => `from ${c}`,
|
|
55
|
+
machine: "machine",
|
|
56
|
+
showFewer: "Show fewer",
|
|
57
|
+
more: (n) => `+${n} more`,
|
|
58
|
+
inside: (n) => `${n} inside →`,
|
|
59
|
+
invokes: (n) => `⇲ ${count(n, "invoke", "invokes")}`,
|
|
60
|
+
staysInside: "transitions that stay inside",
|
|
61
|
+
events: (n) => count(n, "event", "events"),
|
|
62
|
+
groupActivePath: "On the active path",
|
|
63
|
+
groupOneStep: "One step away",
|
|
64
|
+
groupElse: "Everything else",
|
|
65
|
+
groupCount: (title, n) => `${title} · ${n}`,
|
|
66
|
+
statesInside: (n) => `${count(n, "state", "states")} inside`,
|
|
67
|
+
moreTargets: (n) => `+${count(n, "target", "targets")}`,
|
|
68
|
+
findAmongStates: (n) => `Find among ${count(n, "state", "states")}…`,
|
|
69
|
+
showAll: (n) => `Show all ${n}`,
|
|
70
|
+
openLane: (n) => `+${n} more — open lane`,
|
|
71
|
+
system: "System",
|
|
72
|
+
systemSummary: (m, s, msg) => `${count(m, "machine", "machines")} · ${count(s, "external service", "external services")} · ${count(msg, "message", "messages")}`,
|
|
73
|
+
machines: "Machines",
|
|
74
|
+
services: "External services",
|
|
75
|
+
findAmongMachines: (n) => `Find among ${count(n, "machine", "machines")}…`,
|
|
76
|
+
invokedAs: (id, from) => `invoked as ${id}${from ? ` from ${from}` : ""}`,
|
|
77
|
+
talksTo: (names) => `talks to ${names}`,
|
|
78
|
+
status: (s) => s,
|
|
79
|
+
trafficHint: "requests / replies and events",
|
|
80
|
+
traffic: (out, inn) => `${out} ↗ ${inn} ↙`,
|
|
81
|
+
selectService: "Select a service or a machine.",
|
|
82
|
+
talksWith: "Talks with",
|
|
83
|
+
recentTraffic: "Recent traffic",
|
|
84
|
+
accepts: (n) => `Accepts ${n}`,
|
|
85
|
+
stateTab: "State",
|
|
86
|
+
serviceTab: "Service",
|
|
87
|
+
scopeLabel: "Scope",
|
|
88
|
+
scopeHere: (n) => `Here ${n}`,
|
|
89
|
+
scopeInherited: (n) => `+ inherited ${n}`,
|
|
90
|
+
scopeAll: (n) => `All ${n}`,
|
|
91
|
+
inherited: "inherited",
|
|
92
|
+
elsewhere: "elsewhere",
|
|
93
|
+
findEvent: "Find event…",
|
|
94
|
+
filterEvents: "Filter events",
|
|
95
|
+
eventData: "data",
|
|
96
|
+
eventDataLabel: "Event data (JSON)",
|
|
97
|
+
invalidJson: "invalid JSON",
|
|
98
|
+
noEventMatches: "No accepted event matches.",
|
|
99
|
+
machineTerminated: "The machine has terminated.",
|
|
100
|
+
nothingAccepted: "Nothing is accepted right now.",
|
|
101
|
+
noPrefix: "(no prefix)",
|
|
102
|
+
send: "Send",
|
|
103
|
+
sendEvent: (name) => `Send ${name}`,
|
|
104
|
+
cannotSendWildcard: "a wildcard can't be sent",
|
|
105
|
+
stays: "stays",
|
|
106
|
+
internal: "(internal)",
|
|
107
|
+
allEvents: (n) => `all ${n} →`,
|
|
108
|
+
acceptedEventsLabel: "Accepted events",
|
|
109
|
+
topLevel: "top level",
|
|
110
|
+
detailKind: "kind",
|
|
111
|
+
detailId: "id",
|
|
112
|
+
detailStates: "states",
|
|
113
|
+
directAndInside: (d, i) => `${d} direct · ${i} inside`,
|
|
114
|
+
detailInitial: "initial",
|
|
115
|
+
detailHistory: "history",
|
|
116
|
+
detailData: "data",
|
|
117
|
+
focusState: (name) => `Focus ${name} →`,
|
|
118
|
+
actions: "Actions",
|
|
119
|
+
entry: "entry",
|
|
120
|
+
exit: "exit",
|
|
121
|
+
invokesTitle: "Invokes",
|
|
122
|
+
inline: "(inline)",
|
|
123
|
+
transitionsTitle: "Transitions",
|
|
124
|
+
columnEvent: "event",
|
|
125
|
+
columnIf: "if",
|
|
126
|
+
columnTo: "to",
|
|
127
|
+
tabSystem: "System",
|
|
128
|
+
tabStates: "States",
|
|
129
|
+
tabFocus: "Focus",
|
|
130
|
+
tabEvents: "Accepts",
|
|
131
|
+
tabDetail: "Detail",
|
|
132
|
+
announceStep: (s) => `${s.machine}: ${s.moves.length ? s.moves.join(", ") : `${s.event ?? "start"}, no transition`}`,
|
|
133
|
+
announceSent: (name, machine) => `Sent ${name} to ${machine}`,
|
|
134
|
+
};
|
|
135
|
+
//# sourceMappingURL=strings.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"strings.js","sourceRoot":"","sources":["../../src/explorer/strings.ts"],"names":[],"mappings":"AAuSA,MAAM,MAAM,GAAG,IAAI,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;AAC1C,mDAAmD;AACnD,MAAM,KAAK,GAAG,CAAC,CAAS,EAAE,GAAW,EAAE,KAAa,EAAE,EAAE,CAAC,GAAG,CAAC,IAAI,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,EAAE,CAAC;AAE5G,sGAAsG;AACtG,MAAM,CAAC,MAAM,cAAc,GAAoB;IAC7C,WAAW,EAAE,QAAQ;IACrB,YAAY,EAAE,SAAS;IACvB,UAAU,EAAE,OAAO;IACnB,eAAe,EAAE,YAAY;IAC7B,aAAa,EAAE,qBAAqB;IACpC,MAAM,EAAE,QAAQ;IAChB,UAAU,EAAE,0DAA0D;IAEtE,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE,SAAS;IAChB,QAAQ,EAAE,sBAAsB;IAChC,IAAI,EAAE,QAAQ;IACd,QAAQ,EAAE,4CAA4C;IACtD,UAAU,EAAE,OAAO;IACnB,WAAW,EAAE,cAAc;IAC3B,SAAS,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,OAAO,CAAC,EAAE;IAC5B,MAAM,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,GAAG,CAAC,SAAS;IAC5B,SAAS,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,iBAAiB,CAAC,EAAE;IACtC,IAAI,EAAE,MA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CAAC,CAAC,KAAK,IAAI,OAAO,iBAAiB,EAAE;IACpH,YAAY,EAAE,CAAC,IAAI,EAAE,OAAO,EAAE,EAAE,CAAC,QAAQ,IAAI,OAAO,OAAO,EAAE;CAC9D,CAAC","sourcesContent":["/**\n * Every user-visible string of `<scxml-explorer>`, with English defaults.\n *\n * Hosts translate by setting a partial override:\n *\n * explorer.strings = { follow: \"Folgen\", transitions: (n) => `${n} Übergänge` };\n *\n * Plain keys are strings; keys that interpolate values or counts are functions,\n * so a translation controls word order and plural forms (the English defaults\n * use `Intl.PluralRules`).\n */\nimport type { StepInfo } from \"./viewmodel.ts\";\n\n/** The kinds of state the explorer names. */\nexport type StateKindName = \"atomic\" | \"compound\" | \"parallel\" | \"final\" | \"history\" | \"scxml\";\n\n/** Every user-visible string of `<scxml-explorer>`. Set `explorer.strings` to a partial object to translate. */\nexport interface ExplorerStrings {\n // ── header ──\n /** Level switch: the System level. */\n levelSystem: string;\n /** Level switch: the Machine level. */\n levelMachine: string;\n /** Accessible name of the level switch. */\n levelLabel: string;\n /** Accessible name of the breadcrumb navigation. */\n breadcrumbLabel: string;\n /** Title of the \"…\" crumb that expands a long path. */\n showWholePath: string;\n /** The follow toggle. */\n follow: string;\n /** Tooltip of the follow toggle. */\n followHint: string;\n\n // ── playback ──\n /** Play button (while paused). English: \"▶ Play\". */\n play: string;\n /** Pause button (while playing). English: \"⏸ Pause\". */\n pause: string;\n /** Tooltip of the play/pause button. English: \"Play / pause (Space)\". */\n playHint: string;\n /** Step button. English: \"Step ⏭\". */\n step: string;\n /** Tooltip of the step button. English: \"Run until the next step of any machine (.)\". */\n stepHint: string;\n /** Accessible name of the speed buttons. English: \"Speed\". */\n speedLabel: string;\n /** Tooltip of the virtual time readout. English: \"virtual time\". */\n virtualTime: string;\n /** Virtual time display, e.g. \"t = 12.4 s\". */\n clockTime: (formatted: string) => string;\n /** Tasks ready to run now. */\n queued: (n: number) => string;\n /** Time until the next timer fires. */\n nextTimer: (formatted: string) => string;\n /** Nothing pending on the clock. */\n idle: string;\n /** The machine's first step (no triggering event). */\n start: string;\n /** A step in which no transition fired. */\n noTransition: string;\n\n // ── tree ──\n /** Heading of the tree pane. English: \"States\". */\n statesPane: string;\n /** Placeholder of the tree filter. English: \"Find state…\". */\n findState: string;\n /** Accessible name of the tree filter. English: \"Filter states\". */\n filterStates: string;\n /** Label of the \"active states only\" toggle. English: \"active\". */\n activeOnly: string;\n /** Accessible name of the tree. English: \"States\". */\n treeLabel: string;\n /** Tree count while filtering: matches of total. */\n matchesOf: (matches: number, total: number) => string;\n /** Tree empty state while filtering. English: \"No state matches.\". */\n noStateMatches: string;\n /** Tree empty state for a chart without states. English: \"No states.\". */\n noStates: string;\n /** Accessible name of a tree row's expand button. English: \"Expand\". */\n expand: string;\n /** Accessible name of a tree row's collapse button. English: \"Collapse\". */\n collapse: string;\n\n // ── state status (visible badges and screen-reader text) ──\n /** Badge on active states. English: \"active\". */\n active: string;\n /** Badge on inactive states. English: \"inactive\". */\n inactive: string;\n /** Badge on active states waiting on an I/O processor or invoked service. English: \"waiting\". */\n waiting: string;\n /** Badge on a terminated machine. English: \"terminated\". */\n terminated: string;\n /** Screen-reader suffix for a state on the active path that isn't active itself. */\n containsActive: string;\n /** Name of a kind of state. */\n kind: (kind: StateKindName) => string;\n /** Title of the initial-state marker. */\n initial: string;\n\n // ── focus ──\n /** Accessible name of the focus layout switch. English: \"Layout\". */\n layoutLabel: string;\n /** Focus layout switch: automatic. English: \"Auto\". */\n layoutAuto: string;\n /** Focus layout switch: diagram. English: \"Diagram\". */\n layoutDiagram: string;\n /** Focus layout switch: list. English: \"List\". */\n layoutList: string;\n /** Subtitle of the focus: kind, direct children, all descendants. */\n focusSummary: (kind: string, children: number, inside: number) => string;\n /** Link to the parent state. */\n up: (parent: string) => string;\n /** Heading of the exits (\"doors\" leaving the focus). English: \"Leaves to\". */\n leavesTo: string;\n /** Heading of the entries (\"doors\" into the focus). English: \"Entered from\". */\n enteredFrom: string;\n /** Heading of a state's authoring warnings (`model.warnings`) in its detail. */\n warningsTitle: string;\n /** Tooltip of a door. */\n transitions: (n: number) => string;\n /** Where a door's state lives. */\n inState: (container: string) => string;\n /** Which child of the focus a door leaves from. */\n fromState: (child: string) => string;\n /** Stand-in for the machine as a door's container. */\n machine: string;\n /** Collapse a list expanded with \"+N more\". English: \"Show fewer\". */\n showFewer: string;\n /** \"+N more\" buttons. */\n more: (n: number) => string;\n /** Drill into a card's states. */\n inside: (n: number) => string;\n /** Number of invokes in a state. */\n invokes: (n: number) => string;\n /** Tooltip for the count of transitions that stay inside a state. */\n staysInside: string;\n /** Number of events a state reacts to. */\n events: (n: number) => string;\n /** List group: children on the active path. English: \"On the active path\". */\n groupActivePath: string;\n /** List group: children one transition away from the active path. English: \"One step away\". */\n groupOneStep: string;\n /** List group: all other children. English: \"Everything else\". */\n groupElse: string;\n /** Count after a list group title. */\n groupCount: (title: string, n: number) => string;\n /** Title of a list row's drill-in button. */\n statesInside: (n: number) => string;\n /** More targets than shown. */\n moreTargets: (n: number) => string;\n /** Search in a large focus list. */\n findAmongStates: (n: number) => string;\n /** Show every child of a large focus list (with count). */\n showAll: (n: number) => string;\n /** Open a lane that has more states than shown. */\n openLane: (n: number) => string;\n\n // ── system ──\n /** Title of the System level. English: \"System\". */\n system: string;\n /** Subtitle of the System level. */\n systemSummary: (machines: number, services: number, messages: number) => string;\n /** Heading of the machines column. English: \"Machines\". */\n machines: string;\n /** Heading of the external services column. English: \"External services\". */\n services: string;\n /** Placeholder of the machine filter (with the number of machines). */\n findAmongMachines: (n: number) => string;\n /** How an invoked machine was started. */\n invokedAs: (invokeid: string, from?: string) => string;\n /** Machine card: the machines and services it talks to. */\n talksTo: (names: string) => string;\n /** A machine's status. */\n status: (status: \"idle\" | \"running\" | \"done\") => string;\n /** Tooltip of a service's traffic counts. */\n trafficHint: string;\n /** Traffic counts on a service card. */\n traffic: (out: number, inn: number) => string;\n /** Detail pane prompt before a service is selected. English: \"Select a service or a machine.\". */\n selectService: string;\n /** Heading of a service's connections. English: \"Talks with\". */\n talksWith: string;\n /** Heading of a service's traffic log. English: \"Recent traffic\". */\n recentTraffic: string;\n\n // ── accepted events ──\n /** Inspector switch: the accepted events, with their count. */\n accepts: (n: number) => string;\n /** Inspector switch: state detail. English: \"State\". */\n stateTab: string;\n /** Inspector switch: service detail. English: \"Service\". */\n serviceTab: string;\n /** Accessible name of the event scope switch. English: \"Scope\". */\n scopeLabel: string;\n /** Scope switch: events accepted inside the focus (with count). */\n scopeHere: (n: number) => string;\n /** Scope switch: also those inherited from ancestors (with count). */\n scopeInherited: (n: number) => string;\n /** Scope switch: all accepted events (with count). */\n scopeAll: (n: number) => string;\n /** Tag on events accepted by an ancestor of the focus. */\n inherited: string;\n /** Tag on events accepted outside the focus. */\n elsewhere: string;\n /** Placeholder of the event filter. English: \"Find event…\". */\n findEvent: string;\n /** Accessible name of the event filter. English: \"Filter events\". */\n filterEvents: string;\n /** Label of the event data field. English: \"data\". */\n eventData: string;\n /** Accessible name of the event data field. English: \"Event data (JSON)\". */\n eventDataLabel: string;\n /** Validation message for event data that isn't JSON. English: \"invalid JSON\". */\n invalidJson: string;\n /** Events empty state while filtering. English: \"No accepted event matches.\". */\n noEventMatches: string;\n /** Events empty state after the machine terminated. English: \"The machine has terminated.\". */\n machineTerminated: string;\n /** Events empty state when nothing is accepted. English: \"Nothing is accepted right now.\". */\n nothingAccepted: string;\n /** Group name for events without a dotted prefix. English: \"(no prefix)\". */\n noPrefix: string;\n /** Send button. English: \"Send\". */\n send: string;\n /** Accessible name / tooltip of a Send button. */\n sendEvent: (name: string) => string;\n /** Tooltip of a disabled Send button for a wildcard descriptor. English: \"a wildcard can't be sent\". */\n cannotSendWildcard: string;\n /** A transition without a target. */\n stays: string;\n /** Marks an internal transition. English: \"(internal)\". */\n internal: string;\n /** Narrow layout: link to the full list of accepted events. */\n allEvents: (n: number) => string;\n /** Accessible name of the accepted-events list. English: \"Accepted events\". */\n acceptedEventsLabel: string;\n\n // ── detail ──\n /** Detail pane: where a top-level state lives. English: \"top level\". */\n topLevel: string;\n /** Detail pane row label: kind. English: \"kind\". */\n detailKind: string;\n /** Detail pane row label: id. English: \"id\". */\n detailId: string;\n /** Detail pane row label: nested states. English: \"states\". */\n detailStates: string;\n /** Direct children and all descendants. */\n directAndInside: (direct: number, inside: number) => string;\n /** Detail pane row label: initial state. English: \"initial\". */\n detailInitial: string;\n /** Detail pane row label: history type. English: \"history\". */\n detailHistory: string;\n /** Detail pane row label: data variables. English: \"data\". */\n detailData: string;\n /** Focus a state from its detail pane. */\n focusState: (name: string) => string;\n /** Detail pane heading: entry and exit actions. English: \"Actions\". */\n actions: string;\n /** Prefix for entry actions. English: \"entry\". */\n entry: string;\n /** Prefix for exit actions. English: \"exit\". */\n exit: string;\n /** Detail pane heading: invokes. English: \"Invokes\". */\n invokesTitle: string;\n /** An invoke without `src` (inline content). English: \"(inline)\". */\n inline: string;\n /** Detail pane heading: transitions. English: \"Transitions\". */\n transitionsTitle: string;\n /** Transitions table column: event. English: \"event\". */\n columnEvent: string;\n /** Transitions table column: condition. English: \"if\". */\n columnIf: string;\n /** Transitions table column: target. English: \"to\". */\n columnTo: string;\n\n // ── narrow layout tabs ──\n /** Narrow layout tab: System. English: \"System\". */\n tabSystem: string;\n /** Narrow layout tab: tree. English: \"States\". */\n tabStates: string;\n /** Narrow layout tab: focus. English: \"Focus\". */\n tabFocus: string;\n /** Narrow layout tab: accepted events. English: \"Accepts\". */\n tabEvents: string;\n /** Narrow layout tab: detail. English: \"Detail\". */\n tabDetail: string;\n\n // ── live region (screen readers) ──\n /** Announced after a step: machine, event and the transitions taken. */\n announceStep: (step: StepInfo) => string;\n /** Announced when the UI sends an event. */\n announceSent: (name: string, machine: string) => string;\n}\n\nconst plural = new Intl.PluralRules(\"en\");\n/** English count phrase: \"1 state\", \"3 states\". */\nconst count = (n: number, one: string, other: string) => `${n} ${plural.select(n) === \"one\" ? one : other}`;\n\n/** The English defaults of `ExplorerStrings`; unset keys of `explorer.strings` fall back to these. */\nexport const defaultStrings: ExplorerStrings = {\n levelSystem: \"System\",\n levelMachine: \"Machine\",\n levelLabel: \"Level\",\n breadcrumbLabel: \"Breadcrumb\",\n showWholePath: \"Show the whole path\",\n follow: \"Follow\",\n followHint: \"Keep the focus on the part of the machine that is moving\",\n\n play: \"▶ Play\",\n pause: \"⏸ Pause\",\n playHint: \"Play / pause (Space)\",\n step: \"Step ⏭\",\n stepHint: \"Run until the next step of any machine (.)\",\n speedLabel: \"Speed\",\n virtualTime: \"virtual time\",\n clockTime: (t) => `t = ${t}`,\n queued: (n) => `${n} queued`,\n nextTimer: (t) => `next timer in ${t}`,\n idle: \"idle\",\n start: \"start\",\n noTransition: \"no transition\",\n\n statesPane: \"States\",\n findState: \"Find state…\",\n filterStates: \"Filter states\",\n activeOnly: \"active\",\n treeLabel: \"States\",\n matchesOf: (m, t) => `${m} / ${t}`,\n noStateMatches: \"No state matches.\",\n noStates: \"No states.\",\n expand: \"Expand\",\n collapse: \"Collapse\",\n\n active: \"active\",\n inactive: \"inactive\",\n waiting: \"waiting\",\n terminated: \"terminated\",\n containsActive: \"contains active states\",\n kind: (k) => k,\n initial: \"initial\",\n\n layoutLabel: \"Layout\",\n layoutAuto: \"Auto\",\n layoutDiagram: \"Diagram\",\n layoutList: \"List\",\n focusSummary: (kind, n, inside) => `${kind} · ${count(n, \"state\", \"states\")} · ${inside} inside`,\n up: (p) => `↑ ${p}`,\n leavesTo: \"Leaves to\",\n enteredFrom: \"Entered from\",\n warningsTitle: \"Warnings\",\n transitions: (n) => count(n, \"transition\", \"transitions\"),\n inState: (c) => `in ${c}`,\n fromState: (c) => `from ${c}`,\n machine: \"machine\",\n showFewer: \"Show fewer\",\n more: (n) => `+${n} more`,\n inside: (n) => `${n} inside →`,\n invokes: (n) => `⇲ ${count(n, \"invoke\", \"invokes\")}`,\n staysInside: \"transitions that stay inside\",\n events: (n) => count(n, \"event\", \"events\"),\n groupActivePath: \"On the active path\",\n groupOneStep: \"One step away\",\n groupElse: \"Everything else\",\n groupCount: (title, n) => `${title} · ${n}`,\n statesInside: (n) => `${count(n, \"state\", \"states\")} inside`,\n moreTargets: (n) => `+${count(n, \"target\", \"targets\")}`,\n findAmongStates: (n) => `Find among ${count(n, \"state\", \"states\")}…`,\n showAll: (n) => `Show all ${n}`,\n openLane: (n) => `+${n} more — open lane`,\n\n system: \"System\",\n systemSummary: (m, s, msg) =>\n `${count(m, \"machine\", \"machines\")} · ${count(s, \"external service\", \"external services\")} · ${count(msg, \"message\", \"messages\")}`,\n machines: \"Machines\",\n services: \"External services\",\n findAmongMachines: (n) => `Find among ${count(n, \"machine\", \"machines\")}…`,\n invokedAs: (id, from) => `invoked as ${id}${from ? ` from ${from}` : \"\"}`,\n talksTo: (names) => `talks to ${names}`,\n status: (s) => s,\n trafficHint: \"requests / replies and events\",\n traffic: (out, inn) => `${out} ↗ ${inn} ↙`,\n selectService: \"Select a service or a machine.\",\n talksWith: \"Talks with\",\n recentTraffic: \"Recent traffic\",\n\n accepts: (n) => `Accepts ${n}`,\n stateTab: \"State\",\n serviceTab: \"Service\",\n scopeLabel: \"Scope\",\n scopeHere: (n) => `Here ${n}`,\n scopeInherited: (n) => `+ inherited ${n}`,\n scopeAll: (n) => `All ${n}`,\n inherited: \"inherited\",\n elsewhere: \"elsewhere\",\n findEvent: \"Find event…\",\n filterEvents: \"Filter events\",\n eventData: \"data\",\n eventDataLabel: \"Event data (JSON)\",\n invalidJson: \"invalid JSON\",\n noEventMatches: \"No accepted event matches.\",\n machineTerminated: \"The machine has terminated.\",\n nothingAccepted: \"Nothing is accepted right now.\",\n noPrefix: \"(no prefix)\",\n send: \"Send\",\n sendEvent: (name) => `Send ${name}`,\n cannotSendWildcard: \"a wildcard can't be sent\",\n stays: \"stays\",\n internal: \"(internal)\",\n allEvents: (n) => `all ${n} →`,\n acceptedEventsLabel: \"Accepted events\",\n\n topLevel: \"top level\",\n detailKind: \"kind\",\n detailId: \"id\",\n detailStates: \"states\",\n directAndInside: (d, i) => `${d} direct · ${i} inside`,\n detailInitial: \"initial\",\n detailHistory: \"history\",\n detailData: \"data\",\n focusState: (name) => `Focus ${name} →`,\n actions: \"Actions\",\n entry: \"entry\",\n exit: \"exit\",\n invokesTitle: \"Invokes\",\n inline: \"(inline)\",\n transitionsTitle: \"Transitions\",\n columnEvent: \"event\",\n columnIf: \"if\",\n columnTo: \"to\",\n\n tabSystem: \"System\",\n tabStates: \"States\",\n tabFocus: \"Focus\",\n tabEvents: \"Accepts\",\n tabDetail: \"Detail\",\n\n announceStep: (s) => `${s.machine}: ${s.moves.length ? s.moves.join(\", \") : `${s.event ?? \"start\"}, no transition`}`,\n announceSent: (name, machine) => `Sent ${name} to ${machine}`,\n};\n"]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Layout and component styles of <scxml-explorer>. Colours, type and shape
|
|
3
|
+
* come from the shared theme (src/ui/theme.ts): the `--scxml-*` token
|
|
4
|
+
* contract with neutral defaults, adopted before this sheet. Below
|
|
5
|
+
* NARROW_WIDTH (shared with the element and `<scxml-view>`) the explorer
|
|
6
|
+
* shows one pane with tabs.
|
|
7
|
+
*/
|
|
8
|
+
import { NARROW_WIDTH } from "../ui/theme.js";
|
|
9
|
+
export { NARROW_WIDTH };
|
|
10
|
+
export declare const EXPLORER_CSS = "\n:host {\n display: block; container-type: inline-size; container-name: explorer;\n background: var(--x-bg);\n border: 1px solid var(--x-b2); border-radius: var(--x-r); overflow: hidden;\n height: var(--scxml-height, min(860px, calc(100dvh - 32px)));\n}\n/* \u2500\u2500 shell \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */\n.shell { display: grid; grid-template-rows: auto auto 1fr; grid-template-columns: minmax(0, 1fr); height: 100%; }\n.shell > .playback[hidden] { display: none; }\n.playback {\n display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; padding: 6px 12px;\n background: var(--x-s2); border-bottom: 1px solid var(--x-b2); font: 12px var(--x-sans); color: var(--x-fg2);\n}\n.playback .play, .playback .step {\n height: 28px; padding: 0 12px; border-radius: var(--x-r); cursor: pointer; font: 500 12.5px var(--x-sans);\n border: 1px solid var(--x-b2); background: var(--x-s1); color: var(--x-fg1);\n}\n.playback .play { min-width: 86px; background: var(--x-accent); border-color: var(--x-accent); color: var(--x-on-accent); }\n.playback .play[aria-pressed=\"true\"] { background: var(--x-s1); color: var(--x-fg1); border-color: var(--x-b2); }\n.playback .step:hover:not(:disabled) { border-color: var(--x-accent); color: var(--x-accent-fg); }\n.playback .step:disabled { opacity: .45; cursor: default; }\n.playback .clock-time { font: 500 12px var(--x-mono); color: var(--x-fg1); font-variant-numeric: tabular-nums; min-width: 8ch; }\n.playback .clock-queue { font: 11.5px var(--x-mono); color: var(--x-fg3); }\n.playback .last-step { flex: 1 1 200px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 11.5px var(--x-mono); color: var(--x-accent-fg); text-align: right; }\n@container explorer (max-width: 760px) {\n .playback { gap: 6px 8px; padding: 6px 10px; }\n .playback .last-step { flex-basis: 100%; text-align: left; }\n .playback .clock-queue { display: none; }\n}\n.top {\n display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 6px 12px;\n background: var(--x-s1); border-bottom: 1px solid var(--x-b2);\n}\n.levels { display: inline-flex; border: 1px solid var(--x-b2); border-radius: var(--x-r); overflow: hidden; flex: none; }\n.levels button { border: 0; background: none; padding: 4px 10px; cursor: pointer; font: 500 11px/1.4 var(--x-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--x-fg3); }\n.levels button[aria-pressed=\"true\"] { background: var(--x-accent); color: var(--x-on-accent); }\n.crumbs { display: flex; align-items: center; gap: 2px; min-width: 0; flex: 1; overflow: hidden; }\n.crumbs button { border: 0; background: none; padding: 3px 5px; border-radius: var(--x-r); cursor: pointer; color: var(--x-fg2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 22ch; }\n.crumbs button:hover { background: var(--x-s2); color: var(--x-fg1); }\n.crumbs button[aria-current] { color: var(--x-fg1); font-weight: 600; }\n.crumbs .sep { color: var(--x-fg4); flex: none; }\n.follow { display: inline-flex; align-items: center; gap: 6px; flex: none; cursor: pointer; color: var(--x-fg2); font: 500 11px var(--x-mono); letter-spacing: .08em; text-transform: uppercase; border: 1px solid var(--x-b2); border-radius: 999px; padding: 3px 10px; background: none; }\n/* off: a hollow ring; on: a filled dot (shape, not only colour) */\n.follow::before { content: \"\"; width: 7px; height: 7px; border-radius: 50%; box-sizing: border-box; border: 1.5px solid var(--x-fg3); background: transparent; }\n.follow[aria-pressed=\"true\"] { color: var(--x-run); border-color: color-mix(in srgb, var(--x-run) 40%, transparent); }\n.follow[aria-pressed=\"true\"]::before { border-color: var(--x-run); background: var(--x-run); box-shadow: 0 0 0 3px color-mix(in srgb, var(--x-run) 20%, transparent); }\n\n.body { display: grid; grid-template-columns: minmax(220px, 280px) minmax(0, 1fr) minmax(280px, 360px); min-height: 0; }\n.pane { min-height: 0; min-width: 0; display: flex; flex-direction: column; }\n.pane + .pane { border-left: 1px solid var(--x-b2); }\n.pane-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px 8px; flex: none; }\n.pane-title { font: 500 10.5px/1 var(--x-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--x-fg3); flex: 1; }\n.pane-scroll { overflow: auto; min-height: 0; flex: 1; overscroll-behavior: contain; }\n.center { background: var(--x-bg); }\n.center .pane-scroll { padding: 4px 16px 24px; }\n.inspector { background: var(--x-s1); }\n.tree-pane { background: var(--x-s1); }\n.tabs { display: none; }\n.events-strip { display: none; }\n\n/* narrow container: one pane at a time, bottom tabs, sticky events strip */\n@container explorer (max-width: 760px) {\n .body { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto auto; }\n .pane { display: none; }\n .pane + .pane { border-left: 0; }\n .pane[data-tab-active] { display: flex; }\n .tabs { display: flex; border-top: 1px solid var(--x-b2); background: var(--x-s1); }\n .tabs button { flex: 1; border: 0; background: none; padding: 9px 4px 10px; cursor: pointer; font: 500 10.5px var(--x-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--x-fg3); }\n .tabs button[aria-selected=\"true\"] { color: var(--x-accent-fg); box-shadow: inset 0 2px 0 var(--x-accent); }\n .events-strip { display: flex; gap: 6px; padding: 8px 12px; min-width: 0; overflow-x: auto; background: var(--x-s1); border-top: 1px solid var(--x-b1); scrollbar-width: none; }\n .events-strip > * { flex: none; max-width: 70vw; }\n .crumbs { overflow-x: auto; scrollbar-width: none; }\n .crumbs button { max-width: 14ch; }\n .levels { display: none; }\n .center .pane-scroll { padding: 4px 12px 20px; }\n}\n\n/* \u2500\u2500 tree (windowed) \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */\n.tree-viewport { position: relative; }\n.tree-row {\n position: absolute; left: 0; right: 0; height: var(--x-row); display: flex; align-items: center; gap: 2px;\n padding-right: 8px; cursor: pointer; white-space: nowrap; border-left: 2px solid transparent;\n}\n.tree-row:hover { background: var(--x-s2); }\n.tree-row[aria-selected=\"true\"] { background: var(--x-accent-subtle); border-left-color: var(--x-accent); }\n.tree-row .twisty { width: 18px; height: 18px; flex: none; border: 0; background: none; padding: 0; cursor: pointer; color: var(--x-fg3); font-size: 10px; }\n.tree-row .twisty[hidden] { visibility: hidden; display: inline-block; }\n.tree-row .name { overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0; }\n.tree-row.path .name { font-weight: 600; }\n.tree-row.active .name { color: var(--x-run); font-weight: 600; }\n.tree-row.match .name { text-decoration: underline; text-decoration-color: var(--x-accent); text-underline-offset: 3px; }\n.tree-row .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--x-run); flex: none; margin-left: 4px; }\n.tree-row:focus-visible { outline-offset: -2px; }\n\n/* \u2500\u2500 focus \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */\n.mode { display: inline-flex; border: 1px solid var(--x-b2); border-radius: var(--x-r); overflow: hidden; }\n.mode button { border: 0; background: none; padding: 3px 8px; cursor: pointer; font: 11px var(--x-sans); color: var(--x-fg3); }\n.mode button[aria-pressed=\"true\"] { background: var(--x-s3); color: var(--x-fg1); }\n.diagram { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 230px); justify-content: start; gap: 22px 128px; align-items: start; padding: 6px 2px 10px 16px; }\n.rank { display: flex; flex-direction: column; gap: 14px; }\n.edges { position: absolute; inset: 0; pointer-events: none; overflow: visible; }\n.edges path { fill: none; stroke: var(--x-fg4); stroke-width: 1.25; }\n.edges path.live { stroke: var(--x-accent); stroke-width: 1.75; }\n.edges path.back { stroke-dasharray: 4 3; }\n.edges marker path { fill: context-stroke; stroke: none; }\n.edge-label {\n position: absolute; transform: translate(-50%, -50%); z-index: 1; pointer-events: auto;\n font: 11px/1.3 var(--x-mono); background: var(--x-bg); color: var(--x-fg2); padding: 1px 6px; border: 1px solid var(--x-b1); border-radius: 999px; white-space: nowrap; max-width: 120px; overflow: hidden; text-overflow: ellipsis; cursor: help;\n}\n.edge-label.live { color: var(--x-accent-fg); border-color: color-mix(in srgb, var(--x-accent) 40%, transparent); }\n/* labels that found no free spot collapse to their event count and open on hover / focus */\n.edge-label .short { display: none; }\n.edge-label.collapsed .full { display: none; }\n.edge-label.collapsed .short { display: inline; }\n.edge-label.collapsed:is(:hover, :focus-visible) { z-index: 3; max-width: 240px; }\n.edge-label.collapsed:is(:hover, :focus-visible) .full { display: inline; }\n.edge-label.collapsed:is(:hover, :focus-visible) .short { display: none; }\n\n.card {\n position: relative; background: var(--x-s1); border: 1px solid var(--x-strong); border-radius: var(--x-r);\n padding: 8px 10px 9px; display: grid; gap: 5px; cursor: pointer; transition: border-color var(--x-dur), background var(--x-dur), box-shadow var(--x-dur);\n}\n.card:hover { box-shadow: 0 1px 0 var(--x-b2), 0 4px 14px rgba(40, 30, 20, .08); }\n.card.path { border-color: var(--x-run); box-shadow: inset 0 0 0 1px var(--x-run); }\n.card.active { background: var(--x-run-bg); }\n.card.waiting { border-color: var(--x-wait); box-shadow: inset 0 0 0 1px var(--x-wait); background: var(--x-wait-bg); }\n.card.final { border-radius: 999px; border-style: double; border-width: 3px; padding: 5px 14px; }\n.card.selected { outline: 2px solid var(--x-accent); outline-offset: 2px; }\n.card-head { display: flex; align-items: center; gap: 6px; min-width: 0; }\n.card-head .name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; }\n.card.path .card-head .name { color: var(--x-run); }\n.card.waiting .card-head .name { color: var(--x-wait); }\n.card .meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; color: var(--x-fg3); font-size: 11.5px; }\n.card .events { display: flex; gap: 4px; flex-wrap: wrap; }\n.card .events .chip { font-size: 10.5px; padding: 1px 6px; }\n.drill { border: 0; background: none; padding: 0; cursor: pointer; color: var(--x-accent-fg); font: 500 11.5px var(--x-sans); }\n.drill:hover { text-decoration: underline; }\n.initial-mark { position: absolute; left: -13px; top: 13px; width: 8px; height: 8px; border-radius: 50%; background: var(--x-fg1); }\n.initial-mark::after { content: \"\"; position: absolute; left: 8px; top: 3.5px; width: 5px; border-top: 1.5px solid var(--x-fg1); }\n\n.lanes { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }\n.lane { border: 1px dashed var(--x-strong); border-radius: var(--x-r); background: var(--x-s1); padding: 8px 10px; min-width: 0; }\n.lane.path { border-color: var(--x-run); border-style: solid; }\n.lane-head { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }\n.lane-head .name { font-weight: 600; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }\n.lane.path .lane-head .name { color: var(--x-run); }\n.lane-row { display: flex; align-items: center; gap: 6px; padding: 3px 6px; margin: 0 -6px; border-radius: var(--x-r); cursor: pointer; }\n.lane-row:hover { background: var(--x-s2); }\n.lane-row .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.lane-row.active .name { color: var(--x-run); font-weight: 600; }\n\n.list { display: grid; gap: 1px; background: var(--x-b1); border: 1px solid var(--x-b1); border-radius: var(--x-r); overflow: hidden; }\n.list-row { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; gap: 4px 8px; align-items: center; padding: 7px 10px; background: var(--x-s1); cursor: pointer; }\n.list-row:hover { background: var(--x-s2); }\n.list-row.path { background: color-mix(in srgb, var(--x-run-bg) 55%, var(--x-s1)); }\n.list-row .name { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.list-row.path .name { color: var(--x-run); font-weight: 600; }\n.list-row .sub { grid-column: 2 / -1; display: flex; gap: 4px; flex-wrap: wrap; color: var(--x-fg3); font-size: 11.5px; }\n.list-group { font: 500 10.5px var(--x-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--x-fg3); padding: 8px 10px 4px; background: var(--x-bg); }\n\n.doors { display: grid; gap: 6px; }\n.door { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 10px; align-items: baseline; padding: 6px 10px; border: 1px solid var(--x-b1); border-left: 3px solid var(--x-strong); border-radius: var(--x-r); background: var(--x-s1); cursor: pointer; }\n.door:hover { border-color: var(--x-b2); border-left-color: var(--x-accent); }\n.door .arrow { font: 13px var(--x-mono); color: var(--x-fg3); }\n.door .where { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.door .where small { font-weight: 400; color: var(--x-fg3); }\n.door .events { grid-column: 2; display: flex; gap: 4px; flex-wrap: wrap; }\n.door.live { border-left-color: var(--x-accent); }\n\n/* \u2500\u2500 events \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */\n.scopes { display: flex; gap: 4px; padding: 0 12px 8px; flex-wrap: wrap; }\n.scopes button { border: 1px solid var(--x-b2); background: none; border-radius: 999px; padding: 2px 9px; cursor: pointer; font: 11.5px var(--x-sans); color: var(--x-fg2); }\n.scopes button[aria-pressed=\"true\"] { background: var(--x-fg1); color: var(--x-s1); border-color: var(--x-fg1); }\n.ev-group > summary { display: flex; align-items: center; gap: 8px; list-style: none; cursor: pointer; padding: 7px 12px; font: 500 11px var(--x-mono); letter-spacing: .06em; color: var(--x-fg2); border-top: 1px solid var(--x-b1); }\n.ev-group > summary::-webkit-details-marker { display: none; }\n.ev-group > summary::before { content: \"\u25B8\"; font-size: 9px; color: var(--x-fg4); transition: transform var(--x-dur); }\n.ev-group[open] > summary::before { transform: rotate(90deg); }\n.ev-group > summary .count { margin-left: auto; }\n.ev-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 8px; padding: 6px 12px 7px 26px; align-items: center; }\n.ev-row:hover { background: var(--x-s2); }\n.ev-row .ev { font: 500 12px var(--x-mono); color: var(--x-accent-fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ev-row .how { grid-column: 1; color: var(--x-fg3); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ev-row .how .guard { font: 11px var(--x-mono); color: var(--x-wait); }\n.ev-row .send { grid-row: 1 / span 2; grid-column: 2; border: 1px solid var(--x-b2); background: var(--x-s1); border-radius: var(--x-r); height: 26px; padding: 0 9px; cursor: pointer; font: 500 12px var(--x-sans); }\n.ev-row .send:hover { border-color: var(--x-accent); color: var(--x-accent-fg); }\n.ev-row .send:disabled { opacity: .45; cursor: default; }\n.ev-row .scope-tag { font: 500 10px var(--x-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--x-fg3); border: 1px solid var(--x-b2); border-radius: var(--x-r); padding: 0 4px; margin-right: 4px; }\n.ev-row.scope-inherited .ev { color: var(--x-fg2); }\n.ev-row.scope-elsewhere .ev { color: var(--x-fg3); }\n.data-field { display: flex; gap: 6px; align-items: center; padding: 0 12px 8px; }\n.data-field span { font: 500 10px var(--x-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--x-fg3); }\n.data-field input { flex: 1; min-width: 0; height: 26px; padding: 0 8px; font: 11.5px var(--x-mono); border: 1px solid var(--x-b2); border-radius: var(--x-r); background: var(--x-s1); color: var(--x-fg1); }\n\n/* \u2500\u2500 detail \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */\n.detail { padding: 0 12px 16px; }\n.kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; font-size: 12.5px; margin: 0; }\n.kv dt { color: var(--x-fg3); }\n.kv dd { margin: 0; font-family: var(--x-mono); font-size: 12px; overflow-wrap: anywhere; }\ntable.tx { width: 100%; border-collapse: collapse; font-size: 12px; }\ntable.tx th { text-align: left; font: 500 10px var(--x-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--x-fg3); padding: 4px 6px; border-bottom: 1px solid var(--x-b2); position: sticky; top: 0; background: var(--x-s1); }\ntable.tx td { padding: 5px 6px; border-bottom: 1px solid var(--x-b1); vertical-align: top; }\ntable.tx td.ev { font-family: var(--x-mono); color: var(--x-accent-fg); overflow-wrap: anywhere; }\ntable.tx td.cond { font-family: var(--x-mono); color: var(--x-wait); font-size: 11px; overflow-wrap: anywhere; }\ntable.tx td.to { overflow-wrap: anywhere; }\n.actions { margin: 0; padding: 0; list-style: none; font: 12px var(--x-mono); color: var(--x-fg2); display: grid; gap: 2px; }\n.actions b { font: 500 10px var(--x-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--x-fg3); margin-right: 6px; }\n\n/* \u2500\u2500 system \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */\n.system { position: relative; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 16px 72px; align-items: start; }\n.system .col { display: grid; gap: 10px; align-content: start; min-width: 0; }\n.system .col-title { font: 500 10.5px var(--x-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--x-fg3); display: flex; gap: 8px; align-items: center; }\n.machine { margin-left: calc(var(--depth, 0) * 18px); }\n.machine.compact { grid-template-columns: minmax(0, 1fr) minmax(0, 40%); align-items: center; padding: 5px 10px; }\n.machine.compact .leaves { text-align: right; }\n.machine .leaves { font: 11.5px var(--x-mono); color: var(--x-run); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.machine .from { color: var(--x-fg3); font-size: 11.5px; }\n.service .type { font: 11px var(--x-mono); color: var(--x-fg3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.links { position: absolute; inset: 0; pointer-events: none; overflow: visible; }\n.links path { fill: none; stroke: var(--x-b2); stroke-width: 1.25; }\n.links path.invoke { stroke: var(--x-fg4); stroke-dasharray: 3 3; }\n.links path.hot { stroke: var(--x-accent); stroke-width: 2; }\n.talks { display: flex; gap: 4px; flex-wrap: wrap; }\n.pulse { animation: pulse 1.2s ease-out; }\n@keyframes pulse { from { box-shadow: 0 0 0 0 color-mix(in srgb, var(--x-accent) 45%, transparent); } to { box-shadow: 0 0 0 8px transparent; } }\n.traffic { list-style: none; margin: 0; padding: 0; font: 11.5px/1.4 var(--x-mono); }\n.traffic li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 6px; padding: 4px 0; border-bottom: 1px solid var(--x-b1); }\n.traffic .dir { color: var(--x-fg3); }\n\n/* \u2500\u2500 accessibility \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */\n.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }\n.card:focus-visible, .list-row:focus-visible, .lane-row:focus-visible, .door:focus-visible { outline: 2px solid var(--x-accent); outline-offset: 2px; }\n.lane-head .name { border: 0; background: none; padding: 0; text-align: left; font: inherit; font-weight: 600; }\n\n@container explorer (max-width: 760px) {\n .system { grid-template-columns: 1fr; gap: 12px; }\n .links { display: none; }\n .diagram { grid-auto-flow: row; grid-auto-columns: auto; }\n}\n.detail ul.warnings { margin: 0; padding: 0 0 0 16px; display: grid; gap: 4px; font: 12px/1.45 var(--x-sans); color: var(--x-fg1); }\n.detail ul.warnings li::marker { color: var(--x-wait); content: \"\u26A0 \"; }\n\n/* WCAG 2.2 target size: every control is at least 24px tall */\n.chip, .drill, .more { min-height: 24px; }\n.drill, .more { min-width: 24px; }\n/* the state name is the card's / row's primary button: it looks like text */\nbutton.select {\n all: unset; box-sizing: border-box; cursor: pointer; min-height: 24px; display: inline-flex; align-items: center;\n overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 1;\n}\nbutton.select:focus-visible { outline: 2px solid var(--x-accent); outline-offset: 2px; border-radius: var(--x-r); }\n\n/* right-to-left pages: disclosure triangles point the other way */\n:host(:dir(rtl)) .twisty { transform: scaleX(-1); }\n";
|