bpmn-js 9.3.2 → 10.0.0-alpha.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.
- package/CHANGELOG.md +11 -0
- package/dist/assets/diagram-js.css +18 -8
- package/dist/bpmn-modeler.development.js +533 -356
- package/dist/bpmn-modeler.production.min.js +6 -6
- package/dist/bpmn-navigated-viewer.development.js +78 -73
- package/dist/bpmn-navigated-viewer.production.min.js +6 -6
- package/dist/bpmn-viewer.development.js +20 -17
- package/dist/bpmn-viewer.production.min.js +6 -6
- package/lib/features/copy-paste/BpmnCopyPaste.js +75 -69
- package/lib/features/copy-paste/ModdleCopy.js +26 -13
- package/lib/features/grid-snapping/behavior/{AutoPlaceBehavior.js → GridSnappingAutoPlaceBehavior.js} +2 -2
- package/lib/features/grid-snapping/behavior/{LayoutConnectionBehavior.js → GridSnappingLayoutConnectionBehavior.js} +4 -4
- package/lib/features/grid-snapping/behavior/{CreateParticipantBehavior.js → GridSnappingParticipantBehavior.js} +2 -2
- package/lib/features/grid-snapping/behavior/index.js +7 -7
- package/lib/features/label-editing/LabelEditingProvider.js +0 -22
- package/lib/features/modeling/ElementFactory.js +18 -8
- package/lib/features/modeling/behavior/BoundaryEventBehavior.js +1 -16
- package/lib/features/modeling/behavior/GroupBehavior.js +205 -93
- package/lib/features/modeling/behavior/ResizeBehavior.js +2 -0
- package/lib/features/modeling/behavior/RootElementReferenceBehavior.js +7 -8
- package/lib/features/modeling/behavior/SpaceToolBehavior.js +5 -0
- package/lib/features/modeling/behavior/util/CategoryUtil.js +66 -13
- package/lib/features/modeling/cmd/UpdateModdlePropertiesHandler.js +3 -0
- package/package.json +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* bpmn-js - bpmn-viewer
|
|
2
|
+
* bpmn-js - bpmn-viewer v10.0.0-alpha.1
|
|
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: 2022-08-
|
|
11
|
+
* Date: 2022-08-17
|
|
12
12
|
*/
|
|
13
13
|
(function (global, factory) {
|
|
14
14
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
|
@@ -8893,20 +8893,11 @@
|
|
|
8893
8893
|
return function() {
|
|
8894
8894
|
initializers.forEach(function(initializer) {
|
|
8895
8895
|
|
|
8896
|
-
|
|
8897
|
-
|
|
8898
|
-
|
|
8899
|
-
|
|
8900
|
-
|
|
8901
|
-
} else {
|
|
8902
|
-
injector.invoke(initializer);
|
|
8903
|
-
}
|
|
8904
|
-
} catch (error) {
|
|
8905
|
-
if (typeof AggregateError !== 'undefined') {
|
|
8906
|
-
throw new AggregateError([ error ], 'Failed to initialize!');
|
|
8907
|
-
}
|
|
8908
|
-
|
|
8909
|
-
throw new Error('Failed to initialize! ' + error.message);
|
|
8896
|
+
// eagerly resolve component (fn or string)
|
|
8897
|
+
if (typeof initializer === 'string') {
|
|
8898
|
+
injector.get(initializer);
|
|
8899
|
+
} else {
|
|
8900
|
+
injector.invoke(initializer);
|
|
8910
8901
|
}
|
|
8911
8902
|
});
|
|
8912
8903
|
};
|
|
@@ -9416,7 +9407,19 @@
|
|
|
9416
9407
|
var container = this._container = createContainer(config);
|
|
9417
9408
|
|
|
9418
9409
|
var svg = this._svg = create$1('svg');
|
|
9419
|
-
|
|
9410
|
+
|
|
9411
|
+
attr$1(svg, {
|
|
9412
|
+
width: '100%',
|
|
9413
|
+
height: '100%'
|
|
9414
|
+
});
|
|
9415
|
+
|
|
9416
|
+
attr(svg, 'tabindex', 0);
|
|
9417
|
+
|
|
9418
|
+
eventBus.on('element.hover', function() {
|
|
9419
|
+
if (document.activeElement === document.body) {
|
|
9420
|
+
svg.focus();
|
|
9421
|
+
}
|
|
9422
|
+
});
|
|
9420
9423
|
|
|
9421
9424
|
append(container, svg);
|
|
9422
9425
|
|