camunda-bpmn-js 2.3.1 → 2.4.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 +15 -30
- package/dist/base-modeler.production.min.js +31 -33
- package/dist/base-navigated-viewer.development.js +4 -9
- package/dist/base-navigated-viewer.production.min.js +1 -1
- package/dist/base-viewer.development.js +4 -9
- package/dist/base-viewer.production.min.js +1 -1
- package/dist/camunda-cloud-modeler.development.js +171 -92
- package/dist/camunda-cloud-modeler.production.min.js +32 -34
- package/dist/camunda-cloud-navigated-viewer.development.js +12 -18
- package/dist/camunda-cloud-navigated-viewer.production.min.js +1 -1
- package/dist/camunda-cloud-viewer.development.js +12 -18
- package/dist/camunda-cloud-viewer.production.min.js +1 -1
- package/dist/camunda-platform-modeler.development.js +48 -41
- package/dist/camunda-platform-modeler.production.min.js +31 -33
- package/dist/camunda-platform-navigated-viewer.development.js +4 -9
- package/dist/camunda-platform-navigated-viewer.production.min.js +1 -1
- package/dist/camunda-platform-viewer.development.js +4 -9
- package/dist/camunda-platform-viewer.production.min.js +1 -1
- package/package.json +3 -3
|
@@ -1000,7 +1000,7 @@
|
|
|
1000
1000
|
*
|
|
1001
1001
|
* @return {Object} the target
|
|
1002
1002
|
*/
|
|
1003
|
-
function merge(target, ...sources) {
|
|
1003
|
+
function merge$1(target, ...sources) {
|
|
1004
1004
|
|
|
1005
1005
|
if (!sources.length) {
|
|
1006
1006
|
return target;
|
|
@@ -1029,7 +1029,7 @@
|
|
|
1029
1029
|
targetVal = {};
|
|
1030
1030
|
}
|
|
1031
1031
|
|
|
1032
|
-
target[key] = merge(targetVal, sourceVal);
|
|
1032
|
+
target[key] = merge$1(targetVal, sourceVal);
|
|
1033
1033
|
} else {
|
|
1034
1034
|
target[key] = sourceVal;
|
|
1035
1035
|
}
|
|
@@ -1066,7 +1066,7 @@
|
|
|
1066
1066
|
keys: keys,
|
|
1067
1067
|
map: map$2,
|
|
1068
1068
|
matchPattern: matchPattern,
|
|
1069
|
-
merge: merge,
|
|
1069
|
+
merge: merge$1,
|
|
1070
1070
|
omit: omit,
|
|
1071
1071
|
pick: pick,
|
|
1072
1072
|
reduce: reduce,
|
|
@@ -4783,7 +4783,7 @@
|
|
|
4783
4783
|
|
|
4784
4784
|
var intersect = findPathIntersections;
|
|
4785
4785
|
|
|
4786
|
-
var intersectPaths = intersect;
|
|
4786
|
+
var intersectPaths = /*@__PURE__*/getDefaultExportFromCjs(intersect);
|
|
4787
4787
|
|
|
4788
4788
|
/**
|
|
4789
4789
|
* @typedef {import('../core/Types').ElementLike} Element
|
|
@@ -6826,11 +6826,7 @@
|
|
|
6826
6826
|
}
|
|
6827
6827
|
};
|
|
6828
6828
|
|
|
6829
|
-
var
|
|
6830
|
-
var objectRefs = {
|
|
6831
|
-
get exports(){ return objectRefsExports; },
|
|
6832
|
-
set exports(v){ objectRefsExports = v; },
|
|
6833
|
-
};
|
|
6829
|
+
var objectRefs = {exports: {}};
|
|
6834
6830
|
|
|
6835
6831
|
var collection = {};
|
|
6836
6832
|
|
|
@@ -7144,12 +7140,11 @@
|
|
|
7144
7140
|
|
|
7145
7141
|
var refs = Refs$1;
|
|
7146
7142
|
|
|
7147
|
-
|
|
7148
|
-
module.exports = refs;
|
|
7143
|
+
objectRefs.exports = refs;
|
|
7149
7144
|
|
|
7150
|
-
|
|
7151
|
-
} (objectRefs));
|
|
7145
|
+
objectRefs.exports.Collection = collection;
|
|
7152
7146
|
|
|
7147
|
+
var objectRefsExports = objectRefs.exports;
|
|
7153
7148
|
var Refs = /*@__PURE__*/getDefaultExportFromCjs(objectRefsExports);
|
|
7154
7149
|
|
|
7155
7150
|
var parentRefs = new Refs({ name: 'children', enumerable: true, collection: true }, { name: 'parent' }),
|
|
@@ -11717,7 +11712,7 @@
|
|
|
11717
11712
|
}
|
|
11718
11713
|
}
|
|
11719
11714
|
|
|
11720
|
-
function inherits(ctor, superCtor) {
|
|
11715
|
+
function inherits$1(ctor, superCtor) {
|
|
11721
11716
|
ctor.super_ = superCtor;
|
|
11722
11717
|
ctor.prototype = Object.create(superCtor.prototype, {
|
|
11723
11718
|
constructor: {
|
|
@@ -11883,7 +11878,7 @@
|
|
|
11883
11878
|
this.tagName = tagName;
|
|
11884
11879
|
}
|
|
11885
11880
|
|
|
11886
|
-
inherits(ValueSerializer, BodySerializer);
|
|
11881
|
+
inherits$1(ValueSerializer, BodySerializer);
|
|
11887
11882
|
|
|
11888
11883
|
ValueSerializer.prototype.serializeTo = function(writer) {
|
|
11889
11884
|
|
|
@@ -12376,7 +12371,7 @@
|
|
|
12376
12371
|
ElementSerializer.call(this, parent, propertyDescriptor);
|
|
12377
12372
|
}
|
|
12378
12373
|
|
|
12379
|
-
inherits(TypeSerializer, ElementSerializer);
|
|
12374
|
+
inherits$1(TypeSerializer, ElementSerializer);
|
|
12380
12375
|
|
|
12381
12376
|
TypeSerializer.prototype.parseNsAttributes = function(element) {
|
|
12382
12377
|
|
|
@@ -26189,11 +26184,7 @@
|
|
|
26189
26184
|
NavigatedViewer.prototype._navigationModules
|
|
26190
26185
|
);
|
|
26191
26186
|
|
|
26192
|
-
var
|
|
26193
|
-
var hammer = {
|
|
26194
|
-
get exports(){ return hammerExports; },
|
|
26195
|
-
set exports(v){ hammerExports = v; },
|
|
26196
|
-
};
|
|
26187
|
+
var hammer = {exports: {}};
|
|
26197
26188
|
|
|
26198
26189
|
/*! Hammer.JS - v2.0.7 - 2016-04-22
|
|
26199
26190
|
* http://hammerjs.github.io/
|
|
@@ -28838,10 +28829,11 @@
|
|
|
28838
28829
|
window[exportName] = Hammer;
|
|
28839
28830
|
}
|
|
28840
28831
|
|
|
28841
|
-
})(window, document, 'Hammer');
|
|
28832
|
+
})(window, document, 'Hammer');
|
|
28842
28833
|
} (hammer));
|
|
28843
28834
|
|
|
28844
|
-
var
|
|
28835
|
+
var hammerExports = hammer.exports;
|
|
28836
|
+
var Hammer = /*@__PURE__*/getDefaultExportFromCjs(hammerExports);
|
|
28845
28837
|
|
|
28846
28838
|
/**
|
|
28847
28839
|
* @typedef {import('didi').Injector} Injector
|
|
@@ -67820,11 +67812,7 @@
|
|
|
67820
67812
|
|
|
67821
67813
|
var t$1,u,r,o$2=0,i$2=[],c=n$1.__b,f=n$1.__r,e$2=n$1.diffed,a$1=n$1.__c,v=n$1.unmount;function m(t,r){n$1.__h&&n$1.__h(u,t,o$2||r),o$2=0;var i=u.__H||(u.__H={__:[],__h:[]});return t>=i.__.length&&i.__.push({}),i.__[t]}function l$1(n){return o$2=1,p$1(w$1,n)}function p$1(n,r,o){var i=m(t$1++,2);return i.t=n,i.__c||(i.__=[o?o(r):w$1(void 0,r),function(n){var t=i.t(i.__[0],n);i.__[0]!==t&&(i.__=[t,i.__[1]],i.__c.setState({}));}],i.__c=u),i.__}function y(r,o){var i=m(t$1++,3);!n$1.__s&&k$1(i.__H,o)&&(i.__=r,i.__H=o,u.__H.__h.push(i));}function h(r,o){var i=m(t$1++,4);!n$1.__s&&k$1(i.__H,o)&&(i.__=r,i.__H=o,u.__h.push(i));}function s(n){return o$2=5,d(function(){return {current:n}},[])}function _(n,t,u){o$2=6,h(function(){"function"==typeof n?n(t()):n&&(n.current=t());},null==u?u:u.concat(n));}function d(n,u){var r=m(t$1++,7);return k$1(r.__H,u)&&(r.__=n(),r.__H=u,r.__h=n),r.__}function A$1(n,t){return o$2=8,d(function(){return n},t)}function F$1(n){var r=u.context[n.__c],o=m(t$1++,9);return o.__c=n,r?(null==o.__&&(o.__=!0,r.sub(u)),r.props.value):n.__}function T$1(t,u){n$1.useDebugValue&&n$1.useDebugValue(u?u(t):t);}function x$1(){i$2.forEach(function(t){if(t.__P)try{t.__H.__h.forEach(g$1),t.__H.__h.forEach(j$1),t.__H.__h=[];}catch(u){t.__H.__h=[],n$1.__e(u,t.__v);}}),i$2=[];}n$1.__b=function(n){u=null,c&&c(n);},n$1.__r=function(n){f&&f(n),t$1=0;var r=(u=n.__c).__H;r&&(r.__h.forEach(g$1),r.__h.forEach(j$1),r.__h=[]);},n$1.diffed=function(t){e$2&&e$2(t);var o=t.__c;o&&o.__H&&o.__H.__h.length&&(1!==i$2.push(o)&&r===n$1.requestAnimationFrame||((r=n$1.requestAnimationFrame)||function(n){var t,u=function(){clearTimeout(r),b&&cancelAnimationFrame(t),setTimeout(n);},r=setTimeout(u,100);b&&(t=requestAnimationFrame(u));})(x$1)),u=void 0;},n$1.__c=function(t,u){u.some(function(t){try{t.__h.forEach(g$1),t.__h=t.__h.filter(function(n){return !n.__||j$1(n)});}catch(r){u.some(function(n){n.__h&&(n.__h=[]);}),u=[],n$1.__e(r,t.__v);}}),a$1&&a$1(t,u);},n$1.unmount=function(t){v&&v(t);var u=t.__c;if(u&&u.__H)try{u.__H.__.forEach(g$1);}catch(t){n$1.__e(t,u.__v);}};var b="function"==typeof requestAnimationFrame;function g$1(n){var t=u;"function"==typeof n.__c&&n.__c(),u=t;}function j$1(n){var t=u;n.__c=n.__(),u=t;}function k$1(n,t){return !n||n.length!==t.length||t.some(function(t,u){return t!==n[u]})}function w$1(n,t){return "function"==typeof t?t(n):t}
|
|
67822
67814
|
|
|
67823
|
-
var
|
|
67824
|
-
var classnames$1 = {
|
|
67825
|
-
get exports(){ return classnamesExports; },
|
|
67826
|
-
set exports(v){ classnamesExports = v; },
|
|
67827
|
-
};
|
|
67815
|
+
var classnames$1 = {exports: {}};
|
|
67828
67816
|
|
|
67829
67817
|
/*!
|
|
67830
67818
|
Copyright (c) 2018 Jed Watson.
|
|
@@ -67879,10 +67867,11 @@
|
|
|
67879
67867
|
} else {
|
|
67880
67868
|
window.classNames = classNames;
|
|
67881
67869
|
}
|
|
67882
|
-
}());
|
|
67870
|
+
}());
|
|
67883
67871
|
} (classnames$1));
|
|
67884
67872
|
|
|
67885
|
-
var
|
|
67873
|
+
var classnamesExports = classnames$1.exports;
|
|
67874
|
+
var classnames = /*@__PURE__*/getDefaultExportFromCjs(classnamesExports);
|
|
67886
67875
|
|
|
67887
67876
|
function C$1(n,t){for(var e in t)n[e]=t[e];return n}function S(n,t){for(var e in n)if("__source"!==e&&!(e in t))return !0;for(var r in t)if("__source"!==r&&n[r]!==t[r])return !0;return !1}function E(n){this.props=n;}function g(n,t){function e(n){var e=this.props.ref,r=e==n.ref;return !r&&e&&(e.call?e(null):e.current=null),t?!t(this.props,n)||!r:S(this.props,n)}function r(t){return this.shouldComponentUpdate=e,a$2(n,t)}return r.displayName="Memo("+(n.displayName||n.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(E.prototype=new p$2).isPureReactComponent=!0,E.prototype.shouldComponentUpdate=function(n,t){return S(this.props,n)||S(this.state,t)};var w=n$1.__b;n$1.__b=function(n){n.type&&n.type.__f&&n.ref&&(n.props.ref=n.ref,n.ref=null),w&&w(n);};var R="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function x(n){function t(t,e){var r=C$1({},t);return delete r.ref,n(r,(e=t.ref||e)&&("object"!=typeof e||"current"in e)?e:null)}return t.$$typeof=R,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(n.displayName||n.name)+")",t}var N=function(n,t){return null==n?null:w$2(w$2(n).map(t))},k={map:N,forEach:N,count:function(n){return n?w$2(n).length:0},only:function(n){var t=w$2(n);if(1!==t.length)throw "Children.only";return t[0]},toArray:w$2},A=n$1.__e;n$1.__e=function(n,t,e){if(n.then)for(var r,u=t;u=u.__;)if((r=u.__c)&&r.__c)return null==t.__e&&(t.__e=e.__e,t.__k=e.__k),r.__c(n,t);A(n,t,e);};var O=n$1.unmount;function L(){this.__u=0,this.t=null,this.__b=null;}function U(n){var t=n.__.__c;return t&&t.__e&&t.__e(n)}function D(n){var t,e,r;function u(u){if(t||(t=n()).then(function(n){e=n.default||n;},function(n){r=n;}),r)throw r;if(!e)throw t;return a$2(e,u)}return u.displayName="Lazy",u.__f=!0,u}function F(){this.u=null,this.o=null;}n$1.unmount=function(n){var t=n.__c;t&&t.__R&&t.__R(),t&&!0===n.__h&&(n.type=null),O&&O(n);},(L.prototype=new p$2).__c=function(n,t){var e=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(e);var u=U(r.__v),o=!1,i=function(){o||(o=!0,e.__R=null,u?u(l):l());};e.__R=i;var l=function(){if(!--r.__u){if(r.state.__e){var n=r.state.__e;r.__v.__k[0]=function n(t,e,r){return t&&(t.__v=null,t.__k=t.__k&&t.__k.map(function(t){return n(t,e,r)}),t.__c&&t.__c.__P===e&&(t.__e&&r.insertBefore(t.__e,t.__d),t.__c.__e=!0,t.__c.__P=r)),t}(n,n.__c.__P,n.__c.__O);}var t;for(r.setState({__e:r.__b=null});t=r.t.pop();)t.forceUpdate();}},f=!0===t.__h;r.__u++||f||r.setState({__e:r.__b=r.__v.__k[0]}),n.then(i,i);},L.prototype.componentWillUnmount=function(){this.t=[];},L.prototype.render=function(n,t){if(this.__b){if(this.__v.__k){var e=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=function n(t,e,r){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach(function(n){"function"==typeof n.__c&&n.__c();}),t.__c.__H=null),null!=(t=C$1({},t)).__c&&(t.__c.__P===r&&(t.__c.__P=e),t.__c=null),t.__k=t.__k&&t.__k.map(function(t){return n(t,e,r)})),t}(this.__b,e,r.__O=r.__P);}this.__b=null;}var u=t.__e&&a$2(y$1,null,n.fallback);return u&&(u.__h=null),[a$2(y$1,null,t.__e?null:n.children),u]};var M=function(n,t,e){if(++e[1]===e[0]&&n.o.delete(t),n.props.revealOrder&&("t"!==n.props.revealOrder[0]||!n.o.size))for(e=n.u;e;){for(;e.length>3;)e.pop()();if(e[1]<e[0])break;n.u=e=e[2];}};function T(n){return this.getChildContext=function(){return n.context},n.children}function j(n){var t=this,e=n.i;t.componentWillUnmount=function(){N$1(null,t.l),t.l=null,t.i=null;},t.i&&t.i!==e&&t.componentWillUnmount(),n.__v?(t.l||(t.i=e,t.l={nodeType:1,parentNode:e,childNodes:[],appendChild:function(n){this.childNodes.push(n),t.i.appendChild(n);},insertBefore:function(n,e){this.childNodes.push(n),t.i.appendChild(n);},removeChild:function(n){this.childNodes.splice(this.childNodes.indexOf(n)>>>1,1),t.i.removeChild(n);}}),N$1(a$2(T,{context:t.context},n.__v),t.l)):t.l&&t.componentWillUnmount();}function I(n,t){return a$2(j,{__v:n,i:t})}(F.prototype=new p$2).__e=function(n){var t=this,e=U(t.__v),r=t.o.get(n);return r[0]++,function(u){var o=function(){t.props.revealOrder?(r.push(u),M(t,n,r)):u();};e?e(o):o();}},F.prototype.render=function(n){this.u=null,this.o=new Map;var t=w$2(n.children);n.revealOrder&&"b"===n.revealOrder[0]&&t.reverse();for(var e=t.length;e--;)this.o.set(t[e],this.u=[1,0,this.u]);return n.children},F.prototype.componentDidUpdate=F.prototype.componentDidMount=function(){var n=this;this.o.forEach(function(t,e){M(n,e,t);});};var W="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,P=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,V=function(n){return ("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(n)};function z(n,t,e){return null==t.__k&&(t.textContent=""),N$1(n,t),"function"==typeof e&&e(),n?n.__c:null}function B(n,t,e){return O$1(n,t),"function"==typeof e&&e(),n?n.__c:null}p$2.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(n){Object.defineProperty(p$2.prototype,n,{configurable:!0,get:function(){return this["UNSAFE_"+n]},set:function(t){Object.defineProperty(this,n,{configurable:!0,writable:!0,value:t});}});});var H=n$1.event;function Z(){}function Y(){return this.cancelBubble}function $(){return this.defaultPrevented}n$1.event=function(n){return H&&(n=H(n)),n.persist=Z,n.isPropagationStopped=Y,n.isDefaultPrevented=$,n.nativeEvent=n};var q,G={configurable:!0,get:function(){return this.class}},J=n$1.vnode;n$1.vnode=function(n){var t=n.type,e=n.props,r=e;if("string"==typeof t){for(var u in r={},e){var o=e[u];"value"===u&&"defaultValue"in e&&null==o||("defaultValue"===u&&"value"in e&&null==e.value?u="value":"download"===u&&!0===o?o="":/ondoubleclick/i.test(u)?u="ondblclick":/^onchange(textarea|input)/i.test(u+t)&&!V(e.type)?u="oninput":/^on(Ani|Tra|Tou|BeforeInp)/.test(u)?u=u.toLowerCase():P.test(u)?u=u.replace(/[A-Z0-9]/,"-$&").toLowerCase():null===o&&(o=void 0),r[u]=o);}"select"==t&&r.multiple&&Array.isArray(r.value)&&(r.value=w$2(e.children).forEach(function(n){n.props.selected=-1!=r.value.indexOf(n.props.value);})),"select"==t&&null!=r.defaultValue&&(r.value=w$2(e.children).forEach(function(n){n.props.selected=r.multiple?-1!=r.defaultValue.indexOf(n.props.value):r.defaultValue==n.props.value;})),n.props=r;}t&&e.class!=e.className&&(G.enumerable="className"in e,null!=e.className&&(r.class=e.className),Object.defineProperty(r,"className",G)),n.$$typeof=W,J&&J(n);};var K=n$1.__r;n$1.__r=function(n){K&&K(n),q=n.__c;};var Q={ReactCurrentDispatcher:{current:{readContext:function(n){return q.__n[n.__c].props.value}}}};"object"==typeof performance&&"function"==typeof performance.now?performance.now.bind(performance):function(){return Date.now()};function fn(n){return a$2.bind(null,n)}function cn(n){return !!n&&n.$$typeof===W}function an(n){return cn(n)?S$1.apply(null,arguments):n}function sn(n){return !!n.__k&&(N$1(null,n),!0)}function hn(n){return n&&(n.base||1===n.nodeType&&n)||null}var pn=function(n,t){return n(t)};var React = {useState:l$1,useReducer:p$1,useEffect:y,useLayoutEffect:h,useRef:s,useImperativeHandle:_,useMemo:d,useCallback:A$1,useContext:F$1,useDebugValue:T$1,version:"16.8.0",Children:k,render:z,hydrate:B,unmountComponentAtNode:sn,createPortal:I,createElement:a$2,createContext:q$1,createFactory:fn,cloneElement:an,createRef:h$1,Fragment:y$1,isValidElement:cn,findDOMNode:hn,Component:p$2,PureComponent:E,memo:g,forwardRef:x,unstable_batchedUpdates:pn,StrictMode:y$1,Suspense:L,SuspenseList:F,lazy:D,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Q};
|
|
67888
67877
|
|
|
@@ -98354,11 +98343,7 @@
|
|
|
98354
98343
|
var getVariablesForElement_1 = zeebe.getVariablesForElement = getVariablesForElement;
|
|
98355
98344
|
zeebe.getVariablesForScope = getVariablesForScope$1;
|
|
98356
98345
|
|
|
98357
|
-
var
|
|
98358
|
-
var arrayMove$1 = {
|
|
98359
|
-
get exports(){ return arrayMoveExports; },
|
|
98360
|
-
set exports(v){ arrayMoveExports = v; },
|
|
98361
|
-
};
|
|
98346
|
+
var arrayMove$1 = {exports: {}};
|
|
98362
98347
|
|
|
98363
98348
|
const arrayMoveMutate = (array, from, to) => {
|
|
98364
98349
|
const startIndex = from < 0 ? array.length + from : from;
|
|
@@ -98378,7 +98363,7 @@
|
|
|
98378
98363
|
};
|
|
98379
98364
|
|
|
98380
98365
|
arrayMove$1.exports = arrayMove;
|
|
98381
|
-
|
|
98366
|
+
arrayMove$1.exports.mutate = arrayMoveMutate;
|
|
98382
98367
|
|
|
98383
98368
|
var dist = {};
|
|
98384
98369
|
|
|
@@ -99173,6 +99158,8 @@
|
|
|
99173
99158
|
return 0;
|
|
99174
99159
|
};
|
|
99175
99160
|
|
|
99161
|
+
var semverCompare$1 = /*@__PURE__*/getDefaultExportFromCjs(semverCompare);
|
|
99162
|
+
|
|
99176
99163
|
var version$1 = "0.12.1";
|
|
99177
99164
|
|
|
99178
99165
|
var standaloneValidator = {exports: {}};
|
|
@@ -109344,7 +109331,7 @@
|
|
|
109344
109331
|
schemaVersion = template.$schema && getSchemaVersion(template.$schema);
|
|
109345
109332
|
|
|
109346
109333
|
// (1) compatibility
|
|
109347
|
-
if (schemaVersion && semverCompare(SUPPORTED_SCHEMA_VERSION$1, schemaVersion) < 0) {
|
|
109334
|
+
if (schemaVersion && semverCompare$1(SUPPORTED_SCHEMA_VERSION$1, schemaVersion) < 0) {
|
|
109348
109335
|
return this._logError(`unsupported element template schema version <${schemaVersion}>. Your installation only supports up to version <${SUPPORTED_SCHEMA_VERSION$1}>. Please update your installation`, template);
|
|
109349
109336
|
}
|
|
109350
109337
|
|
|
@@ -109550,7 +109537,7 @@
|
|
|
109550
109537
|
}
|
|
109551
109538
|
|
|
109552
109539
|
// (2) compatibility
|
|
109553
|
-
if (schemaVersion && semverCompare(SUPPORTED_SCHEMA_VERSION, schemaVersion) < 0) {
|
|
109540
|
+
if (schemaVersion && semverCompare$1(SUPPORTED_SCHEMA_VERSION, schemaVersion) < 0) {
|
|
109554
109541
|
return this._logError(`unsupported element template schema version <${schemaVersion}>. Your installation only supports up to version <${SUPPORTED_SCHEMA_VERSION}>. Please update your installation`, template);
|
|
109555
109542
|
}
|
|
109556
109543
|
|
|
@@ -114364,7 +114351,17 @@
|
|
|
114364
114351
|
const variables = {};
|
|
114365
114352
|
|
|
114366
114353
|
const workerTasks = bpmnjs.getDefinitions().get('rootElements').map(async element => {
|
|
114367
|
-
|
|
114354
|
+
|
|
114355
|
+
const elementVariables = await this._baseExtractor(element, [ this._extractor.bind(this) ]);
|
|
114356
|
+
|
|
114357
|
+
// Annotate variables with extractor information
|
|
114358
|
+
variables[element.id] = elementVariables.map(variable => {
|
|
114359
|
+
if (!variable.provider) {
|
|
114360
|
+
variable.provider = [ this._baseExtractor ];
|
|
114361
|
+
}
|
|
114362
|
+
|
|
114363
|
+
return variable;
|
|
114364
|
+
});
|
|
114368
114365
|
});
|
|
114369
114366
|
|
|
114370
114367
|
await Promise.all(workerTasks);
|
|
@@ -114399,7 +114396,8 @@
|
|
|
114399
114396
|
);
|
|
114400
114397
|
|
|
114401
114398
|
if (existingVariable) {
|
|
114402
|
-
|
|
114399
|
+
merge('origin', existingVariable, variable);
|
|
114400
|
+
merge('provider', existingVariable, variable);
|
|
114403
114401
|
mergeEntries(existingVariable, variable);
|
|
114404
114402
|
} else {
|
|
114405
114403
|
mergedVariables.push(variable);
|
|
@@ -114448,7 +114446,8 @@
|
|
|
114448
114446
|
processVariables.push({
|
|
114449
114447
|
...cloneVariable(variable),
|
|
114450
114448
|
origin: [ element ],
|
|
114451
|
-
scope: variable.scope || getScope(element, containerElement, variable.name)
|
|
114449
|
+
scope: variable.scope || getScope(element, containerElement, variable.name),
|
|
114450
|
+
provider: [ provider ]
|
|
114452
114451
|
});
|
|
114453
114452
|
});
|
|
114454
114453
|
});
|
|
@@ -114537,10 +114536,18 @@
|
|
|
114537
114536
|
return parent;
|
|
114538
114537
|
}
|
|
114539
114538
|
|
|
114540
|
-
function
|
|
114541
|
-
|
|
114539
|
+
function merge(property, target, source) {
|
|
114540
|
+
if (!source[property]) {
|
|
114541
|
+
source[property] = [];
|
|
114542
|
+
}
|
|
114543
|
+
|
|
114544
|
+
if (!target[property]) {
|
|
114545
|
+
target[property] = [];
|
|
114546
|
+
}
|
|
114547
|
+
|
|
114548
|
+
const originToAdd = source[property].filter(o => !target.origin.includes(o));
|
|
114542
114549
|
|
|
114543
|
-
target.
|
|
114550
|
+
target[property].push(...originToAdd);
|
|
114544
114551
|
}
|
|
114545
114552
|
|
|
114546
114553
|
function mergeEntries(target, source) {
|
|
@@ -116201,68 +116208,89 @@
|
|
|
116201
116208
|
return scopedResults;
|
|
116202
116209
|
}
|
|
116203
116210
|
|
|
116211
|
+
const HIGH_PRIORITY$1 = 2000;
|
|
116212
|
+
|
|
116204
116213
|
/**
|
|
116205
|
-
*
|
|
116206
|
-
* as the absence of the header has execution implications. This should be replaced with engine behavior in the
|
|
116207
|
-
* Connector Implementation at one point.
|
|
116214
|
+
* The Camunda 8 Implementation for the VariableResolver.
|
|
116208
116215
|
*/
|
|
116209
|
-
|
|
116210
|
-
|
|
116216
|
+
class ZeebeVariableResolver extends BaseVariableResolver {
|
|
116217
|
+
constructor(eventBus, bpmnjs) {
|
|
116218
|
+
super(eventBus, bpmnjs);
|
|
116219
|
+
this._baseExtractor = getProcessVariables_1;
|
|
116211
116220
|
|
|
116212
|
-
|
|
116221
|
+
eventBus.on('variableResolver.parseVariables', HIGH_PRIORITY$1, this._resolveIoMappings);
|
|
116222
|
+
}
|
|
116213
116223
|
|
|
116214
|
-
|
|
116224
|
+
async getVariablesForElement(element, moddleElement) {
|
|
116225
|
+
const variables = await super.getVariablesForElement(element);
|
|
116215
116226
|
|
|
116216
|
-
|
|
116217
|
-
|
|
116227
|
+
const bo = getBusinessObject$2(element);
|
|
116228
|
+
|
|
116229
|
+
if (!moddleElement) {
|
|
116230
|
+
return variables;
|
|
116218
116231
|
}
|
|
116219
116232
|
|
|
116220
|
-
const
|
|
116233
|
+
const inputOutput = getInputOutput(bo);
|
|
116221
116234
|
|
|
116222
|
-
|
|
116223
|
-
return
|
|
116224
|
-
}
|
|
116235
|
+
if (!inputOutput) {
|
|
116236
|
+
return variables;
|
|
116237
|
+
}
|
|
116225
116238
|
|
|
116226
|
-
const
|
|
116227
|
-
return header.key === 'resultExpression';
|
|
116228
|
-
});
|
|
116239
|
+
const namesToFilter = [];
|
|
116229
116240
|
|
|
116230
|
-
|
|
116231
|
-
|
|
116232
|
-
|
|
116233
|
-
|
|
116241
|
+
// Input: remove all inputs defined after the current input definition
|
|
116242
|
+
if (is$6(moddleElement, 'zeebe:Input')) {
|
|
116243
|
+
const allInputs = inputOutput.inputParameters;
|
|
116244
|
+
|
|
116245
|
+
const inputsToFilter =
|
|
116246
|
+
allInputs
|
|
116247
|
+
.slice(allInputs.indexOf(moddleElement))
|
|
116248
|
+
.map(o => o.target);
|
|
116249
|
+
|
|
116250
|
+
namesToFilter.push(...inputsToFilter);
|
|
116234
116251
|
}
|
|
116235
116252
|
|
|
116236
|
-
|
|
116253
|
+
const allOutputs = inputOutput.outputParameters;
|
|
116237
116254
|
|
|
116238
|
-
|
|
116239
|
-
|
|
116255
|
+
// Output: remove all outputs defined after the current output definition
|
|
116256
|
+
if (is$6(moddleElement, 'zeebe:Output')) {
|
|
116240
116257
|
|
|
116241
|
-
|
|
116258
|
+
// Get all output mappings defined after the current element, including own name
|
|
116259
|
+
const outputsToFilter = allOutputs
|
|
116260
|
+
.slice(allOutputs.indexOf(moddleElement))
|
|
116261
|
+
.map(o => o.target);
|
|
116242
116262
|
|
|
116243
|
-
|
|
116244
|
-
result.push(
|
|
116245
|
-
...expressionVariables[0].entries
|
|
116246
|
-
);
|
|
116247
|
-
}
|
|
116263
|
+
namesToFilter.push(...outputsToFilter);
|
|
116248
116264
|
}
|
|
116249
116265
|
|
|
116250
|
-
|
|
116251
|
-
|
|
116252
|
-
};
|
|
116266
|
+
// Input or general property: remove all outputs
|
|
116267
|
+
else if (allOutputs) {
|
|
116253
116268
|
|
|
116254
|
-
|
|
116269
|
+
// Input or execution-related element, remove all outputs
|
|
116270
|
+
const outputsToFilter = allOutputs
|
|
116271
|
+
.map(o => o.target);
|
|
116255
116272
|
|
|
116256
|
-
|
|
116257
|
-
|
|
116258
|
-
*/
|
|
116259
|
-
class ZeebeVariableResolver extends BaseVariableResolver {
|
|
116260
|
-
constructor(eventBus, bpmnjs) {
|
|
116261
|
-
super(eventBus, bpmnjs);
|
|
116262
|
-
this._baseExtractor = getProcessVariables_1;
|
|
116273
|
+
namesToFilter.push(...outputsToFilter);
|
|
116274
|
+
}
|
|
116263
116275
|
|
|
116264
|
-
|
|
116265
|
-
|
|
116276
|
+
return variables.filter(v => {
|
|
116277
|
+
|
|
116278
|
+
// Keep all variables that are also defined in other elements
|
|
116279
|
+
if (v.origin.length > 1 || v.origin[0] !== bo) {
|
|
116280
|
+
return true;
|
|
116281
|
+
}
|
|
116282
|
+
|
|
116283
|
+
// Keep all variables from external data providers in outputs
|
|
116284
|
+
if (
|
|
116285
|
+
is$6(moddleElement, 'zeebe:Output') &&
|
|
116286
|
+
v.provider.find(extractor => extractor !== this._baseExtractor)
|
|
116287
|
+
) {
|
|
116288
|
+
return true;
|
|
116289
|
+
}
|
|
116290
|
+
|
|
116291
|
+
// Filter all pre-defined variables
|
|
116292
|
+
return !namesToFilter.includes(v.name);
|
|
116293
|
+
});
|
|
116266
116294
|
}
|
|
116267
116295
|
|
|
116268
116296
|
/**
|
|
@@ -116342,11 +116370,63 @@
|
|
|
116342
116370
|
|
|
116343
116371
|
VariableProvider.$inject = [ 'variableResolver' ];
|
|
116344
116372
|
|
|
116373
|
+
/**
|
|
116374
|
+
* TODO: This method tries to mirror the behavior of ConnectorMappings. However, this is not possible in all cases,
|
|
116375
|
+
* as the absence of the header has execution implications. This should be replaced with engine behavior in the
|
|
116376
|
+
* Connector Implementation at one point.
|
|
116377
|
+
*/
|
|
116378
|
+
class ConnectorVariableProvider extends VariableProvider {
|
|
116379
|
+
getVariables(element) {
|
|
116380
|
+
|
|
116381
|
+
const result = [];
|
|
116382
|
+
|
|
116383
|
+
const taskheaders = getExtensionElementsList(element, 'zeebe:TaskHeaders')[0];
|
|
116384
|
+
|
|
116385
|
+
if (!taskheaders || !taskheaders.values) {
|
|
116386
|
+
return;
|
|
116387
|
+
}
|
|
116388
|
+
|
|
116389
|
+
const headers = taskheaders.values;
|
|
116390
|
+
|
|
116391
|
+
const resultVariable = headers.find(header => {
|
|
116392
|
+
return header.key === 'resultVariable';
|
|
116393
|
+
});
|
|
116394
|
+
|
|
116395
|
+
const resultExpression = headers.find(header => {
|
|
116396
|
+
return header.key === 'resultExpression';
|
|
116397
|
+
});
|
|
116398
|
+
|
|
116399
|
+
if (resultVariable && resultVariable.value) {
|
|
116400
|
+
result.push({
|
|
116401
|
+
name: resultVariable.value
|
|
116402
|
+
});
|
|
116403
|
+
}
|
|
116404
|
+
|
|
116405
|
+
if (resultExpression && resultExpression.value) {
|
|
116406
|
+
|
|
116407
|
+
// parse with FEEL
|
|
116408
|
+
const resultContext = getResultContext(resultExpression.value.substring(1));
|
|
116409
|
+
|
|
116410
|
+
const expressionVariables = toUnifiedFormat(resultContext.computedValue());
|
|
116411
|
+
|
|
116412
|
+
if (expressionVariables && expressionVariables.length > 0) {
|
|
116413
|
+
result.push(
|
|
116414
|
+
...expressionVariables[0].entries
|
|
116415
|
+
);
|
|
116416
|
+
}
|
|
116417
|
+
}
|
|
116418
|
+
|
|
116419
|
+
return result;
|
|
116420
|
+
}
|
|
116421
|
+
}
|
|
116422
|
+
|
|
116345
116423
|
const ZeebeVariableResolverModule = {
|
|
116346
116424
|
__init__: [
|
|
116347
116425
|
'variableResolver',
|
|
116426
|
+
'connectorVariableProvider'
|
|
116348
116427
|
],
|
|
116349
116428
|
variableResolver: [ 'type', ZeebeVariableResolver ],
|
|
116429
|
+
connectorVariableProvider: [ 'type', ConnectorVariableProvider ]
|
|
116350
116430
|
};
|
|
116351
116431
|
|
|
116352
116432
|
const EXAMPLE_JSON_PROPERTY_NAME = 'camundaModeler:exampleOutputJson';
|
|
@@ -117116,11 +117196,7 @@
|
|
|
117116
117196
|
elementTemplateChooserEntryProvider: [ 'type', ElementTemplateChooserEntryProvider ]
|
|
117117
117197
|
};
|
|
117118
117198
|
|
|
117119
|
-
var
|
|
117120
|
-
var inherits_browser = {
|
|
117121
|
-
get exports(){ return inherits_browserExports; },
|
|
117122
|
-
set exports(v){ inherits_browserExports = v; },
|
|
117123
|
-
};
|
|
117199
|
+
var inherits_browser = {exports: {}};
|
|
117124
117200
|
|
|
117125
117201
|
if (typeof Object.create === 'function') {
|
|
117126
117202
|
// implementation from standard node.js 'util' module
|
|
@@ -117150,6 +117226,9 @@
|
|
|
117150
117226
|
};
|
|
117151
117227
|
}
|
|
117152
117228
|
|
|
117229
|
+
var inherits_browserExports = inherits_browser.exports;
|
|
117230
|
+
var inherits = /*@__PURE__*/getDefaultExportFromCjs(inherits_browserExports);
|
|
117231
|
+
|
|
117153
117232
|
function getModelerTemplateIcon(element) {
|
|
117154
117233
|
var modelerTemplateIcon = getBusinessObject$2(element).get('zeebe:modelerTemplateIcon');
|
|
117155
117234
|
return modelerTemplateIcon;
|
|
@@ -117167,7 +117246,7 @@
|
|
|
117167
117246
|
BaseRenderer.call(this, eventBus, HIGH_PRIORITY);
|
|
117168
117247
|
}
|
|
117169
117248
|
|
|
117170
|
-
|
|
117249
|
+
inherits(IconsRenderer, BaseRenderer);
|
|
117171
117250
|
|
|
117172
117251
|
IconsRenderer.prototype.canRender = function(element) {
|
|
117173
117252
|
|