@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.
Files changed (55) hide show
  1. package/README.md +2 -2
  2. package/dist/canvas.js +97 -25
  3. package/dist/config.js +42 -0
  4. package/dist/context-menu.js +41 -32
  5. package/dist/controller.js +45 -19
  6. package/dist/index.d.ts +59 -2
  7. package/dist/index.js +1 -0
  8. package/dist/interactions.js +6 -1
  9. package/dist/modules/bpmn-model/index.d.ts +2 -1
  10. package/dist/modules/bpmn-model/index.js +12 -10
  11. package/dist/modules/core/gateway.js +16 -13
  12. package/dist/modules/core/index.d.ts +6 -4
  13. package/dist/modules/core/model.js +12 -7
  14. package/dist/modules/designer/index.d.ts +5 -1
  15. package/dist/modules/designer/index.js +36 -15
  16. package/dist/modules/export-svg/index.d.ts +12 -5
  17. package/dist/modules/export-svg/preview.js +34 -24
  18. package/dist/modules/export-svg/render.js +102 -50
  19. package/dist/modules/i18n/index.d.ts +647 -0
  20. package/dist/modules/i18n/index.js +247 -0
  21. package/dist/modules/i18n/locales/en-US.js +823 -0
  22. package/dist/modules/i18n/locales/zh-CN.js +805 -0
  23. package/dist/modules/node-presentation/index.d.ts +3 -2
  24. package/dist/modules/node-presentation/index.js +14 -11
  25. package/dist/modules/palette/index.d.ts +6 -1
  26. package/dist/modules/palette/index.js +26 -8
  27. package/dist/modules/palette/panel.js +44 -6
  28. package/dist/modules/properties/index.d.ts +2 -1
  29. package/dist/modules/properties/index.js +2 -2
  30. package/dist/modules/properties-activiti/index.js +84 -59
  31. package/dist/modules/properties-bpmn/index.js +151 -128
  32. package/dist/modules/properties-core/index.d.ts +9 -3
  33. package/dist/modules/properties-core/index.js +16 -4
  34. package/dist/modules/properties-flowable/index.js +55 -34
  35. package/dist/modules/properties-renderer/index.d.ts +5 -1
  36. package/dist/modules/properties-renderer/index.js +110 -42
  37. package/dist/modules/renderer-svg/index.d.ts +6 -2
  38. package/dist/modules/renderer-svg/index.js +113 -38
  39. package/dist/modules/runtime/index.d.ts +33 -5
  40. package/dist/modules/runtime/index.js +97 -73
  41. package/dist/modules/runtime/time.js +89 -4
  42. package/dist/modules/runtime/visits.js +6 -4
  43. package/dist/modules/theme/index.d.ts +5 -2
  44. package/dist/modules/theme/index.js +8 -4
  45. package/dist/modules/viewer/index.d.ts +28 -7
  46. package/dist/modules/viewer/index.js +213 -56
  47. package/dist/modules/viewer/runtime-content.js +26 -20
  48. package/dist/modules/viewer/runtime-trace.js +43 -25
  49. package/dist/modules/viewer/timeline.js +103 -36
  50. package/dist/shell.js +279 -75
  51. package/dist/sidebars.js +3 -1
  52. package/dist/styles.css +6 -3
  53. package/llms-full.txt +296 -49
  54. package/llms.txt +4 -4
  55. package/package.json +2 -3
@@ -0,0 +1,823 @@
1
+ function pluralizeEnglishPhrase(phrase) {
2
+ const source = String(phrase || '').trim();
3
+ if (!source) return 'items';
4
+ if (source.includes(' / ')) {
5
+ return source.split(' / ').map(pluralizeEnglishPhrase).join(' / ');
6
+ }
7
+ const lower = source.toLowerCase();
8
+ if (lower.endsWith('process')) return `${lower}es`;
9
+ if (/(?:s|sh|ch|x|z)$/.test(lower)) return `${lower}es`;
10
+ if (/[^aeiou]y$/.test(lower)) return `${lower.slice(0, -1)}ies`;
11
+ return `${lower}s`;
12
+ }
13
+
14
+ export const enUS = {
15
+ common: {
16
+ listSeparator: ', ',
17
+ issueSeparator: '; ',
18
+ },
19
+ elementTypes: {
20
+ startEvent: 'Start Event',
21
+ messageStartEvent: 'Message Start',
22
+ timerStartEvent: 'Timer Start',
23
+ conditionalStartEvent: 'Conditional Start',
24
+ signalStartEvent: 'Signal Start',
25
+ errorStartEvent: 'Error Start',
26
+ escalationStartEvent: 'Escalation Start',
27
+ compensationStartEvent: 'Compensation Start',
28
+
29
+ intermediateCatchEvent: 'Intermediate Catch Event',
30
+ messageIntermediateCatchEvent: 'Message Catch',
31
+ timerIntermediateCatchEvent: 'Timer Catch',
32
+ conditionalIntermediateCatchEvent: 'Conditional Catch',
33
+ signalIntermediateCatchEvent: 'Signal Catch',
34
+ linkIntermediateCatchEvent: 'Link Catch',
35
+ intermediateThrowEvent: 'Intermediate Throw Event',
36
+ messageIntermediateThrowEvent: 'Message Throw',
37
+ escalationIntermediateThrowEvent: 'Escalation Throw',
38
+ signalIntermediateThrowEvent: 'Signal Throw',
39
+ linkIntermediateThrowEvent: 'Link Throw',
40
+ compensationIntermediateThrowEvent: 'Compensation Throw',
41
+
42
+ timerBoundaryEvent: 'Timer Boundary Event',
43
+ messageBoundaryEvent: 'Message Boundary Event',
44
+ errorBoundaryEvent: 'Error Boundary Event',
45
+ escalationBoundaryEvent: 'Escalation Boundary Event',
46
+ signalBoundaryEvent: 'Signal Boundary Event',
47
+ conditionalBoundaryEvent: 'Conditional Boundary Event',
48
+ compensationBoundaryEvent: 'Compensation Boundary Event',
49
+
50
+ endEvent: 'End Event',
51
+ messageEndEvent: 'Message End',
52
+ errorEndEvent: 'Error End',
53
+ escalationEndEvent: 'Escalation End',
54
+ cancelEndEvent: 'Cancel End',
55
+ compensationEndEvent: 'Compensation End',
56
+ signalEndEvent: 'Signal End',
57
+ terminateEndEvent: 'Terminate End',
58
+
59
+ task: 'Task',
60
+ userTask: 'User Task',
61
+ manualTask: 'Manual Task',
62
+ serviceTask: 'Service Task',
63
+ scriptTask: 'Script Task',
64
+ businessRuleTask: 'Business Rule Task',
65
+ sendTask: 'Send Task',
66
+ receiveTask: 'Receive Task',
67
+ callActivity: 'Call Activity',
68
+ subProcess: 'Sub-Process',
69
+ eventSubProcess: 'Event Sub-Process',
70
+ transaction: 'Transaction',
71
+ adHocSubProcess: 'Ad-Hoc Sub-Process',
72
+
73
+ exclusiveGateway: 'Exclusive Gateway',
74
+ parallelGateway: 'Parallel Gateway',
75
+ inclusiveGateway: 'Inclusive Gateway',
76
+ eventBasedGateway: 'Event-Based Gateway',
77
+ complexGateway: 'Complex Gateway',
78
+
79
+ dataObjectReference: 'Data Object',
80
+ dataStoreReference: 'Data Store',
81
+ textAnnotation: 'Text Annotation',
82
+ group: 'Group',
83
+ participant: 'Participant / Pool',
84
+ lane: 'Lane',
85
+ generic: 'BPMN Node',
86
+
87
+ parallelDiverging: 'Parallel Split',
88
+ parallelConverging: 'Parallel Join',
89
+ },
90
+ edgeTypes: {
91
+ sequenceFlow: 'Sequence Flow',
92
+ messageFlow: 'Message Flow',
93
+ association: 'Association',
94
+ },
95
+ actions: {
96
+ submit: 'Submit',
97
+ approve: 'Approve',
98
+ reject: 'Reject',
99
+ return: 'Return',
100
+ 'add-sign': 'Add Signer',
101
+ transfer: 'Transfer',
102
+ delegate: 'Delegate',
103
+ withdraw: 'Withdraw',
104
+ comment: 'Comment',
105
+ skip: 'Skip',
106
+ cancel: 'Cancel',
107
+ default: 'Approval Action',
108
+ },
109
+ shell: {
110
+ modeAria: 'Studio mode',
111
+ modes: {
112
+ design: 'Design',
113
+ viewer: 'Preview',
114
+ instance: 'Trace',
115
+ },
116
+ modeSwitchTo: ({ label }) => `Switch to ${label}`,
117
+ projectionAria: 'Approval trace view',
118
+ projections: {
119
+ approval: 'Effective Path',
120
+ standard: 'Full BPMN',
121
+ compact: 'Timeline',
122
+ },
123
+ tools: {
124
+ undo: 'Undo Ctrl/⌘+Z',
125
+ redo: 'Redo Ctrl/⌘+Y',
126
+ beautify: 'Beautify',
127
+ beautifyTitle: 'Arrange nodes and edges with current settings',
128
+ beautifyStrategyTitle: 'Choose layout strategy',
129
+ beautifyMenuTitle: 'Layout Strategy',
130
+ validate: 'Validate',
131
+ validateTitle: 'Validate process structure',
132
+ import: 'Import',
133
+ importTitle: 'Import BPMN XML',
134
+ export: 'Export',
135
+ exportTitle: 'Export current content',
136
+ exportSvg: 'Export SVG',
137
+ exportSvgHint: 'Preview before downloading',
138
+ exportBpmn: 'Export BPMN',
139
+ exportBpmnHint: 'Download process XML',
140
+ },
141
+ density: {
142
+ compact: 'Compact',
143
+ balanced: 'Balanced',
144
+ spacious: 'Spacious',
145
+ },
146
+ beautifyActions: {
147
+ horizontal: 'Horizontal Auto Layout',
148
+ horizontalHint: 'Rearrange along horizontal flow direction',
149
+ vertical: 'Vertical Auto Layout',
150
+ verticalHint: 'Rearrange by vertical approval levels',
151
+ routing: 'Recalculate Rounded Edges',
152
+ routingHint: 'Keep node positions and reroute edges',
153
+ smooth: 'Smooth Curved Edges',
154
+ smoothHint: 'Keep node positions with smoother curves',
155
+ },
156
+ canvasHead: {
157
+ editingMode: 'Edit Mode',
158
+ back: 'Back',
159
+ backToParent: ({ name }) => `Back to parent: ${name}`,
160
+ scopeNavAria: 'Process scope path',
161
+ backToScope: ({ name }) => `Return to ${name}`,
162
+ },
163
+ viewport: {
164
+ zoomOut: 'Zoom out',
165
+ zoomIn: 'Zoom in',
166
+ actualSize: '100% actual size',
167
+ fitView: 'Fit view',
168
+ },
169
+ sidebar: {
170
+ toggle: ({ collapsed, side }) => `${collapsed ? 'Expand' : 'Collapse'} ${side === 'left' ? 'left palette panel' : 'right panel'}`,
171
+ },
172
+ status: {
173
+ ready: 'Ready',
174
+ graphSummary: ({ nodes, edges }) => `${nodes} ${nodes === 1 ? 'node' : 'nodes'} · ${edges} ${edges === 1 ? 'edge' : 'edges'}`,
175
+ viewerReadonly: 'Process Preview · Read-Only',
176
+ traceTimeline: 'Approval Trace · Timeline',
177
+ traceStandard: 'Approval Trace · Full BPMN',
178
+ traceApproval: 'Approval Trace · Effective Path',
179
+ importedBpmn: 'BPMN file imported',
180
+ importFailed: ({ message }) => `Import failed: ${message}`,
181
+ exportedBpmn: 'BPMN file exported',
182
+ exportedSvg: ({ filename }) => `SVG exported: ${filename}`,
183
+ validationPassed: 'Validation passed: process structure is valid',
184
+ validationSummary: ({ summary }) => `Validation complete: ${summary}`,
185
+ errorCount: ({ count }) => count === 1 ? '1 error' : `${count} errors`,
186
+ warningCount: ({ count }) => count === 1 ? '1 warning' : `${count} warnings`,
187
+ },
188
+ errors: {
189
+ svgExportUnsupported: 'SVG export is not supported in the current view.',
190
+ },
191
+ exportSvgPreviewTitle: ({ label }) => `Export ${label} SVG`,
192
+ readonlyDetails: {
193
+ edgeFallbackTitle: 'Sequence Flow',
194
+ traceBadge: 'Trace',
195
+ readonlyBadge: 'Read-only',
196
+ currentStatus: 'Status',
197
+ participants: 'Participants',
198
+ round: 'Round',
199
+ roundValue: ({ round }) => `Round ${round}`,
200
+ latestAction: 'Latest Action',
201
+ elementType: 'Element Type',
202
+ bpmnType: 'BPMN Type',
203
+ name: 'Name',
204
+ elementId: 'Element ID',
205
+ source: 'Source',
206
+ target: 'Target',
207
+ condition: 'Condition',
208
+ processName: 'Process Name',
209
+ engine: 'Workflow Engine',
210
+ nodeCount: 'Nodes',
211
+ edgeCount: 'Edges',
212
+ },
213
+ },
214
+ palette: {
215
+ groups: {
216
+ favorites: 'Common',
217
+ startEvents: 'Start Events',
218
+ intermediateEvents: 'Intermediate Events',
219
+ boundaryEvents: 'Boundary Events',
220
+ endEvents: 'End Events',
221
+ tasks: 'Tasks',
222
+ activities: 'Activities / Sub-Processes',
223
+ gateways: 'Gateways',
224
+ data: 'Data',
225
+ artifacts: 'Annotations / Groups',
226
+ collaboration: 'Collaboration / Swimlanes',
227
+ },
228
+ parallelDivergingDesc: 'Start multiple parallel paths',
229
+ parallelConvergingDesc: 'Wait for all incoming parallel paths',
230
+ itemUnavailable: 'This node type is currently unavailable',
231
+ },
232
+ contextMenu: {
233
+ ariaLabel: 'Canvas context menu',
234
+ groups: {
235
+ align: 'Align',
236
+ distribute: 'Distribute',
237
+ pointer: 'Pointer Mode',
238
+ },
239
+ actions: {
240
+ canvasFit: 'Fit View',
241
+ canvasBeautify: 'Beautify Process',
242
+ canvasReroute: 'Optimize All Edges',
243
+ pointerSelect: 'Select',
244
+ pointerMarquee: 'Marquee',
245
+ pointerPan: 'Pan',
246
+ nodeQuickAdd: 'Quick Add Next Node',
247
+ nodeConnect: 'Connect to Existing Node',
248
+ nodeEnterScope: 'Enter Sub-Process',
249
+ nodeUngroup: 'Ungroup',
250
+ nodeDelete: 'Delete Node',
251
+ edgeRename: 'Edit Edge Label',
252
+ edgeResetRoute: 'Reset Auto Route',
253
+ edgeLocateSource: 'Locate Source',
254
+ edgeLocateTarget: 'Locate Target',
255
+ edgeDelete: 'Delete Edge',
256
+ alignLeft: 'Align Left',
257
+ alignCenterX: 'Align Horizontal Center',
258
+ alignRight: 'Align Right',
259
+ alignTop: 'Align Top',
260
+ alignCenterY: 'Align Vertical Center',
261
+ alignBottom: 'Align Bottom',
262
+ selectionGroup: 'Create Group',
263
+ distributeHorizontal: 'Distribute Horizontally',
264
+ distributeVertical: 'Distribute Vertically',
265
+ selectionLayout: 'Beautify Selection',
266
+ selectionReroute: 'Optimize Connected Edges',
267
+ selectionFit: 'Fit Selection',
268
+ selectionDelete: 'Delete Selection',
269
+ },
270
+ },
271
+ canvas: {
272
+ pointerToolbarAria: 'Canvas interaction mode',
273
+ pointerModes: {
274
+ select: 'Select',
275
+ selectTitle: 'Select and move nodes',
276
+ marquee: 'Marquee',
277
+ marqueeTitle: 'Drag on canvas to box-select nodes',
278
+ pan: 'Pan',
279
+ panTitle: 'Pan the canvas',
280
+ },
281
+ selectionToolbarAria: 'Selection layout toolbar',
282
+ selectionActions: {
283
+ group: 'Group',
284
+ align: 'Align selection',
285
+ distribute: 'Distribute selection',
286
+ layout: 'Beautify selection',
287
+ reroute: 'Optimize selection edges',
288
+ fit: 'Fit selection',
289
+ },
290
+ emptySubProcessTitle: 'Empty Sub-Process',
291
+ emptySubProcessHint: 'Drop nodes here or add a start event',
292
+ edgePlaceholder: 'Set branch label',
293
+ edgeInputPlaceholder: 'Enter branch label',
294
+ ports: {
295
+ connectToNode: 'Connect to this node',
296
+ createConnection: 'Create connection',
297
+ incomingPort: 'Incoming port',
298
+ },
299
+ resizeLaneDivider: 'Resize adjacent lane height',
300
+ nodeActions: {
301
+ enterSubProcess: 'Enter sub-process',
302
+ quickAdd: 'Quick add next node',
303
+ cancelConnect: 'Cancel connect mode (Esc)',
304
+ connectExisting: 'Connect to existing node',
305
+ ungroup: 'Ungroup',
306
+ deleteNode: 'Delete node',
307
+ },
308
+ connectHint: 'Select target node · Esc to cancel',
309
+ quickMenu: {
310
+ title: 'Add Next Node',
311
+ subtitle: 'Auto-connect and smart placement',
312
+ close: 'Close',
313
+ searchPlaceholder: 'Search BPMN nodes…',
314
+ },
315
+ gatewayRoleBadge: {
316
+ diverging: 'Fork',
317
+ converging: 'Join',
318
+ ambiguous: '?',
319
+ },
320
+ gatewayRoleStatus: {
321
+ valid: 'Valid',
322
+ incomplete: 'Incomplete',
323
+ conflict: 'Conflict',
324
+ ambiguous: 'Undetermined',
325
+ },
326
+ gatewayRoleTitle: ({ role, status }) => `${role} · ${status}`,
327
+ runtimeTransitionAria: ({ label }) => label,
328
+ runtimeTransitionAriaWithOperator: ({ label, operator }) => `${label}, operator: ${operator}`,
329
+ viewRuntimeDetailsAria: ({ name, status }) => `View approval details for ${name}, status: ${status}`,
330
+ defaultAnnotationCaption: 'Note',
331
+ defaultGroupCaption: 'Group',
332
+ defaultSubtitles: {
333
+ userTask: 'Assignee not configured',
334
+ serviceTask: 'Implementation not configured',
335
+ callActivity: 'Called process not configured',
336
+ receiveTask: 'Waiting for message or trigger',
337
+ manualTask: 'Manual offline task',
338
+ subProcess: 'Collapsible sub-process',
339
+ eventSubProcess: 'Event-triggered sub-process',
340
+ transaction: 'Transaction boundary',
341
+ },
342
+ },
343
+ modeling: {
344
+ nodeLimitExceeded: ({ max, label }) => {
345
+ const singular = String(label || 'node').toLowerCase();
346
+ return max === 1
347
+ ? `At most 1 ${singular}`
348
+ : `At most ${max} ${pluralizeEnglishPhrase(label)}`;
349
+ },
350
+ nodeLimitReached: ({ label }) => `Maximum limit reached for ${pluralizeEnglishPhrase(label)}`,
351
+ branchName: ({ index }) => `Branch ${index}`,
352
+ defaultGroupCategory: 'Group',
353
+ defaultProcessName: 'Untitled Process',
354
+ defaultAnnotationText: 'Annotation text',
355
+ },
356
+ validation: {
357
+ missingStartEvent: 'The process must contain at least one start event.',
358
+ missingEndEvent: 'At least one end event is recommended.',
359
+ invalidSubProcessScope: 'Node references a missing or invalid sub-process scope.',
360
+ edgeMissingNode: 'Edge references a missing node.',
361
+ edgeCrossScope: 'Edge cannot cross process or sub-process scopes.',
362
+ sequenceFlowSelfLoop: 'A sequence flow cannot connect a node to itself.',
363
+ serviceTaskMissingImpl: ({ name }) => `${name}: Service task has no implementation configured.`,
364
+ userTaskMissingAssignee: ({ name }) => `${name}: User task has no assignee or candidate configured.`,
365
+ boundaryMissingTarget: ({ name }) => `${name}: Boundary event is not attached to an activity.`,
366
+ gatewayNeedsTwoOutgoing: ({ name }) => `${name}: Gateways typically require at least two outgoing flows.`,
367
+ gatewayBranchNeedsName: ({ name }) => `${name}: Naming each branch is recommended for approval display and runtime tracing.`,
368
+ timerMissingExpression: ({ name }) => `${name}: Timer event has no timer expression configured.`,
369
+ nodeIssue: ({ name, message }) => `${name}: ${message}`,
370
+ parallelGateway: {
371
+ convergingMinIncoming: 'A parallel join requires at least two incoming flows.',
372
+ convergingSingleOutgoing: 'A parallel join should typically have only one outgoing flow.',
373
+ divergingSingleIncoming: 'A parallel split should typically have only one incoming flow.',
374
+ divergingMinOutgoing: 'A parallel split requires at least two outgoing flows.',
375
+ mixedNotAllowed: 'Parallel gateway has multiple incoming and outgoing flows; consider splitting into join and split gateways.',
376
+ ambiguousTopology: 'Not enough connected flows to determine whether this is a parallel split or join.',
377
+ noConditionAllowed: 'Outgoing flows from a parallel gateway should not define condition expressions.',
378
+ noDefaultAllowed: 'Parallel gateways do not support default outgoing flows.',
379
+ },
380
+ import: {
381
+ xmlParseFailed: ({ detail }) => `Failed to parse BPMN XML: ${detail}`,
382
+ missingProcessElement: 'Missing <process> element.',
383
+ },
384
+ },
385
+ properties: {
386
+ empty: 'Select an element to view properties',
387
+ profileAria: 'Properties view',
388
+ profiles: {
389
+ business: 'Business',
390
+ developer: 'Developer',
391
+ },
392
+ header: {
393
+ none: 'No Element Selected',
394
+ multiSelected: ({ count }) => count === 1 ? '1 element selected' : `${count} elements selected`,
395
+ process: 'Process & Canvas',
396
+ association: 'Association',
397
+ sequenceFlow: 'Branch Flow',
398
+ unnamedElement: 'Unnamed Element',
399
+ },
400
+ multiSummary: {
401
+ title: 'Multi-Selection Layout',
402
+ description: 'Use the floating canvas toolbar to align, distribute, or beautify the selection.',
403
+ fitSelection: 'Fit Selection',
404
+ kinds: {
405
+ task: 'Tasks',
406
+ event: 'Events',
407
+ gateway: 'Gateways',
408
+ container: 'Sub-Processes',
409
+ boundary: 'Boundary Events',
410
+ other: 'Other',
411
+ },
412
+ },
413
+ controls: {
414
+ selectLabel: 'Select',
415
+ selectPlaceholder: 'Select an option',
416
+ selectEmpty: 'No options available',
417
+ selectAria: ({ label, value }) => `${label}: ${value}`,
418
+ switchOn: 'On',
419
+ switchOff: 'Off',
420
+ defaultAction: 'Run',
421
+ tagsHint: 'Separate multiple values with commas; expressions are also supported.',
422
+ smartSelectPlaceholder: 'Select or enter a value',
423
+ nodeFallbackType: 'Process Node',
424
+ locateNodeAria: ({ label }) => `Locate node: ${label}`,
425
+ emptyNodeList: 'No referenced nodes',
426
+ unconnected: 'Unconnected',
427
+ emptyFlowList: 'No flows',
428
+ removeRow: 'Delete',
429
+ emptyTable: 'No items configured',
430
+ addRow: ({ label }) => `Add ${label}`,
431
+ defaultRowLabel: 'Item',
432
+ },
433
+ branchList: {
434
+ title: ({ index }) => `Branch ${index}`,
435
+ locate: 'Locate',
436
+ nameLabel: 'Branch Name',
437
+ namePlaceholder: 'e.g., Purchase Approval',
438
+ conditionLabel: 'Condition Expression',
439
+ defaultFlow: 'Default Flow',
440
+ targetLabel: 'Target',
441
+ empty: 'No outgoing branches on this gateway',
442
+ },
443
+ validators: {
444
+ idRequired: 'ID is required',
445
+ idInvalid: 'ID may only contain letters, digits, _, -, and ., and cannot start with a digit',
446
+ idDuplicate: 'ID already exists; BPMN Element IDs must be unique within Definitions',
447
+ },
448
+ bpmn: {
449
+ basicGroup: 'General',
450
+ branchDefGroup: 'Branch Definition',
451
+ edgeInfoGroup: 'Edge Info',
452
+ processName: 'Process Name',
453
+ processIdNote: 'Used as processDefinitionKey when deployed to the workflow engine.',
454
+ executable: 'Executable Process',
455
+ engine: 'Workflow Engine',
456
+ name: 'Name',
457
+ edgeNamePlaceholder: 'e.g., Approve / Reject / Amount >= 50k',
458
+ nodeType: 'Node Type',
459
+ documentationGroup: 'Documentation',
460
+ documentationPlaceholder: 'Node notes, business rules, implementation hints, or process docs.',
461
+ startPermissionsGroup: 'Start Permissions',
462
+ starterUsers: 'Candidate Starter Users',
463
+ starterGroups: 'Candidate Starter Groups',
464
+ globalResourcesGroup: 'Global Event Resources',
465
+ globalResourcesDesc: 'Manage Message / Signal / Error / Escalation definitions referenced by event nodes.',
466
+ messageRowLabel: 'Message',
467
+ messageDefaultName: 'New Message',
468
+ signalRowLabel: 'Signal',
469
+ signalDefaultName: 'New Signal',
470
+ errorRowLabel: 'Error',
471
+ errorDefaultName: 'Business Error',
472
+ escalationRowLabel: 'Escalation',
473
+ escalationDefaultName: 'Business Escalation',
474
+ namespacesGroup: 'Namespaces',
475
+ namespacesDesc: 'XML namespaces used by custom attributes and extension elements. Use the xmlns:company prefix format.',
476
+ namespaceRowLabel: 'Namespace',
477
+ canvasDisplayGroup: 'Canvas Display',
478
+ showGrid: 'Show Grid',
479
+ gridSize: 'Grid Size',
480
+ snapToGrid: 'Snap to Grid',
481
+ alignmentGuides: 'Smart Alignment Guides',
482
+ alignmentGuidesNote: 'Disables magnetic alignment and drag alignment guides when turned off.',
483
+ layoutGroup: 'Layout & Routing',
484
+ defaultDirection: 'Default Layout Direction',
485
+ directionHorizontal: 'Horizontal (Left -> Right)',
486
+ directionVertical: 'Vertical (Top -> Bottom)',
487
+ layoutDensity: 'Layout Density',
488
+ layoutDensityNote: 'Affects node spacing for quick add and auto beautify.',
489
+ defaultEdgeStyle: 'Default Edge Style',
490
+ edgeStyleRounded: 'Rounded Orthogonal',
491
+ edgeStyleSmooth: 'Smooth Curve',
492
+ edgeStyleStraight: 'Straight Orthogonal',
493
+ beautifyEntryLabel: 'Arrange all nodes and edges',
494
+ beautifyActionLabel: 'Beautify',
495
+ conditionGroup: 'Condition & Default Flow',
496
+ conditionExpression: 'Condition Expression',
497
+ conditionParallelNote: 'Parallel gateways ignore branch conditions; exposed in Developer view for cleanup only.',
498
+ conditionDefaultNote: 'Exported as bpmn:conditionExpression.',
499
+ defaultFlow: 'Default Flow',
500
+ defaultFlowParallelNote: 'Parallel gateways do not support default flows; exposed in Developer view for cleanup only.',
501
+ edgeStyleGroup: 'Diagram Display',
502
+ routeStyle: 'Route Style',
503
+ cornerRadius: 'Corner Radius',
504
+ resetRouteLabel: 'Recalculate Optimal Path',
505
+ resetRouteActionLabel: 'Reset Route',
506
+ multiInstanceGroup: 'Loop / Multi-Instance',
507
+ loopType: 'Loop Type',
508
+ loopNone: 'None',
509
+ loopStandard: 'Standard Loop',
510
+ loopParallel: 'Parallel Multi-Instance',
511
+ loopSequential: 'Sequential Multi-Instance',
512
+ isForCompensation: 'For Compensation',
513
+ scriptGroup: 'Script',
514
+ callActivityGroup: 'Call Activity',
515
+ inheritBusinessKey: 'Inherit Business Key',
516
+ inheritVariables: 'Inherit Process Variables',
517
+ inputMapping: 'Input Mapping (In)',
518
+ inputMappingRow: 'Input Mapping',
519
+ outputMapping: 'Output Mapping (Out)',
520
+ outputMappingRow: 'Output Mapping',
521
+ messageRefPlaceholder: 'Select or enter Message ID',
522
+ messageSendGroup: 'Send Message',
523
+ messageReceiveGroup: 'Receive Message',
524
+ subProcessGroup: 'Sub-Process Behavior',
525
+ parallelRole: 'Parallel Role',
526
+ parallelRoleAuto: 'Auto Detect',
527
+ parallelRoleMixedDev: 'Mixed (Developer)',
528
+ parallelConvergingNote: 'A parallel join waits for all incoming flows before continuing.',
529
+ gatewayDirectionDiverging: 'Diverging / Split',
530
+ gatewayDirectionConverging: 'Converging / Join',
531
+ gatewayGroup: 'Gateway Settings',
532
+ gatewayBranchesGroup: ({ count }) => `Branches · ${count}`,
533
+ gatewayBranchesDesc: 'Edit outgoing branch names, conditions, and default flow; click Locate to select the Sequence Flow.',
534
+ parallelOutgoingGroup: ({ count }) => `Parallel Outgoing · ${count}`,
535
+ parallelOutgoingDesc: 'A parallel split activates all outgoing flows simultaneously; edit labels or locate each Sequence Flow.',
536
+ connectExistingNode: 'Connect to Existing Node',
537
+ connectParallelBranch: 'Connect Parallel Branch',
538
+ parallelJoinIncomingGroup: ({ count }) => `Join Incoming · ${count}`,
539
+ parallelIncomingGroup: ({ count }) => `Incoming Flows · ${count}`,
540
+ parallelIncomingAmbiguousDesc: 'Role is not yet determined; showing current incoming flows.',
541
+ parallelIncomingEmpty: 'No incoming flows on this parallel gateway',
542
+ parallelJoinOutgoingGroup: ({ count }) => `Next Outgoing · ${count}`,
543
+ parallelOutgoingAmbiguousGroup: ({ count }) => `Outgoing Flows · ${count}`,
544
+ parallelJoinOutgoingDesc: 'A parallel join typically connects to a single next node.',
545
+ parallelOutgoingAmbiguousDesc: 'Role is not yet determined; showing current outgoing flows.',
546
+ parallelOutgoingEmpty: 'No outgoing flows on this parallel gateway',
547
+ connectParallelNext: 'Connect Next Node',
548
+ parallelStructureGroup: 'Structure Check',
549
+ parallelStructureSummaryLabel: 'Flow Structure',
550
+ parallelStructureSummaryValue: ({ incoming, outgoing }) => `${incoming} in · ${outgoing} out`,
551
+ parallelStructureStatusLabel: 'Status',
552
+ parallelStructureIssuesLabel: 'Notes',
553
+ timerType: 'Timer Type',
554
+ timerValue: 'Timer Expression',
555
+ eventRefMessage: 'Message',
556
+ eventRefSignal: 'Signal',
557
+ eventRefError: 'Error',
558
+ eventRefEscalation: 'Escalation',
559
+ eventRefPlaceholder: 'Select or enter resource ID',
560
+ eventDefinition: 'Event Definition',
561
+ boundaryGroup: 'Boundary Event',
562
+ attachedToRef: 'Attached Activity',
563
+ cancelActivity: 'Interrupt Activity',
564
+ annotationText: 'Text',
565
+ swimlaneLabelPlacement: 'Header Placement',
566
+ swimlaneSide: 'Left Vertical',
567
+ swimlaneTop: 'Top Horizontal',
568
+ swimlanePoolNote: 'Lanes attached to this Pool inherit this header placement.',
569
+ swimlaneSideInherited: 'Left Vertical (Inherited from Pool)',
570
+ swimlaneTopInherited: 'Top Horizontal (Inherited from Pool)',
571
+ swimlaneLaneInheritedNote: 'Attached lane header placement is controlled by its parent Pool.',
572
+ swimlaneLaneLocalNote: 'Visual editor preference only; not written to standard BPMN XML.',
573
+ laneMembers: 'Contained Nodes',
574
+ laneMembersNote: 'Maintained automatically when nodes are dragged into the lane; shown here for inspection.',
575
+ artifactGroup: 'Element Settings',
576
+ extensionElementsDesc: 'Raw extension XML is preserved losslessly. Prefer structured Properties Providers and serializers; use this for viewing or editing unknown extensions.',
577
+ extensionAttributesGroup: 'Extension Attributes',
578
+ extensionAttributesDesc: 'Custom namespace attributes. Register the matching xmlns prefix in Process namespaceDeclarations. Unknown extension elements are preserved on import/export.',
579
+ extensionAttributeRow: 'Attribute',
580
+ elementActionsGroup: 'Element Actions',
581
+ deleteElementLabel: 'Delete Current Element',
582
+ deleteElementAction: 'Delete Element',
583
+ },
584
+ engine: {
585
+ columnType: 'Type',
586
+ columnImplementation: 'Implementation',
587
+ listenerRow: 'Listener',
588
+ assignee: 'Assignee',
589
+ candidateUsers: 'Candidate Users',
590
+ candidateGroups: 'Candidate Groups',
591
+ taskConfigGroup: 'Task Properties',
592
+ taskListenersLabel: 'Task Listeners',
593
+ implementationType: 'Implementation Type',
594
+ implementationValue: 'Implementation Value',
595
+ fieldInjectionLabel: 'Field Injection',
596
+ executionListenersLabel: 'Execution Listeners',
597
+ flowableProcessExecutionGroup: 'Flowable Execution Listeners',
598
+ flowableAssignmentGroup: 'Assignment · Flowable',
599
+ flowableRuleImplGroup: 'Rule Implementation · Flowable',
600
+ flowableSendImplGroup: 'Send Implementation · Flowable',
601
+ flowableServiceImplGroup: 'Service Implementation · Flowable',
602
+ flowableExecutionGroup: 'Execution · Flowable',
603
+ flowableCallGroup: 'Flowable Call Options',
604
+ activitiProcessExecutionGroup: 'Activiti Execution Listeners',
605
+ activitiAssignmentGroup: 'Assignment · Activiti',
606
+ activitiImplGroup: 'Implementation · Activiti',
607
+ activitiExecutionGroup: 'Execution · Activiti',
608
+ activitiCallGroup: 'Activiti Call Options',
609
+ },
610
+ },
611
+ runtime: {
612
+ status: {
613
+ idle: 'Not Reached',
614
+ active: 'In Progress',
615
+ completed: 'Completed',
616
+ failed: 'Failed',
617
+ cancelled: 'Cancelled',
618
+ skipped: 'Skipped',
619
+ rejected: 'Rejected',
620
+ returned: 'Returned',
621
+ reentry: 'Re-review',
622
+ countersign: ({ completed, total }) => `All-approve ${completed}/${total}`,
623
+ sequentialCountersign: ({ completed, total }) => `Sequential ${completed}/${total}`,
624
+ orSign: ({ completed, total }) => `Any-approve ${completed}/${total}`,
625
+ multiApproval: ({ completed, total }) => `Multi-approver ${completed}/${total}`,
626
+ activeVisits: ({ active }) => active === 1 ? '1 active execution' : `${active} active executions`,
627
+ activeVisitsOfTotal: ({ active, total }) => `${active}/${total} active executions`,
628
+ },
629
+ summary: {
630
+ pendingAssignee: 'Unassigned',
631
+ pendingClaim: ({ value }) => `Pending claim · ${value}`,
632
+ branchSkipped: 'Branch skipped',
633
+ notVisited: 'Not visited',
634
+ notReachedYet: 'Not reached yet',
635
+ automatedActive: 'Running',
636
+ automatedCompleted: 'Completed',
637
+ automatedFailed: 'Execution failed',
638
+ automatedWaiting: 'Waiting to run',
639
+ },
640
+ transitions: {
641
+ reject: 'Reject',
642
+ return: 'Return',
643
+ skip: 'Skip',
644
+ forward: 'Forward',
645
+ rejectPrefix: 'Rejected to',
646
+ returnPrefix: 'Returned to',
647
+ skipPrefix: 'Skipped',
648
+ forwardPrefix: 'Moved to',
649
+ rejectTo: ({ target }) => `Rejected to: ${target}`,
650
+ returnTo: ({ target }) => `Returned to: ${target}`,
651
+ skipTo: ({ target }) => `Skipped: ${target}`,
652
+ forwardTo: ({ target }) => `Moved to: ${target}`,
653
+ },
654
+ action: {
655
+ imageCount: ({ count }) => count === 1 ? '1 image' : `${count} images`,
656
+ fileCount: ({ count }) => count === 1 ? '1 attachment' : `${count} attachments`,
657
+ },
658
+ diagnostics: {
659
+ duplicateActivityId: 'Duplicate activity work-item ID.',
660
+ visitElementMismatch: 'Same visitId is associated with different BPMN elements.',
661
+ invalidTime: 'Timestamp could not be parsed.',
662
+ naiveTime: 'Timestamp has no timezone offset; ordering may vary across environments.',
663
+ unknownElement: 'Work item references an unknown BPMN element.',
664
+ duplicateActionId: 'Duplicate action ID.',
665
+ unknownActivity: 'Action references an unknown work item.',
666
+ actionIdentityMismatch: 'Action elementId or visitId does not match its work item.',
667
+ actionInvalidTime: 'Action timestamp could not be parsed.',
668
+ actionNaiveTime: 'Action timestamp has no timezone offset.',
669
+ actionMissingTime: 'Action has no timestamp; ordering is best-effort for display only.',
670
+ duplicateTransitionId: 'Duplicate transition ID.',
671
+ transitionUnknownActivity: 'Transition references an unknown source work item.',
672
+ transitionUnknownAction: 'Transition references an unknown action.',
673
+ transitionUnknownSource: 'Transition source element does not exist.',
674
+ transitionUnknownTarget: 'Transition target element does not exist.',
675
+ transitionInvalidTime: 'Transition timestamp could not be parsed.',
676
+ transitionNaiveTime: 'Transition timestamp has no timezone offset.',
677
+ duplicateEdgeVisitId: 'Duplicate edge visit ID.',
678
+ unknownEdge: 'Edge visit references an unknown BPMN edge.',
679
+ invalidationWorkItemId: 'Invalidation field received a work-item ID; only BPMN element IDs are accepted.',
680
+ invalidationUnknownElement: 'Invalidation scope references an unknown BPMN element.',
681
+ invalidationFieldConflict: 'invalidatedElementIds and invalidatedActivityIds differ; invalidatedElementIds takes precedence.',
682
+ elementInvalidationConcurrentVisits: 'Element-level invalidation encountered multiple effective visits; unrelated concurrent executions were kept.',
683
+ unknownSupersededVisit: 'supersedesVisitId did not match any visit on the same element.',
684
+ concurrentVisits: 'Overlapping independent visits on the same element without a supersedes relationship.',
685
+ ambiguousVisitOrder: 'Multiple visits lack comparable timestamps; historical active visits were not treated as sequential re-entry.',
686
+ },
687
+ invalidationIssues: {
688
+ missingEndpoints: 'Transition source or target node does not exist; unable to infer invalidated path.',
689
+ crossScope: 'Transition crosses process scopes; path was not reset automatically.',
690
+ multipleCandidatePaths: 'Multiple candidate paths found for transition; path was not reset automatically.',
691
+ pathNotFound: 'No visited path found from transition target to source.',
692
+ },
693
+ trace: {
694
+ predictedSummary: 'Pending',
695
+ parallelGroupDefault: 'Parallel Approval',
696
+ missingElementWarning: ({ elementId }) => `Runtime record references a missing element: ${elementId}`,
697
+ },
698
+ },
699
+ viewer: {
700
+ outcomes: {
701
+ approved: 'Approved',
702
+ rejected: 'Rejected',
703
+ returned: 'Returned',
704
+ submitted: 'Submitted',
705
+ pending: 'Pending',
706
+ },
707
+ details: {
708
+ ariaLabel: ({ name }) => `${name} approval details`,
709
+ fallbackNodeName: 'Node',
710
+ fallbackTitle: 'Node Details',
711
+ roundLabel: ({ round }) => `Round ${round}`,
712
+ roundHistorical: ({ round }) => `Round ${round} · Historical`,
713
+ traceSubtitle: 'Approval Trace',
714
+ closeLabel: 'Close approval details',
715
+ approvalModeAll: 'All-Approve',
716
+ approvalModeAllSequential: 'Sequential All-Approve',
717
+ approvalModeAny: 'Any-Approve',
718
+ approvalModeMulti: 'Multi-Approver',
719
+ systemActor: 'System',
720
+ targets: ({ names }) => `Targets: ${names}`,
721
+ targetElement: ({ id }) => `Target node: ${id}`,
722
+ rejectedTo: ({ target }) => `Rejected to ${target}`,
723
+ returnedTo: ({ target }) => `Returned to ${target}`,
724
+ },
725
+ transitionDetails: {
726
+ rejectRecord: 'Rejection Record',
727
+ returnRecord: 'Return Record',
728
+ rejectRecordAria: ({ source }) => `${source} rejection record`,
729
+ returnRecordAria: ({ source }) => `${source} return record`,
730
+ fallbackNodeName: 'Node',
731
+ fallbackTitle: 'Rejection Record',
732
+ rejectedBadge: 'Rejected',
733
+ returnedBadge: 'Returned',
734
+ closeRejectDetails: 'Close rejection details',
735
+ closeReturnDetails: 'Close return details',
736
+ unknownOperator: 'Unknown operator',
737
+ rejectedTo: ({ target }) => `Rejected to ${target}`,
738
+ returnedTo: ({ target }) => `Returned to ${target}`,
739
+ locateSource: 'Locate Source',
740
+ locateTarget: 'Locate Target',
741
+ },
742
+ assets: {
743
+ unavailable: 'Resource unavailable',
744
+ imageLoading: 'Loading image',
745
+ imagePreviewAria: ({ name }) => `Image preview: ${name}`,
746
+ closeImagePreview: 'Close image preview',
747
+ previewImageAria: ({ name }) => `Preview image: ${name}`,
748
+ imageUnavailable: 'Image unavailable',
749
+ fileUnavailable: 'Attachment unavailable',
750
+ downloadFileAria: ({ name }) => `Download attachment: ${name}`,
751
+ preparingDownload: 'Preparing',
752
+ download: 'Download',
753
+ unsupportedContent: ({ type }) => `Unsupported content: ${type}`,
754
+ },
755
+ },
756
+ timeline: {
757
+ defaultTitle: 'Approval Trace',
758
+ defaultDescription: 'Ordered by actual execution sequence',
759
+ ariaLabel: ({ title }) => `${title} approval trace`,
760
+ fallbackProcessName: 'Process',
761
+ empty: 'No runtime trace available',
762
+ round: ({ round }) => `Round ${round}`,
763
+ results: {
764
+ approved: 'Approved',
765
+ rejected: 'Rejected',
766
+ returned: 'Returned',
767
+ submitted: 'Submitted',
768
+ pending: 'Pending',
769
+ },
770
+ participantsToggle: ({ count }) => count === 1 ? 'View participants · 1 person' : `View participants · ${count} people`,
771
+ earlierActions: ({ count }) => count === 1 ? 'View 1 earlier action' : `View ${count} earlier actions`,
772
+ targets: ({ names }) => `Targets: ${names}`,
773
+ parallelCompleted: ({ completed, total }) => `${completed}/${total} completed`,
774
+ parallelSvgHeader: ({ label, completed, total }) => `${label} · ${completed}/${total} completed`,
775
+ itemAria: ({ name, status, summary, comment }) => [name, status, summary, comment].filter(Boolean).join(', '),
776
+ },
777
+ exportSvg: {
778
+ defaultLabels: {
779
+ design: 'Process Design',
780
+ viewer: 'Process Preview',
781
+ instance: 'Approval Trace',
782
+ timeline: 'Timeline',
783
+ approval: 'Effective Path',
784
+ standard: 'Full BPMN',
785
+ },
786
+ preview: {
787
+ defaultTitle: 'Export SVG',
788
+ subtitle: 'Preview before downloading',
789
+ closeAria: 'Close SVG preview',
790
+ themeGroupAria: 'SVG theme',
791
+ themeCurrent: 'Current',
792
+ themeLight: 'Light',
793
+ themeDark: 'Dark',
794
+ transparentBackground: 'Transparent background',
795
+ zoomOut: 'Zoom out',
796
+ zoomIn: 'Zoom in',
797
+ fitView: 'Fit View',
798
+ actualSize: '1:1',
799
+ viewportAria: 'SVG preview canvas, draggable and zoomable',
800
+ imageAlt: 'SVG export preview',
801
+ generating: 'Generating SVG…',
802
+ preparingExport: 'Ready to export',
803
+ preparingFullContent: 'Preparing full content',
804
+ failed: ({ message }) => `Export failed: ${message}`,
805
+ unknownError: 'Unknown error',
806
+ notGenerated: 'SVG not generated',
807
+ cancel: 'Cancel',
808
+ retry: 'Retry',
809
+ confirmDownload: 'Download',
810
+ warningsHeading: ({ count }) => count === 1 ? '1 item rendered with fallback' : `${count} items rendered with fallback`,
811
+ warningsMore: ({ count }) => count === 1 ? '1 more item' : `${count} more items`,
812
+ },
813
+ warnings: {
814
+ customNodeRendererFailed: ({ name }) => `SVG renderer for node "${name}" failed; fell back to standard visuals.`,
815
+ customNodeRendererFallback: ({ name }) => `Node "${name}" has no SVG renderer; fell back to standard visuals.`,
816
+ customTimelineRendererFailed: 'Custom timeline SVG renderer failed; fell back to default timeline.',
817
+ assetInvalid: 'Invalid approval image reference; showing placeholder.',
818
+ assetUnavailable: ({ name }) => `Image "${name}" could not be embedded in SVG; showing placeholder.`,
819
+ avatarUnavailable: 'Participant avatar could not be embedded in SVG; showing initials.',
820
+ },
821
+ fileUnavailable: 'Attachment unavailable',
822
+ },
823
+ };