@formicoidea/labre-framework-bpmn 0.32.0 → 0.34.1

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 (49) hide show
  1. package/dist/actions.d.ts +202 -6
  2. package/dist/actions.js +427 -43
  3. package/dist/background.d.ts +2 -0
  4. package/dist/background.js +158 -0
  5. package/dist/commands-manifest.d.ts +18 -0
  6. package/dist/commands-manifest.js +226 -0
  7. package/dist/commands.js +496 -5
  8. package/dist/consts.d.ts +195 -4
  9. package/dist/consts.js +230 -4
  10. package/dist/element-renderer.d.ts +10 -4
  11. package/dist/element-renderer.js +14 -55
  12. package/dist/element-view.d.ts +119 -8
  13. package/dist/element-view.js +274 -30
  14. package/dist/export.d.ts +277 -0
  15. package/dist/export.js +1802 -0
  16. package/dist/facts.d.ts +48 -0
  17. package/dist/facts.js +127 -0
  18. package/dist/import.d.ts +69 -0
  19. package/dist/import.js +1476 -0
  20. package/dist/index.d.ts +12 -0
  21. package/dist/index.js +47 -0
  22. package/dist/interchange.d.ts +109 -0
  23. package/dist/interchange.js +191 -0
  24. package/dist/morph.d.ts +61 -0
  25. package/dist/morph.js +118 -0
  26. package/dist/node/node-renderer.d.ts +0 -9
  27. package/dist/node/node-renderer.js +294 -17
  28. package/dist/pool-hit.d.ts +98 -0
  29. package/dist/pool-hit.js +130 -0
  30. package/dist/presets.d.ts +168 -0
  31. package/dist/presets.js +327 -0
  32. package/dist/profiles.d.ts +2 -0
  33. package/dist/profiles.js +189 -0
  34. package/dist/roles.d.ts +96 -0
  35. package/dist/roles.js +410 -0
  36. package/dist/rules.d.ts +199 -0
  37. package/dist/rules.js +1539 -0
  38. package/dist/templates/index.js +116 -9
  39. package/dist/toolbar/bpmn-senior-button.js +8 -2
  40. package/dist/toolbar/config.d.ts +28 -2
  41. package/dist/toolbar/config.js +93 -4
  42. package/dist/toolbar/icons.d.ts +67 -0
  43. package/dist/toolbar/icons.js +141 -0
  44. package/dist/toolbar/senior-tool.js +1 -0
  45. package/dist/translations.d.ts +3 -1
  46. package/dist/translations.js +38 -3
  47. package/dist/view.d.ts +6 -2
  48. package/dist/view.js +68 -5
  49. package/package.json +6 -2
@@ -0,0 +1,18 @@
1
+ import type { ShortcutManifestEntry } from '@formicoidea/labre-core/std';
2
+ /**
3
+ * The BPMN commands as SHORTCUT-MANIFEST rows — id, label, chord, scope,
4
+ * owner — and nothing else.
5
+ *
6
+ * DATA ONLY, and that is the whole point (`docs/adr/0008` § Packaging). A
7
+ * `CommandDescriptor` carries its `run`, so a host settings pane that imports
8
+ * the package entry to list names and chords drags the entire action graph —
9
+ * the import/export machinery, the surface and gfx deep paths — into its
10
+ * chunk. This module has type-only imports, so the published bundle exposes it
11
+ * as `./commands-manifest`: a few hundred bytes that reference nothing.
12
+ *
13
+ * GENERATED-SHAPED, hand-committed: `commands-manifest.unit.spec.ts` asserts
14
+ * row-for-row equality with `toShortcutManifestEntry` over {@link bpmnCommands},
15
+ * so this file cannot drift from the commands it projects. Add a command and
16
+ * the test says exactly what to add here.
17
+ */
18
+ export declare const bpmnCommandsManifest: ShortcutManifestEntry[];
@@ -0,0 +1,226 @@
1
+ /**
2
+ * The BPMN commands as SHORTCUT-MANIFEST rows — id, label, chord, scope,
3
+ * owner — and nothing else.
4
+ *
5
+ * DATA ONLY, and that is the whole point (`docs/adr/0008` § Packaging). A
6
+ * `CommandDescriptor` carries its `run`, so a host settings pane that imports
7
+ * the package entry to list names and chords drags the entire action graph —
8
+ * the import/export machinery, the surface and gfx deep paths — into its
9
+ * chunk. This module has type-only imports, so the published bundle exposes it
10
+ * as `./commands-manifest`: a few hundred bytes that reference nothing.
11
+ *
12
+ * GENERATED-SHAPED, hand-committed: `commands-manifest.unit.spec.ts` asserts
13
+ * row-for-row equality with `toShortcutManifestEntry` over {@link bpmnCommands},
14
+ * so this file cannot drift from the commands it projects. Add a command and
15
+ * the test says exactly what to add here.
16
+ */
17
+ export const bpmnCommandsManifest = [
18
+ {
19
+ id: 'bpmn.addStartEvent',
20
+ owner: 'bpmn',
21
+ labelKey: 'com.labre.commands.bpmn.addStartEvent',
22
+ labelFallback: 'Start event',
23
+ scope: 'edgeless',
24
+ defaultKeys: { mac: [], other: [] },
25
+ },
26
+ {
27
+ id: 'bpmn.addEndEvent',
28
+ owner: 'bpmn',
29
+ labelKey: 'com.labre.commands.bpmn.addEndEvent',
30
+ labelFallback: 'End event',
31
+ scope: 'edgeless',
32
+ defaultKeys: { mac: [], other: [] },
33
+ },
34
+ {
35
+ id: 'bpmn.addTask',
36
+ owner: 'bpmn',
37
+ labelKey: 'com.labre.commands.bpmn.addTask',
38
+ labelFallback: 'Task',
39
+ scope: 'edgeless',
40
+ defaultKeys: { mac: [], other: [] },
41
+ },
42
+ {
43
+ id: 'bpmn.addExclusiveGateway',
44
+ owner: 'bpmn',
45
+ labelKey: 'com.labre.commands.bpmn.addExclusiveGateway',
46
+ labelFallback: 'Exclusive gateway',
47
+ scope: 'edgeless',
48
+ defaultKeys: { mac: [], other: [] },
49
+ },
50
+ {
51
+ id: 'bpmn.sequenceFlowTool',
52
+ owner: 'bpmn',
53
+ labelKey: 'com.labre.commands.bpmn.sequenceFlowTool',
54
+ labelFallback: 'Sequence flow',
55
+ scope: 'edgeless',
56
+ defaultKeys: { mac: [], other: [] },
57
+ },
58
+ {
59
+ id: 'bpmn.addPool',
60
+ owner: 'bpmn',
61
+ labelKey: 'com.labre.commands.bpmn.addPool',
62
+ labelFallback: 'Pool',
63
+ scope: 'edgeless',
64
+ defaultKeys: { mac: [], other: [] },
65
+ },
66
+ {
67
+ id: 'bpmn.messageFlowTool',
68
+ owner: 'bpmn',
69
+ labelKey: 'com.labre.commands.bpmn.messageFlowTool',
70
+ labelFallback: 'Message flow',
71
+ scope: 'edgeless',
72
+ defaultKeys: { mac: [], other: [] },
73
+ },
74
+ {
75
+ id: 'bpmn.addUserTask',
76
+ owner: 'bpmn',
77
+ labelKey: 'com.labre.commands.bpmn.addUserTask',
78
+ labelFallback: 'User task',
79
+ scope: 'edgeless',
80
+ defaultKeys: { mac: [], other: [] },
81
+ },
82
+ {
83
+ id: 'bpmn.addServiceTask',
84
+ owner: 'bpmn',
85
+ labelKey: 'com.labre.commands.bpmn.addServiceTask',
86
+ labelFallback: 'Service task',
87
+ scope: 'edgeless',
88
+ defaultKeys: { mac: [], other: [] },
89
+ },
90
+ {
91
+ id: 'bpmn.addSubProcess',
92
+ owner: 'bpmn',
93
+ labelKey: 'com.labre.commands.bpmn.addSubProcess',
94
+ labelFallback: 'Sub-process',
95
+ scope: 'edgeless',
96
+ defaultKeys: { mac: [], other: [] },
97
+ },
98
+ {
99
+ id: 'bpmn.addCallActivity',
100
+ owner: 'bpmn',
101
+ labelKey: 'com.labre.commands.bpmn.addCallActivity',
102
+ labelFallback: 'Call activity',
103
+ scope: 'edgeless',
104
+ defaultKeys: { mac: [], other: [] },
105
+ },
106
+ {
107
+ id: 'bpmn.addParallelGateway',
108
+ owner: 'bpmn',
109
+ labelKey: 'com.labre.commands.bpmn.addParallelGateway',
110
+ labelFallback: 'Parallel gateway',
111
+ scope: 'edgeless',
112
+ defaultKeys: { mac: [], other: [] },
113
+ },
114
+ {
115
+ id: 'bpmn.addMessageStartEvent',
116
+ owner: 'bpmn',
117
+ labelKey: 'com.labre.commands.bpmn.addMessageStartEvent',
118
+ labelFallback: 'Message start event',
119
+ scope: 'edgeless',
120
+ defaultKeys: { mac: [], other: [] },
121
+ },
122
+ {
123
+ id: 'bpmn.addTimerStartEvent',
124
+ owner: 'bpmn',
125
+ labelKey: 'com.labre.commands.bpmn.addTimerStartEvent',
126
+ labelFallback: 'Timer start event',
127
+ scope: 'edgeless',
128
+ defaultKeys: { mac: [], other: [] },
129
+ },
130
+ {
131
+ id: 'bpmn.addMessageEndEvent',
132
+ owner: 'bpmn',
133
+ labelKey: 'com.labre.commands.bpmn.addMessageEndEvent',
134
+ labelFallback: 'Message end event',
135
+ scope: 'edgeless',
136
+ defaultKeys: { mac: [], other: [] },
137
+ },
138
+ {
139
+ id: 'bpmn.addTerminateEndEvent',
140
+ owner: 'bpmn',
141
+ labelKey: 'com.labre.commands.bpmn.addTerminateEndEvent',
142
+ labelFallback: 'Terminate end event',
143
+ scope: 'edgeless',
144
+ defaultKeys: { mac: [], other: [] },
145
+ },
146
+ {
147
+ id: 'bpmn.associationTool',
148
+ owner: 'bpmn',
149
+ labelKey: 'com.labre.commands.bpmn.associationTool',
150
+ labelFallback: 'Association',
151
+ scope: 'edgeless',
152
+ defaultKeys: { mac: [], other: [] },
153
+ },
154
+ {
155
+ id: 'bpmn.addDataObject',
156
+ owner: 'bpmn',
157
+ labelKey: 'com.labre.commands.bpmn.addDataObject',
158
+ labelFallback: 'Data object',
159
+ scope: 'edgeless',
160
+ defaultKeys: { mac: [], other: [] },
161
+ },
162
+ {
163
+ id: 'bpmn.addDataStore',
164
+ owner: 'bpmn',
165
+ labelKey: 'com.labre.commands.bpmn.addDataStore',
166
+ labelFallback: 'Data store',
167
+ scope: 'edgeless',
168
+ defaultKeys: { mac: [], other: [] },
169
+ },
170
+ {
171
+ id: 'bpmn.addTextAnnotation',
172
+ owner: 'bpmn',
173
+ labelKey: 'com.labre.commands.bpmn.addTextAnnotation',
174
+ labelFallback: 'Text annotation',
175
+ scope: 'edgeless',
176
+ defaultKeys: { mac: [], other: [] },
177
+ },
178
+ {
179
+ id: 'bpmn.addGroup',
180
+ owner: 'bpmn',
181
+ labelKey: 'com.labre.commands.bpmn.addGroup',
182
+ labelFallback: 'Group',
183
+ scope: 'edgeless',
184
+ defaultKeys: { mac: [], other: [] },
185
+ },
186
+ {
187
+ id: 'bpmn.addLane',
188
+ owner: 'bpmn',
189
+ labelKey: 'com.labre.commands.bpmn.addLane',
190
+ labelFallback: 'Add lane',
191
+ scope: 'edgeless',
192
+ defaultKeys: { mac: [], other: [] },
193
+ },
194
+ {
195
+ id: 'bpmn.removeLane',
196
+ owner: 'bpmn',
197
+ labelKey: 'com.labre.commands.bpmn.removeLane',
198
+ labelFallback: 'Remove lane',
199
+ scope: 'edgeless',
200
+ defaultKeys: { mac: [], other: [] },
201
+ },
202
+ {
203
+ id: 'bpmn.exportXml',
204
+ owner: 'bpmn',
205
+ labelKey: 'com.labre.commands.bpmn.exportXml',
206
+ labelFallback: 'Export BPMN XML',
207
+ scope: 'edgeless',
208
+ defaultKeys: { mac: [], other: [] },
209
+ },
210
+ {
211
+ id: 'bpmn.importXml',
212
+ owner: 'bpmn',
213
+ labelKey: 'com.labre.commands.bpmn.importXml',
214
+ labelFallback: 'Import BPMN XML',
215
+ scope: 'edgeless',
216
+ defaultKeys: { mac: [], other: [] },
217
+ },
218
+ {
219
+ id: 'bpmn.importSvg',
220
+ owner: 'bpmn',
221
+ labelKey: 'com.labre.commands.bpmn.importSvg',
222
+ labelFallback: 'Import SVG sketch',
223
+ scope: 'edgeless',
224
+ defaultKeys: { mac: [], other: [] },
225
+ },
226
+ ];