bpmn-js 14.0.0 → 14.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 +44 -17
- package/dist/bpmn-modeler.production.min.js +31 -31
- package/dist/bpmn-navigated-viewer.development.js +3 -3
- package/dist/bpmn-navigated-viewer.production.min.js +3 -3
- package/dist/bpmn-viewer.development.js +2 -2
- package/dist/bpmn-viewer.production.min.js +1 -1
- package/lib/features/modeling/behavior/FixHoverBehavior.js +10 -0
- package/lib/features/popup-menu/ReplaceMenuProvider.d.ts +6 -4
- package/lib/features/popup-menu/ReplaceMenuProvider.js +24 -15
- package/package.json +4 -4
- package/lib/icons/dist/append.svg +0 -1
- package/lib/icons/dist/connect-context-pad.svg +0 -1
- package/lib/icons/dist/connect-palette.svg +0 -1
- package/lib/icons/dist/create.svg +0 -1
- /package/dist/assets/bpmn-font/{css/bpmn-codes.css → bpmn-codes.css} +0 -0
- /package/dist/assets/bpmn-font/{css/bpmn-embedded.css → bpmn-embedded.css} +0 -0
- /package/dist/assets/bpmn-font/{css/bpmn.css → bpmn.css} +0 -0
- /package/dist/assets/bpmn-font/{font/bpmn.eot → bpmn.eot} +0 -0
- /package/dist/assets/bpmn-font/{font/bpmn.svg → bpmn.svg} +0 -0
- /package/dist/assets/bpmn-font/{font/bpmn.ttf → bpmn.ttf} +0 -0
- /package/dist/assets/bpmn-font/{font/bpmn.woff → bpmn.woff} +0 -0
- /package/dist/assets/bpmn-font/{font/bpmn.woff2 → bpmn.woff2} +0 -0
|
@@ -15,19 +15,19 @@ import {
|
|
|
15
15
|
import {
|
|
16
16
|
forEach,
|
|
17
17
|
filter,
|
|
18
|
-
isArray
|
|
19
|
-
isUndefined
|
|
18
|
+
isArray
|
|
20
19
|
} from 'min-dash';
|
|
21
20
|
|
|
22
21
|
import * as replaceOptions from '../replace/ReplaceOptions';
|
|
23
22
|
|
|
24
23
|
/**
|
|
25
|
-
* @typedef {import('../
|
|
24
|
+
* @typedef {import('../modeling/BpmnFactory').default} BpmnFactory
|
|
26
25
|
* @typedef {import('diagram-js/lib/features/popup-menu/PopupMenu').default} PopupMenu
|
|
27
|
-
* @typedef {import('../
|
|
28
|
-
* @typedef {import('../
|
|
26
|
+
* @typedef {import('../modeling/Modeling').default} Modeling
|
|
27
|
+
* @typedef {import('../replace/BpmnReplace').default} BpmnReplace
|
|
29
28
|
* @typedef {import('diagram-js/lib/features/Rules').default} Rules
|
|
30
29
|
* @typedef {import('diagram-js/lib/i18n/translate/translate').default} Translate
|
|
30
|
+
* @typedef {import('../copy-paste/ModdleCopy').default} ModdleCopy
|
|
31
31
|
*
|
|
32
32
|
* @typedef {import('../../model/Types').Element} Element
|
|
33
33
|
* @typedef {import('../../model/Types').Moddle} Moddle
|
|
@@ -54,10 +54,11 @@ import * as replaceOptions from '../replace/ReplaceOptions';
|
|
|
54
54
|
* @param {BpmnReplace} bpmnReplace
|
|
55
55
|
* @param {Rules} rules
|
|
56
56
|
* @param {Translate} translate
|
|
57
|
+
* @param {ModdleCopy} moddleCopy
|
|
57
58
|
*/
|
|
58
59
|
export default function ReplaceMenuProvider(
|
|
59
60
|
bpmnFactory, popupMenu, modeling, moddle,
|
|
60
|
-
bpmnReplace, rules, translate) {
|
|
61
|
+
bpmnReplace, rules, translate, moddleCopy) {
|
|
61
62
|
|
|
62
63
|
this._bpmnFactory = bpmnFactory;
|
|
63
64
|
this._popupMenu = popupMenu;
|
|
@@ -66,6 +67,7 @@ export default function ReplaceMenuProvider(
|
|
|
66
67
|
this._bpmnReplace = bpmnReplace;
|
|
67
68
|
this._rules = rules;
|
|
68
69
|
this._translate = translate;
|
|
70
|
+
this._moddleCopy = moddleCopy;
|
|
69
71
|
|
|
70
72
|
this._register();
|
|
71
73
|
}
|
|
@@ -77,7 +79,8 @@ ReplaceMenuProvider.$inject = [
|
|
|
77
79
|
'moddle',
|
|
78
80
|
'bpmnReplace',
|
|
79
81
|
'rules',
|
|
80
|
-
'translate'
|
|
82
|
+
'translate',
|
|
83
|
+
'moddleCopy'
|
|
81
84
|
];
|
|
82
85
|
|
|
83
86
|
ReplaceMenuProvider.prototype._register = function() {
|
|
@@ -461,18 +464,24 @@ ReplaceMenuProvider.prototype._getLoopCharacteristicsHeaderEntries = function(ta
|
|
|
461
464
|
var translate = this._translate;
|
|
462
465
|
|
|
463
466
|
function toggleLoopEntry(event, entry) {
|
|
464
|
-
var newLoopCharacteristics = getBusinessObject(target).loopCharacteristics;
|
|
465
467
|
|
|
468
|
+
// remove
|
|
466
469
|
if (entry.active) {
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
470
|
+
self._modeling.updateProperties(target, { loopCharacteristics: undefined });
|
|
471
|
+
return;
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
const currentLoopCharacteristics = target.businessObject.get('loopCharacteristics'),
|
|
475
|
+
newLoopCharacteristics = self._moddle.create(entry.options.loopCharacteristics);
|
|
473
476
|
|
|
474
|
-
|
|
477
|
+
// copy old properties
|
|
478
|
+
if (currentLoopCharacteristics) {
|
|
479
|
+
self._moddleCopy.copyElement(currentLoopCharacteristics, newLoopCharacteristics);
|
|
475
480
|
}
|
|
481
|
+
|
|
482
|
+
// update `isSequential` property
|
|
483
|
+
newLoopCharacteristics.set('isSequential', entry.options.isSequential);
|
|
484
|
+
|
|
476
485
|
self._modeling.updateProperties(target, { loopCharacteristics: newLoopCharacteristics });
|
|
477
486
|
}
|
|
478
487
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bpmn-js",
|
|
3
|
-
"version": "14.
|
|
3
|
+
"version": "14.1.0",
|
|
4
4
|
"description": "A bpmn 2.0 toolkit and web modeler",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"files": [
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
"camunda-bpmn-moddle": "^4.0.1",
|
|
74
74
|
"chai": "4.1.2",
|
|
75
75
|
"chai-match": "^1.1.1",
|
|
76
|
-
"
|
|
76
|
+
"cpy": "^10.1.0",
|
|
77
77
|
"cross-env": "^7.0.3",
|
|
78
78
|
"del": "^6.0.0",
|
|
79
79
|
"del-cli": "^5.0.0",
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
"remark-preset-bpmn-io": "^0.2.1",
|
|
101
101
|
"rollup": "^3.19.1",
|
|
102
102
|
"rollup-plugin-license": "^3.0.0",
|
|
103
|
-
"sinon": "^
|
|
103
|
+
"sinon": "^16.0.0",
|
|
104
104
|
"sinon-chai": "^3.7.0",
|
|
105
105
|
"ts-expect": "^1.3.0",
|
|
106
106
|
"typescript": "^5.0.0",
|
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
},
|
|
109
109
|
"dependencies": {
|
|
110
110
|
"bpmn-moddle": "^8.0.1",
|
|
111
|
-
"diagram-js": "^12.
|
|
111
|
+
"diagram-js": "^12.4.0",
|
|
112
112
|
"diagram-js-direct-editing": "^2.0.0",
|
|
113
113
|
"ids": "^1.0.3",
|
|
114
114
|
"inherits-browser": "^0.1.0",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
data:image/svg+xml,data%3Aimage%2Fsvg%2Bxml%2C%253Csvg%2520xmlns%253D%2522http%253A%252F%252Fwww.w3.org%252F2000%252Fsvg%2522%2520width%253D%252222%2522%2520height%253D%252222%2522%2520viewBox%253D%25220%25200%25205.82%25205.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
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
data:image/svg+xml,data%3Aimage%2Fsvg%2Bxml%2C%253Csvg%2520xmlns%253D%2522http%253A%252F%252Fwww.w3.org%252F2000%252Fsvg%2522%2520viewBox%253D%25220%25200%25202048%25202048%2522%253E%253Cpath%2520d%253D%2522M2013.823%2520158.247%2520995.866%2520525.177l143.206%2520181.698L34.177%25201595.041l136.637%2520158.712%25201104.89-888.123%2520140.894%2520182.578Z%2522%252F%253E%253C%252Fsvg%253E
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
data:image/svg+xml,data%3Aimage%2Fsvg%2Bxml%2C%253Csvg%2520xmlns%253D%2522http%253A%252F%252Fwww.w3.org%252F2000%252Fsvg%2522%2520viewBox%253D%25220%25200%25202048%25202048%2522%253E%253Cpath%2520d%253D%2522M2013.823%2520158.247%2520995.866%2520525.177l143.206%2520181.698L34.177%25201595.041l136.637%2520158.712%25201104.89-888.123%2520140.894%2520182.578Z%2522%252F%253E%253C%252Fsvg%253E
|
|
@@ -1 +0,0 @@
|
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|