bpmn-js 18.3.0 → 18.3.2
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/dist/bpmn-modeler.development.js +37 -7
- package/dist/bpmn-modeler.production.min.js +37 -37
- package/dist/bpmn-navigated-viewer.development.js +2 -2
- package/dist/bpmn-navigated-viewer.production.min.js +1 -1
- package/dist/bpmn-viewer.development.js +2 -2
- package/dist/bpmn-viewer.production.min.js +1 -1
- package/lib/features/modeling/behavior/SubProcessStartEventBehavior.js +1 -0
- package/lib/features/modeling/behavior/index.d.ts +84 -1
- package/lib/features/modeling-feedback/ModelingFeedback.js +7 -2
- package/lib/features/space-tool/BpmnSpaceTool.d.ts +16 -13
- package/lib/features/space-tool/BpmnSpaceTool.js +30 -3
- package/package.json +5 -5
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* bpmn-js - bpmn-modeler v18.3.
|
|
2
|
+
* bpmn-js - bpmn-modeler v18.3.2
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) 2014-present, camunda Services GmbH
|
|
5
5
|
*
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
*
|
|
9
9
|
* Source Code: https://github.com/bpmn-io/bpmn-js
|
|
10
10
|
*
|
|
11
|
-
* Date: 2025-
|
|
11
|
+
* Date: 2025-03-17
|
|
12
12
|
*/
|
|
13
13
|
(function (global, factory) {
|
|
14
14
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
|
@@ -40718,6 +40718,7 @@
|
|
|
40718
40718
|
|
|
40719
40719
|
if (
|
|
40720
40720
|
!is$1(newShape, 'bpmn:SubProcess') ||
|
|
40721
|
+
is$1(newShape,'bpmn:AdHocSubProcess') ||
|
|
40721
40722
|
! (is$1(oldShape, 'bpmn:Task') || is$1(oldShape, 'bpmn:CallActivity')) ||
|
|
40722
40723
|
!isExpanded(newShape)
|
|
40723
40724
|
) {
|
|
@@ -46238,6 +46239,7 @@
|
|
|
46238
46239
|
|
|
46239
46240
|
/**
|
|
46240
46241
|
* @typedef {import('didi').Injector} Injector
|
|
46242
|
+
* @typedef {import('diagram-js/lib/core/Canvas').default} Canvas
|
|
46241
46243
|
*
|
|
46242
46244
|
* @typedef {import('../../model/Types').Shape} Shape
|
|
46243
46245
|
*
|
|
@@ -46247,13 +46249,17 @@
|
|
|
46247
46249
|
|
|
46248
46250
|
/**
|
|
46249
46251
|
* @param {Injector} injector
|
|
46252
|
+
* @param {Canvas} canvas
|
|
46250
46253
|
*/
|
|
46251
|
-
function BpmnSpaceTool(injector) {
|
|
46254
|
+
function BpmnSpaceTool(injector, canvas) {
|
|
46252
46255
|
injector.invoke(SpaceTool, this);
|
|
46256
|
+
|
|
46257
|
+
this._canvas = canvas;
|
|
46253
46258
|
}
|
|
46254
46259
|
|
|
46255
46260
|
BpmnSpaceTool.$inject = [
|
|
46256
|
-
'injector'
|
|
46261
|
+
'injector',
|
|
46262
|
+
'canvas'
|
|
46257
46263
|
];
|
|
46258
46264
|
|
|
46259
46265
|
e$2(BpmnSpaceTool, SpaceTool);
|
|
@@ -46267,7 +46273,26 @@
|
|
|
46267
46273
|
* @return {Object}
|
|
46268
46274
|
*/
|
|
46269
46275
|
BpmnSpaceTool.prototype.calculateAdjustments = function(elements, axis, delta, start) {
|
|
46270
|
-
|
|
46276
|
+
|
|
46277
|
+
var canvasRoot = this._canvas.getRootElement(),
|
|
46278
|
+
spaceRoot = elements[0] === canvasRoot ? null : elements[0],
|
|
46279
|
+
enclosedArtifacts = [];
|
|
46280
|
+
|
|
46281
|
+
// ensure
|
|
46282
|
+
if (spaceRoot) {
|
|
46283
|
+
enclosedArtifacts = values(
|
|
46284
|
+
getEnclosedElements(
|
|
46285
|
+
canvasRoot.children.filter(
|
|
46286
|
+
(child) => is$1(child, 'bpmn:Artifact')
|
|
46287
|
+
),
|
|
46288
|
+
getBBox(spaceRoot)
|
|
46289
|
+
)
|
|
46290
|
+
);
|
|
46291
|
+
}
|
|
46292
|
+
|
|
46293
|
+
const elementsToMove = [ ...elements, ...enclosedArtifacts ];
|
|
46294
|
+
|
|
46295
|
+
var adjustments = SpaceTool.prototype.calculateAdjustments.call(this, elementsToMove, axis, delta, start);
|
|
46271
46296
|
|
|
46272
46297
|
// do not resize:
|
|
46273
46298
|
//
|
|
@@ -61610,6 +61635,7 @@
|
|
|
61610
61635
|
*/
|
|
61611
61636
|
|
|
61612
61637
|
var COLLAB_ERR_MSG = 'flow elements must be children of pools/participants';
|
|
61638
|
+
var DATA_OBJECT_ERR_MSG = 'Data object must be placed within a pool/participant.';
|
|
61613
61639
|
|
|
61614
61640
|
/**
|
|
61615
61641
|
* @param {EventBus} eventBus
|
|
@@ -61635,8 +61661,12 @@
|
|
|
61635
61661
|
shape = context.shape,
|
|
61636
61662
|
target = context.target;
|
|
61637
61663
|
|
|
61638
|
-
if (is$1(target, 'bpmn:Collaboration')
|
|
61639
|
-
|
|
61664
|
+
if (is$1(target, 'bpmn:Collaboration')) {
|
|
61665
|
+
if (is$1(shape, 'bpmn:FlowNode')) {
|
|
61666
|
+
showError(event, translate(COLLAB_ERR_MSG));
|
|
61667
|
+
} else if (is$1(shape, 'bpmn:DataObjectReference')) {
|
|
61668
|
+
showError(event, translate(DATA_OBJECT_ERR_MSG));
|
|
61669
|
+
}
|
|
61640
61670
|
}
|
|
61641
61671
|
});
|
|
61642
61672
|
|