bpmn-js 11.0.4 → 11.1.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/dist/bpmn-modeler.development.js +96 -16
- package/dist/bpmn-modeler.production.min.js +19 -17
- package/dist/bpmn-navigated-viewer.development.js +5 -2
- package/dist/bpmn-navigated-viewer.production.min.js +2 -2
- package/dist/bpmn-viewer.development.js +5 -2
- package/dist/bpmn-viewer.production.min.js +2 -2
- package/lib/features/editor-actions/BpmnEditorActions.js +8 -1
- package/lib/features/keyboard/BpmnKeyboardBindings.js +17 -0
- package/package.json +2 -2
|
@@ -51,6 +51,7 @@ BpmnEditorActions.prototype._registerDefaultActions = function(injector) {
|
|
|
51
51
|
var directEditing = injector.get('directEditing', false);
|
|
52
52
|
var searchPad = injector.get('searchPad', false);
|
|
53
53
|
var modeling = injector.get('modeling', false);
|
|
54
|
+
var contextPad = injector.get('contextPad', false);
|
|
54
55
|
|
|
55
56
|
// (2) check components and register actions
|
|
56
57
|
|
|
@@ -174,4 +175,10 @@ BpmnEditorActions.prototype._registerDefaultActions = function(injector) {
|
|
|
174
175
|
});
|
|
175
176
|
}
|
|
176
177
|
|
|
177
|
-
|
|
178
|
+
if (selection && contextPad) {
|
|
179
|
+
this._registerAction('replaceElement', function(event) {
|
|
180
|
+
contextPad.triggerEntry('replace', 'click', event);
|
|
181
|
+
});
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
};
|
|
@@ -155,4 +155,21 @@ BpmnKeyboardBindings.prototype.registerBindings = function(keyboard, editorActio
|
|
|
155
155
|
}
|
|
156
156
|
});
|
|
157
157
|
|
|
158
|
+
// activate replace element
|
|
159
|
+
// R
|
|
160
|
+
addListener('replaceElement', function(context) {
|
|
161
|
+
|
|
162
|
+
var event = context.keyEvent;
|
|
163
|
+
|
|
164
|
+
if (keyboard.hasModifier(event)) {
|
|
165
|
+
return;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
if (keyboard.isKey([ 'r', 'R' ], event)) {
|
|
169
|
+
editorActions.trigger('replaceElement', event);
|
|
170
|
+
|
|
171
|
+
return true;
|
|
172
|
+
}
|
|
173
|
+
});
|
|
174
|
+
|
|
158
175
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bpmn-js",
|
|
3
|
-
"version": "11.0
|
|
3
|
+
"version": "11.1.0",
|
|
4
4
|
"description": "A bpmn 2.0 toolkit and web modeler",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"files": [
|
|
@@ -97,7 +97,7 @@
|
|
|
97
97
|
"dependencies": {
|
|
98
98
|
"bpmn-moddle": "^8.0.0",
|
|
99
99
|
"css.escape": "^1.5.1",
|
|
100
|
-
"diagram-js": "^11.
|
|
100
|
+
"diagram-js": "^11.4.1",
|
|
101
101
|
"diagram-js-direct-editing": "^2.0.0",
|
|
102
102
|
"ids": "^1.0.0",
|
|
103
103
|
"inherits-browser": "^0.1.0",
|