camunda-bpmn-js 4.0.0 → 4.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/base-modeler.development.js +68 -30
- package/dist/base-modeler.production.min.js +6 -6
- package/dist/base-navigated-viewer.development.js +2 -4
- package/dist/base-viewer.development.js +2 -4
- package/dist/camunda-cloud-modeler.development.js +633 -311
- package/dist/camunda-cloud-modeler.production.min.js +11 -11
- package/dist/camunda-cloud-navigated-viewer.development.js +2 -4
- package/dist/camunda-cloud-viewer.development.js +2 -4
- package/dist/camunda-platform-modeler.development.js +115 -66
- package/dist/camunda-platform-modeler.production.min.js +8 -8
- package/dist/camunda-platform-navigated-viewer.development.js +2 -4
- package/dist/camunda-platform-viewer.development.js +2 -4
- package/package.json +4 -4
|
@@ -8301,8 +8301,7 @@
|
|
|
8301
8301
|
|
|
8302
8302
|
// update positioning
|
|
8303
8303
|
translate$2(gfx, element.x, element.y);
|
|
8304
|
-
} else
|
|
8305
|
-
if (type === 'connection') {
|
|
8304
|
+
} else if (type === 'connection') {
|
|
8306
8305
|
this.drawConnection(visual, element);
|
|
8307
8306
|
} else {
|
|
8308
8307
|
throw new Error('unknown type: ' + type);
|
|
@@ -23582,8 +23581,7 @@
|
|
|
23582
23581
|
} else {
|
|
23583
23582
|
return [];
|
|
23584
23583
|
}
|
|
23585
|
-
} else
|
|
23586
|
-
if (search.type) {
|
|
23584
|
+
} else if (search.type) {
|
|
23587
23585
|
return filter$1(this._overlays, matchPattern$1({ type: search.type }));
|
|
23588
23586
|
} else {
|
|
23589
23587
|
|
|
@@ -27210,7 +27208,7 @@
|
|
|
27210
27208
|
|
|
27211
27209
|
var t$2,r$3,u$3,i$3,o$2=0,f$3=[],c$2=[],e$2=l$3.__b,a$2=l$3.__r,v$2=l$3.diffed,l$2=l$3.__c,m$2=l$3.unmount;function d$2(t,u){l$3.__h&&l$3.__h(r$3,t,o$2||u),o$2=0;var i=r$3.__H||(r$3.__H={__:[],__h:[]});return t>=i.__.length&&i.__.push({__V:c$2}),i.__[t]}function p$2(n){return o$2=1,y$2(B$3,n)}function y$2(n,u,i){var o=d$2(t$2++,2);if(o.t=n,!o.__c&&(o.__=[i?i(u):B$3(void 0,u),function(n){var t=o.__N?o.__N[0]:o.__[0],r=o.t(t,n);t!==r&&(o.__N=[r,o.__[1]],o.__c.setState({}));}],o.__c=r$3,!r$3.u)){r$3.u=!0;var f=r$3.shouldComponentUpdate;r$3.shouldComponentUpdate=function(n,t,r){if(!o.__c.__H)return !0;var u=o.__c.__H.__.filter(function(n){return n.__c});if(u.every(function(n){return !n.__N}))return !f||f.call(this,n,t,r);var i=!1;return u.forEach(function(n){if(n.__N){var t=n.__[0];n.__=n.__N,n.__N=void 0,t!==n.__[0]&&(i=!0);}}),!(!i&&o.__c.props===n)&&(!f||f.call(this,n,t,r))};}return o.__N||o.__}function h$2(u,i){var o=d$2(t$2++,3);!l$3.__s&&z$3(o.__H,i)&&(o.__=u,o.i=i,r$3.__H.__h.push(o));}function s$2(u,i){var o=d$2(t$2++,4);!l$3.__s&&z$3(o.__H,i)&&(o.__=u,o.i=i,r$3.__h.push(o));}function _$2(n){return o$2=5,F$3(function(){return {current:n}},[])}function F$3(n,r){var u=d$2(t$2++,7);return z$3(u.__H,r)?(u.__V=n(),u.i=r,u.__h=n,u.__V):u.__}function T$3(n,t){return o$2=8,F$3(function(){return n},t)}function b$2(){for(var t;t=f$3.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(k$3),t.__H.__h.forEach(w$3),t.__H.__h=[];}catch(r){t.__H.__h=[],l$3.__e(r,t.__v);}}l$3.__b=function(n){r$3=null,e$2&&e$2(n);},l$3.__r=function(n){a$2&&a$2(n),t$2=0;var i=(r$3=n.__c).__H;i&&(u$3===r$3?(i.__h=[],r$3.__h=[],i.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=c$2,n.__N=n.i=void 0;})):(i.__h.forEach(k$3),i.__h.forEach(w$3),i.__h=[])),u$3=r$3;},l$3.diffed=function(t){v$2&&v$2(t);var o=t.__c;o&&o.__H&&(o.__H.__h.length&&(1!==f$3.push(o)&&i$3===l$3.requestAnimationFrame||((i$3=l$3.requestAnimationFrame)||j$3)(b$2)),o.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==c$2&&(n.__=n.__V),n.i=void 0,n.__V=c$2;})),u$3=r$3=null;},l$3.__c=function(t,r){r.some(function(t){try{t.__h.forEach(k$3),t.__h=t.__h.filter(function(n){return !n.__||w$3(n)});}catch(u){r.some(function(n){n.__h&&(n.__h=[]);}),r=[],l$3.__e(u,t.__v);}}),l$2&&l$2(t,r);},l$3.unmount=function(t){m$2&&m$2(t);var r,u=t.__c;u&&u.__H&&(u.__H.__.forEach(function(n){try{k$3(n);}catch(n){r=n;}}),u.__H=void 0,r&&l$3.__e(r,u.__v));};var g$3="function"==typeof requestAnimationFrame;function j$3(n){var t,r=function(){clearTimeout(u),g$3&&cancelAnimationFrame(t),setTimeout(n);},u=setTimeout(r,100);g$3&&(t=requestAnimationFrame(r));}function k$3(n){var t=r$3,u=n.__c;"function"==typeof u&&(n.__c=void 0,u()),r$3=t;}function w$3(n){var t=r$3;n.__c=n.__(),r$3=t;}function z$3(n,t){return !n||n.length!==t.length||t.some(function(t,r){return t!==n[r]})}function B$3(n,t){return "function"==typeof t?t(n):t}
|
|
27212
27210
|
|
|
27213
|
-
function r$2(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<
|
|
27211
|
+
function r$2(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(f=r$2(e[t]))&&(n&&(n+=" "),n+=f);}else for(f in e)e[f]&&(n&&(n+=" "),n+=f);return n}function clsx(){for(var e,t,f=0,n="",o=arguments.length;f<o;f++)(e=arguments[f])&&(t=r$2(e))&&(n&&(n+=" "),n+=t);return n}
|
|
27214
27212
|
|
|
27215
27213
|
/**
|
|
27216
27214
|
* @typedef {import('./PopupMenuProvider').PopupMenuEntry} PopupMenuEntry
|
|
@@ -27779,7 +27777,7 @@
|
|
|
27779
27777
|
const element = this.isOpen() && this._current.target;
|
|
27780
27778
|
|
|
27781
27779
|
if (event.element === element) {
|
|
27782
|
-
this.
|
|
27780
|
+
this.refresh();
|
|
27783
27781
|
}
|
|
27784
27782
|
});
|
|
27785
27783
|
|
|
@@ -27795,7 +27793,7 @@
|
|
|
27795
27793
|
|
|
27796
27794
|
const {
|
|
27797
27795
|
position: _position,
|
|
27798
|
-
className,
|
|
27796
|
+
providerId: className,
|
|
27799
27797
|
entries,
|
|
27800
27798
|
headerEntries,
|
|
27801
27799
|
emptyPlaceholder,
|
|
@@ -27873,7 +27871,7 @@
|
|
|
27873
27871
|
|
|
27874
27872
|
this._current = {
|
|
27875
27873
|
position,
|
|
27876
|
-
|
|
27874
|
+
providerId,
|
|
27877
27875
|
target,
|
|
27878
27876
|
entries,
|
|
27879
27877
|
headerEntries,
|
|
@@ -27889,6 +27887,37 @@
|
|
|
27889
27887
|
this._render();
|
|
27890
27888
|
};
|
|
27891
27889
|
|
|
27890
|
+
/**
|
|
27891
|
+
* Refresh the popup menu entries without changing the target or position.
|
|
27892
|
+
*/
|
|
27893
|
+
PopupMenu.prototype.refresh = function() {
|
|
27894
|
+
if (!this.isOpen()) {
|
|
27895
|
+
return;
|
|
27896
|
+
}
|
|
27897
|
+
|
|
27898
|
+
const {
|
|
27899
|
+
target,
|
|
27900
|
+
providerId
|
|
27901
|
+
} = this._current;
|
|
27902
|
+
|
|
27903
|
+
const {
|
|
27904
|
+
entries,
|
|
27905
|
+
headerEntries,
|
|
27906
|
+
emptyPlaceholder
|
|
27907
|
+
} = this._getContext(target, providerId);
|
|
27908
|
+
|
|
27909
|
+
this._current = {
|
|
27910
|
+
...this._current,
|
|
27911
|
+
entries,
|
|
27912
|
+
headerEntries,
|
|
27913
|
+
emptyPlaceholder
|
|
27914
|
+
};
|
|
27915
|
+
|
|
27916
|
+
this._emit('refresh');
|
|
27917
|
+
|
|
27918
|
+
this._render();
|
|
27919
|
+
};
|
|
27920
|
+
|
|
27892
27921
|
|
|
27893
27922
|
PopupMenu.prototype._getContext = function(target, provider) {
|
|
27894
27923
|
|
|
@@ -31583,8 +31612,7 @@
|
|
|
31583
31612
|
|
|
31584
31613
|
if (!insert && bendpointIndex === 0) {
|
|
31585
31614
|
type = RECONNECT_START$1;
|
|
31586
|
-
} else
|
|
31587
|
-
if (!insert && bendpointIndex === waypoints.length - 1) {
|
|
31615
|
+
} else if (!insert && bendpointIndex === waypoints.length - 1) {
|
|
31588
31616
|
type = RECONNECT_END$1;
|
|
31589
31617
|
} else {
|
|
31590
31618
|
type = UPDATE_WAYPOINTS$1;
|
|
@@ -47767,11 +47795,9 @@
|
|
|
47767
47795
|
}
|
|
47768
47796
|
|
|
47769
47797
|
if (is$5(businessObject, 'bpmn:ExclusiveGateway')) {
|
|
47770
|
-
if (has$2(
|
|
47771
|
-
if (
|
|
47798
|
+
if (has$2(di, 'isMarkerVisible')) {
|
|
47799
|
+
if (di.isMarkerVisible === undefined) {
|
|
47772
47800
|
di.isMarkerVisible = false;
|
|
47773
|
-
} else {
|
|
47774
|
-
attrs = applyAttribute(di, attrs, 'isMarkerVisible');
|
|
47775
47801
|
}
|
|
47776
47802
|
} else {
|
|
47777
47803
|
di.isMarkerVisible = true;
|
|
@@ -50202,9 +50228,7 @@
|
|
|
50202
50228
|
if (attach === true) {
|
|
50203
50229
|
newHost = target;
|
|
50204
50230
|
newParent = target.parent;
|
|
50205
|
-
} else
|
|
50206
|
-
|
|
50207
|
-
if (attach === false) {
|
|
50231
|
+
} else if (attach === false) {
|
|
50208
50232
|
newHost = null;
|
|
50209
50233
|
}
|
|
50210
50234
|
|
|
@@ -58525,10 +58549,15 @@
|
|
|
58525
58549
|
});
|
|
58526
58550
|
|
|
58527
58551
|
// add label hit
|
|
58528
|
-
|
|
58552
|
+
var box = isHorizontal$3(element) ? {
|
|
58529
58553
|
width: LABEL_WIDTH,
|
|
58530
58554
|
height: element.height
|
|
58531
|
-
}
|
|
58555
|
+
} : {
|
|
58556
|
+
width: element.width,
|
|
58557
|
+
height: LABEL_HEIGHT
|
|
58558
|
+
};
|
|
58559
|
+
|
|
58560
|
+
this._interactionEvents.createBoxHit(gfx, 'all', box);
|
|
58532
58561
|
|
|
58533
58562
|
// indicate that we created a hit
|
|
58534
58563
|
return true;
|
|
@@ -62586,8 +62615,7 @@
|
|
|
62586
62615
|
),
|
|
62587
62616
|
'create.exclusive-gateway': createAction(
|
|
62588
62617
|
'bpmn:ExclusiveGateway', 'gateway', 'bpmn-icon-gateway-none',
|
|
62589
|
-
translate('Create gateway')
|
|
62590
|
-
{ isMarkerVisible: true }
|
|
62618
|
+
translate('Create gateway')
|
|
62591
62619
|
),
|
|
62592
62620
|
'create.task': createAction(
|
|
62593
62621
|
'bpmn:Task', 'activity', 'bpmn-icon-task',
|
|
@@ -71942,6 +71970,13 @@
|
|
|
71942
71970
|
this.token.value = token;
|
|
71943
71971
|
this.token.end = end;
|
|
71944
71972
|
}
|
|
71973
|
+
/**
|
|
71974
|
+
Accept a token ending at a specific given position.
|
|
71975
|
+
*/
|
|
71976
|
+
acceptTokenTo(token, endPos) {
|
|
71977
|
+
this.token.value = token;
|
|
71978
|
+
this.token.end = endPos;
|
|
71979
|
+
}
|
|
71945
71980
|
getChunk() {
|
|
71946
71981
|
if (this.pos >= this.chunk2Pos && this.pos < this.chunk2Pos + this.chunk2.length) {
|
|
71947
71982
|
let { chunk, chunkPos } = this;
|
|
@@ -72126,7 +72161,7 @@
|
|
|
72126
72161
|
}
|
|
72127
72162
|
let next = input.next, low = 0, high = data[state + 2];
|
|
72128
72163
|
// Special case for EOF
|
|
72129
|
-
if (input.next < 0 && high > low && data[accEnd + high * 3 - 3] == 65535 /* Seq.End */
|
|
72164
|
+
if (input.next < 0 && high > low && data[accEnd + high * 3 - 3] == 65535 /* Seq.End */) {
|
|
72130
72165
|
state = data[accEnd + high * 3 - 1];
|
|
72131
72166
|
continue scan;
|
|
72132
72167
|
}
|
|
@@ -72552,7 +72587,7 @@
|
|
|
72552
72587
|
console.log(base + this.stackID(stack) + ` (via always-reduce ${parser.getName(defaultReduce & 65535 /* Action.ValueMask */)})`);
|
|
72553
72588
|
return true;
|
|
72554
72589
|
}
|
|
72555
|
-
if (stack.stack.length >=
|
|
72590
|
+
if (stack.stack.length >= 8400 /* Rec.CutDepth */) {
|
|
72556
72591
|
while (stack.stack.length > 6000 /* Rec.CutTo */ && stack.forceReduce()) { }
|
|
72557
72592
|
}
|
|
72558
72593
|
let actions = this.tokens.getActions(stack);
|
|
@@ -74161,6 +74196,10 @@
|
|
|
74161
74196
|
};
|
|
74162
74197
|
}
|
|
74163
74198
|
|
|
74199
|
+
if (contextKeys.some(el => el.startsWith(name))) {
|
|
74200
|
+
continue;
|
|
74201
|
+
}
|
|
74202
|
+
|
|
74164
74203
|
if (dateTimeIdentifiers.some(el => el === name)) {
|
|
74165
74204
|
const token = tokens[0];
|
|
74166
74205
|
|
|
@@ -74175,12 +74214,11 @@
|
|
|
74175
74214
|
};
|
|
74176
74215
|
}
|
|
74177
74216
|
|
|
74178
|
-
if (
|
|
74179
|
-
|
|
74180
|
-
!dateTimeIdentifiers.some(el => el.startsWith(name))
|
|
74181
|
-
) {
|
|
74182
|
-
return nextMatch;
|
|
74217
|
+
if (dateTimeIdentifiers.some(el => el.startsWith(name))) {
|
|
74218
|
+
continue;
|
|
74183
74219
|
}
|
|
74220
|
+
|
|
74221
|
+
return nextMatch;
|
|
74184
74222
|
}
|
|
74185
74223
|
|
|
74186
74224
|
}
|
|
@@ -74714,7 +74752,7 @@
|
|
|
74714
74752
|
const namePart = parts[0];
|
|
74715
74753
|
const valuePart = parts[Math.max(1, parts.length - 1)];
|
|
74716
74754
|
|
|
74717
|
-
const name = namePart
|
|
74755
|
+
const name = namePart?.computedValue();
|
|
74718
74756
|
const value = valuePart?.computedValue() || null;
|
|
74719
74757
|
|
|
74720
74758
|
return variables
|
|
@@ -74842,7 +74880,7 @@
|
|
|
74842
74880
|
{
|
|
74843
74881
|
value: Context
|
|
74844
74882
|
.of(variables.value)
|
|
74845
|
-
.set(name
|
|
74883
|
+
.set(name?.computedValue(), value?.computedValue())
|
|
74846
74884
|
}
|
|
74847
74885
|
);
|
|
74848
74886
|
}
|