bpmn-js 11.1.0 → 11.2.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 +0 -8
- package/dist/assets/bpmn-font/css/bpmn-codes.css +6 -6
- package/dist/assets/bpmn-font/css/bpmn-embedded.css +18 -13
- package/dist/assets/bpmn-font/css/bpmn.css +14 -15
- package/dist/assets/bpmn-font/font/bpmn.eot +0 -0
- package/dist/assets/bpmn-font/font/bpmn.svg +12 -12
- package/dist/assets/bpmn-font/font/bpmn.ttf +0 -0
- package/dist/assets/bpmn-font/font/bpmn.woff +0 -0
- package/dist/assets/bpmn-font/font/bpmn.woff2 +0 -0
- package/dist/assets/diagram-js.css +7 -6
- package/dist/bpmn-modeler.development.js +2560 -1187
- package/dist/bpmn-modeler.production.min.js +44 -42
- package/dist/bpmn-navigated-viewer.development.js +310 -219
- package/dist/bpmn-navigated-viewer.production.min.js +6 -6
- package/dist/bpmn-viewer.development.js +310 -219
- package/dist/bpmn-viewer.production.min.js +6 -6
- package/lib/Modeler.js +2 -0
- package/lib/draw/BpmnRenderer.js +185 -196
- package/lib/features/align-elements/dist/align-bottom-tool.svg +1 -0
- package/lib/features/align-elements/dist/align-horizontal-center-tool.svg +1 -0
- package/lib/features/align-elements/dist/align-left-tool.svg +1 -0
- package/lib/features/align-elements/dist/align-right-tool.svg +1 -0
- package/lib/features/align-elements/dist/align-tool.svg +1 -0
- package/lib/features/align-elements/dist/align-top-tool.svg +1 -0
- package/lib/features/align-elements/dist/align-vertical-center-tool.svg +1 -0
- package/lib/features/context-pad/ContextPadProvider.js +0 -1
- package/lib/features/create-append-anything/AppendContextPadProvider.js +77 -0
- package/lib/features/create-append-anything/AppendMenuProvider.js +175 -0
- package/lib/features/create-append-anything/AppendRules.js +83 -0
- package/lib/features/create-append-anything/CreateAppendEditorActions.js +51 -0
- package/lib/features/create-append-anything/CreateAppendKeyboardBindings.js +97 -0
- package/lib/features/create-append-anything/CreateMenuProvider.js +112 -0
- package/lib/features/create-append-anything/CreatePaletteProvider.js +77 -0
- package/lib/features/create-append-anything/index.js +37 -0
- package/lib/features/create-append-anything/util/OptionsUtil.js +612 -0
- package/lib/features/editor-actions/BpmnEditorActions.js +0 -1
- package/lib/features/modeling/ElementFactory.js +11 -0
- package/lib/features/palette/dist/create.svg +1 -0
- package/lib/features/popup-menu/ReplaceMenuProvider.js +7 -2
- package/lib/features/popup-menu/index.js +6 -3
- package/lib/icons/Icons.js +11 -0
- package/lib/icons/resources/append.svg +3 -0
- package/lib/icons/resources/create.svg +3 -0
- package/package.json +20 -7
|
@@ -0,0 +1,612 @@
|
|
|
1
|
+
export var EVENT_GROUP = {
|
|
2
|
+
id: 'events',
|
|
3
|
+
name: 'Events'
|
|
4
|
+
};
|
|
5
|
+
|
|
6
|
+
export var TASK_GROUP = {
|
|
7
|
+
id: 'tasks',
|
|
8
|
+
name: 'Tasks'
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export var DATA_GROUP = {
|
|
12
|
+
id: 'data',
|
|
13
|
+
name: 'Data'
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export var PARTICIPANT_GROUP = {
|
|
17
|
+
id: 'participants',
|
|
18
|
+
name: 'Participants'
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export var SUBPROCESS_GROUP = {
|
|
22
|
+
id: 'subprocess',
|
|
23
|
+
name: 'Sub Processes'
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
export var GATEWAY_GROUP = {
|
|
27
|
+
id: 'gateways',
|
|
28
|
+
name: 'Gateways'
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
export var NONE_EVENTS = [
|
|
32
|
+
{
|
|
33
|
+
label: 'Start Event',
|
|
34
|
+
actionName: 'none-start-event',
|
|
35
|
+
className: 'bpmn-icon-start-event-none',
|
|
36
|
+
target: {
|
|
37
|
+
type: 'bpmn:StartEvent'
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
label: 'Intermediate Throw Event',
|
|
42
|
+
actionName: 'none-intermediate-throwing',
|
|
43
|
+
className: 'bpmn-icon-intermediate-event-none',
|
|
44
|
+
target: {
|
|
45
|
+
type: 'bpmn:IntermediateThrowEvent'
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
label: 'Boundary Event',
|
|
50
|
+
actionName: 'none-boundary-event',
|
|
51
|
+
className: 'bpmn-icon-intermediate-event-none',
|
|
52
|
+
target: {
|
|
53
|
+
type: 'bpmn:BoundaryEvent'
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
label: 'End Event',
|
|
58
|
+
actionName: 'none-end-event',
|
|
59
|
+
className: 'bpmn-icon-end-event-none',
|
|
60
|
+
target: {
|
|
61
|
+
type: 'bpmn:EndEvent'
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
].map(option => ({ ...option, group: EVENT_GROUP }));
|
|
65
|
+
|
|
66
|
+
export var TYPED_START_EVENTS = [
|
|
67
|
+
{
|
|
68
|
+
label: 'Message Start Event',
|
|
69
|
+
actionName: 'message-start',
|
|
70
|
+
className: 'bpmn-icon-start-event-message',
|
|
71
|
+
target: {
|
|
72
|
+
type: 'bpmn:StartEvent',
|
|
73
|
+
eventDefinitionType: 'bpmn:MessageEventDefinition'
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
label: 'Timer Start Event',
|
|
78
|
+
actionName: 'timer-start',
|
|
79
|
+
className: 'bpmn-icon-start-event-timer',
|
|
80
|
+
target: {
|
|
81
|
+
type: 'bpmn:StartEvent',
|
|
82
|
+
eventDefinitionType: 'bpmn:TimerEventDefinition'
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
label: 'Conditional Start Event',
|
|
87
|
+
actionName: 'conditional-start',
|
|
88
|
+
className: 'bpmn-icon-start-event-condition',
|
|
89
|
+
target: {
|
|
90
|
+
type: 'bpmn:StartEvent',
|
|
91
|
+
eventDefinitionType: 'bpmn:ConditionalEventDefinition'
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
label: 'Signal Start Event',
|
|
96
|
+
actionName: 'signal-start',
|
|
97
|
+
className: 'bpmn-icon-start-event-signal',
|
|
98
|
+
target: {
|
|
99
|
+
type: 'bpmn:StartEvent',
|
|
100
|
+
eventDefinitionType: 'bpmn:SignalEventDefinition'
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
].map(option => ({ ...option, group: EVENT_GROUP }));
|
|
104
|
+
|
|
105
|
+
export var TYPED_INTERMEDIATE_EVENT = [
|
|
106
|
+
{
|
|
107
|
+
label: 'Message Intermediate Catch Event',
|
|
108
|
+
actionName: 'message-intermediate-catch',
|
|
109
|
+
className: 'bpmn-icon-intermediate-event-catch-message',
|
|
110
|
+
target: {
|
|
111
|
+
type: 'bpmn:IntermediateCatchEvent',
|
|
112
|
+
eventDefinitionType: 'bpmn:MessageEventDefinition'
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
label: 'Message Intermediate Throw Event',
|
|
117
|
+
actionName: 'message-intermediate-throw',
|
|
118
|
+
className: 'bpmn-icon-intermediate-event-throw-message',
|
|
119
|
+
target: {
|
|
120
|
+
type: 'bpmn:IntermediateThrowEvent',
|
|
121
|
+
eventDefinitionType: 'bpmn:MessageEventDefinition'
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
label: 'Timer Intermediate Catch Event',
|
|
126
|
+
actionName: 'timer-intermediate-catch',
|
|
127
|
+
className: 'bpmn-icon-intermediate-event-catch-timer',
|
|
128
|
+
target: {
|
|
129
|
+
type: 'bpmn:IntermediateCatchEvent',
|
|
130
|
+
eventDefinitionType: 'bpmn:TimerEventDefinition'
|
|
131
|
+
}
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
label: 'Escalation Intermediate Throw Event',
|
|
135
|
+
actionName: 'escalation-intermediate-throw',
|
|
136
|
+
className: 'bpmn-icon-intermediate-event-throw-escalation',
|
|
137
|
+
target: {
|
|
138
|
+
type: 'bpmn:IntermediateThrowEvent',
|
|
139
|
+
eventDefinitionType: 'bpmn:EscalationEventDefinition'
|
|
140
|
+
}
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
label: 'Conditional Intermediate Catch Event',
|
|
144
|
+
actionName: 'conditional-intermediate-catch',
|
|
145
|
+
className: 'bpmn-icon-intermediate-event-catch-condition',
|
|
146
|
+
target: {
|
|
147
|
+
type: 'bpmn:IntermediateCatchEvent',
|
|
148
|
+
eventDefinitionType: 'bpmn:ConditionalEventDefinition'
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
label: 'Link Intermediate Catch Event',
|
|
153
|
+
actionName: 'link-intermediate-catch',
|
|
154
|
+
className: 'bpmn-icon-intermediate-event-catch-link',
|
|
155
|
+
target: {
|
|
156
|
+
type: 'bpmn:IntermediateCatchEvent',
|
|
157
|
+
eventDefinitionType: 'bpmn:LinkEventDefinition',
|
|
158
|
+
eventDefinitionAttrs: {
|
|
159
|
+
name: ''
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
label: 'Link Intermediate Throw Event',
|
|
165
|
+
actionName: 'link-intermediate-throw',
|
|
166
|
+
className: 'bpmn-icon-intermediate-event-throw-link',
|
|
167
|
+
target: {
|
|
168
|
+
type: 'bpmn:IntermediateThrowEvent',
|
|
169
|
+
eventDefinitionType: 'bpmn:LinkEventDefinition',
|
|
170
|
+
eventDefinitionAttrs: {
|
|
171
|
+
name: ''
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
label: 'Compensation Intermediate Throw Event',
|
|
177
|
+
actionName: 'compensation-intermediate-throw',
|
|
178
|
+
className: 'bpmn-icon-intermediate-event-throw-compensation',
|
|
179
|
+
target: {
|
|
180
|
+
type: 'bpmn:IntermediateThrowEvent',
|
|
181
|
+
eventDefinitionType: 'bpmn:CompensateEventDefinition'
|
|
182
|
+
}
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
label: 'Signal Intermediate Catch Event',
|
|
186
|
+
actionName: 'signal-intermediate-catch',
|
|
187
|
+
className: 'bpmn-icon-intermediate-event-catch-signal',
|
|
188
|
+
target: {
|
|
189
|
+
type: 'bpmn:IntermediateCatchEvent',
|
|
190
|
+
eventDefinitionType: 'bpmn:SignalEventDefinition'
|
|
191
|
+
}
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
label: 'Signal Intermediate Throw Event',
|
|
195
|
+
actionName: 'signal-intermediate-throw',
|
|
196
|
+
className: 'bpmn-icon-intermediate-event-throw-signal',
|
|
197
|
+
target: {
|
|
198
|
+
type: 'bpmn:IntermediateThrowEvent',
|
|
199
|
+
eventDefinitionType: 'bpmn:SignalEventDefinition'
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
].map(option => ({ ...option, group: EVENT_GROUP }));
|
|
203
|
+
|
|
204
|
+
export var TYPED_BOUNDARY_EVENT = [
|
|
205
|
+
{
|
|
206
|
+
label: 'Message Boundary Event',
|
|
207
|
+
actionName: 'message-boundary',
|
|
208
|
+
className: 'bpmn-icon-intermediate-event-catch-message',
|
|
209
|
+
target: {
|
|
210
|
+
type: 'bpmn:BoundaryEvent',
|
|
211
|
+
eventDefinitionType: 'bpmn:MessageEventDefinition'
|
|
212
|
+
}
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
label: 'Timer Boundary Event',
|
|
216
|
+
actionName: 'timer-boundary',
|
|
217
|
+
className: 'bpmn-icon-intermediate-event-catch-timer',
|
|
218
|
+
target: {
|
|
219
|
+
type: 'bpmn:BoundaryEvent',
|
|
220
|
+
eventDefinitionType: 'bpmn:TimerEventDefinition'
|
|
221
|
+
}
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
label: 'Escalation Boundary Event',
|
|
225
|
+
actionName: 'escalation-boundary',
|
|
226
|
+
className: 'bpmn-icon-intermediate-event-catch-escalation',
|
|
227
|
+
target: {
|
|
228
|
+
type: 'bpmn:BoundaryEvent',
|
|
229
|
+
eventDefinitionType: 'bpmn:EscalationEventDefinition'
|
|
230
|
+
}
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
label: 'Conditional Boundary Event',
|
|
234
|
+
actionName: 'conditional-boundary',
|
|
235
|
+
className: 'bpmn-icon-intermediate-event-catch-condition',
|
|
236
|
+
target: {
|
|
237
|
+
type: 'bpmn:BoundaryEvent',
|
|
238
|
+
eventDefinitionType: 'bpmn:ConditionalEventDefinition'
|
|
239
|
+
}
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
label: 'Error Boundary Event',
|
|
243
|
+
actionName: 'error-boundary',
|
|
244
|
+
className: 'bpmn-icon-intermediate-event-catch-error',
|
|
245
|
+
target: {
|
|
246
|
+
type: 'bpmn:BoundaryEvent',
|
|
247
|
+
eventDefinitionType: 'bpmn:ErrorEventDefinition'
|
|
248
|
+
}
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
label: 'Cancel Boundary Event',
|
|
252
|
+
actionName: 'cancel-boundary',
|
|
253
|
+
className: 'bpmn-icon-intermediate-event-catch-cancel',
|
|
254
|
+
target: {
|
|
255
|
+
type: 'bpmn:BoundaryEvent',
|
|
256
|
+
eventDefinitionType: 'bpmn:CancelEventDefinition'
|
|
257
|
+
}
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
label: 'Signal Boundary Event',
|
|
261
|
+
actionName: 'signal-boundary',
|
|
262
|
+
className: 'bpmn-icon-intermediate-event-catch-signal',
|
|
263
|
+
target: {
|
|
264
|
+
type: 'bpmn:BoundaryEvent',
|
|
265
|
+
eventDefinitionType: 'bpmn:SignalEventDefinition'
|
|
266
|
+
}
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
label: 'Compensation Boundary Event',
|
|
270
|
+
actionName: 'compensation-boundary',
|
|
271
|
+
className: 'bpmn-icon-intermediate-event-catch-compensation',
|
|
272
|
+
target: {
|
|
273
|
+
type: 'bpmn:BoundaryEvent',
|
|
274
|
+
eventDefinitionType: 'bpmn:CompensateEventDefinition'
|
|
275
|
+
}
|
|
276
|
+
},
|
|
277
|
+
{
|
|
278
|
+
label: 'Message Boundary Event (non-interrupting)',
|
|
279
|
+
actionName: 'non-interrupting-message-boundary',
|
|
280
|
+
className: 'bpmn-icon-intermediate-event-catch-non-interrupting-message',
|
|
281
|
+
target: {
|
|
282
|
+
type: 'bpmn:BoundaryEvent',
|
|
283
|
+
eventDefinitionType: 'bpmn:MessageEventDefinition',
|
|
284
|
+
cancelActivity: false
|
|
285
|
+
}
|
|
286
|
+
},
|
|
287
|
+
{
|
|
288
|
+
label: 'Timer Boundary Event (non-interrupting)',
|
|
289
|
+
actionName: 'non-interrupting-timer-boundary',
|
|
290
|
+
className: 'bpmn-icon-intermediate-event-catch-non-interrupting-timer',
|
|
291
|
+
target: {
|
|
292
|
+
type: 'bpmn:BoundaryEvent',
|
|
293
|
+
eventDefinitionType: 'bpmn:TimerEventDefinition',
|
|
294
|
+
cancelActivity: false
|
|
295
|
+
}
|
|
296
|
+
},
|
|
297
|
+
{
|
|
298
|
+
label: 'Escalation Boundary Event (non-interrupting)',
|
|
299
|
+
actionName: 'non-interrupting-escalation-boundary',
|
|
300
|
+
className: 'bpmn-icon-intermediate-event-catch-non-interrupting-escalation',
|
|
301
|
+
target: {
|
|
302
|
+
type: 'bpmn:BoundaryEvent',
|
|
303
|
+
eventDefinitionType: 'bpmn:EscalationEventDefinition',
|
|
304
|
+
cancelActivity: false
|
|
305
|
+
}
|
|
306
|
+
},
|
|
307
|
+
{
|
|
308
|
+
label: 'Conditional Boundary Event (non-interrupting)',
|
|
309
|
+
actionName: 'non-interrupting-conditional-boundary',
|
|
310
|
+
className: 'bpmn-icon-intermediate-event-catch-non-interrupting-condition',
|
|
311
|
+
target: {
|
|
312
|
+
type: 'bpmn:BoundaryEvent',
|
|
313
|
+
eventDefinitionType: 'bpmn:ConditionalEventDefinition',
|
|
314
|
+
cancelActivity: false
|
|
315
|
+
}
|
|
316
|
+
},
|
|
317
|
+
{
|
|
318
|
+
label: 'Signal Boundary Event (non-interrupting)',
|
|
319
|
+
actionName: 'non-interrupting-signal-boundary',
|
|
320
|
+
className: 'bpmn-icon-intermediate-event-catch-non-interrupting-signal',
|
|
321
|
+
target: {
|
|
322
|
+
type: 'bpmn:BoundaryEvent',
|
|
323
|
+
eventDefinitionType: 'bpmn:SignalEventDefinition',
|
|
324
|
+
cancelActivity: false
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
].map(option => ({ ...option, group: EVENT_GROUP }));
|
|
328
|
+
|
|
329
|
+
export var TYPED_END_EVENT = [
|
|
330
|
+
{
|
|
331
|
+
label: 'Message End Event',
|
|
332
|
+
actionName: 'message-end',
|
|
333
|
+
className: 'bpmn-icon-end-event-message',
|
|
334
|
+
target: {
|
|
335
|
+
type: 'bpmn:EndEvent',
|
|
336
|
+
eventDefinitionType: 'bpmn:MessageEventDefinition'
|
|
337
|
+
}
|
|
338
|
+
},
|
|
339
|
+
{
|
|
340
|
+
label: 'Escalation End Event',
|
|
341
|
+
actionName: 'escalation-end',
|
|
342
|
+
className: 'bpmn-icon-end-event-escalation',
|
|
343
|
+
target: {
|
|
344
|
+
type: 'bpmn:EndEvent',
|
|
345
|
+
eventDefinitionType: 'bpmn:EscalationEventDefinition'
|
|
346
|
+
}
|
|
347
|
+
},
|
|
348
|
+
{
|
|
349
|
+
label: 'Error End Event',
|
|
350
|
+
actionName: 'error-end',
|
|
351
|
+
className: 'bpmn-icon-end-event-error',
|
|
352
|
+
target: {
|
|
353
|
+
type: 'bpmn:EndEvent',
|
|
354
|
+
eventDefinitionType: 'bpmn:ErrorEventDefinition'
|
|
355
|
+
}
|
|
356
|
+
},
|
|
357
|
+
{
|
|
358
|
+
label: 'Cancel End Event',
|
|
359
|
+
actionName: 'cancel-end',
|
|
360
|
+
className: 'bpmn-icon-end-event-cancel',
|
|
361
|
+
target: {
|
|
362
|
+
type: 'bpmn:EndEvent',
|
|
363
|
+
eventDefinitionType: 'bpmn:CancelEventDefinition'
|
|
364
|
+
}
|
|
365
|
+
},
|
|
366
|
+
{
|
|
367
|
+
label: 'Compensation End Event',
|
|
368
|
+
actionName: 'compensation-end',
|
|
369
|
+
className: 'bpmn-icon-end-event-compensation',
|
|
370
|
+
target: {
|
|
371
|
+
type: 'bpmn:EndEvent',
|
|
372
|
+
eventDefinitionType: 'bpmn:CompensateEventDefinition'
|
|
373
|
+
}
|
|
374
|
+
},
|
|
375
|
+
{
|
|
376
|
+
label: 'Signal End Event',
|
|
377
|
+
actionName: 'signal-end',
|
|
378
|
+
className: 'bpmn-icon-end-event-signal',
|
|
379
|
+
target: {
|
|
380
|
+
type: 'bpmn:EndEvent',
|
|
381
|
+
eventDefinitionType: 'bpmn:SignalEventDefinition'
|
|
382
|
+
}
|
|
383
|
+
},
|
|
384
|
+
{
|
|
385
|
+
label: 'Terminate End Event',
|
|
386
|
+
actionName: 'terminate-end',
|
|
387
|
+
className: 'bpmn-icon-end-event-terminate',
|
|
388
|
+
target: {
|
|
389
|
+
type: 'bpmn:EndEvent',
|
|
390
|
+
eventDefinitionType: 'bpmn:TerminateEventDefinition'
|
|
391
|
+
}
|
|
392
|
+
}
|
|
393
|
+
].map(option => ({ ...option, group: EVENT_GROUP }));
|
|
394
|
+
|
|
395
|
+
export var GATEWAY = [
|
|
396
|
+
{
|
|
397
|
+
label: 'Exclusive Gateway',
|
|
398
|
+
actionName: 'exclusive-gateway',
|
|
399
|
+
className: 'bpmn-icon-gateway-xor',
|
|
400
|
+
target: {
|
|
401
|
+
type: 'bpmn:ExclusiveGateway'
|
|
402
|
+
}
|
|
403
|
+
},
|
|
404
|
+
{
|
|
405
|
+
label: 'Parallel Gateway',
|
|
406
|
+
actionName: 'parallel-gateway',
|
|
407
|
+
className: 'bpmn-icon-gateway-parallel',
|
|
408
|
+
target: {
|
|
409
|
+
type: 'bpmn:ParallelGateway'
|
|
410
|
+
}
|
|
411
|
+
},
|
|
412
|
+
{
|
|
413
|
+
label: 'Inclusive Gateway',
|
|
414
|
+
search: 'or',
|
|
415
|
+
actionName: 'inclusive-gateway',
|
|
416
|
+
className: 'bpmn-icon-gateway-or',
|
|
417
|
+
target: {
|
|
418
|
+
type: 'bpmn:InclusiveGateway'
|
|
419
|
+
}
|
|
420
|
+
},
|
|
421
|
+
{
|
|
422
|
+
label: 'Complex Gateway',
|
|
423
|
+
actionName: 'complex-gateway',
|
|
424
|
+
className: 'bpmn-icon-gateway-complex',
|
|
425
|
+
target: {
|
|
426
|
+
type: 'bpmn:ComplexGateway'
|
|
427
|
+
}
|
|
428
|
+
},
|
|
429
|
+
{
|
|
430
|
+
label: 'Event based Gateway',
|
|
431
|
+
actionName: 'event-based-gateway',
|
|
432
|
+
className: 'bpmn-icon-gateway-eventbased',
|
|
433
|
+
target: {
|
|
434
|
+
type: 'bpmn:EventBasedGateway',
|
|
435
|
+
instantiate: false,
|
|
436
|
+
eventGatewayType: 'Exclusive'
|
|
437
|
+
}
|
|
438
|
+
}
|
|
439
|
+
].map(option => ({ ...option, group: GATEWAY_GROUP }));
|
|
440
|
+
|
|
441
|
+
export var SUBPROCESS = [
|
|
442
|
+
{
|
|
443
|
+
label: 'Transaction',
|
|
444
|
+
actionName: 'transaction',
|
|
445
|
+
className: 'bpmn-icon-transaction',
|
|
446
|
+
target: {
|
|
447
|
+
type: 'bpmn:Transaction',
|
|
448
|
+
isExpanded: true
|
|
449
|
+
}
|
|
450
|
+
},
|
|
451
|
+
{
|
|
452
|
+
label: 'Event Sub Process',
|
|
453
|
+
search: 'subprocess',
|
|
454
|
+
actionName: 'event-subprocess',
|
|
455
|
+
className: 'bpmn-icon-event-subprocess-expanded',
|
|
456
|
+
target: {
|
|
457
|
+
type: 'bpmn:SubProcess',
|
|
458
|
+
triggeredByEvent: true,
|
|
459
|
+
isExpanded: true
|
|
460
|
+
}
|
|
461
|
+
},
|
|
462
|
+
{
|
|
463
|
+
label: 'Sub Process (collapsed)',
|
|
464
|
+
search: 'subprocess',
|
|
465
|
+
actionName: 'collapsed-subprocess',
|
|
466
|
+
className: 'bpmn-icon-subprocess-collapsed',
|
|
467
|
+
target: {
|
|
468
|
+
type: 'bpmn:SubProcess',
|
|
469
|
+
isExpanded: false
|
|
470
|
+
}
|
|
471
|
+
},
|
|
472
|
+
{
|
|
473
|
+
label: 'Sub Process (expanded)',
|
|
474
|
+
search: 'subprocess',
|
|
475
|
+
actionName: 'expanded-subprocess',
|
|
476
|
+
className: 'bpmn-icon-subprocess-collapsed',
|
|
477
|
+
target: {
|
|
478
|
+
type: 'bpmn:SubProcess',
|
|
479
|
+
isExpanded: true
|
|
480
|
+
}
|
|
481
|
+
}
|
|
482
|
+
].map(option => ({ ...option, group: SUBPROCESS_GROUP }));
|
|
483
|
+
|
|
484
|
+
export var TASK = [
|
|
485
|
+
{
|
|
486
|
+
label: 'Task',
|
|
487
|
+
actionName: 'task',
|
|
488
|
+
className: 'bpmn-icon-task',
|
|
489
|
+
target: {
|
|
490
|
+
type: 'bpmn:Task'
|
|
491
|
+
}
|
|
492
|
+
},
|
|
493
|
+
{
|
|
494
|
+
label: 'Send Task',
|
|
495
|
+
actionName: 'send-task',
|
|
496
|
+
className: 'bpmn-icon-send',
|
|
497
|
+
target: {
|
|
498
|
+
type: 'bpmn:SendTask'
|
|
499
|
+
}
|
|
500
|
+
},
|
|
501
|
+
{
|
|
502
|
+
label: 'Receive Task',
|
|
503
|
+
actionName: 'receive-task',
|
|
504
|
+
className: 'bpmn-icon-receive',
|
|
505
|
+
target: {
|
|
506
|
+
type: 'bpmn:ReceiveTask'
|
|
507
|
+
}
|
|
508
|
+
},
|
|
509
|
+
{
|
|
510
|
+
label: 'User Task',
|
|
511
|
+
actionName: 'user-task',
|
|
512
|
+
className: 'bpmn-icon-user',
|
|
513
|
+
target: {
|
|
514
|
+
type: 'bpmn:UserTask'
|
|
515
|
+
}
|
|
516
|
+
},
|
|
517
|
+
{
|
|
518
|
+
label: 'Manual Task',
|
|
519
|
+
actionName: 'manual-task',
|
|
520
|
+
className: 'bpmn-icon-manual',
|
|
521
|
+
target: {
|
|
522
|
+
type: 'bpmn:ManualTask'
|
|
523
|
+
}
|
|
524
|
+
},
|
|
525
|
+
{
|
|
526
|
+
label: 'Business Rule Task',
|
|
527
|
+
actionName: 'rule-task',
|
|
528
|
+
className: 'bpmn-icon-business-rule',
|
|
529
|
+
target: {
|
|
530
|
+
type: 'bpmn:BusinessRuleTask'
|
|
531
|
+
}
|
|
532
|
+
},
|
|
533
|
+
{
|
|
534
|
+
label: 'Service Task',
|
|
535
|
+
actionName: 'service-task',
|
|
536
|
+
className: 'bpmn-icon-service',
|
|
537
|
+
target: {
|
|
538
|
+
type: 'bpmn:ServiceTask'
|
|
539
|
+
}
|
|
540
|
+
},
|
|
541
|
+
{
|
|
542
|
+
label: 'Script Task',
|
|
543
|
+
actionName: 'script-task',
|
|
544
|
+
className: 'bpmn-icon-script',
|
|
545
|
+
target: {
|
|
546
|
+
type: 'bpmn:ScriptTask'
|
|
547
|
+
}
|
|
548
|
+
},
|
|
549
|
+
{
|
|
550
|
+
label: 'Call Activity',
|
|
551
|
+
actionName: 'call-activity',
|
|
552
|
+
className: 'bpmn-icon-call-activity',
|
|
553
|
+
target: {
|
|
554
|
+
type: 'bpmn:CallActivity'
|
|
555
|
+
}
|
|
556
|
+
}
|
|
557
|
+
].map(option => ({ ...option, group: TASK_GROUP }));
|
|
558
|
+
|
|
559
|
+
export var DATA_OBJECTS = [
|
|
560
|
+
{
|
|
561
|
+
label: 'Data Store Reference',
|
|
562
|
+
actionName: 'data-store-reference',
|
|
563
|
+
className: 'bpmn-icon-data-store',
|
|
564
|
+
target: {
|
|
565
|
+
type: 'bpmn:DataStoreReference'
|
|
566
|
+
}
|
|
567
|
+
},
|
|
568
|
+
{
|
|
569
|
+
label: 'Data Object Reference',
|
|
570
|
+
actionName: 'data-object-reference',
|
|
571
|
+
className: 'bpmn-icon-data-object',
|
|
572
|
+
target: {
|
|
573
|
+
type: 'bpmn:DataObjectReference'
|
|
574
|
+
}
|
|
575
|
+
}
|
|
576
|
+
].map(option => ({ ...option, group: DATA_GROUP }));
|
|
577
|
+
|
|
578
|
+
export var PARTICIPANT = [
|
|
579
|
+
{
|
|
580
|
+
label: 'Expanded Pool',
|
|
581
|
+
search: 'Participant',
|
|
582
|
+
actionName: 'expanded-pool',
|
|
583
|
+
className: 'bpmn-icon-participant',
|
|
584
|
+
target: {
|
|
585
|
+
type: 'bpmn:Participant',
|
|
586
|
+
isExpanded: true
|
|
587
|
+
}
|
|
588
|
+
},
|
|
589
|
+
{
|
|
590
|
+
label: 'Empty Pool',
|
|
591
|
+
search: 'Collapsed Participant',
|
|
592
|
+
actionName: 'collapsed-pool',
|
|
593
|
+
className: 'bpmn-icon-lane',
|
|
594
|
+
target: {
|
|
595
|
+
type: 'bpmn:Participant',
|
|
596
|
+
isExpanded: false
|
|
597
|
+
}
|
|
598
|
+
}
|
|
599
|
+
].map(option => ({ ...option, group: PARTICIPANT_GROUP }));
|
|
600
|
+
|
|
601
|
+
export var CREATE_OPTIONS = [
|
|
602
|
+
...GATEWAY,
|
|
603
|
+
...TASK,
|
|
604
|
+
...SUBPROCESS,
|
|
605
|
+
...NONE_EVENTS,
|
|
606
|
+
...TYPED_START_EVENTS,
|
|
607
|
+
...TYPED_INTERMEDIATE_EVENT,
|
|
608
|
+
...TYPED_END_EVENT,
|
|
609
|
+
...TYPED_BOUNDARY_EVENT,
|
|
610
|
+
...DATA_OBJECTS,
|
|
611
|
+
...PARTICIPANT
|
|
612
|
+
];
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
assign,
|
|
3
3
|
forEach,
|
|
4
|
+
isDefined,
|
|
4
5
|
isObject,
|
|
5
6
|
omit
|
|
6
7
|
} from 'min-dash';
|
|
@@ -127,6 +128,16 @@ ElementFactory.prototype.createBpmnElement = function(elementType, attrs) {
|
|
|
127
128
|
di.isMarkerVisible = true;
|
|
128
129
|
}
|
|
129
130
|
|
|
131
|
+
if (isDefined(attrs.triggeredByEvent)) {
|
|
132
|
+
businessObject.triggeredByEvent = attrs.triggeredByEvent;
|
|
133
|
+
delete attrs.triggeredByEvent;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
if (isDefined(attrs.cancelActivity)) {
|
|
137
|
+
businessObject.cancelActivity = attrs.cancelActivity;
|
|
138
|
+
delete attrs.cancelActivity;
|
|
139
|
+
}
|
|
140
|
+
|
|
130
141
|
var eventDefinitions,
|
|
131
142
|
newEventDefinition;
|
|
132
143
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
data:image/svg+xml,data%3Aimage%2Fsvg%2Bxml%2C%253Csvg%2520xmlns%253D%2522http%253A%252F%252Fwww.w3.org%252F2000%252Fsvg%2522%2520width%253D%252246%2522%2520height%253D%252246%2522%2520viewBox%253D%2522-2%2520-2%25209.82%25209.82%2522%253E%253Cpath%2520d%253D%2522M1.3%25203.4c.3%25200%2520.5-.2.5-.5s-.2-.4-.5-.4c-.2%25200-.4.1-.4.4%25200%2520.3.2.5.4.5zm1.7%25200c.2%25200%2520.4-.2.4-.5s-.2-.4-.4-.4c-.3%25200-.5.1-.5.4%25200%2520.3.2.5.5.5zm1.6%25200c.2%25200%2520.4-.2.4-.5s-.2-.4-.4-.4c-.3%25200-.5.1-.5.4%25200%2520.3.2.5.5.5z%2522%252F%253E%253C%252Fsvg%253E
|
|
@@ -505,6 +505,12 @@ ReplaceMenuProvider.prototype._getDataObjectIsCollection = function(element) {
|
|
|
505
505
|
var self = this;
|
|
506
506
|
var translate = this._translate;
|
|
507
507
|
|
|
508
|
+
var dataObject = element.businessObject.dataObjectRef;
|
|
509
|
+
|
|
510
|
+
if (!dataObject) {
|
|
511
|
+
return [];
|
|
512
|
+
}
|
|
513
|
+
|
|
508
514
|
function toggleIsCollection(event, entry) {
|
|
509
515
|
self._modeling.updateModdleProperties(
|
|
510
516
|
element,
|
|
@@ -512,8 +518,7 @@ ReplaceMenuProvider.prototype._getDataObjectIsCollection = function(element) {
|
|
|
512
518
|
{ isCollection: !entry.active });
|
|
513
519
|
}
|
|
514
520
|
|
|
515
|
-
var
|
|
516
|
-
isCollection = dataObject.isCollection;
|
|
521
|
+
var isCollection = dataObject.isCollection;
|
|
517
522
|
|
|
518
523
|
var dataObjectEntries = [
|
|
519
524
|
{
|
|
@@ -2,13 +2,16 @@ import PopupMenuModule from 'diagram-js/lib/features/popup-menu';
|
|
|
2
2
|
import ReplaceModule from '../replace';
|
|
3
3
|
|
|
4
4
|
import ReplaceMenuProvider from './ReplaceMenuProvider';
|
|
5
|
-
|
|
5
|
+
import AutoPlaceModule from '../auto-place';
|
|
6
6
|
|
|
7
7
|
export default {
|
|
8
8
|
__depends__: [
|
|
9
9
|
PopupMenuModule,
|
|
10
|
-
ReplaceModule
|
|
10
|
+
ReplaceModule,
|
|
11
|
+
AutoPlaceModule
|
|
12
|
+
],
|
|
13
|
+
__init__: [
|
|
14
|
+
'replaceMenuProvider'
|
|
11
15
|
],
|
|
12
|
-
__init__: [ 'replaceMenuProvider' ],
|
|
13
16
|
replaceMenuProvider: [ 'type', ReplaceMenuProvider ]
|
|
14
17
|
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* To change the icons, modify the SVGs in `./resources`, execute `npx svgo -f resources --datauri enc -o dist`,
|
|
3
|
+
* and then replace respective icons with the optimized data URIs in `./dist`.
|
|
4
|
+
*/
|
|
5
|
+
const appendIcon = 'data:image/svg+xml,%3Csvg%20width%3D%2222%22%20height%3D%2222%22%20viewBox%3D%220%200%205.82%205.82%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%20%20%3Cpath%20d%3D%22M1.3%203.4c.3%200%20.5-.2.5-.5s-.2-.4-.5-.4c-.2%200-.4.1-.4.4%200%20.3.2.5.4.5zM3%203.4c.2%200%20.4-.2.4-.5s-.2-.4-.4-.4c-.3%200-.5.1-.5.4%200%20.3.2.5.5.5zM4.6%203.4c.2%200%20.4-.2.4-.5s-.2-.4-.4-.4c-.3%200-.5.1-.5.4%200%20.3.2.5.5.5z%22%2F%3E%0A%3C%2Fsvg%3E';
|
|
6
|
+
const createIcon = 'data:image/svg+xml,%3Csvg%20width%3D%2246%22%20height%3D%2246%22%20viewBox%3D%22-2%20-2%209.82%209.82%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20d%3D%22M1.3%203.4c.3%200%20.5-.2.5-.5s-.2-.4-.5-.4c-.2%200-.4.1-.4.4%200%20.3.2.5.4.5zM3%203.4c.2%200%20.4-.2.4-.5s-.2-.4-.4-.4c-.3%200-.5.1-.5.4%200%20.3.2.5.5.5zM4.6%203.4c.2%200%20.4-.2.4-.5s-.2-.4-.4-.4c-.3%200-.5.1-.5.4%200%20.3.2.5.5.5z%22%2F%3E%0A%3C%2Fsvg%3E';
|
|
7
|
+
|
|
8
|
+
export {
|
|
9
|
+
appendIcon,
|
|
10
|
+
createIcon
|
|
11
|
+
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="22" height="22" viewBox="0 0 5.82 5.82" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M1.3 3.4c.3 0 .5-.2.5-.5s-.2-.4-.5-.4c-.2 0-.4.1-.4.4 0 .3.2.5.4.5zM3 3.4c.2 0 .4-.2.4-.5s-.2-.4-.4-.4c-.3 0-.5.1-.5.4 0 .3.2.5.5.5zM4.6 3.4c.2 0 .4-.2.4-.5s-.2-.4-.4-.4c-.3 0-.5.1-.5.4 0 .3.2.5.5.5z"/>
|
|
3
|
+
</svg>
|