@bpmn-nova/studio 0.3.8-preview → 0.4.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 +2 -2
- package/dist/canvas.js +97 -25
- package/dist/config.js +42 -0
- package/dist/context-menu.js +41 -32
- package/dist/controller.js +45 -19
- package/dist/index.d.ts +59 -2
- package/dist/index.js +1 -0
- package/dist/interactions.js +6 -1
- package/dist/modules/bpmn-model/index.d.ts +2 -1
- package/dist/modules/bpmn-model/index.js +12 -10
- package/dist/modules/core/gateway.js +16 -13
- package/dist/modules/core/index.d.ts +6 -4
- package/dist/modules/core/model.js +12 -7
- package/dist/modules/designer/index.d.ts +5 -1
- package/dist/modules/designer/index.js +36 -15
- package/dist/modules/export-svg/index.d.ts +12 -5
- package/dist/modules/export-svg/preview.js +34 -24
- package/dist/modules/export-svg/render.js +102 -50
- package/dist/modules/i18n/index.d.ts +647 -0
- package/dist/modules/i18n/index.js +247 -0
- package/dist/modules/i18n/locales/en-US.js +823 -0
- package/dist/modules/i18n/locales/zh-CN.js +805 -0
- package/dist/modules/node-presentation/index.d.ts +3 -2
- package/dist/modules/node-presentation/index.js +14 -11
- package/dist/modules/palette/index.d.ts +6 -1
- package/dist/modules/palette/index.js +26 -8
- package/dist/modules/palette/panel.js +44 -6
- package/dist/modules/properties/index.d.ts +2 -1
- package/dist/modules/properties/index.js +2 -2
- package/dist/modules/properties-activiti/index.js +84 -59
- package/dist/modules/properties-bpmn/index.js +151 -128
- package/dist/modules/properties-core/index.d.ts +9 -3
- package/dist/modules/properties-core/index.js +16 -4
- package/dist/modules/properties-flowable/index.js +55 -34
- package/dist/modules/properties-renderer/index.d.ts +5 -1
- package/dist/modules/properties-renderer/index.js +110 -42
- package/dist/modules/renderer-svg/index.d.ts +6 -2
- package/dist/modules/renderer-svg/index.js +113 -38
- package/dist/modules/runtime/index.d.ts +33 -5
- package/dist/modules/runtime/index.js +97 -73
- package/dist/modules/runtime/time.js +89 -4
- package/dist/modules/runtime/visits.js +6 -4
- package/dist/modules/theme/index.d.ts +5 -2
- package/dist/modules/theme/index.js +8 -4
- package/dist/modules/viewer/index.d.ts +28 -7
- package/dist/modules/viewer/index.js +213 -56
- package/dist/modules/viewer/runtime-content.js +26 -20
- package/dist/modules/viewer/runtime-trace.js +43 -25
- package/dist/modules/viewer/timeline.js +103 -36
- package/dist/shell.js +279 -75
- package/dist/sidebars.js +3 -1
- package/dist/styles.css +6 -3
- package/llms-full.txt +296 -49
- package/llms.txt +4 -4
- package/package.json +2 -3
|
@@ -0,0 +1,647 @@
|
|
|
1
|
+
export type NovaLocale = 'zh-CN' | 'en-US' | (string & {})
|
|
2
|
+
|
|
3
|
+
export type NovaMessageFormatter<P = Record<string, any>> = (params: P) => string
|
|
4
|
+
export type NovaMessageValue<P = Record<string, any>> = string | NovaMessageFormatter<P>
|
|
5
|
+
|
|
6
|
+
export type DeepPartial<T> = {
|
|
7
|
+
[K in keyof T]?: T[K] extends (...args: any[]) => any
|
|
8
|
+
? string | T[K]
|
|
9
|
+
: T[K] extends Record<string, unknown>
|
|
10
|
+
? DeepPartial<T[K]>
|
|
11
|
+
: T[K]
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export interface NovaMessages {
|
|
15
|
+
common: {
|
|
16
|
+
listSeparator: string
|
|
17
|
+
issueSeparator: string
|
|
18
|
+
}
|
|
19
|
+
elementTypes: {
|
|
20
|
+
startEvent: string
|
|
21
|
+
messageStartEvent: string
|
|
22
|
+
timerStartEvent: string
|
|
23
|
+
conditionalStartEvent: string
|
|
24
|
+
signalStartEvent: string
|
|
25
|
+
errorStartEvent: string
|
|
26
|
+
escalationStartEvent: string
|
|
27
|
+
compensationStartEvent: string
|
|
28
|
+
intermediateCatchEvent: string
|
|
29
|
+
messageIntermediateCatchEvent: string
|
|
30
|
+
timerIntermediateCatchEvent: string
|
|
31
|
+
conditionalIntermediateCatchEvent: string
|
|
32
|
+
signalIntermediateCatchEvent: string
|
|
33
|
+
linkIntermediateCatchEvent: string
|
|
34
|
+
intermediateThrowEvent: string
|
|
35
|
+
messageIntermediateThrowEvent: string
|
|
36
|
+
escalationIntermediateThrowEvent: string
|
|
37
|
+
signalIntermediateThrowEvent: string
|
|
38
|
+
linkIntermediateThrowEvent: string
|
|
39
|
+
compensationIntermediateThrowEvent: string
|
|
40
|
+
timerBoundaryEvent: string
|
|
41
|
+
messageBoundaryEvent: string
|
|
42
|
+
errorBoundaryEvent: string
|
|
43
|
+
escalationBoundaryEvent: string
|
|
44
|
+
signalBoundaryEvent: string
|
|
45
|
+
conditionalBoundaryEvent: string
|
|
46
|
+
compensationBoundaryEvent: string
|
|
47
|
+
endEvent: string
|
|
48
|
+
messageEndEvent: string
|
|
49
|
+
errorEndEvent: string
|
|
50
|
+
escalationEndEvent: string
|
|
51
|
+
cancelEndEvent: string
|
|
52
|
+
compensationEndEvent: string
|
|
53
|
+
signalEndEvent: string
|
|
54
|
+
terminateEndEvent: string
|
|
55
|
+
task: string
|
|
56
|
+
userTask: string
|
|
57
|
+
manualTask: string
|
|
58
|
+
serviceTask: string
|
|
59
|
+
scriptTask: string
|
|
60
|
+
businessRuleTask: string
|
|
61
|
+
sendTask: string
|
|
62
|
+
receiveTask: string
|
|
63
|
+
callActivity: string
|
|
64
|
+
subProcess: string
|
|
65
|
+
eventSubProcess: string
|
|
66
|
+
transaction: string
|
|
67
|
+
adHocSubProcess: string
|
|
68
|
+
exclusiveGateway: string
|
|
69
|
+
parallelGateway: string
|
|
70
|
+
inclusiveGateway: string
|
|
71
|
+
eventBasedGateway: string
|
|
72
|
+
complexGateway: string
|
|
73
|
+
dataObjectReference: string
|
|
74
|
+
dataStoreReference: string
|
|
75
|
+
textAnnotation: string
|
|
76
|
+
group: string
|
|
77
|
+
participant: string
|
|
78
|
+
lane: string
|
|
79
|
+
generic: string
|
|
80
|
+
parallelDiverging: string
|
|
81
|
+
parallelConverging: string
|
|
82
|
+
}
|
|
83
|
+
edgeTypes: {
|
|
84
|
+
sequenceFlow: string
|
|
85
|
+
messageFlow: string
|
|
86
|
+
association: string
|
|
87
|
+
}
|
|
88
|
+
actions: {
|
|
89
|
+
submit: string
|
|
90
|
+
approve: string
|
|
91
|
+
reject: string
|
|
92
|
+
return: string
|
|
93
|
+
'add-sign': string
|
|
94
|
+
transfer: string
|
|
95
|
+
delegate: string
|
|
96
|
+
withdraw: string
|
|
97
|
+
comment: string
|
|
98
|
+
skip: string
|
|
99
|
+
cancel: string
|
|
100
|
+
default: string
|
|
101
|
+
}
|
|
102
|
+
shell: {
|
|
103
|
+
modeAria: string
|
|
104
|
+
modes: { design: string; viewer: string; instance: string }
|
|
105
|
+
modeSwitchTo: NovaMessageValue<{ label: string }>
|
|
106
|
+
projectionAria: string
|
|
107
|
+
projections: { approval: string; standard: string; compact: string }
|
|
108
|
+
tools: {
|
|
109
|
+
undo: string
|
|
110
|
+
redo: string
|
|
111
|
+
beautify: string
|
|
112
|
+
beautifyTitle: string
|
|
113
|
+
beautifyStrategyTitle: string
|
|
114
|
+
beautifyMenuTitle: string
|
|
115
|
+
validate: string
|
|
116
|
+
validateTitle: string
|
|
117
|
+
import: string
|
|
118
|
+
importTitle: string
|
|
119
|
+
export: string
|
|
120
|
+
exportTitle: string
|
|
121
|
+
exportSvg: string
|
|
122
|
+
exportSvgHint: string
|
|
123
|
+
exportBpmn: string
|
|
124
|
+
exportBpmnHint: string
|
|
125
|
+
}
|
|
126
|
+
density: { compact: string; balanced: string; spacious: string }
|
|
127
|
+
beautifyActions: {
|
|
128
|
+
horizontal: string
|
|
129
|
+
horizontalHint: string
|
|
130
|
+
vertical: string
|
|
131
|
+
verticalHint: string
|
|
132
|
+
routing: string
|
|
133
|
+
routingHint: string
|
|
134
|
+
smooth: string
|
|
135
|
+
smoothHint: string
|
|
136
|
+
}
|
|
137
|
+
canvasHead: {
|
|
138
|
+
editingMode: string
|
|
139
|
+
back: string
|
|
140
|
+
backToParent: NovaMessageValue<{ name: string }>
|
|
141
|
+
scopeNavAria: string
|
|
142
|
+
backToScope: NovaMessageValue<{ name: string }>
|
|
143
|
+
}
|
|
144
|
+
viewport: {
|
|
145
|
+
zoomOut: string
|
|
146
|
+
zoomIn: string
|
|
147
|
+
actualSize: string
|
|
148
|
+
fitView: string
|
|
149
|
+
}
|
|
150
|
+
sidebar: {
|
|
151
|
+
toggle: NovaMessageValue<{ collapsed: boolean; side: 'left' | 'right' }>
|
|
152
|
+
}
|
|
153
|
+
status: {
|
|
154
|
+
ready: string
|
|
155
|
+
graphSummary: NovaMessageValue<{ nodes: number; edges: number }>
|
|
156
|
+
viewerReadonly: string
|
|
157
|
+
traceTimeline: string
|
|
158
|
+
traceStandard: string
|
|
159
|
+
traceApproval: string
|
|
160
|
+
importedBpmn: string
|
|
161
|
+
importFailed: NovaMessageValue<{ message: string }>
|
|
162
|
+
exportedBpmn: string
|
|
163
|
+
exportedSvg: NovaMessageValue<{ filename: string }>
|
|
164
|
+
validationPassed: string
|
|
165
|
+
validationSummary: NovaMessageValue<{ summary: string }>
|
|
166
|
+
errorCount: NovaMessageValue<{ count: number }>
|
|
167
|
+
warningCount: NovaMessageValue<{ count: number }>
|
|
168
|
+
}
|
|
169
|
+
errors: {
|
|
170
|
+
svgExportUnsupported: string
|
|
171
|
+
}
|
|
172
|
+
exportSvgPreviewTitle: NovaMessageValue<{ label: string }>
|
|
173
|
+
readonlyDetails: {
|
|
174
|
+
edgeFallbackTitle: string
|
|
175
|
+
traceBadge: string
|
|
176
|
+
readonlyBadge: string
|
|
177
|
+
currentStatus: string
|
|
178
|
+
participants: string
|
|
179
|
+
round: string
|
|
180
|
+
roundValue: NovaMessageValue<{ round: number }>
|
|
181
|
+
latestAction: string
|
|
182
|
+
elementType: string
|
|
183
|
+
bpmnType: string
|
|
184
|
+
name: string
|
|
185
|
+
elementId: string
|
|
186
|
+
source: string
|
|
187
|
+
target: string
|
|
188
|
+
condition: string
|
|
189
|
+
processName: string
|
|
190
|
+
engine: string
|
|
191
|
+
nodeCount: string
|
|
192
|
+
edgeCount: string
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
palette: {
|
|
196
|
+
groups: {
|
|
197
|
+
favorites: string
|
|
198
|
+
startEvents: string
|
|
199
|
+
intermediateEvents: string
|
|
200
|
+
boundaryEvents: string
|
|
201
|
+
endEvents: string
|
|
202
|
+
tasks: string
|
|
203
|
+
activities: string
|
|
204
|
+
gateways: string
|
|
205
|
+
data: string
|
|
206
|
+
artifacts: string
|
|
207
|
+
collaboration: string
|
|
208
|
+
}
|
|
209
|
+
parallelDivergingDesc: string
|
|
210
|
+
parallelConvergingDesc: string
|
|
211
|
+
itemUnavailable: string
|
|
212
|
+
}
|
|
213
|
+
contextMenu: {
|
|
214
|
+
ariaLabel: string
|
|
215
|
+
groups: { align: string; distribute: string; pointer: string }
|
|
216
|
+
actions: {
|
|
217
|
+
canvasFit: string
|
|
218
|
+
canvasBeautify: string
|
|
219
|
+
canvasReroute: string
|
|
220
|
+
pointerSelect: string
|
|
221
|
+
pointerMarquee: string
|
|
222
|
+
pointerPan: string
|
|
223
|
+
nodeQuickAdd: string
|
|
224
|
+
nodeConnect: string
|
|
225
|
+
nodeEnterScope: string
|
|
226
|
+
nodeUngroup: string
|
|
227
|
+
nodeDelete: string
|
|
228
|
+
edgeRename: string
|
|
229
|
+
edgeResetRoute: string
|
|
230
|
+
edgeLocateSource: string
|
|
231
|
+
edgeLocateTarget: string
|
|
232
|
+
edgeDelete: string
|
|
233
|
+
alignLeft: string
|
|
234
|
+
alignCenterX: string
|
|
235
|
+
alignRight: string
|
|
236
|
+
alignTop: string
|
|
237
|
+
alignCenterY: string
|
|
238
|
+
alignBottom: string
|
|
239
|
+
selectionGroup: string
|
|
240
|
+
distributeHorizontal: string
|
|
241
|
+
distributeVertical: string
|
|
242
|
+
selectionLayout: string
|
|
243
|
+
selectionReroute: string
|
|
244
|
+
selectionFit: string
|
|
245
|
+
selectionDelete: string
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
canvas: {
|
|
249
|
+
pointerToolbarAria: string
|
|
250
|
+
pointerModes: {
|
|
251
|
+
select: string
|
|
252
|
+
selectTitle: string
|
|
253
|
+
marquee: string
|
|
254
|
+
marqueeTitle: string
|
|
255
|
+
pan: string
|
|
256
|
+
panTitle: string
|
|
257
|
+
}
|
|
258
|
+
selectionToolbarAria: string
|
|
259
|
+
selectionActions: {
|
|
260
|
+
group: string
|
|
261
|
+
align: string
|
|
262
|
+
distribute: string
|
|
263
|
+
layout: string
|
|
264
|
+
reroute: string
|
|
265
|
+
fit: string
|
|
266
|
+
}
|
|
267
|
+
emptySubProcessTitle: string
|
|
268
|
+
emptySubProcessHint: string
|
|
269
|
+
edgePlaceholder: string
|
|
270
|
+
edgeInputPlaceholder: string
|
|
271
|
+
ports: {
|
|
272
|
+
connectToNode: string
|
|
273
|
+
createConnection: string
|
|
274
|
+
incomingPort: string
|
|
275
|
+
}
|
|
276
|
+
resizeLaneDivider: string
|
|
277
|
+
nodeActions: {
|
|
278
|
+
enterSubProcess: string
|
|
279
|
+
quickAdd: string
|
|
280
|
+
cancelConnect: string
|
|
281
|
+
connectExisting: string
|
|
282
|
+
ungroup: string
|
|
283
|
+
deleteNode: string
|
|
284
|
+
}
|
|
285
|
+
connectHint: string
|
|
286
|
+
quickMenu: {
|
|
287
|
+
title: string
|
|
288
|
+
subtitle: string
|
|
289
|
+
close: string
|
|
290
|
+
searchPlaceholder: string
|
|
291
|
+
}
|
|
292
|
+
gatewayRoleBadge: { diverging: string; converging: string; ambiguous: string }
|
|
293
|
+
gatewayRoleStatus: { valid: string; incomplete: string; conflict: string; ambiguous: string }
|
|
294
|
+
gatewayRoleTitle: NovaMessageValue<{ role: string; status: string }>
|
|
295
|
+
runtimeTransitionAria: NovaMessageValue<{ label: string }>
|
|
296
|
+
runtimeTransitionAriaWithOperator: NovaMessageValue<{ label: string; operator: string }>
|
|
297
|
+
viewRuntimeDetailsAria: NovaMessageValue<{ name: string; status: string }>
|
|
298
|
+
defaultAnnotationCaption: string
|
|
299
|
+
defaultGroupCaption: string
|
|
300
|
+
defaultSubtitles: {
|
|
301
|
+
userTask: string
|
|
302
|
+
serviceTask: string
|
|
303
|
+
callActivity: string
|
|
304
|
+
receiveTask: string
|
|
305
|
+
manualTask: string
|
|
306
|
+
subProcess: string
|
|
307
|
+
eventSubProcess: string
|
|
308
|
+
transaction: string
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
modeling: {
|
|
312
|
+
nodeLimitExceeded: NovaMessageValue<{ max: number; label: string; nodeType?: string }>
|
|
313
|
+
nodeLimitReached: NovaMessageValue<{ label: string; nodeType?: string }>
|
|
314
|
+
branchName: NovaMessageValue<{ index: number }>
|
|
315
|
+
defaultGroupCategory: string
|
|
316
|
+
defaultProcessName: string
|
|
317
|
+
defaultAnnotationText: string
|
|
318
|
+
}
|
|
319
|
+
validation: {
|
|
320
|
+
missingStartEvent: string
|
|
321
|
+
missingEndEvent: string
|
|
322
|
+
invalidSubProcessScope: string
|
|
323
|
+
edgeMissingNode: string
|
|
324
|
+
edgeCrossScope: string
|
|
325
|
+
sequenceFlowSelfLoop: string
|
|
326
|
+
serviceTaskMissingImpl: NovaMessageValue<{ name: string }>
|
|
327
|
+
userTaskMissingAssignee: NovaMessageValue<{ name: string }>
|
|
328
|
+
boundaryMissingTarget: NovaMessageValue<{ name: string }>
|
|
329
|
+
gatewayNeedsTwoOutgoing: NovaMessageValue<{ name: string }>
|
|
330
|
+
gatewayBranchNeedsName: NovaMessageValue<{ name: string }>
|
|
331
|
+
timerMissingExpression: NovaMessageValue<{ name: string }>
|
|
332
|
+
nodeIssue: NovaMessageValue<{ name: string; message: string }>
|
|
333
|
+
parallelGateway: {
|
|
334
|
+
convergingMinIncoming: string
|
|
335
|
+
convergingSingleOutgoing: string
|
|
336
|
+
divergingSingleIncoming: string
|
|
337
|
+
divergingMinOutgoing: string
|
|
338
|
+
mixedNotAllowed: string
|
|
339
|
+
ambiguousTopology: string
|
|
340
|
+
noConditionAllowed: string
|
|
341
|
+
noDefaultAllowed: string
|
|
342
|
+
}
|
|
343
|
+
import: {
|
|
344
|
+
xmlParseFailed: NovaMessageValue<{ detail: string }>
|
|
345
|
+
missingProcessElement: string
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
properties: {
|
|
349
|
+
empty: string
|
|
350
|
+
profileAria: string
|
|
351
|
+
profiles: { business: string; developer: string }
|
|
352
|
+
header: {
|
|
353
|
+
none: string
|
|
354
|
+
multiSelected: NovaMessageValue<{ count: number }>
|
|
355
|
+
process: string
|
|
356
|
+
association: string
|
|
357
|
+
sequenceFlow: string
|
|
358
|
+
unnamedElement: string
|
|
359
|
+
}
|
|
360
|
+
multiSummary: {
|
|
361
|
+
title: string
|
|
362
|
+
description: string
|
|
363
|
+
fitSelection: string
|
|
364
|
+
kinds: { task: string; event: string; gateway: string; container: string; boundary: string; other: string }
|
|
365
|
+
}
|
|
366
|
+
controls: {
|
|
367
|
+
selectLabel: string
|
|
368
|
+
selectPlaceholder: string
|
|
369
|
+
selectEmpty: string
|
|
370
|
+
selectAria: NovaMessageValue<{ label: string; value: string }>
|
|
371
|
+
switchOn: string
|
|
372
|
+
switchOff: string
|
|
373
|
+
defaultAction: string
|
|
374
|
+
tagsHint: string
|
|
375
|
+
smartSelectPlaceholder: string
|
|
376
|
+
nodeFallbackType: string
|
|
377
|
+
locateNodeAria: NovaMessageValue<{ label: string }>
|
|
378
|
+
emptyNodeList: string
|
|
379
|
+
unconnected: string
|
|
380
|
+
emptyFlowList: string
|
|
381
|
+
removeRow: string
|
|
382
|
+
emptyTable: string
|
|
383
|
+
addRow: NovaMessageValue<{ label: string }>
|
|
384
|
+
defaultRowLabel: string
|
|
385
|
+
}
|
|
386
|
+
branchList: {
|
|
387
|
+
title: NovaMessageValue<{ index: number }>
|
|
388
|
+
locate: string
|
|
389
|
+
nameLabel: string
|
|
390
|
+
namePlaceholder: string
|
|
391
|
+
conditionLabel: string
|
|
392
|
+
defaultFlow: string
|
|
393
|
+
targetLabel: string
|
|
394
|
+
empty: string
|
|
395
|
+
}
|
|
396
|
+
validators: {
|
|
397
|
+
idRequired: string
|
|
398
|
+
idInvalid: string
|
|
399
|
+
idDuplicate: string
|
|
400
|
+
}
|
|
401
|
+
bpmn: Record<string, NovaMessageValue<any>>
|
|
402
|
+
engine: Record<string, string>
|
|
403
|
+
}
|
|
404
|
+
runtime: {
|
|
405
|
+
status: {
|
|
406
|
+
idle: string
|
|
407
|
+
active: string
|
|
408
|
+
completed: string
|
|
409
|
+
failed: string
|
|
410
|
+
cancelled: string
|
|
411
|
+
skipped: string
|
|
412
|
+
rejected: string
|
|
413
|
+
returned: string
|
|
414
|
+
reentry: string
|
|
415
|
+
countersign: NovaMessageValue<{ completed: number; total: number }>
|
|
416
|
+
sequentialCountersign: NovaMessageValue<{ completed: number; total: number }>
|
|
417
|
+
orSign: NovaMessageValue<{ completed: number; total: number }>
|
|
418
|
+
multiApproval: NovaMessageValue<{ completed: number; total: number }>
|
|
419
|
+
activeVisits: NovaMessageValue<{ active: number }>
|
|
420
|
+
activeVisitsOfTotal: NovaMessageValue<{ active: number; total: number }>
|
|
421
|
+
}
|
|
422
|
+
summary: {
|
|
423
|
+
pendingAssignee: string
|
|
424
|
+
pendingClaim: NovaMessageValue<{ value: string }>
|
|
425
|
+
branchSkipped: string
|
|
426
|
+
notVisited: string
|
|
427
|
+
notReachedYet: string
|
|
428
|
+
automatedActive: string
|
|
429
|
+
automatedCompleted: string
|
|
430
|
+
automatedFailed: string
|
|
431
|
+
automatedWaiting: string
|
|
432
|
+
}
|
|
433
|
+
transitions: {
|
|
434
|
+
reject: string
|
|
435
|
+
return: string
|
|
436
|
+
skip: string
|
|
437
|
+
forward: string
|
|
438
|
+
rejectPrefix: string
|
|
439
|
+
returnPrefix: string
|
|
440
|
+
skipPrefix: string
|
|
441
|
+
forwardPrefix: string
|
|
442
|
+
rejectTo: NovaMessageValue<{ target: string }>
|
|
443
|
+
returnTo: NovaMessageValue<{ target: string }>
|
|
444
|
+
skipTo: NovaMessageValue<{ target: string }>
|
|
445
|
+
forwardTo: NovaMessageValue<{ target: string }>
|
|
446
|
+
}
|
|
447
|
+
action: {
|
|
448
|
+
imageCount: NovaMessageValue<{ count: number }>
|
|
449
|
+
fileCount: NovaMessageValue<{ count: number }>
|
|
450
|
+
}
|
|
451
|
+
diagnostics: {
|
|
452
|
+
duplicateActivityId: string
|
|
453
|
+
visitElementMismatch: string
|
|
454
|
+
invalidTime: string
|
|
455
|
+
naiveTime: string
|
|
456
|
+
unknownElement: string
|
|
457
|
+
duplicateActionId: string
|
|
458
|
+
unknownActivity: string
|
|
459
|
+
actionIdentityMismatch: string
|
|
460
|
+
actionInvalidTime: string
|
|
461
|
+
actionNaiveTime: string
|
|
462
|
+
actionMissingTime: string
|
|
463
|
+
duplicateTransitionId: string
|
|
464
|
+
transitionUnknownActivity: string
|
|
465
|
+
transitionUnknownAction: string
|
|
466
|
+
transitionUnknownSource: string
|
|
467
|
+
transitionUnknownTarget: string
|
|
468
|
+
transitionInvalidTime: string
|
|
469
|
+
transitionNaiveTime: string
|
|
470
|
+
duplicateEdgeVisitId: string
|
|
471
|
+
unknownEdge: string
|
|
472
|
+
invalidationWorkItemId: string
|
|
473
|
+
invalidationUnknownElement: string
|
|
474
|
+
invalidationFieldConflict: string
|
|
475
|
+
elementInvalidationConcurrentVisits: string
|
|
476
|
+
unknownSupersededVisit: string
|
|
477
|
+
concurrentVisits: string
|
|
478
|
+
ambiguousVisitOrder: string
|
|
479
|
+
}
|
|
480
|
+
invalidationIssues: {
|
|
481
|
+
missingEndpoints: string
|
|
482
|
+
crossScope: string
|
|
483
|
+
multipleCandidatePaths: string
|
|
484
|
+
pathNotFound: string
|
|
485
|
+
}
|
|
486
|
+
trace: {
|
|
487
|
+
predictedSummary: string
|
|
488
|
+
parallelGroupDefault: string
|
|
489
|
+
missingElementWarning: NovaMessageValue<{ elementId: string }>
|
|
490
|
+
}
|
|
491
|
+
}
|
|
492
|
+
viewer: {
|
|
493
|
+
outcomes: { approved: string; rejected: string; returned: string; submitted: string; pending: string }
|
|
494
|
+
details: {
|
|
495
|
+
ariaLabel: NovaMessageValue<{ name: string }>
|
|
496
|
+
fallbackNodeName: string
|
|
497
|
+
fallbackTitle: string
|
|
498
|
+
roundLabel: NovaMessageValue<{ round: number }>
|
|
499
|
+
roundHistorical: NovaMessageValue<{ round: number }>
|
|
500
|
+
traceSubtitle: string
|
|
501
|
+
closeLabel: string
|
|
502
|
+
approvalModeAll: string
|
|
503
|
+
approvalModeAllSequential: string
|
|
504
|
+
approvalModeAny: string
|
|
505
|
+
approvalModeMulti: string
|
|
506
|
+
systemActor: string
|
|
507
|
+
targets: NovaMessageValue<{ names: string }>
|
|
508
|
+
targetElement: NovaMessageValue<{ id: string }>
|
|
509
|
+
rejectedTo: NovaMessageValue<{ target: string }>
|
|
510
|
+
returnedTo: NovaMessageValue<{ target: string }>
|
|
511
|
+
}
|
|
512
|
+
transitionDetails: {
|
|
513
|
+
rejectRecord: string
|
|
514
|
+
returnRecord: string
|
|
515
|
+
rejectRecordAria: NovaMessageValue<{ source: string }>
|
|
516
|
+
returnRecordAria: NovaMessageValue<{ source: string }>
|
|
517
|
+
fallbackNodeName: string
|
|
518
|
+
fallbackTitle: string
|
|
519
|
+
rejectedBadge: string
|
|
520
|
+
returnedBadge: string
|
|
521
|
+
closeRejectDetails: string
|
|
522
|
+
closeReturnDetails: string
|
|
523
|
+
unknownOperator: string
|
|
524
|
+
rejectedTo: NovaMessageValue<{ target: string }>
|
|
525
|
+
returnedTo: NovaMessageValue<{ target: string }>
|
|
526
|
+
locateSource: string
|
|
527
|
+
locateTarget: string
|
|
528
|
+
}
|
|
529
|
+
assets: {
|
|
530
|
+
unavailable: string
|
|
531
|
+
imageLoading: string
|
|
532
|
+
imagePreviewAria: NovaMessageValue<{ name: string }>
|
|
533
|
+
closeImagePreview: string
|
|
534
|
+
previewImageAria: NovaMessageValue<{ name: string }>
|
|
535
|
+
imageUnavailable: string
|
|
536
|
+
fileUnavailable: string
|
|
537
|
+
downloadFileAria: NovaMessageValue<{ name: string }>
|
|
538
|
+
preparingDownload: string
|
|
539
|
+
download: string
|
|
540
|
+
unsupportedContent: NovaMessageValue<{ type: string }>
|
|
541
|
+
}
|
|
542
|
+
}
|
|
543
|
+
timeline: {
|
|
544
|
+
defaultTitle: string
|
|
545
|
+
defaultDescription: string
|
|
546
|
+
ariaLabel: NovaMessageValue<{ title: string }>
|
|
547
|
+
fallbackProcessName: string
|
|
548
|
+
empty: string
|
|
549
|
+
round: NovaMessageValue<{ round: number }>
|
|
550
|
+
results: { approved: string; rejected: string; returned: string; submitted: string; pending: string }
|
|
551
|
+
participantsToggle: NovaMessageValue<{ count: number }>
|
|
552
|
+
earlierActions: NovaMessageValue<{ count: number }>
|
|
553
|
+
targets: NovaMessageValue<{ names: string }>
|
|
554
|
+
parallelCompleted: NovaMessageValue<{ completed: number; total: number }>
|
|
555
|
+
parallelSvgHeader: NovaMessageValue<{ label: string; completed: number; total: number }>
|
|
556
|
+
itemAria: NovaMessageValue<{ name: string; status: string; summary?: string; comment?: string }>
|
|
557
|
+
}
|
|
558
|
+
exportSvg: {
|
|
559
|
+
defaultLabels: {
|
|
560
|
+
design: string
|
|
561
|
+
viewer: string
|
|
562
|
+
instance: string
|
|
563
|
+
timeline: string
|
|
564
|
+
approval: string
|
|
565
|
+
standard: string
|
|
566
|
+
}
|
|
567
|
+
preview: {
|
|
568
|
+
defaultTitle: string
|
|
569
|
+
subtitle: string
|
|
570
|
+
closeAria: string
|
|
571
|
+
themeGroupAria: string
|
|
572
|
+
themeCurrent: string
|
|
573
|
+
themeLight: string
|
|
574
|
+
themeDark: string
|
|
575
|
+
transparentBackground: string
|
|
576
|
+
zoomOut: string
|
|
577
|
+
zoomIn: string
|
|
578
|
+
fitView: string
|
|
579
|
+
actualSize: string
|
|
580
|
+
viewportAria: string
|
|
581
|
+
imageAlt: string
|
|
582
|
+
generating: string
|
|
583
|
+
preparingExport: string
|
|
584
|
+
preparingFullContent: string
|
|
585
|
+
failed: NovaMessageValue<{ message: string }>
|
|
586
|
+
unknownError: string
|
|
587
|
+
notGenerated: string
|
|
588
|
+
cancel: string
|
|
589
|
+
retry: string
|
|
590
|
+
confirmDownload: string
|
|
591
|
+
warningsHeading: NovaMessageValue<{ count: number }>
|
|
592
|
+
warningsMore: NovaMessageValue<{ count: number }>
|
|
593
|
+
}
|
|
594
|
+
warnings: {
|
|
595
|
+
customNodeRendererFailed: NovaMessageValue<{ name: string }>
|
|
596
|
+
customNodeRendererFallback: NovaMessageValue<{ name: string }>
|
|
597
|
+
customTimelineRendererFailed: string
|
|
598
|
+
assetInvalid: string
|
|
599
|
+
assetUnavailable: NovaMessageValue<{ name: string }>
|
|
600
|
+
avatarUnavailable: string
|
|
601
|
+
}
|
|
602
|
+
fileUnavailable: string
|
|
603
|
+
}
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
export type NovaMessagesOverride = DeepPartial<NovaMessages>
|
|
607
|
+
|
|
608
|
+
export interface NovaI18nOptions {
|
|
609
|
+
locale?: NovaLocale
|
|
610
|
+
messages?: NovaMessagesOverride | null
|
|
611
|
+
}
|
|
612
|
+
|
|
613
|
+
export interface NovaI18nState {
|
|
614
|
+
readonly locale: string
|
|
615
|
+
readonly resolvedLocale: string
|
|
616
|
+
}
|
|
617
|
+
|
|
618
|
+
export class I18nController {
|
|
619
|
+
constructor(options?: NovaI18nOptions)
|
|
620
|
+
readonly locale: string
|
|
621
|
+
readonly resolvedLocale: string
|
|
622
|
+
readonly messages: NovaMessages
|
|
623
|
+
getState(): NovaI18nState
|
|
624
|
+
hasOverride(key: string): boolean
|
|
625
|
+
isDefaultZh(): boolean
|
|
626
|
+
setLocale(locale?: NovaLocale | null, messages?: NovaMessagesOverride | null): NovaI18nState
|
|
627
|
+
subscribe(listener: (state: NovaI18nState) => void): () => void
|
|
628
|
+
t(key: string, params?: Record<string, unknown>): string
|
|
629
|
+
elementTypeLabel(nodeType?: string | null, fallback?: string): string
|
|
630
|
+
edgeTypeLabel(edgeType?: string | null, fallback?: string): string
|
|
631
|
+
actionLabel(actionType?: string | null, fallback?: string): string
|
|
632
|
+
}
|
|
633
|
+
|
|
634
|
+
export type NovaI18n = I18nController
|
|
635
|
+
|
|
636
|
+
export const DEFAULT_LOCALE: 'zh-CN'
|
|
637
|
+
export const zhCN: Readonly<NovaMessages>
|
|
638
|
+
export const enUS: Readonly<NovaMessages>
|
|
639
|
+
export const BUILTIN_LOCALES: Readonly<{ 'zh-CN': Readonly<NovaMessages>; 'en-US': Readonly<NovaMessages> }>
|
|
640
|
+
export const DEFAULT_I18N: Readonly<I18nController>
|
|
641
|
+
|
|
642
|
+
export function normalizeLocaleTag(locale?: string | null): string
|
|
643
|
+
export function resolveBuiltinLocale(locale?: string | null): 'zh-CN' | 'en-US' | null
|
|
644
|
+
export function getLocaleMessages(locale?: string | null): Readonly<NovaMessages> | null
|
|
645
|
+
export function formatMessage(entry: NovaMessageValue<any>, params?: Record<string, unknown>): string
|
|
646
|
+
export function createI18n(options?: NovaI18nOptions): I18nController
|
|
647
|
+
export function resolveI18n(input?: I18nController | (NovaI18nOptions & { i18n?: I18nController | null }) | null): I18nController
|