camunda-bpmn-js 4.14.0 → 4.15.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 +10 -11
- package/dist/camunda-cloud-modeler.development.js +798 -417
- package/dist/camunda-cloud-modeler.production.min.js +4 -4
- package/dist/camunda-platform-modeler.development.js +431 -402
- package/dist/camunda-platform-modeler.production.min.js +1 -1
- package/lib/base/Modeler.d.ts +2 -2
- package/lib/camunda-cloud/Modeler.d.ts +1 -1
- package/lib/camunda-cloud/NavigatedViewer.d.ts +1 -1
- package/lib/camunda-cloud/Viewer.d.ts +1 -1
- package/lib/camunda-platform/Modeler.d.ts +1 -1
- package/lib/camunda-platform/NavigatedViewer.d.ts +1 -1
- package/lib/camunda-platform/Viewer.d.ts +1 -1
- package/lib/util/ExtensionElementsUtil.d.ts +3 -3
- package/package.json +14 -14
|
@@ -27832,7 +27832,7 @@
|
|
|
27832
27832
|
|
|
27833
27833
|
var m$3=e$5.bind(h$3);
|
|
27834
27834
|
|
|
27835
|
-
var t$2,r$3,u$3,i$
|
|
27835
|
+
var t$2,r$3,u$3,i$5,o$4=0,f$3=[],c$2=[],e$4=l$5.__b,a$3=l$5.__r,v$2=l$5.diffed,l$4=l$5.__c,m$2=l$5.unmount;function d$2(t,u){l$5.__h&&l$5.__h(r$3,t,o$4||u),o$4=0;var i=r$3.__H||(r$3.__H={__:[],__h:[]});return t>=i.__.length&&i.__.push({__V:c$2}),i.__[t]}function p$3(n){return o$4=1,y$2(B$4,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$4(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$5.__s&&z$4(o.__H,i)&&(o.__=u,o.i=i,r$3.__H.__h.push(o));}function s$3(u,i){var o=d$2(t$2++,4);!l$5.__s&&z$4(o.__H,i)&&(o.__=u,o.i=i,r$3.__h.push(o));}function _$3(n){return o$4=5,F$4(function(){return {current:n}},[])}function F$4(n,r){var u=d$2(t$2++,7);return z$4(u.__H,r)?(u.__V=n(),u.i=r,u.__h=n,u.__V):u.__}function T$4(n,t){return o$4=8,F$4(function(){return n},t)}function q$3(n){var u=r$3.context[n.__c],i=d$2(t$2++,9);return i.c=n,u?(null==i.__&&(i.__=!0,u.sub(r$3)),u.props.value):n.__}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$4),t.__H.__h=[];}catch(r){t.__H.__h=[],l$5.__e(r,t.__v);}}l$5.__b=function(n){r$3=null,e$4&&e$4(n);},l$5.__r=function(n){a$3&&a$3(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$4),i.__h=[])),u$3=r$3;},l$5.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$5===l$5.requestAnimationFrame||((i$5=l$5.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$5.__c=function(t,r){r.some(function(t){try{t.__h.forEach(k$3),t.__h=t.__h.filter(function(n){return !n.__||w$4(n)});}catch(u){r.some(function(n){n.__h&&(n.__h=[]);}),r=[],l$5.__e(u,t.__v);}}),l$4&&l$4(t,r);},l$5.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$5.__e(r,u.__v));};var g$4="function"==typeof requestAnimationFrame;function j$3(n){var t,r=function(){clearTimeout(u),g$4&&cancelAnimationFrame(t),setTimeout(n);},u=setTimeout(r,100);g$4&&(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$4(n){var t=r$3;n.__c=n.__(),r$3=t;}function z$4(n,t){return !n||n.length!==t.length||t.some(function(t,r){return t!==n[r]})}function B$4(n,t){return "function"==typeof t?t(n):t}
|
|
27836
27836
|
|
|
27837
27837
|
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}
|
|
27838
27838
|
|
|
@@ -35104,7 +35104,7 @@
|
|
|
35104
35104
|
const source = context.source,
|
|
35105
35105
|
target = context.target;
|
|
35106
35106
|
|
|
35107
|
-
if (isCompensationBoundaryEvent(source) && isForCompensation$1(target)) {
|
|
35107
|
+
if (isCompensationBoundaryEvent$1(source) && isForCompensation$1(target)) {
|
|
35108
35108
|
removeIsForCompensationProperty(target);
|
|
35109
35109
|
}
|
|
35110
35110
|
}
|
|
@@ -35117,7 +35117,7 @@
|
|
|
35117
35117
|
source = context.source,
|
|
35118
35118
|
target = context.target;
|
|
35119
35119
|
|
|
35120
|
-
if (isCompensationBoundaryEvent(source) && isForCompensationAllowed(target)) {
|
|
35120
|
+
if (isCompensationBoundaryEvent$1(source) && isForCompensationAllowed(target)) {
|
|
35121
35121
|
addIsForCompensationProperty(target);
|
|
35122
35122
|
removeExistingAssociations(source, [ connection ]);
|
|
35123
35123
|
}
|
|
@@ -35138,7 +35138,7 @@
|
|
|
35138
35138
|
}
|
|
35139
35139
|
|
|
35140
35140
|
// newTarget perspective
|
|
35141
|
-
if (isCompensationBoundaryEvent(source) && isForCompensationAllowed(newTarget)) {
|
|
35141
|
+
if (isCompensationBoundaryEvent$1(source) && isForCompensationAllowed(newTarget)) {
|
|
35142
35142
|
addIsForCompensationProperty(newTarget);
|
|
35143
35143
|
}
|
|
35144
35144
|
}
|
|
@@ -35166,7 +35166,7 @@
|
|
|
35166
35166
|
} = context;
|
|
35167
35167
|
|
|
35168
35168
|
// from compensate boundary event
|
|
35169
|
-
if (isCompensationBoundaryEvent(context.oldShape) &&
|
|
35169
|
+
if (isCompensationBoundaryEvent$1(context.oldShape) &&
|
|
35170
35170
|
newData.eventDefinitionType !== 'bpmn:CompensateEventDefinition' ||
|
|
35171
35171
|
newData.type !== 'bpmn:BoundaryEvent'
|
|
35172
35172
|
) {
|
|
@@ -35181,7 +35181,7 @@
|
|
|
35181
35181
|
|
|
35182
35182
|
// to compensate boundary event
|
|
35183
35183
|
else if (
|
|
35184
|
-
!isCompensationBoundaryEvent(context.oldShape) &&
|
|
35184
|
+
!isCompensationBoundaryEvent$1(context.oldShape) &&
|
|
35185
35185
|
newData.eventDefinitionType === 'bpmn:CompensateEventDefinition' &&
|
|
35186
35186
|
newData.type === 'bpmn:BoundaryEvent'
|
|
35187
35187
|
) {
|
|
@@ -35250,7 +35250,7 @@
|
|
|
35250
35250
|
|
|
35251
35251
|
function removeIncomingCompensationAssociations(element) {
|
|
35252
35252
|
const compensationAssociations = element.incoming.filter(
|
|
35253
|
-
connection => isCompensationBoundaryEvent(connection.source)
|
|
35253
|
+
connection => isCompensationBoundaryEvent$1(connection.source)
|
|
35254
35254
|
);
|
|
35255
35255
|
|
|
35256
35256
|
modeling.removeElements(compensationAssociations);
|
|
@@ -35280,7 +35280,7 @@
|
|
|
35280
35280
|
return bo && bo.get('isForCompensation');
|
|
35281
35281
|
}
|
|
35282
35282
|
|
|
35283
|
-
function isCompensationBoundaryEvent(element) {
|
|
35283
|
+
function isCompensationBoundaryEvent$1(element) {
|
|
35284
35284
|
return element && is$6(element, 'bpmn:BoundaryEvent') &&
|
|
35285
35285
|
hasEventDefinition$3(element, 'bpmn:CompensateEventDefinition');
|
|
35286
35286
|
}
|
|
@@ -66989,9 +66989,9 @@
|
|
|
66989
66989
|
]
|
|
66990
66990
|
};
|
|
66991
66991
|
|
|
66992
|
-
var n$2,l$3,u$2,i$3,o$3,r$1,f$2,e$3,c$1={},s$2=[],a$2=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,h$1=Array.isArray;function v$1(n,l){for(var u in l)n[u]=l[u];return n}function p$2(n){var l=n.parentNode;l&&l.removeChild(n);}function y$1(l,u,t){var i,o,r,f={};for(r in u)"key"==r?i=u[r]:"ref"==r?o=u[r]:f[r]=u[r];if(arguments.length>2&&(f.children=arguments.length>3?n$2.call(arguments,2):t),"function"==typeof l&&null!=l.defaultProps)for(r in l.defaultProps)void 0===f[r]&&(f[r]=l.defaultProps[r]);return d$1(l,f,i,o,null)}function d$1(n,t,i,o,r){var f={type:n,props:t,key:i,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==r?++u$2:r,__i:-1,__u:0};return null==r&&null!=l$3.vnode&&l$3.vnode(f),f}function _$2(){return {current:null}}function g$3(n){return n.children}function b$1(n,l){this.props=n,this.context=l;}function m$1(n,l){if(null==l)return n.__?m$1(n.__,n.__i+1):null;for(var u;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e)return u.__e;return "function"==typeof n.type?m$1(n):null}function k$2(n){var l,u;if(null!=(n=n.__)&&null!=n.__c){for(n.__e=n.__c.base=null,l=0;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e){n.__e=n.__c.base=u.__e;break}return k$2(n)}}function w$3(n){(!n.__d&&(n.__d=!0)&&i$3.push(n)&&!x$3.__r++||o$3!==l$3.debounceRendering)&&((o$3=l$3.debounceRendering)||r$1)(x$3);}function x$3(){var n,u,t,o,r,e,c,s,a;for(i$3.sort(f$2);n=i$3.shift();)n.__d&&(u=i$3.length,o=void 0,e=(r=(t=n).__v).__e,s=[],a=[],(c=t.__P)&&((o=v$1({},r)).__v=r.__v+1,l$3.vnode&&l$3.vnode(o),L$2(c,o,r,t.__n,void 0!==c.ownerSVGElement,32&r.__u?[e]:null,s,null==e?m$1(r):e,!!(32&r.__u),a),o.__.__k[o.__i]=o,M$1(s,o,a),o.__e!=e&&k$2(o)),i$3.length>u&&i$3.sort(f$2));x$3.__r=0;}function C$3(n,l,u,t,i,o,r,f,e,a,h){var v,p,y,d,_,g=t&&t.__k||s$2,b=l.length;for(u.__d=e,P$2(u,l,g),e=u.__d,v=0;v<b;v++)null!=(y=u.__k[v])&&"boolean"!=typeof y&&"function"!=typeof y&&(p=-1===y.__i?c$1:g[y.__i]||c$1,y.__i=v,L$2(n,y,p,i,o,r,f,e,a,h),d=y.__e,y.ref&&p.ref!=y.ref&&(p.ref&&z$3(p.ref,null,y),h.push(y.ref,y.__c||d,y)),null==_&&null!=d&&(_=d),65536&y.__u||p.__k===y.__k?e=S(y,e,n):"function"==typeof y.type&&void 0!==y.__d?e=y.__d:d&&(e=d.nextSibling),y.__d=void 0,y.__u&=-196609);u.__d=e,u.__e=_;}function P$2(n,l,u){var t,i,o,r,f,e=l.length,c=u.length,s=c,a=0;for(n.__k=[],t=0;t<e;t++)null!=(i=n.__k[t]=null==(i=l[t])||"boolean"==typeof i||"function"==typeof i?null:"string"==typeof i||"number"==typeof i||"bigint"==typeof i||i.constructor==String?d$1(null,i,null,null,i):h$1(i)?d$1(g$3,{children:i},null,null,null):void 0===i.constructor&&i.__b>0?d$1(i.type,i.props,i.key,i.ref?i.ref:null,i.__v):i)?(i.__=n,i.__b=n.__b+1,f=H$2(i,u,r=t+a,s),i.__i=f,o=null,-1!==f&&(s--,(o=u[f])&&(o.__u|=131072)),null==o||null===o.__v?(-1==f&&a--,"function"!=typeof i.type&&(i.__u|=65536)):f!==r&&(f===r+1?a++:f>r?s>e-r?a+=f-r:a--:a=f<r&&f==r-1?f-r:0,f!==t+a&&(i.__u|=65536))):(o=u[t])&&null==o.key&&o.__e&&(o.__e==n.__d&&(n.__d=m$1(o)),N$1(o,o,!1),u[t]=null,s--);if(s)for(t=0;t<c;t++)null!=(o=u[t])&&0==(131072&o.__u)&&(o.__e==n.__d&&(n.__d=m$1(o)),N$1(o,o));}function S(n,l,u){var t,i;if("function"==typeof n.type){for(t=n.__k,i=0;t&&i<t.length;i++)t[i]&&(t[i].__=n,l=S(t[i],l,u));return l}return n.__e!=l&&(u.insertBefore(n.__e,l||null),l=n.__e),l&&l.nextSibling}function $$1(n,l){return l=l||[],null==n||"boolean"==typeof n||(h$1(n)?n.some(function(n){$$1(n,l);}):l.push(n)),l}function H$2(n,l,u,t){var i=n.key,o=n.type,r=u-1,f=u+1,e=l[u];if(null===e||e&&i==e.key&&o===e.type)return u;if(t>(null!=e&&0==(131072&e.__u)?1:0))for(;r>=0||f<l.length;){if(r>=0){if((e=l[r])&&0==(131072&e.__u)&&i==e.key&&o===e.type)return r;r--;}if(f<l.length){if((e=l[f])&&0==(131072&e.__u)&&i==e.key&&o===e.type)return f;f++;}}return -1}function I$2(n,l,u){"-"===l[0]?n.setProperty(l,null==u?"":u):n[l]=null==u?"":"number"!=typeof u||a$2.test(l)?u:u+"px";}function T$3(n,l,u,t,i){var o;n:if("style"===l)if("string"==typeof u)n.style.cssText=u;else {if("string"==typeof t&&(n.style.cssText=t=""),t)for(l in t)u&&l in u||I$2(n.style,l,"");if(u)for(l in u)t&&u[l]===t[l]||I$2(n.style,l,u[l]);}else if("o"===l[0]&&"n"===l[1])o=l!==(l=l.replace(/(PointerCapture)$|Capture$/,"$1")),l=l.toLowerCase()in n?l.toLowerCase().slice(2):l.slice(2),n.l||(n.l={}),n.l[l+o]=u,u?t?u.u=t.u:(u.u=Date.now(),n.addEventListener(l,o?D$2:A$2,o)):n.removeEventListener(l,o?D$2:A$2,o);else {if(i)l=l.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==l&&"height"!==l&&"href"!==l&&"list"!==l&&"form"!==l&&"tabIndex"!==l&&"download"!==l&&"rowSpan"!==l&&"colSpan"!==l&&"role"!==l&&l in n)try{n[l]=null==u?"":u;break n}catch(n){}"function"==typeof u||(null==u||!1===u&&"-"!==l[4]?n.removeAttribute(l):n.setAttribute(l,u));}}function A$2(n){var u=this.l[n.type+!1];if(n.t){if(n.t<=u.u)return}else n.t=Date.now();return u(l$3.event?l$3.event(n):n)}function D$2(n){return this.l[n.type+!0](l$3.event?l$3.event(n):n)}function L$2(n,u,t,i,o,r,f,e,c,s){var a,p,y,d,_,m,k,w,x,P,S,$,H,I,T,A=u.type;if(void 0!==u.constructor)return null;128&t.__u&&(c=!!(32&t.__u),r=[e=u.__e=t.__e]),(a=l$3.__b)&&a(u);n:if("function"==typeof A)try{if(w=u.props,x=(a=A.contextType)&&i[a.__c],P=a?x?x.props.value:a.__:i,t.__c?k=(p=u.__c=t.__c).__=p.__E:("prototype"in A&&A.prototype.render?u.__c=p=new A(w,P):(u.__c=p=new b$1(w,P),p.constructor=A,p.render=O$1),x&&x.sub(p),p.props=w,p.state||(p.state={}),p.context=P,p.__n=i,y=p.__d=!0,p.__h=[],p._sb=[]),null==p.__s&&(p.__s=p.state),null!=A.getDerivedStateFromProps&&(p.__s==p.state&&(p.__s=v$1({},p.__s)),v$1(p.__s,A.getDerivedStateFromProps(w,p.__s))),d=p.props,_=p.state,p.__v=u,y)null==A.getDerivedStateFromProps&&null!=p.componentWillMount&&p.componentWillMount(),null!=p.componentDidMount&&p.__h.push(p.componentDidMount);else {if(null==A.getDerivedStateFromProps&&w!==d&&null!=p.componentWillReceiveProps&&p.componentWillReceiveProps(w,P),!p.__e&&(null!=p.shouldComponentUpdate&&!1===p.shouldComponentUpdate(w,p.__s,P)||u.__v===t.__v)){for(u.__v!==t.__v&&(p.props=w,p.state=p.__s,p.__d=!1),u.__e=t.__e,u.__k=t.__k,u.__k.forEach(function(n){n&&(n.__=u);}),S=0;S<p._sb.length;S++)p.__h.push(p._sb[S]);p._sb=[],p.__h.length&&f.push(p);break n}null!=p.componentWillUpdate&&p.componentWillUpdate(w,p.__s,P),null!=p.componentDidUpdate&&p.__h.push(function(){p.componentDidUpdate(d,_,m);});}if(p.context=P,p.props=w,p.__P=n,p.__e=!1,$=l$3.__r,H=0,"prototype"in A&&A.prototype.render){for(p.state=p.__s,p.__d=!1,$&&$(u),a=p.render(p.props,p.state,p.context),I=0;I<p._sb.length;I++)p.__h.push(p._sb[I]);p._sb=[];}else do{p.__d=!1,$&&$(u),a=p.render(p.props,p.state,p.context),p.state=p.__s;}while(p.__d&&++H<25);p.state=p.__s,null!=p.getChildContext&&(i=v$1(v$1({},i),p.getChildContext())),y||null==p.getSnapshotBeforeUpdate||(m=p.getSnapshotBeforeUpdate(d,_)),C$3(n,h$1(T=null!=a&&a.type===g$3&&null==a.key?a.props.children:a)?T:[T],u,t,i,o,r,f,e,c,s),p.base=u.__e,u.__u&=-161,p.__h.length&&f.push(p),k&&(p.__E=p.__=null);}catch(n){u.__v=null,c||null!=r?(u.__e=e,u.__u|=c?160:32,r[r.indexOf(e)]=null):(u.__e=t.__e,u.__k=t.__k),l$3.__e(n,u,t);}else null==r&&u.__v===t.__v?(u.__k=t.__k,u.__e=t.__e):u.__e=j$2(t.__e,u,t,i,o,r,f,c,s);(a=l$3.diffed)&&a(u);}function M$1(n,u,t){u.__d=void 0;for(var i=0;i<t.length;i++)z$3(t[i],t[++i],t[++i]);l$3.__c&&l$3.__c(u,n),n.some(function(u){try{n=u.__h,u.__h=[],n.some(function(n){n.call(u);});}catch(n){l$3.__e(n,u.__v);}});}function j$2(l,u,t,i,o,r,f,e,s){var a,v,y,d,_,g,b,k=t.props,w=u.props,x=u.type;if("svg"===x&&(o=!0),null!=r)for(a=0;a<r.length;a++)if((_=r[a])&&"setAttribute"in _==!!x&&(x?_.localName===x:3===_.nodeType)){l=_,r[a]=null;break}if(null==l){if(null===x)return document.createTextNode(w);l=o?document.createElementNS("http://www.w3.org/2000/svg",x):document.createElement(x,w.is&&w),r=null,e=!1;}if(null===x)k===w||e&&l.data===w||(l.data=w);else {if(r=r&&n$2.call(l.childNodes),k=t.props||c$1,!e&&null!=r)for(k={},a=0;a<l.attributes.length;a++)k[(_=l.attributes[a]).name]=_.value;for(a in k)_=k[a],"children"==a||("dangerouslySetInnerHTML"==a?y=_:"key"===a||a in w||T$3(l,a,null,_,o));for(a in w)_=w[a],"children"==a?d=_:"dangerouslySetInnerHTML"==a?v=_:"value"==a?g=_:"checked"==a?b=_:"key"===a||e&&"function"!=typeof _||k[a]===_||T$3(l,a,_,k[a],o);if(v)e||y&&(v.__html===y.__html||v.__html===l.innerHTML)||(l.innerHTML=v.__html),u.__k=[];else if(y&&(l.innerHTML=""),C$3(l,h$1(d)?d:[d],u,t,i,o&&"foreignObject"!==x,r,f,r?r[0]:t.__k&&m$1(t,0),e,s),null!=r)for(a=r.length;a--;)null!=r[a]&&p$2(r[a]);e||(a="value",void 0!==g&&(g!==l[a]||"progress"===x&&!g||"option"===x&&g!==k[a])&&T$3(l,a,g,k[a],!1),a="checked",void 0!==b&&b!==l[a]&&T$3(l,a,b,k[a],!1));}return l}function z$3(n,u,t){try{"function"==typeof n?n(u):n.current=u;}catch(n){l$3.__e(n,t);}}function N$1(n,u,t){var i,o;if(l$3.unmount&&l$3.unmount(n),(i=n.ref)&&(i.current&&i.current!==n.__e||z$3(i,null,u)),null!=(i=n.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount();}catch(n){l$3.__e(n,u);}i.base=i.__P=null,n.__c=void 0;}if(i=n.__k)for(o=0;o<i.length;o++)i[o]&&N$1(i[o],u,t||"function"!=typeof n.type);t||null==n.__e||p$2(n.__e),n.__=n.__e=n.__d=void 0;}function O$1(n,l,u){return this.constructor(n,u)}function q$2(u,t,i){var o,r,f,e;l$3.__&&l$3.__(u,t),r=(o="function"==typeof i)?null:i&&i.__k||t.__k,f=[],e=[],L$2(t,u=(!o&&i||t).__k=y$1(g$3,null,[u]),r||c$1,c$1,void 0!==t.ownerSVGElement,!o&&i?[i]:r?null:t.firstChild?n$2.call(t.childNodes):null,f,!o&&i?i:r?r.__e:t.firstChild,o,e),M$1(f,u,e);}function B$3(n,l){q$2(n,l,B$3);}function E$1(l,u,t){var i,o,r,f,e=v$1({},l.props);for(r in l.type&&l.type.defaultProps&&(f=l.type.defaultProps),u)"key"==r?i=u[r]:"ref"==r?o=u[r]:e[r]=void 0===u[r]&&void 0!==f?f[r]:u[r];return arguments.length>2&&(e.children=arguments.length>3?n$2.call(arguments,2):t),d$1(l.type,e,i||l.key,o||l.ref,null)}function F$3(n,l){var u={__c:l="__cC"+e$3++,__:n,Consumer:function(n,l){return n.children(l)},Provider:function(n){var u,t;return this.getChildContext||(u=[],(t={})[l]=this,this.getChildContext=function(){return t},this.shouldComponentUpdate=function(n){this.props.value!==n.value&&u.some(function(n){n.__e=!0,w$3(n);});},this.sub=function(n){u.push(n);var l=n.componentWillUnmount;n.componentWillUnmount=function(){u.splice(u.indexOf(n),1),l&&l.call(n);};}),n.children}};return u.Provider.__=u.Consumer.contextType=u}n$2=s$2.slice,l$3={__e:function(n,l,u,t){for(var i,o,r;l=l.__;)if((i=l.__c)&&!i.__)try{if((o=i.constructor)&&null!=o.getDerivedStateFromError&&(i.setState(o.getDerivedStateFromError(n)),r=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(n,t||{}),r=i.__d),r)return i.__E=i}catch(l){n=l;}throw n}},u$2=0,b$1.prototype.setState=function(n,l){var u;u=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=v$1({},this.state),"function"==typeof n&&(n=n(v$1({},u),this.props)),n&&v$1(u,n),null!=n&&this.__v&&(l&&this._sb.push(l),w$3(this));},b$1.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),w$3(this));},b$1.prototype.render=g$3,i$3=[],r$1="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,f$2=function(n,l){return n.__v.__b-l.__v.__b},x$3.__r=0,e$3=0;
|
|
66992
|
+
var n$2,l$3,u$2,i$4,o$3,r$1,f$2,e$3,c$1={},s$2=[],a$2=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,h$1=Array.isArray;function v$1(n,l){for(var u in l)n[u]=l[u];return n}function p$2(n){var l=n.parentNode;l&&l.removeChild(n);}function y$1(l,u,t){var i,o,r,f={};for(r in u)"key"==r?i=u[r]:"ref"==r?o=u[r]:f[r]=u[r];if(arguments.length>2&&(f.children=arguments.length>3?n$2.call(arguments,2):t),"function"==typeof l&&null!=l.defaultProps)for(r in l.defaultProps)void 0===f[r]&&(f[r]=l.defaultProps[r]);return d$1(l,f,i,o,null)}function d$1(n,t,i,o,r){var f={type:n,props:t,key:i,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==r?++u$2:r,__i:-1,__u:0};return null==r&&null!=l$3.vnode&&l$3.vnode(f),f}function _$2(){return {current:null}}function g$3(n){return n.children}function b$1(n,l){this.props=n,this.context=l;}function m$1(n,l){if(null==l)return n.__?m$1(n.__,n.__i+1):null;for(var u;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e)return u.__e;return "function"==typeof n.type?m$1(n):null}function k$2(n){var l,u;if(null!=(n=n.__)&&null!=n.__c){for(n.__e=n.__c.base=null,l=0;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e){n.__e=n.__c.base=u.__e;break}return k$2(n)}}function w$3(n){(!n.__d&&(n.__d=!0)&&i$4.push(n)&&!x$3.__r++||o$3!==l$3.debounceRendering)&&((o$3=l$3.debounceRendering)||r$1)(x$3);}function x$3(){var n,u,t,o,r,e,c,s,a;for(i$4.sort(f$2);n=i$4.shift();)n.__d&&(u=i$4.length,o=void 0,e=(r=(t=n).__v).__e,s=[],a=[],(c=t.__P)&&((o=v$1({},r)).__v=r.__v+1,l$3.vnode&&l$3.vnode(o),L$2(c,o,r,t.__n,void 0!==c.ownerSVGElement,32&r.__u?[e]:null,s,null==e?m$1(r):e,!!(32&r.__u),a),o.__.__k[o.__i]=o,M$1(s,o,a),o.__e!=e&&k$2(o)),i$4.length>u&&i$4.sort(f$2));x$3.__r=0;}function C$3(n,l,u,t,i,o,r,f,e,a,h){var v,p,y,d,_,g=t&&t.__k||s$2,b=l.length;for(u.__d=e,P$2(u,l,g),e=u.__d,v=0;v<b;v++)null!=(y=u.__k[v])&&"boolean"!=typeof y&&"function"!=typeof y&&(p=-1===y.__i?c$1:g[y.__i]||c$1,y.__i=v,L$2(n,y,p,i,o,r,f,e,a,h),d=y.__e,y.ref&&p.ref!=y.ref&&(p.ref&&z$3(p.ref,null,y),h.push(y.ref,y.__c||d,y)),null==_&&null!=d&&(_=d),65536&y.__u||p.__k===y.__k?e=S(y,e,n):"function"==typeof y.type&&void 0!==y.__d?e=y.__d:d&&(e=d.nextSibling),y.__d=void 0,y.__u&=-196609);u.__d=e,u.__e=_;}function P$2(n,l,u){var t,i,o,r,f,e=l.length,c=u.length,s=c,a=0;for(n.__k=[],t=0;t<e;t++)null!=(i=n.__k[t]=null==(i=l[t])||"boolean"==typeof i||"function"==typeof i?null:"string"==typeof i||"number"==typeof i||"bigint"==typeof i||i.constructor==String?d$1(null,i,null,null,i):h$1(i)?d$1(g$3,{children:i},null,null,null):void 0===i.constructor&&i.__b>0?d$1(i.type,i.props,i.key,i.ref?i.ref:null,i.__v):i)?(i.__=n,i.__b=n.__b+1,f=H$2(i,u,r=t+a,s),i.__i=f,o=null,-1!==f&&(s--,(o=u[f])&&(o.__u|=131072)),null==o||null===o.__v?(-1==f&&a--,"function"!=typeof i.type&&(i.__u|=65536)):f!==r&&(f===r+1?a++:f>r?s>e-r?a+=f-r:a--:a=f<r&&f==r-1?f-r:0,f!==t+a&&(i.__u|=65536))):(o=u[t])&&null==o.key&&o.__e&&(o.__e==n.__d&&(n.__d=m$1(o)),N$1(o,o,!1),u[t]=null,s--);if(s)for(t=0;t<c;t++)null!=(o=u[t])&&0==(131072&o.__u)&&(o.__e==n.__d&&(n.__d=m$1(o)),N$1(o,o));}function S(n,l,u){var t,i;if("function"==typeof n.type){for(t=n.__k,i=0;t&&i<t.length;i++)t[i]&&(t[i].__=n,l=S(t[i],l,u));return l}return n.__e!=l&&(u.insertBefore(n.__e,l||null),l=n.__e),l&&l.nextSibling}function $$1(n,l){return l=l||[],null==n||"boolean"==typeof n||(h$1(n)?n.some(function(n){$$1(n,l);}):l.push(n)),l}function H$2(n,l,u,t){var i=n.key,o=n.type,r=u-1,f=u+1,e=l[u];if(null===e||e&&i==e.key&&o===e.type)return u;if(t>(null!=e&&0==(131072&e.__u)?1:0))for(;r>=0||f<l.length;){if(r>=0){if((e=l[r])&&0==(131072&e.__u)&&i==e.key&&o===e.type)return r;r--;}if(f<l.length){if((e=l[f])&&0==(131072&e.__u)&&i==e.key&&o===e.type)return f;f++;}}return -1}function I$2(n,l,u){"-"===l[0]?n.setProperty(l,null==u?"":u):n[l]=null==u?"":"number"!=typeof u||a$2.test(l)?u:u+"px";}function T$3(n,l,u,t,i){var o;n:if("style"===l)if("string"==typeof u)n.style.cssText=u;else {if("string"==typeof t&&(n.style.cssText=t=""),t)for(l in t)u&&l in u||I$2(n.style,l,"");if(u)for(l in u)t&&u[l]===t[l]||I$2(n.style,l,u[l]);}else if("o"===l[0]&&"n"===l[1])o=l!==(l=l.replace(/(PointerCapture)$|Capture$/,"$1")),l=l.toLowerCase()in n?l.toLowerCase().slice(2):l.slice(2),n.l||(n.l={}),n.l[l+o]=u,u?t?u.u=t.u:(u.u=Date.now(),n.addEventListener(l,o?D$2:A$2,o)):n.removeEventListener(l,o?D$2:A$2,o);else {if(i)l=l.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==l&&"height"!==l&&"href"!==l&&"list"!==l&&"form"!==l&&"tabIndex"!==l&&"download"!==l&&"rowSpan"!==l&&"colSpan"!==l&&"role"!==l&&l in n)try{n[l]=null==u?"":u;break n}catch(n){}"function"==typeof u||(null==u||!1===u&&"-"!==l[4]?n.removeAttribute(l):n.setAttribute(l,u));}}function A$2(n){var u=this.l[n.type+!1];if(n.t){if(n.t<=u.u)return}else n.t=Date.now();return u(l$3.event?l$3.event(n):n)}function D$2(n){return this.l[n.type+!0](l$3.event?l$3.event(n):n)}function L$2(n,u,t,i,o,r,f,e,c,s){var a,p,y,d,_,m,k,w,x,P,S,$,H,I,T,A=u.type;if(void 0!==u.constructor)return null;128&t.__u&&(c=!!(32&t.__u),r=[e=u.__e=t.__e]),(a=l$3.__b)&&a(u);n:if("function"==typeof A)try{if(w=u.props,x=(a=A.contextType)&&i[a.__c],P=a?x?x.props.value:a.__:i,t.__c?k=(p=u.__c=t.__c).__=p.__E:("prototype"in A&&A.prototype.render?u.__c=p=new A(w,P):(u.__c=p=new b$1(w,P),p.constructor=A,p.render=O$1),x&&x.sub(p),p.props=w,p.state||(p.state={}),p.context=P,p.__n=i,y=p.__d=!0,p.__h=[],p._sb=[]),null==p.__s&&(p.__s=p.state),null!=A.getDerivedStateFromProps&&(p.__s==p.state&&(p.__s=v$1({},p.__s)),v$1(p.__s,A.getDerivedStateFromProps(w,p.__s))),d=p.props,_=p.state,p.__v=u,y)null==A.getDerivedStateFromProps&&null!=p.componentWillMount&&p.componentWillMount(),null!=p.componentDidMount&&p.__h.push(p.componentDidMount);else {if(null==A.getDerivedStateFromProps&&w!==d&&null!=p.componentWillReceiveProps&&p.componentWillReceiveProps(w,P),!p.__e&&(null!=p.shouldComponentUpdate&&!1===p.shouldComponentUpdate(w,p.__s,P)||u.__v===t.__v)){for(u.__v!==t.__v&&(p.props=w,p.state=p.__s,p.__d=!1),u.__e=t.__e,u.__k=t.__k,u.__k.forEach(function(n){n&&(n.__=u);}),S=0;S<p._sb.length;S++)p.__h.push(p._sb[S]);p._sb=[],p.__h.length&&f.push(p);break n}null!=p.componentWillUpdate&&p.componentWillUpdate(w,p.__s,P),null!=p.componentDidUpdate&&p.__h.push(function(){p.componentDidUpdate(d,_,m);});}if(p.context=P,p.props=w,p.__P=n,p.__e=!1,$=l$3.__r,H=0,"prototype"in A&&A.prototype.render){for(p.state=p.__s,p.__d=!1,$&&$(u),a=p.render(p.props,p.state,p.context),I=0;I<p._sb.length;I++)p.__h.push(p._sb[I]);p._sb=[];}else do{p.__d=!1,$&&$(u),a=p.render(p.props,p.state,p.context),p.state=p.__s;}while(p.__d&&++H<25);p.state=p.__s,null!=p.getChildContext&&(i=v$1(v$1({},i),p.getChildContext())),y||null==p.getSnapshotBeforeUpdate||(m=p.getSnapshotBeforeUpdate(d,_)),C$3(n,h$1(T=null!=a&&a.type===g$3&&null==a.key?a.props.children:a)?T:[T],u,t,i,o,r,f,e,c,s),p.base=u.__e,u.__u&=-161,p.__h.length&&f.push(p),k&&(p.__E=p.__=null);}catch(n){u.__v=null,c||null!=r?(u.__e=e,u.__u|=c?160:32,r[r.indexOf(e)]=null):(u.__e=t.__e,u.__k=t.__k),l$3.__e(n,u,t);}else null==r&&u.__v===t.__v?(u.__k=t.__k,u.__e=t.__e):u.__e=j$2(t.__e,u,t,i,o,r,f,c,s);(a=l$3.diffed)&&a(u);}function M$1(n,u,t){u.__d=void 0;for(var i=0;i<t.length;i++)z$3(t[i],t[++i],t[++i]);l$3.__c&&l$3.__c(u,n),n.some(function(u){try{n=u.__h,u.__h=[],n.some(function(n){n.call(u);});}catch(n){l$3.__e(n,u.__v);}});}function j$2(l,u,t,i,o,r,f,e,s){var a,v,y,d,_,g,b,k=t.props,w=u.props,x=u.type;if("svg"===x&&(o=!0),null!=r)for(a=0;a<r.length;a++)if((_=r[a])&&"setAttribute"in _==!!x&&(x?_.localName===x:3===_.nodeType)){l=_,r[a]=null;break}if(null==l){if(null===x)return document.createTextNode(w);l=o?document.createElementNS("http://www.w3.org/2000/svg",x):document.createElement(x,w.is&&w),r=null,e=!1;}if(null===x)k===w||e&&l.data===w||(l.data=w);else {if(r=r&&n$2.call(l.childNodes),k=t.props||c$1,!e&&null!=r)for(k={},a=0;a<l.attributes.length;a++)k[(_=l.attributes[a]).name]=_.value;for(a in k)_=k[a],"children"==a||("dangerouslySetInnerHTML"==a?y=_:"key"===a||a in w||T$3(l,a,null,_,o));for(a in w)_=w[a],"children"==a?d=_:"dangerouslySetInnerHTML"==a?v=_:"value"==a?g=_:"checked"==a?b=_:"key"===a||e&&"function"!=typeof _||k[a]===_||T$3(l,a,_,k[a],o);if(v)e||y&&(v.__html===y.__html||v.__html===l.innerHTML)||(l.innerHTML=v.__html),u.__k=[];else if(y&&(l.innerHTML=""),C$3(l,h$1(d)?d:[d],u,t,i,o&&"foreignObject"!==x,r,f,r?r[0]:t.__k&&m$1(t,0),e,s),null!=r)for(a=r.length;a--;)null!=r[a]&&p$2(r[a]);e||(a="value",void 0!==g&&(g!==l[a]||"progress"===x&&!g||"option"===x&&g!==k[a])&&T$3(l,a,g,k[a],!1),a="checked",void 0!==b&&b!==l[a]&&T$3(l,a,b,k[a],!1));}return l}function z$3(n,u,t){try{"function"==typeof n?n(u):n.current=u;}catch(n){l$3.__e(n,t);}}function N$1(n,u,t){var i,o;if(l$3.unmount&&l$3.unmount(n),(i=n.ref)&&(i.current&&i.current!==n.__e||z$3(i,null,u)),null!=(i=n.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount();}catch(n){l$3.__e(n,u);}i.base=i.__P=null,n.__c=void 0;}if(i=n.__k)for(o=0;o<i.length;o++)i[o]&&N$1(i[o],u,t||"function"!=typeof n.type);t||null==n.__e||p$2(n.__e),n.__=n.__e=n.__d=void 0;}function O$1(n,l,u){return this.constructor(n,u)}function q$2(u,t,i){var o,r,f,e;l$3.__&&l$3.__(u,t),r=(o="function"==typeof i)?null:i&&i.__k||t.__k,f=[],e=[],L$2(t,u=(!o&&i||t).__k=y$1(g$3,null,[u]),r||c$1,c$1,void 0!==t.ownerSVGElement,!o&&i?[i]:r?null:t.firstChild?n$2.call(t.childNodes):null,f,!o&&i?i:r?r.__e:t.firstChild,o,e),M$1(f,u,e);}function B$3(n,l){q$2(n,l,B$3);}function E$1(l,u,t){var i,o,r,f,e=v$1({},l.props);for(r in l.type&&l.type.defaultProps&&(f=l.type.defaultProps),u)"key"==r?i=u[r]:"ref"==r?o=u[r]:e[r]=void 0===u[r]&&void 0!==f?f[r]:u[r];return arguments.length>2&&(e.children=arguments.length>3?n$2.call(arguments,2):t),d$1(l.type,e,i||l.key,o||l.ref,null)}function F$3(n,l){var u={__c:l="__cC"+e$3++,__:n,Consumer:function(n,l){return n.children(l)},Provider:function(n){var u,t;return this.getChildContext||(u=[],(t={})[l]=this,this.getChildContext=function(){return t},this.shouldComponentUpdate=function(n){this.props.value!==n.value&&u.some(function(n){n.__e=!0,w$3(n);});},this.sub=function(n){u.push(n);var l=n.componentWillUnmount;n.componentWillUnmount=function(){u.splice(u.indexOf(n),1),l&&l.call(n);};}),n.children}};return u.Provider.__=u.Consumer.contextType=u}n$2=s$2.slice,l$3={__e:function(n,l,u,t){for(var i,o,r;l=l.__;)if((i=l.__c)&&!i.__)try{if((o=i.constructor)&&null!=o.getDerivedStateFromError&&(i.setState(o.getDerivedStateFromError(n)),r=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(n,t||{}),r=i.__d),r)return i.__E=i}catch(l){n=l;}throw n}},u$2=0,b$1.prototype.setState=function(n,l){var u;u=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=v$1({},this.state),"function"==typeof n&&(n=n(v$1({},u),this.props)),n&&v$1(u,n),null!=n&&this.__v&&(l&&this._sb.push(l),w$3(this));},b$1.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),w$3(this));},b$1.prototype.render=g$3,i$4=[],r$1="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,f$2=function(n,l){return n.__v.__b-l.__v.__b},x$3.__r=0,e$3=0;
|
|
66993
66993
|
|
|
66994
|
-
var t$1,r,u$1,i$
|
|
66994
|
+
var t$1,r,u$1,i$3,o$2=0,f$1=[],c=[],e$2=l$3.__b,a$1=l$3.__r,v=l$3.diffed,l$2=l$3.__c,m=l$3.unmount;function d(t,u){l$3.__h&&l$3.__h(r,t,o$2||u),o$2=0;var i=r.__H||(r.__H={__:[],__h:[]});return t>=i.__.length&&i.__.push({__V:c}),i.__[t]}function h(n){return o$2=1,s$1(B$2,n)}function s$1(n,u,i){var o=d(t$1++,2);if(o.t=n,!o.__c&&(o.__=[i?i(u):B$2(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,!r.u)){var f=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 !c||c.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)&&(!c||c.call(this,n,t,r))};r.u=!0;var c=r.shouldComponentUpdate,e=r.componentWillUpdate;r.componentWillUpdate=function(n,t,r){if(this.__e){var u=c;c=void 0,f(n,t,r),c=u;}e&&e.call(this,n,t,r);},r.shouldComponentUpdate=f;}return o.__N||o.__}function p$1(u,i){var o=d(t$1++,3);!l$3.__s&&z$2(o.__H,i)&&(o.__=u,o.i=i,r.__H.__h.push(o));}function y(u,i){var o=d(t$1++,4);!l$3.__s&&z$2(o.__H,i)&&(o.__=u,o.i=i,r.__h.push(o));}function _$1(n){return o$2=5,F$2(function(){return {current:n}},[])}function A$1(n,t,r){o$2=6,y(function(){return "function"==typeof n?(n(t()),function(){return n(null)}):n?(n.current=t(),function(){return n.current=null}):void 0},null==r?r:r.concat(n));}function F$2(n,r){var u=d(t$1++,7);return z$2(u.__H,r)?(u.__V=n(),u.i=r,u.__h=n,u.__V):u.__}function T$2(n,t){return o$2=8,F$2(function(){return n},t)}function q$1(n){var u=r.context[n.__c],i=d(t$1++,9);return i.c=n,u?(null==i.__&&(i.__=!0,u.sub(r)),u.props.value):n.__}function x$2(t,r){l$3.useDebugValue&&l$3.useDebugValue(r?r(t):t);}function V$2(){var n=d(t$1++,11);if(!n.__){for(var u=r.__v;null!==u&&!u.__m&&null!==u.__;)u=u.__;var i=u.__m||(u.__m=[0,0]);n.__="P"+i[0]+"-"+i[1]++;}return n.__}function b(){for(var t;t=f$1.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(k$1),t.__H.__h.forEach(w$2),t.__H.__h=[];}catch(r){t.__H.__h=[],l$3.__e(r,t.__v);}}l$3.__b=function(n){r=null,e$2&&e$2(n);},l$3.__r=function(n){a$1&&a$1(n),t$1=0;var i=(r=n.__c).__H;i&&(u$1===r?(i.__h=[],r.__h=[],i.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=c,n.__N=n.i=void 0;})):(i.__h.forEach(k$1),i.__h.forEach(w$2),i.__h=[],t$1=0)),u$1=r;},l$3.diffed=function(t){v&&v(t);var o=t.__c;o&&o.__H&&(o.__H.__h.length&&(1!==f$1.push(o)&&i$3===l$3.requestAnimationFrame||((i$3=l$3.requestAnimationFrame)||j$1)(b)),o.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==c&&(n.__=n.__V),n.i=void 0,n.__V=c;})),u$1=r=null;},l$3.__c=function(t,r){r.some(function(t){try{t.__h.forEach(k$1),t.__h=t.__h.filter(function(n){return !n.__||w$2(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&&m(t);var r,u=t.__c;u&&u.__H&&(u.__H.__.forEach(function(n){try{k$1(n);}catch(n){r=n;}}),u.__H=void 0,r&&l$3.__e(r,u.__v));};var g$2="function"==typeof requestAnimationFrame;function j$1(n){var t,r=function(){clearTimeout(u),g$2&&cancelAnimationFrame(t),setTimeout(n);},u=setTimeout(r,100);g$2&&(t=requestAnimationFrame(r));}function k$1(n){var t=r,u=n.__c;"function"==typeof u&&(n.__c=void 0,u()),r=t;}function w$2(n){var t=r;n.__c=n.__(),r=t;}function z$2(n,t){return !n||n.length!==t.length||t.some(function(t,r){return t!==n[r]})}function B$2(n,t){return "function"==typeof t?t(n):t}
|
|
66995
66995
|
|
|
66996
66996
|
function g$1(n,t){for(var e in t)n[e]=t[e];return n}function C$2(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 w$1(n,e){function r(n){var t=this.props.ref,r=t==n.ref;return !r&&t&&(t.call?t(null):t.current=null),e?!e(this.props,n)||!r:C$2(this.props,n)}function u(e){return this.shouldComponentUpdate=r,y$1(n,e)}return u.displayName="Memo("+(n.displayName||n.name)+")",u.prototype.isReactComponent=!0,u.__f=!0,u}(E.prototype=new b$1).isPureReactComponent=!0,E.prototype.shouldComponentUpdate=function(n,t){return C$2(this.props,n)||C$2(this.state,t)};var x$1=l$3.__b;l$3.__b=function(n){n.type&&n.type.__f&&n.ref&&(n.props.ref=n.ref,n.ref=null),x$1&&x$1(n);};var R="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function N(n){function t(t){var e=g$1({},t);return delete e.ref,n(e,t.ref||null)}return t.$$typeof=R,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(n.displayName||n.name)+")",t}var k=function(n,t){return null==n?null:$$1($$1(n).map(t))},A={map:k,forEach:k,count:function(n){return n?$$1(n).length:0},only:function(n){var t=$$1(n);if(1!==t.length)throw "Children.only";return t[0]},toArray:$$1},O=l$3.__e;l$3.__e=function(n,t,e,r){if(n.then)for(var u,o=t;o=o.__;)if((u=o.__c)&&u.__c)return null==t.__e&&(t.__e=e.__e,t.__k=e.__k),u.__c(n,t);O(n,t,e,r);};var T$1=l$3.unmount;function F$1(n,t,e){return n&&(n.__c&&n.__c.__H&&(n.__c.__H.__.forEach(function(n){"function"==typeof n.__c&&n.__c();}),n.__c.__H=null),null!=(n=g$1({},n)).__c&&(n.__c.__P===e&&(n.__c.__P=t),n.__c=null),n.__k=n.__k&&n.__k.map(function(n){return F$1(n,t,e)})),n}function I$1(n,t,e){return n&&e&&(n.__v=null,n.__k=n.__k&&n.__k.map(function(n){return I$1(n,t,e)}),n.__c&&n.__c.__P===t&&(n.__e&&e.appendChild(n.__e),n.__c.__e=!0,n.__c.__P=e)),n}function L$1(){this.__u=0,this.t=null,this.__b=null;}function U$1(n){var t=n.__.__c;return t&&t.__a&&t.__a(n)}function D$1(n){var e,r,u;function o(o){if(e||(e=n()).then(function(n){r=n.default||n;},function(n){u=n;}),u)throw u;if(!r)throw e;return y$1(r,o)}return o.displayName="Lazy",o.__f=!0,o}function M(){this.u=null,this.o=null;}l$3.unmount=function(n){var t=n.__c;t&&t.__R&&t.__R(),t&&32&n.__u&&(n.type=null),T$1&&T$1(n);},(L$1.prototype=new b$1).__c=function(n,t){var e=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(e);var u=U$1(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.__a){var n=r.state.__a;r.__v.__k[0]=I$1(n,n.__c.__P,n.__c.__O);}var t;for(r.setState({__a:r.__b=null});t=r.t.pop();)t.forceUpdate();}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),n.then(i,i);},L$1.prototype.componentWillUnmount=function(){this.t=[];},L$1.prototype.render=function(n,e){if(this.__b){if(this.__v.__k){var r=document.createElement("div"),o=this.__v.__k[0].__c;this.__v.__k[0]=F$1(this.__b,r,o.__O=o.__P);}this.__b=null;}var i=e.__a&&y$1(g$3,null,n.fallback);return i&&(i.__u&=-33),[y$1(g$3,null,e.__a?null:n.children),i]};var V$1=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 W$1(n){return this.getChildContext=function(){return n.context},n.children}function P$1(n){var e=this,r=n.i;e.componentWillUnmount=function(){q$2(null,e.l),e.l=null,e.i=null;},e.i&&e.i!==r&&e.componentWillUnmount(),e.l||(e.i=r,e.l={nodeType:1,parentNode:r,childNodes:[],appendChild:function(n){this.childNodes.push(n),e.i.appendChild(n);},insertBefore:function(n,t){this.childNodes.push(n),e.i.appendChild(n);},removeChild:function(n){this.childNodes.splice(this.childNodes.indexOf(n)>>>1,1),e.i.removeChild(n);}}),q$2(y$1(W$1,{context:e.context},n.__v),e.l);}function j(n,e){var r=y$1(P$1,{__v:n,i:e});return r.containerInfo=e,r}(M.prototype=new b$1).__a=function(n){var t=this,e=U$1(t.__v),r=t.o.get(n);return r[0]++,function(u){var o=function(){t.props.revealOrder?(r.push(u),V$1(t,n,r)):u();};e?e(o):o();}},M.prototype.render=function(n){this.u=null,this.o=new Map;var t=$$1(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},M.prototype.componentDidUpdate=M.prototype.componentDidMount=function(){var n=this;this.o.forEach(function(t,e){V$1(n,e,t);});};var z$1="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,B$1=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,H$1=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Z$1=/[A-Z0-9]/g,Y="undefined"!=typeof document,$=function(n){return ("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(n)};function q(n,t,e){return null==t.__k&&(t.textContent=""),q$2(n,t),"function"==typeof e&&e(),n?n.__c:null}function G$1(n,t,e){return B$3(n,t),"function"==typeof e&&e(),n?n.__c:null}b$1.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(t){Object.defineProperty(b$1.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(n){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:n});}});});var J$1=l$3.event;function K$1(){}function Q$1(){return this.cancelBubble}function X(){return this.defaultPrevented}l$3.event=function(n){return J$1&&(n=J$1(n)),n.persist=K$1,n.isPropagationStopped=Q$1,n.isDefaultPrevented=X,n.nativeEvent=n};var nn$1,tn$1={enumerable:!1,configurable:!0,get:function(){return this.class}},en$1=l$3.vnode;l$3.vnode=function(n){"string"==typeof n.type&&function(n){var t=n.props,e=n.type,u={};for(var o in t){var i=t[o];if(!("value"===o&&"defaultValue"in t&&null==i||Y&&"children"===o&&"noscript"===e||"class"===o||"className"===o)){var l=o.toLowerCase();"defaultValue"===o&&"value"in t&&null==t.value?o="value":"download"===o&&!0===i?i="":"ondoubleclick"===l?o="ondblclick":"onchange"!==l||"input"!==e&&"textarea"!==e||$(t.type)?"onfocus"===l?o="onfocusin":"onblur"===l?o="onfocusout":H$1.test(o)?o=l:-1===e.indexOf("-")&&B$1.test(o)?o=o.replace(Z$1,"-$&").toLowerCase():null===i&&(i=void 0):l=o="oninput","oninput"===l&&u[o=l]&&(o="oninputCapture"),u[o]=i;}}"select"==e&&u.multiple&&Array.isArray(u.value)&&(u.value=$$1(t.children).forEach(function(n){n.props.selected=-1!=u.value.indexOf(n.props.value);})),"select"==e&&null!=u.defaultValue&&(u.value=$$1(t.children).forEach(function(n){n.props.selected=u.multiple?-1!=u.defaultValue.indexOf(n.props.value):u.defaultValue==n.props.value;})),t.class&&!t.className?(u.class=t.class,Object.defineProperty(u,"className",tn$1)):(t.className&&!t.class||t.class&&t.className)&&(u.class=u.className=t.className),n.props=u;}(n),n.$$typeof=z$1,en$1&&en$1(n);};var rn=l$3.__r;l$3.__r=function(n){rn&&rn(n),nn$1=n.__c;};var un=l$3.diffed;l$3.diffed=function(n){un&&un(n);var t=n.props,e=n.__e;null!=e&&"textarea"===n.type&&"value"in t&&t.value!==e.value&&(e.value=null==t.value?"":t.value),nn$1=null;};var on={ReactCurrentDispatcher:{current:{readContext:function(n){return nn$1.__n[n.__c].props.value}}}};function cn(n){return y$1.bind(null,n)}function fn$1(n){return !!n&&n.$$typeof===z$1}function an(n){return fn$1(n)&&n.type===g$3}function sn(n){return fn$1(n)?E$1.apply(null,arguments):n}function hn(n){return !!n.__k&&(q$2(null,n),!0)}function vn(n){return n&&(n.base||1===n.nodeType&&n)||null}var dn=function(n,t){return n(t)},pn=function(n,t){return n(t)},mn=g$3;function yn(n){n();}function _n(n){return n}function bn(){return [!1,yn]}var Sn=y,gn=fn$1;function Cn(n,t){var e=t(),r=h({h:{__:e,v:t}}),u=r[0].h,o=r[1];return y(function(){u.__=e,u.v=t,En(u)&&o({h:u});},[n,e,t]),p$1(function(){return En(u)&&o({h:u}),n(function(){En(u)&&o({h:u});})},[n]),e}function En(n){var t,e,r=n.v,u=n.__;try{var o=r();return !((t=u)===(e=o)&&(0!==t||1/t==1/e)||t!=t&&e!=e)}catch(n){return !0}}var wn={useState:h,useId:V$2,useReducer:s$1,useEffect:p$1,useLayoutEffect:y,useInsertionEffect:Sn,useTransition:bn,useDeferredValue:_n,useSyncExternalStore:Cn,startTransition:yn,useRef:_$1,useImperativeHandle:A$1,useMemo:F$2,useCallback:T$2,useContext:q$1,useDebugValue:x$2,version:"17.0.2",Children:A,render:q,hydrate:G$1,unmountComponentAtNode:hn,createPortal:j,createElement:y$1,createContext:F$3,createFactory:cn,cloneElement:sn,createRef:_$2,Fragment:g$3,isValidElement:fn$1,isElement:gn,isFragment:an,findDOMNode:vn,Component:b$1,PureComponent:E,memo:w$1,forwardRef:N,flushSync:pn,unstable_batchedUpdates:dn,StrictMode:mn,Suspense:L$1,SuspenseList:M,lazy:D$1,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:on};
|
|
66997
66997
|
|
|
@@ -86961,15 +86961,15 @@
|
|
|
86961
86961
|
var ie$1 = typeof navigator != "undefined" && /MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);
|
|
86962
86962
|
|
|
86963
86963
|
// Fill in the digit keys
|
|
86964
|
-
for (var i$
|
|
86964
|
+
for (var i$2 = 0; i$2 < 10; i$2++) base[48 + i$2] = base[96 + i$2] = String(i$2);
|
|
86965
86965
|
|
|
86966
86966
|
// The function keys
|
|
86967
|
-
for (var i$
|
|
86967
|
+
for (var i$2 = 1; i$2 <= 24; i$2++) base[i$2 + 111] = "F" + i$2;
|
|
86968
86968
|
|
|
86969
86969
|
// And the alphabetic keys
|
|
86970
|
-
for (var i$
|
|
86971
|
-
base[i$
|
|
86972
|
-
shift[i$
|
|
86970
|
+
for (var i$2 = 65; i$2 <= 90; i$2++) {
|
|
86971
|
+
base[i$2] = String.fromCharCode(i$2 + 32);
|
|
86972
|
+
shift[i$2] = String.fromCharCode(i$2);
|
|
86973
86973
|
}
|
|
86974
86974
|
|
|
86975
86975
|
// For each code that doesn't have a shift-equivalent, copy the base name
|
|
@@ -115926,13 +115926,13 @@
|
|
|
115926
115926
|
return escalationEventDefinition && escalationEventDefinition.get('escalationRef');
|
|
115927
115927
|
}
|
|
115928
115928
|
function isCompensationSupported(element) {
|
|
115929
|
-
return isAny$1(element, ['bpmn:EndEvent', 'bpmn:IntermediateThrowEvent']) && !!getCompensateEventDefinition(element);
|
|
115929
|
+
return isAny$1(element, ['bpmn:EndEvent', 'bpmn:IntermediateThrowEvent']) && !!getCompensateEventDefinition$1(element);
|
|
115930
115930
|
}
|
|
115931
|
-
function getCompensateEventDefinition(element) {
|
|
115931
|
+
function getCompensateEventDefinition$1(element) {
|
|
115932
115932
|
return getEventDefinition$1(element, 'bpmn:CompensateEventDefinition');
|
|
115933
115933
|
}
|
|
115934
115934
|
function getCompensateActivity(element) {
|
|
115935
|
-
const compensateEventDefinition = getCompensateEventDefinition(element);
|
|
115935
|
+
const compensateEventDefinition = getCompensateEventDefinition$1(element);
|
|
115936
115936
|
return compensateEventDefinition && compensateEventDefinition.get('activityRef');
|
|
115937
115937
|
}
|
|
115938
115938
|
|
|
@@ -115966,7 +115966,7 @@
|
|
|
115966
115966
|
} = props;
|
|
115967
115967
|
const commandStack = useService$1('commandStack');
|
|
115968
115968
|
const translate = useService$1('translate');
|
|
115969
|
-
const compensateEventDefinition = getCompensateEventDefinition(element);
|
|
115969
|
+
const compensateEventDefinition = getCompensateEventDefinition$1(element);
|
|
115970
115970
|
const getValue = () => {
|
|
115971
115971
|
return compensateEventDefinition.get('waitForCompletion');
|
|
115972
115972
|
};
|
|
@@ -115994,7 +115994,7 @@
|
|
|
115994
115994
|
const commandStack = useService$1('commandStack');
|
|
115995
115995
|
const elementRegistry = useService$1('elementRegistry');
|
|
115996
115996
|
const translate = useService$1('translate');
|
|
115997
|
-
const compensateEventDefinition = getCompensateEventDefinition(element);
|
|
115997
|
+
const compensateEventDefinition = getCompensateEventDefinition$1(element);
|
|
115998
115998
|
const getValue = () => {
|
|
115999
115999
|
const activityRef = getCompensateActivity(element);
|
|
116000
116000
|
return activityRef && activityRef.get('id');
|
|
@@ -116066,7 +116066,7 @@
|
|
|
116066
116066
|
const {
|
|
116067
116067
|
attachedToRef
|
|
116068
116068
|
} = boundaryEvent;
|
|
116069
|
-
const compensateEventDefinition = getCompensateEventDefinition(boundaryEvent);
|
|
116069
|
+
const compensateEventDefinition = getCompensateEventDefinition$1(boundaryEvent);
|
|
116070
116070
|
return attachedToRef && compensateEventDefinition && attachedToRef.id === activityId;
|
|
116071
116071
|
});
|
|
116072
116072
|
}
|
|
@@ -117622,6 +117622,9 @@
|
|
|
117622
117622
|
return sortBy$1(elements, e => (e.name || '').toLowerCase());
|
|
117623
117623
|
}
|
|
117624
117624
|
|
|
117625
|
+
function getErrorEventDefinition$2(element) {
|
|
117626
|
+
return getEventDefinition$3(element, 'bpmn:ErrorEventDefinition');
|
|
117627
|
+
}
|
|
117625
117628
|
function isTimerSupported(element) {
|
|
117626
117629
|
return isAny$1(element, ['bpmn:StartEvent', 'bpmn:IntermediateCatchEvent', 'bpmn:BoundaryEvent']) && !!getTimerEventDefinition$1(element);
|
|
117627
117630
|
}
|
|
@@ -117670,6 +117673,9 @@
|
|
|
117670
117673
|
const signalEventDefinition = getSignalEventDefinition(element);
|
|
117671
117674
|
return signalEventDefinition && signalEventDefinition.get('signalRef');
|
|
117672
117675
|
}
|
|
117676
|
+
function getCompensateEventDefinition(element) {
|
|
117677
|
+
return getEventDefinition$3(element, 'bpmn:CompensateEventDefinition');
|
|
117678
|
+
}
|
|
117673
117679
|
|
|
117674
117680
|
function TimerProps$2(props) {
|
|
117675
117681
|
const {
|
|
@@ -119051,6 +119057,307 @@
|
|
|
119051
119057
|
});
|
|
119052
119058
|
}
|
|
119053
119059
|
|
|
119060
|
+
const EVENT_TO_LABEL$1 = {
|
|
119061
|
+
'start': 'Start',
|
|
119062
|
+
'end': 'End'
|
|
119063
|
+
};
|
|
119064
|
+
function ExecutionListenerEntries(props) {
|
|
119065
|
+
const {
|
|
119066
|
+
element,
|
|
119067
|
+
idPrefix,
|
|
119068
|
+
listener
|
|
119069
|
+
} = props;
|
|
119070
|
+
const eventTypes = getEventTypes(element);
|
|
119071
|
+
const entries = eventTypes.length > 1 ? [{
|
|
119072
|
+
id: idPrefix + '-eventType',
|
|
119073
|
+
component: EventType$1,
|
|
119074
|
+
idPrefix,
|
|
119075
|
+
listener,
|
|
119076
|
+
eventTypes
|
|
119077
|
+
}] : [];
|
|
119078
|
+
entries.push({
|
|
119079
|
+
id: idPrefix + '-listenerType',
|
|
119080
|
+
component: ListenerType$1,
|
|
119081
|
+
idPrefix,
|
|
119082
|
+
listener
|
|
119083
|
+
}, {
|
|
119084
|
+
id: idPrefix + '-retries',
|
|
119085
|
+
component: Retries,
|
|
119086
|
+
idPrefix,
|
|
119087
|
+
listener
|
|
119088
|
+
});
|
|
119089
|
+
return entries;
|
|
119090
|
+
}
|
|
119091
|
+
function EventType$1(props) {
|
|
119092
|
+
const {
|
|
119093
|
+
idPrefix,
|
|
119094
|
+
element,
|
|
119095
|
+
listener,
|
|
119096
|
+
eventTypes
|
|
119097
|
+
} = props;
|
|
119098
|
+
const modeling = useService$1('modeling');
|
|
119099
|
+
const translate = useService$1('translate');
|
|
119100
|
+
const getOptions = () => {
|
|
119101
|
+
return eventTypes.map(eventType => ({
|
|
119102
|
+
value: eventType,
|
|
119103
|
+
label: translate(EVENT_TO_LABEL$1[eventType])
|
|
119104
|
+
}));
|
|
119105
|
+
};
|
|
119106
|
+
const setValue = value => {
|
|
119107
|
+
modeling.updateModdleProperties(element, listener, {
|
|
119108
|
+
eventType: value
|
|
119109
|
+
});
|
|
119110
|
+
};
|
|
119111
|
+
const getValue = () => {
|
|
119112
|
+
return listener.get('eventType');
|
|
119113
|
+
};
|
|
119114
|
+
return SelectEntry({
|
|
119115
|
+
element,
|
|
119116
|
+
id: idPrefix + '-eventType',
|
|
119117
|
+
label: translate('Event type'),
|
|
119118
|
+
getValue,
|
|
119119
|
+
setValue,
|
|
119120
|
+
getOptions
|
|
119121
|
+
});
|
|
119122
|
+
}
|
|
119123
|
+
function ListenerType$1(props) {
|
|
119124
|
+
const {
|
|
119125
|
+
idPrefix,
|
|
119126
|
+
element,
|
|
119127
|
+
listener
|
|
119128
|
+
} = props;
|
|
119129
|
+
const modeling = useService$1('modeling');
|
|
119130
|
+
const translate = useService$1('translate');
|
|
119131
|
+
const debounce = useService$1('debounceInput');
|
|
119132
|
+
const setValue = value => {
|
|
119133
|
+
modeling.updateModdleProperties(element, listener, {
|
|
119134
|
+
type: value
|
|
119135
|
+
});
|
|
119136
|
+
};
|
|
119137
|
+
const getValue = () => {
|
|
119138
|
+
return listener.get('type');
|
|
119139
|
+
};
|
|
119140
|
+
return FeelEntryWithVariableContext$1({
|
|
119141
|
+
element,
|
|
119142
|
+
id: idPrefix + '-listenerType',
|
|
119143
|
+
label: translate('Listener type'),
|
|
119144
|
+
getValue,
|
|
119145
|
+
setValue,
|
|
119146
|
+
debounce,
|
|
119147
|
+
feel: 'optional'
|
|
119148
|
+
});
|
|
119149
|
+
}
|
|
119150
|
+
function Retries(props) {
|
|
119151
|
+
const {
|
|
119152
|
+
idPrefix,
|
|
119153
|
+
element,
|
|
119154
|
+
listener
|
|
119155
|
+
} = props;
|
|
119156
|
+
const modeling = useService$1('modeling');
|
|
119157
|
+
const translate = useService$1('translate');
|
|
119158
|
+
const debounce = useService$1('debounceInput');
|
|
119159
|
+
const setValue = value => {
|
|
119160
|
+
modeling.updateModdleProperties(element, listener, {
|
|
119161
|
+
retries: value
|
|
119162
|
+
});
|
|
119163
|
+
};
|
|
119164
|
+
const getValue = () => {
|
|
119165
|
+
return listener.get('retries');
|
|
119166
|
+
};
|
|
119167
|
+
return FeelEntryWithVariableContext$1({
|
|
119168
|
+
element,
|
|
119169
|
+
id: idPrefix + '-retries',
|
|
119170
|
+
label: translate('Retries'),
|
|
119171
|
+
getValue,
|
|
119172
|
+
setValue,
|
|
119173
|
+
debounce,
|
|
119174
|
+
feel: 'optional'
|
|
119175
|
+
});
|
|
119176
|
+
}
|
|
119177
|
+
function getEventTypes(element) {
|
|
119178
|
+
if (isAny$1(element, ['bpmn:BoundaryEvent', 'bpmn:StartEvent'])) {
|
|
119179
|
+
return ['end'];
|
|
119180
|
+
}
|
|
119181
|
+
if (is$6(element, 'bpmn:EndEvent') && getErrorEventDefinition$2(element)) {
|
|
119182
|
+
return ['start'];
|
|
119183
|
+
}
|
|
119184
|
+
if (is$6(element, 'bpmn:Gateway')) {
|
|
119185
|
+
return ['start'];
|
|
119186
|
+
}
|
|
119187
|
+
return ['start', 'end'];
|
|
119188
|
+
}
|
|
119189
|
+
|
|
119190
|
+
function ExecutionListenersProps({
|
|
119191
|
+
element,
|
|
119192
|
+
injector
|
|
119193
|
+
}) {
|
|
119194
|
+
let businessObject = getRelevantBusinessObject$1(element);
|
|
119195
|
+
|
|
119196
|
+
// not allowed in empty pools
|
|
119197
|
+
if (!businessObject) {
|
|
119198
|
+
return;
|
|
119199
|
+
}
|
|
119200
|
+
const moddle = injector.get('moddle');
|
|
119201
|
+
if (!canHaveExecutionListeners(businessObject, moddle)) {
|
|
119202
|
+
return;
|
|
119203
|
+
}
|
|
119204
|
+
const listeners = getListenersList(businessObject) || [];
|
|
119205
|
+
const bpmnFactory = injector.get('bpmnFactory'),
|
|
119206
|
+
commandStack = injector.get('commandStack'),
|
|
119207
|
+
modeling = injector.get('modeling'),
|
|
119208
|
+
translate = injector.get('translate');
|
|
119209
|
+
const items = listeners.map((listener, index) => {
|
|
119210
|
+
const id = element.id + '-executionListener-' + index;
|
|
119211
|
+
const type = listener.get('type') || '<no type>';
|
|
119212
|
+
return {
|
|
119213
|
+
id,
|
|
119214
|
+
label: translate(`${EVENT_TO_LABEL$1[listener.get('eventType')]}: {type}`, {
|
|
119215
|
+
type
|
|
119216
|
+
}),
|
|
119217
|
+
entries: ExecutionListenerEntries({
|
|
119218
|
+
idPrefix: id,
|
|
119219
|
+
element,
|
|
119220
|
+
listener
|
|
119221
|
+
}),
|
|
119222
|
+
autoFocusEntry: id + '-eventType',
|
|
119223
|
+
remove: removeFactory$d({
|
|
119224
|
+
modeling,
|
|
119225
|
+
element,
|
|
119226
|
+
listener
|
|
119227
|
+
})
|
|
119228
|
+
};
|
|
119229
|
+
});
|
|
119230
|
+
return {
|
|
119231
|
+
items,
|
|
119232
|
+
add: addFactory$a({
|
|
119233
|
+
bpmnFactory,
|
|
119234
|
+
commandStack,
|
|
119235
|
+
element
|
|
119236
|
+
})
|
|
119237
|
+
};
|
|
119238
|
+
}
|
|
119239
|
+
function removeFactory$d({
|
|
119240
|
+
modeling,
|
|
119241
|
+
element,
|
|
119242
|
+
listener
|
|
119243
|
+
}) {
|
|
119244
|
+
return function (event) {
|
|
119245
|
+
event.stopPropagation();
|
|
119246
|
+
const businessObject = getRelevantBusinessObject$1(element);
|
|
119247
|
+
const container = getExecutionListenersContainer$1(businessObject);
|
|
119248
|
+
if (!container) {
|
|
119249
|
+
return;
|
|
119250
|
+
}
|
|
119251
|
+
const listeners = without$1(container.get('listeners'), listener);
|
|
119252
|
+
modeling.updateModdleProperties(element, container, {
|
|
119253
|
+
listeners
|
|
119254
|
+
});
|
|
119255
|
+
};
|
|
119256
|
+
}
|
|
119257
|
+
function addFactory$a({
|
|
119258
|
+
bpmnFactory,
|
|
119259
|
+
commandStack,
|
|
119260
|
+
element
|
|
119261
|
+
}) {
|
|
119262
|
+
return function (event) {
|
|
119263
|
+
event.stopPropagation();
|
|
119264
|
+
let commands = [];
|
|
119265
|
+
const businessObject = getRelevantBusinessObject$1(element);
|
|
119266
|
+
let extensionElements = businessObject.get('extensionElements');
|
|
119267
|
+
|
|
119268
|
+
// (1) ensure extension elements
|
|
119269
|
+
if (!extensionElements) {
|
|
119270
|
+
extensionElements = createElement$3('bpmn:ExtensionElements', {
|
|
119271
|
+
values: []
|
|
119272
|
+
}, businessObject, bpmnFactory);
|
|
119273
|
+
commands.push({
|
|
119274
|
+
cmd: 'element.updateModdleProperties',
|
|
119275
|
+
context: {
|
|
119276
|
+
element,
|
|
119277
|
+
moddleElement: businessObject,
|
|
119278
|
+
properties: {
|
|
119279
|
+
extensionElements
|
|
119280
|
+
}
|
|
119281
|
+
}
|
|
119282
|
+
});
|
|
119283
|
+
}
|
|
119284
|
+
|
|
119285
|
+
// (2) ensure zeebe:ExecutionListeners
|
|
119286
|
+
let executionListeners = getExecutionListenersContainer$1(businessObject);
|
|
119287
|
+
if (!executionListeners) {
|
|
119288
|
+
const parent = extensionElements;
|
|
119289
|
+
executionListeners = createElement$3('zeebe:ExecutionListeners', {
|
|
119290
|
+
listeners: []
|
|
119291
|
+
}, parent, bpmnFactory);
|
|
119292
|
+
commands.push({
|
|
119293
|
+
cmd: 'element.updateModdleProperties',
|
|
119294
|
+
context: {
|
|
119295
|
+
element,
|
|
119296
|
+
moddleElement: extensionElements,
|
|
119297
|
+
properties: {
|
|
119298
|
+
values: [...extensionElements.get('values'), executionListeners]
|
|
119299
|
+
}
|
|
119300
|
+
}
|
|
119301
|
+
});
|
|
119302
|
+
}
|
|
119303
|
+
|
|
119304
|
+
// (3) create zeebe:ExecutionListener
|
|
119305
|
+
const executionListener = createElement$3('zeebe:ExecutionListener', getDefaultListenerProps(element), executionListeners, bpmnFactory);
|
|
119306
|
+
|
|
119307
|
+
// (4) add executionListener to list
|
|
119308
|
+
commands.push({
|
|
119309
|
+
cmd: 'element.updateModdleProperties',
|
|
119310
|
+
context: {
|
|
119311
|
+
element,
|
|
119312
|
+
moddleElement: executionListeners,
|
|
119313
|
+
properties: {
|
|
119314
|
+
listeners: [...executionListeners.get('listeners'), executionListener]
|
|
119315
|
+
}
|
|
119316
|
+
}
|
|
119317
|
+
});
|
|
119318
|
+
|
|
119319
|
+
// (5) commit all updates
|
|
119320
|
+
commandStack.execute('properties-panel.multi-command-executor', commands);
|
|
119321
|
+
};
|
|
119322
|
+
}
|
|
119323
|
+
|
|
119324
|
+
// helper //////////////////
|
|
119325
|
+
|
|
119326
|
+
function getRelevantBusinessObject$1(element) {
|
|
119327
|
+
let businessObject = getBusinessObject$2(element);
|
|
119328
|
+
if (is$6(element, 'bpmn:Participant')) {
|
|
119329
|
+
return businessObject.get('processRef');
|
|
119330
|
+
}
|
|
119331
|
+
return businessObject;
|
|
119332
|
+
}
|
|
119333
|
+
function getExecutionListenersContainer$1(element) {
|
|
119334
|
+
const executionListeners = getExtensionElementsList$2(element, 'zeebe:ExecutionListeners');
|
|
119335
|
+
return executionListeners && executionListeners[0];
|
|
119336
|
+
}
|
|
119337
|
+
function getListenersList(element) {
|
|
119338
|
+
const executionListeners = getExecutionListenersContainer$1(element);
|
|
119339
|
+
return executionListeners && executionListeners.get('listeners');
|
|
119340
|
+
}
|
|
119341
|
+
function canHaveExecutionListeners(bo, moddle) {
|
|
119342
|
+
const executionListenersDescriptor = moddle.getTypeDescriptor('zeebe:ExecutionListeners');
|
|
119343
|
+
if (!isAny$1(bo, executionListenersDescriptor.meta.allowedIn)) {
|
|
119344
|
+
return false;
|
|
119345
|
+
}
|
|
119346
|
+
if (isCompensationBoundaryEvent(bo)) {
|
|
119347
|
+
return false;
|
|
119348
|
+
}
|
|
119349
|
+
return true;
|
|
119350
|
+
}
|
|
119351
|
+
function isCompensationBoundaryEvent(bo) {
|
|
119352
|
+
return is$6(bo, 'bpmn:BoundaryEvent') && getCompensateEventDefinition(bo);
|
|
119353
|
+
}
|
|
119354
|
+
function getDefaultListenerProps(element) {
|
|
119355
|
+
const eventTypes = getEventTypes(element);
|
|
119356
|
+
return {
|
|
119357
|
+
eventType: eventTypes[0]
|
|
119358
|
+
};
|
|
119359
|
+
}
|
|
119360
|
+
|
|
119054
119361
|
const FORM_KEY_PREFIX$1 = 'camunda-forms:bpmn:',
|
|
119055
119362
|
USER_TASK_FORM_ID_PREFIX$1 = 'UserTaskForm_';
|
|
119056
119363
|
const FORM_TYPES = {
|
|
@@ -122317,7 +122624,7 @@
|
|
|
122317
122624
|
*/
|
|
122318
122625
|
|
|
122319
122626
|
const LOW_PRIORITY$1$1 = 500;
|
|
122320
|
-
const ZEEBE_GROUPS = [BusinessRuleImplementationGroup, CalledDecisionGroup, ScriptImplementationGroup, ScriptGroup$1, UserTaskImplementationGroup, TaskDefinitionGroup, AssignmentDefinitionGroup, FormGroup$1, ConditionGroup$1, TargetGroup, InputPropagationGroup, InputGroup$1, OutputPropagationGroup, OutputGroup$1, HeaderGroup, ExtensionPropertiesGroup$1];
|
|
122627
|
+
const ZEEBE_GROUPS = [BusinessRuleImplementationGroup, CalledDecisionGroup, ScriptImplementationGroup, ScriptGroup$1, UserTaskImplementationGroup, TaskDefinitionGroup, AssignmentDefinitionGroup, FormGroup$1, ConditionGroup$1, TargetGroup, InputPropagationGroup, InputGroup$1, OutputPropagationGroup, OutputGroup$1, HeaderGroup, ExecutionListenersGroup, ExtensionPropertiesGroup$1];
|
|
122321
122628
|
let ZeebePropertiesProvider$1 = class ZeebePropertiesProvider {
|
|
122322
122629
|
constructor(propertiesPanel, injector) {
|
|
122323
122630
|
propertiesPanel.registerProvider(LOW_PRIORITY$1$1, this);
|
|
@@ -122533,6 +122840,22 @@
|
|
|
122533
122840
|
};
|
|
122534
122841
|
return group.entries.length ? group : null;
|
|
122535
122842
|
}
|
|
122843
|
+
function ExecutionListenersGroup(element, injector) {
|
|
122844
|
+
const translate = injector.get('translate');
|
|
122845
|
+
const group = {
|
|
122846
|
+
label: translate('Execution listeners'),
|
|
122847
|
+
id: 'Zeebe__ExecutionListeners',
|
|
122848
|
+
component: ListGroup,
|
|
122849
|
+
...ExecutionListenersProps({
|
|
122850
|
+
element,
|
|
122851
|
+
injector
|
|
122852
|
+
})
|
|
122853
|
+
};
|
|
122854
|
+
if (group.items) {
|
|
122855
|
+
return group;
|
|
122856
|
+
}
|
|
122857
|
+
return null;
|
|
122858
|
+
}
|
|
122536
122859
|
function ExtensionPropertiesGroup$1(element, injector) {
|
|
122537
122860
|
const translate = injector.get('translate');
|
|
122538
122861
|
const group = {
|
|
@@ -124251,43 +124574,42 @@
|
|
|
124251
124574
|
removeTaskScheduleBehavior: [ 'type', RemoveTaskScheduleBehavior ]
|
|
124252
124575
|
};
|
|
124253
124576
|
|
|
124577
|
+
/**
|
|
124578
|
+
* Convert array of 16 byte values to UUID string format of the form:
|
|
124579
|
+
* XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
|
|
124580
|
+
*/
|
|
124581
|
+
var byteToHex = [];
|
|
124582
|
+
for (var i$1 = 0; i$1 < 256; ++i$1) {
|
|
124583
|
+
byteToHex.push((i$1 + 0x100).toString(16).slice(1));
|
|
124584
|
+
}
|
|
124585
|
+
function unsafeStringify(arr, offset = 0) {
|
|
124586
|
+
// Note: Be careful editing this code! It's been tuned for performance
|
|
124587
|
+
// and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434
|
|
124588
|
+
//
|
|
124589
|
+
// Note to future-self: No, you can't remove the `toLowerCase()` call.
|
|
124590
|
+
// REF: https://github.com/uuidjs/uuid/pull/677#issuecomment-1757351351
|
|
124591
|
+
return (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase();
|
|
124592
|
+
}
|
|
124593
|
+
|
|
124254
124594
|
// Unique ID creation requires a high quality random # generator. In the browser we therefore
|
|
124255
124595
|
// require the crypto API and do not support built-in fallback to lower quality random number
|
|
124256
124596
|
// generators (like Math.random()).
|
|
124257
|
-
|
|
124258
|
-
|
|
124597
|
+
|
|
124598
|
+
var getRandomValues;
|
|
124599
|
+
var rnds8 = new Uint8Array(16);
|
|
124259
124600
|
function rng() {
|
|
124260
124601
|
// lazy load so that environments that need to polyfill have a chance to do so
|
|
124261
124602
|
if (!getRandomValues) {
|
|
124262
124603
|
// getRandomValues needs to be invoked in a context where "this" is a Crypto implementation.
|
|
124263
124604
|
getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto);
|
|
124264
|
-
|
|
124265
124605
|
if (!getRandomValues) {
|
|
124266
124606
|
throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');
|
|
124267
124607
|
}
|
|
124268
124608
|
}
|
|
124269
|
-
|
|
124270
124609
|
return getRandomValues(rnds8);
|
|
124271
124610
|
}
|
|
124272
124611
|
|
|
124273
|
-
|
|
124274
|
-
* Convert array of 16 byte values to UUID string format of the form:
|
|
124275
|
-
* XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
|
|
124276
|
-
*/
|
|
124277
|
-
|
|
124278
|
-
const byteToHex = [];
|
|
124279
|
-
|
|
124280
|
-
for (let i = 0; i < 256; ++i) {
|
|
124281
|
-
byteToHex.push((i + 0x100).toString(16).slice(1));
|
|
124282
|
-
}
|
|
124283
|
-
|
|
124284
|
-
function unsafeStringify(arr, offset = 0) {
|
|
124285
|
-
// Note: Be careful editing this code! It's been tuned for performance
|
|
124286
|
-
// and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434
|
|
124287
|
-
return byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]];
|
|
124288
|
-
}
|
|
124289
|
-
|
|
124290
|
-
const randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto);
|
|
124612
|
+
var randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto);
|
|
124291
124613
|
var native = {
|
|
124292
124614
|
randomUUID
|
|
124293
124615
|
};
|
|
@@ -124296,13 +124618,12 @@
|
|
|
124296
124618
|
if (native.randomUUID && !buf && !options) {
|
|
124297
124619
|
return native.randomUUID();
|
|
124298
124620
|
}
|
|
124299
|
-
|
|
124300
124621
|
options = options || {};
|
|
124301
|
-
|
|
124622
|
+
var rnds = options.random || (options.rng || rng)();
|
|
124302
124623
|
|
|
124624
|
+
// Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
|
|
124303
124625
|
rnds[6] = rnds[6] & 0x0f | 0x40;
|
|
124304
|
-
rnds[8] = rnds[8] & 0x3f | 0x80;
|
|
124305
|
-
|
|
124626
|
+
rnds[8] = rnds[8] & 0x3f | 0x80;
|
|
124306
124627
|
return unsafeStringify(rnds);
|
|
124307
124628
|
}
|
|
124308
124629
|
|
|
@@ -126739,7 +127060,13 @@
|
|
|
126739
127060
|
if (!newProperties.length && !removedProperties.length) {
|
|
126740
127061
|
return;
|
|
126741
127062
|
}
|
|
126742
|
-
|
|
127063
|
+
let message = this._getMessage(element);
|
|
127064
|
+
|
|
127065
|
+
// no new properties and no message -> nothing to do
|
|
127066
|
+
if (!newProperties.length && !message) {
|
|
127067
|
+
return;
|
|
127068
|
+
}
|
|
127069
|
+
message = this._getOrCreateMessage(element, newTemplate);
|
|
126743
127070
|
const messageExtensionElements = this._getOrCreateExtensionElements(element, message);
|
|
126744
127071
|
const zeebeSubscription = this._getSubscription(element, message);
|
|
126745
127072
|
const propertiesToSet = newProperties.reduce((properties, newProperty) => {
|
|
@@ -126919,13 +127246,8 @@
|
|
|
126919
127246
|
return element;
|
|
126920
127247
|
}
|
|
126921
127248
|
|
|
126922
|
-
// TODO(nre): handle old event definition
|
|
126923
|
-
const oldType = oldTemplate && oldTemplate.elementType || {
|
|
126924
|
-
value: element.type
|
|
126925
|
-
};
|
|
126926
|
-
|
|
126927
127249
|
// Do not replace if the element type did not change
|
|
126928
|
-
if (
|
|
127250
|
+
if (!shouldUpdateElementType(element, oldTemplate, newType)) {
|
|
126929
127251
|
return element;
|
|
126930
127252
|
}
|
|
126931
127253
|
const replacement = {
|
|
@@ -127179,6 +127501,33 @@
|
|
|
127179
127501
|
function hasMessageProperties(template) {
|
|
127180
127502
|
return template.properties.some(p => MESSAGE_BINDING_TYPES.includes(p.binding.type));
|
|
127181
127503
|
}
|
|
127504
|
+
function shouldUpdateElementType(element, oldTemplate, newType) {
|
|
127505
|
+
// Never reuse existing eventDefinition when applying a new template
|
|
127506
|
+
if (!oldTemplate && newType.eventDefinition) {
|
|
127507
|
+
return true;
|
|
127508
|
+
}
|
|
127509
|
+
const oldType = oldTemplate && oldTemplate.elementType || {
|
|
127510
|
+
value: element.type,
|
|
127511
|
+
eventDefinition: getEventDefinitionType(element)
|
|
127512
|
+
};
|
|
127513
|
+
|
|
127514
|
+
// Do not update if the element type did not change
|
|
127515
|
+
if (oldType && oldType.value === newType.value && oldType.eventDefinition === newType.eventDefinition) {
|
|
127516
|
+
return false;
|
|
127517
|
+
}
|
|
127518
|
+
return true;
|
|
127519
|
+
}
|
|
127520
|
+
function getEventDefinitionType(element) {
|
|
127521
|
+
const businessObject = getBusinessObject$2(element);
|
|
127522
|
+
if (!businessObject.eventDefinitions) {
|
|
127523
|
+
return;
|
|
127524
|
+
}
|
|
127525
|
+
const eventDefinition = businessObject.eventDefinitions[0];
|
|
127526
|
+
if (!eventDefinition) {
|
|
127527
|
+
return;
|
|
127528
|
+
}
|
|
127529
|
+
return eventDefinition.$type;
|
|
127530
|
+
}
|
|
127182
127531
|
|
|
127183
127532
|
class RemoveElementTemplateHandler {
|
|
127184
127533
|
constructor(modeling, elementFactory, elementRegistry, canvas, bpmnFactory, replace, commandStack) {
|
|
@@ -128383,6 +128732,13 @@
|
|
|
128383
128732
|
* corresponding properties on the element.
|
|
128384
128733
|
*/
|
|
128385
128734
|
class ConditionalBehavior extends CommandInterceptor$1 {
|
|
128735
|
+
/**
|
|
128736
|
+
* @param {import('diagram-js/lib/core/EventBus').default} eventBus
|
|
128737
|
+
* @param {import('../ElementTemplates').default} elementTemplates
|
|
128738
|
+
* @param {import('diagram-js/lib/command/CommandStack').default} commandStack
|
|
128739
|
+
* @param {import('bpmn-js/lib/features/modeling/BpmnFactory').default} bpmnFactory
|
|
128740
|
+
* @param {import('didi').Injector} injector
|
|
128741
|
+
*/
|
|
128386
128742
|
constructor(eventBus, elementTemplates, commandStack, bpmnFactory, injector) {
|
|
128387
128743
|
super(eventBus);
|
|
128388
128744
|
this._eventBus = eventBus;
|
|
@@ -128416,12 +128772,17 @@
|
|
|
128416
128772
|
}
|
|
128417
128773
|
context.oldTemplateWithConditions = applyConditions(element, template);
|
|
128418
128774
|
}
|
|
128419
|
-
_applyConditions(context) {
|
|
128775
|
+
_applyConditions(context, event) {
|
|
128420
128776
|
const {
|
|
128421
128777
|
element,
|
|
128422
128778
|
newTemplate,
|
|
128423
128779
|
oldTemplateWithConditions
|
|
128424
128780
|
} = context;
|
|
128781
|
+
|
|
128782
|
+
// do not apply conditions if we only update meta information
|
|
128783
|
+
if (isMetaUpdate(event, context)) {
|
|
128784
|
+
return;
|
|
128785
|
+
}
|
|
128425
128786
|
const template = this._elementTemplates.get(element);
|
|
128426
128787
|
|
|
128427
128788
|
// new Template is persisted before applying default values,
|
|
@@ -128522,6 +128883,21 @@
|
|
|
128522
128883
|
return JSON.stringify(a, normalizeReplacer$1) === JSON.stringify(b, normalizeReplacer$1);
|
|
128523
128884
|
}
|
|
128524
128885
|
|
|
128886
|
+
/**
|
|
128887
|
+
* Checks if the event only updates "meta" properties:
|
|
128888
|
+
*
|
|
128889
|
+
* * `zeebe:modelerTemplate`
|
|
128890
|
+
* * `zeebe:modelerTemplateVersion`
|
|
128891
|
+
*
|
|
128892
|
+
* @param {string} event
|
|
128893
|
+
* @param {any} context
|
|
128894
|
+
*
|
|
128895
|
+
* @return {boolean}
|
|
128896
|
+
*/
|
|
128897
|
+
function isMetaUpdate(event, context) {
|
|
128898
|
+
return event === 'element.updateProperties' && Object.keys(context.properties).every(key => ['zeebe:modelerTemplate', 'zeebe:modelerTemplateVersion'].includes(key));
|
|
128899
|
+
}
|
|
128900
|
+
|
|
128525
128901
|
/**
|
|
128526
128902
|
* This Behavior checks if the new element's type is in
|
|
128527
128903
|
* the list of elements the template applies to and unlinks
|
|
@@ -128843,7 +129219,12 @@
|
|
|
128843
129219
|
}
|
|
128844
129220
|
ReferencedElementBehavior.$inject = ['eventBus', 'elementTemplates', 'modeling', 'injector', 'moddleCopy', 'bpmnFactory'];
|
|
128845
129221
|
function canHaveReferencedElement(element) {
|
|
128846
|
-
|
|
129222
|
+
// Blank-Events can't have referenced elements
|
|
129223
|
+
if (is$6(element, 'bpmn:Event')) {
|
|
129224
|
+
const bo = getBusinessObject$2(element);
|
|
129225
|
+
return bo.get('eventDefinitions') && bo.get('eventDefinitions')[0];
|
|
129226
|
+
}
|
|
129227
|
+
return isAny$1(element, ['bpmn:ReceiveTask', 'bpmn:SendTask']);
|
|
128847
129228
|
}
|
|
128848
129229
|
function isLabel$1(element) {
|
|
128849
129230
|
return element.type === 'label';
|
|
@@ -156324,7 +156705,7 @@
|
|
|
156324
156705
|
label: 'Sub-process (expanded)',
|
|
156325
156706
|
search: 'subprocess',
|
|
156326
156707
|
actionName: 'expanded-subprocess',
|
|
156327
|
-
className: 'bpmn-icon-subprocess-
|
|
156708
|
+
className: 'bpmn-icon-subprocess-expanded',
|
|
156328
156709
|
target: {
|
|
156329
156710
|
type: 'bpmn:SubProcess',
|
|
156330
156711
|
isExpanded: true
|
|
@@ -156639,102 +157020,102 @@
|
|
|
156639
157020
|
return true;
|
|
156640
157021
|
};
|
|
156641
157022
|
|
|
156642
|
-
const appendIcon = `<svg width="22" height="22" viewBox="0 0 5.82 5.82" xmlns="http://www.w3.org/2000/svg" fill="currentColor">
|
|
156643
|
-
<path d="M1.3 3.4c.3 0 .5-.2.5-.5s-.2-.4-.5-.4c-.2 0-.4.1-.4.4 0 .3.2.5.4.5zM3 3.4c.2 0 .4-.2.4-.5s-.2-.4-.4-.4c-.3 0-.5.1-.5.4 0 .3.2.5.5.5zM4.6 3.4c.2 0 .4-.2.4-.5s-.2-.4-.4-.4c-.3 0-.5.1-.5.4 0 .3.2.5.5.5z"/>
|
|
156644
|
-
</svg>`;
|
|
156645
|
-
const createIcon = `<svg width="46" height="46" viewBox="-2 -2 9.82 9.82" xmlns="http://www.w3.org/2000/svg" fill="currentColor">
|
|
156646
|
-
<path d="M1.3 3.4c.3 0 .5-.2.5-.5s-.2-.4-.5-.4c-.2 0-.4.1-.4.4 0 .3.2.5.4.5zM3 3.4c.2 0 .4-.2.4-.5s-.2-.4-.4-.4c-.3 0-.5.1-.5.4 0 .3.2.5.5.5zM4.6 3.4c.2 0 .4-.2.4-.5s-.2-.4-.4-.4c-.3 0-.5.1-.5.4 0 .3.2.5.5.5z"/>
|
|
157023
|
+
const appendIcon = `<svg width="22" height="22" viewBox="0 0 5.82 5.82" xmlns="http://www.w3.org/2000/svg" fill="currentColor">
|
|
157024
|
+
<path d="M1.3 3.4c.3 0 .5-.2.5-.5s-.2-.4-.5-.4c-.2 0-.4.1-.4.4 0 .3.2.5.4.5zM3 3.4c.2 0 .4-.2.4-.5s-.2-.4-.4-.4c-.3 0-.5.1-.5.4 0 .3.2.5.5.5zM4.6 3.4c.2 0 .4-.2.4-.5s-.2-.4-.4-.4c-.3 0-.5.1-.5.4 0 .3.2.5.5.5z"/>
|
|
157025
|
+
</svg>`;
|
|
157026
|
+
const createIcon = `<svg width="46" height="46" viewBox="-2 -2 9.82 9.82" xmlns="http://www.w3.org/2000/svg" fill="currentColor">
|
|
157027
|
+
<path d="M1.3 3.4c.3 0 .5-.2.5-.5s-.2-.4-.5-.4c-.2 0-.4.1-.4.4 0 .3.2.5.4.5zM3 3.4c.2 0 .4-.2.4-.5s-.2-.4-.4-.4c-.3 0-.5.1-.5.4 0 .3.2.5.5.5zM4.6 3.4c.2 0 .4-.2.4-.5s-.2-.4-.4-.4c-.3 0-.5.1-.5.4 0 .3.2.5.5.5z"/>
|
|
156647
157028
|
</svg>`;
|
|
156648
157029
|
|
|
156649
|
-
/**
|
|
156650
|
-
* A provider for append context pad button
|
|
156651
|
-
*/
|
|
156652
|
-
function AppendContextPadProvider(contextPad, popupMenu, translate, canvas, rules) {
|
|
156653
|
-
|
|
156654
|
-
this._contextPad = contextPad;
|
|
156655
|
-
this._popupMenu = popupMenu;
|
|
156656
|
-
this._translate = translate;
|
|
156657
|
-
this._canvas = canvas;
|
|
156658
|
-
this._rules = rules;
|
|
156659
|
-
|
|
156660
|
-
this.register();
|
|
156661
|
-
}
|
|
156662
|
-
|
|
156663
|
-
AppendContextPadProvider.$inject = [
|
|
156664
|
-
'contextPad',
|
|
156665
|
-
'popupMenu',
|
|
156666
|
-
'translate',
|
|
156667
|
-
'canvas',
|
|
156668
|
-
'rules'
|
|
156669
|
-
];
|
|
156670
|
-
|
|
156671
|
-
/**
|
|
156672
|
-
* Register append button provider in the context pad
|
|
156673
|
-
*/
|
|
156674
|
-
AppendContextPadProvider.prototype.register = function() {
|
|
156675
|
-
this._contextPad.registerProvider(this);
|
|
156676
|
-
};
|
|
156677
|
-
|
|
156678
|
-
/**
|
|
156679
|
-
* Gets the append context pad entry
|
|
156680
|
-
*
|
|
156681
|
-
* @param {djs.model.Base} element
|
|
156682
|
-
* @returns {Object} entries
|
|
156683
|
-
*/
|
|
156684
|
-
AppendContextPadProvider.prototype.getContextPadEntries = function(element) {
|
|
156685
|
-
const popupMenu = this._popupMenu;
|
|
156686
|
-
const translate = this._translate;
|
|
156687
|
-
const rules = this._rules;
|
|
156688
|
-
const getAppendMenuPosition = this._getAppendMenuPosition.bind(this);
|
|
156689
|
-
|
|
156690
|
-
if (rules.allowed('shape.append', { element })) {
|
|
156691
|
-
|
|
156692
|
-
// append menu entry
|
|
156693
|
-
return {
|
|
156694
|
-
'append': {
|
|
156695
|
-
group: 'model',
|
|
156696
|
-
html: `<div class="entry">${appendIcon}</div>`,
|
|
156697
|
-
title: translate('Append element'),
|
|
156698
|
-
action: {
|
|
156699
|
-
click: function(event, element) {
|
|
156700
|
-
|
|
156701
|
-
const position = assign(getAppendMenuPosition(element), {
|
|
156702
|
-
cursor: { x: event.x, y: event.y }
|
|
156703
|
-
});
|
|
156704
|
-
|
|
156705
|
-
popupMenu.open(element, 'bpmn-append', position, {
|
|
156706
|
-
title: translate('Append element'),
|
|
156707
|
-
width: 300,
|
|
156708
|
-
search: true
|
|
156709
|
-
});
|
|
156710
|
-
}
|
|
156711
|
-
}
|
|
156712
|
-
}
|
|
156713
|
-
};
|
|
156714
|
-
}
|
|
156715
|
-
};
|
|
156716
|
-
|
|
156717
|
-
/**
|
|
156718
|
-
* Calculates the position for the append menu relatively to the element
|
|
156719
|
-
*
|
|
156720
|
-
* @param {djs.model.Base} element
|
|
156721
|
-
* @returns {Object}
|
|
156722
|
-
*/
|
|
156723
|
-
AppendContextPadProvider.prototype._getAppendMenuPosition = function(element) {
|
|
156724
|
-
const contextPad = this._contextPad;
|
|
156725
|
-
|
|
156726
|
-
const X_OFFSET = 5;
|
|
156727
|
-
|
|
156728
|
-
const pad = contextPad.getPad(element).html;
|
|
156729
|
-
|
|
156730
|
-
const padRect = pad.getBoundingClientRect();
|
|
156731
|
-
|
|
156732
|
-
const pos = {
|
|
156733
|
-
x: padRect.right + X_OFFSET,
|
|
156734
|
-
y: padRect.top
|
|
156735
|
-
};
|
|
156736
|
-
|
|
156737
|
-
return pos;
|
|
157030
|
+
/**
|
|
157031
|
+
* A provider for append context pad button
|
|
157032
|
+
*/
|
|
157033
|
+
function AppendContextPadProvider(contextPad, popupMenu, translate, canvas, rules) {
|
|
157034
|
+
|
|
157035
|
+
this._contextPad = contextPad;
|
|
157036
|
+
this._popupMenu = popupMenu;
|
|
157037
|
+
this._translate = translate;
|
|
157038
|
+
this._canvas = canvas;
|
|
157039
|
+
this._rules = rules;
|
|
157040
|
+
|
|
157041
|
+
this.register();
|
|
157042
|
+
}
|
|
157043
|
+
|
|
157044
|
+
AppendContextPadProvider.$inject = [
|
|
157045
|
+
'contextPad',
|
|
157046
|
+
'popupMenu',
|
|
157047
|
+
'translate',
|
|
157048
|
+
'canvas',
|
|
157049
|
+
'rules'
|
|
157050
|
+
];
|
|
157051
|
+
|
|
157052
|
+
/**
|
|
157053
|
+
* Register append button provider in the context pad
|
|
157054
|
+
*/
|
|
157055
|
+
AppendContextPadProvider.prototype.register = function() {
|
|
157056
|
+
this._contextPad.registerProvider(this);
|
|
157057
|
+
};
|
|
157058
|
+
|
|
157059
|
+
/**
|
|
157060
|
+
* Gets the append context pad entry
|
|
157061
|
+
*
|
|
157062
|
+
* @param {djs.model.Base} element
|
|
157063
|
+
* @returns {Object} entries
|
|
157064
|
+
*/
|
|
157065
|
+
AppendContextPadProvider.prototype.getContextPadEntries = function(element) {
|
|
157066
|
+
const popupMenu = this._popupMenu;
|
|
157067
|
+
const translate = this._translate;
|
|
157068
|
+
const rules = this._rules;
|
|
157069
|
+
const getAppendMenuPosition = this._getAppendMenuPosition.bind(this);
|
|
157070
|
+
|
|
157071
|
+
if (rules.allowed('shape.append', { element })) {
|
|
157072
|
+
|
|
157073
|
+
// append menu entry
|
|
157074
|
+
return {
|
|
157075
|
+
'append': {
|
|
157076
|
+
group: 'model',
|
|
157077
|
+
html: `<div class="entry">${appendIcon}</div>`,
|
|
157078
|
+
title: translate('Append element'),
|
|
157079
|
+
action: {
|
|
157080
|
+
click: function(event, element) {
|
|
157081
|
+
|
|
157082
|
+
const position = assign(getAppendMenuPosition(element), {
|
|
157083
|
+
cursor: { x: event.x, y: event.y }
|
|
157084
|
+
});
|
|
157085
|
+
|
|
157086
|
+
popupMenu.open(element, 'bpmn-append', position, {
|
|
157087
|
+
title: translate('Append element'),
|
|
157088
|
+
width: 300,
|
|
157089
|
+
search: true
|
|
157090
|
+
});
|
|
157091
|
+
}
|
|
157092
|
+
}
|
|
157093
|
+
}
|
|
157094
|
+
};
|
|
157095
|
+
}
|
|
157096
|
+
};
|
|
157097
|
+
|
|
157098
|
+
/**
|
|
157099
|
+
* Calculates the position for the append menu relatively to the element
|
|
157100
|
+
*
|
|
157101
|
+
* @param {djs.model.Base} element
|
|
157102
|
+
* @returns {Object}
|
|
157103
|
+
*/
|
|
157104
|
+
AppendContextPadProvider.prototype._getAppendMenuPosition = function(element) {
|
|
157105
|
+
const contextPad = this._contextPad;
|
|
157106
|
+
|
|
157107
|
+
const X_OFFSET = 5;
|
|
157108
|
+
|
|
157109
|
+
const pad = contextPad.getPad(element).html;
|
|
157110
|
+
|
|
157111
|
+
const padRect = pad.getBoundingClientRect();
|
|
157112
|
+
|
|
157113
|
+
const pos = {
|
|
157114
|
+
x: padRect.right + X_OFFSET,
|
|
157115
|
+
y: padRect.top
|
|
157116
|
+
};
|
|
157117
|
+
|
|
157118
|
+
return pos;
|
|
156738
157119
|
};
|
|
156739
157120
|
|
|
156740
157121
|
function e(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}));}
|
|
@@ -157347,87 +157728,87 @@
|
|
|
157347
157728
|
return el.querySelector(selector);
|
|
157348
157729
|
}
|
|
157349
157730
|
|
|
157350
|
-
const LOWER_PRIORITY = 900;
|
|
157351
|
-
|
|
157352
|
-
/**
|
|
157353
|
-
* A palette provider for the create elements menu.
|
|
157354
|
-
*/
|
|
157355
|
-
function CreatePaletteProvider(palette, translate, popupMenu, canvas, mouse) {
|
|
157356
|
-
|
|
157357
|
-
this._palette = palette;
|
|
157358
|
-
this._translate = translate;
|
|
157359
|
-
this._popupMenu = popupMenu;
|
|
157360
|
-
this._canvas = canvas;
|
|
157361
|
-
this._mouse = mouse;
|
|
157362
|
-
|
|
157363
|
-
this.register();
|
|
157364
|
-
}
|
|
157365
|
-
|
|
157366
|
-
CreatePaletteProvider.$inject = [
|
|
157367
|
-
'palette',
|
|
157368
|
-
'translate',
|
|
157369
|
-
'popupMenu',
|
|
157370
|
-
'canvas',
|
|
157371
|
-
'mouse'
|
|
157372
|
-
];
|
|
157373
|
-
|
|
157374
|
-
/**
|
|
157375
|
-
* Register create button provider in the palette
|
|
157376
|
-
*/
|
|
157377
|
-
CreatePaletteProvider.prototype.register = function() {
|
|
157378
|
-
this._palette.registerProvider(LOWER_PRIORITY, this);
|
|
157379
|
-
};
|
|
157380
|
-
|
|
157381
|
-
/**
|
|
157382
|
-
* Gets the palette create entry
|
|
157383
|
-
*
|
|
157384
|
-
* @param {djs.model.Base} element
|
|
157385
|
-
* @returns {Object}
|
|
157386
|
-
*/
|
|
157387
|
-
CreatePaletteProvider.prototype.getPaletteEntries = function(element) {
|
|
157388
|
-
const translate = this._translate,
|
|
157389
|
-
popupMenu = this._popupMenu,
|
|
157390
|
-
canvas = this._canvas,
|
|
157391
|
-
mouse = this._mouse;
|
|
157392
|
-
|
|
157393
|
-
const getPosition = (event) => {
|
|
157394
|
-
const X_OFFSET = 35;
|
|
157395
|
-
const Y_OFFSET = 10;
|
|
157396
|
-
|
|
157397
|
-
if (event instanceof KeyboardEvent) {
|
|
157398
|
-
event = mouse.getLastMoveEvent();
|
|
157399
|
-
return { x: event.x, y: event.y };
|
|
157400
|
-
}
|
|
157401
|
-
|
|
157402
|
-
const target = event && event.target || query('.djs-palette [data-action="create"]');
|
|
157403
|
-
const targetPosition = target.getBoundingClientRect();
|
|
157404
|
-
|
|
157405
|
-
return target && {
|
|
157406
|
-
x: targetPosition.left + targetPosition.width / 2 + X_OFFSET,
|
|
157407
|
-
y: targetPosition.top + targetPosition.height / 2 + Y_OFFSET
|
|
157408
|
-
};
|
|
157409
|
-
};
|
|
157410
|
-
|
|
157411
|
-
return {
|
|
157412
|
-
'create': {
|
|
157413
|
-
group: 'create',
|
|
157414
|
-
html: `<div class="entry"> ${createIcon}</div>`,
|
|
157415
|
-
title: translate('Create element'),
|
|
157416
|
-
action: {
|
|
157417
|
-
click: function(event) {
|
|
157418
|
-
const position = getPosition(event);
|
|
157419
|
-
|
|
157420
|
-
const element = canvas.getRootElement();
|
|
157421
|
-
|
|
157422
|
-
popupMenu.open(element, 'bpmn-create', position, {
|
|
157423
|
-
title: translate('Create element'),
|
|
157424
|
-
width: 300,
|
|
157425
|
-
search: true
|
|
157426
|
-
});
|
|
157427
|
-
}
|
|
157428
|
-
}
|
|
157429
|
-
}
|
|
157430
|
-
};
|
|
157731
|
+
const LOWER_PRIORITY = 900;
|
|
157732
|
+
|
|
157733
|
+
/**
|
|
157734
|
+
* A palette provider for the create elements menu.
|
|
157735
|
+
*/
|
|
157736
|
+
function CreatePaletteProvider(palette, translate, popupMenu, canvas, mouse) {
|
|
157737
|
+
|
|
157738
|
+
this._palette = palette;
|
|
157739
|
+
this._translate = translate;
|
|
157740
|
+
this._popupMenu = popupMenu;
|
|
157741
|
+
this._canvas = canvas;
|
|
157742
|
+
this._mouse = mouse;
|
|
157743
|
+
|
|
157744
|
+
this.register();
|
|
157745
|
+
}
|
|
157746
|
+
|
|
157747
|
+
CreatePaletteProvider.$inject = [
|
|
157748
|
+
'palette',
|
|
157749
|
+
'translate',
|
|
157750
|
+
'popupMenu',
|
|
157751
|
+
'canvas',
|
|
157752
|
+
'mouse'
|
|
157753
|
+
];
|
|
157754
|
+
|
|
157755
|
+
/**
|
|
157756
|
+
* Register create button provider in the palette
|
|
157757
|
+
*/
|
|
157758
|
+
CreatePaletteProvider.prototype.register = function() {
|
|
157759
|
+
this._palette.registerProvider(LOWER_PRIORITY, this);
|
|
157760
|
+
};
|
|
157761
|
+
|
|
157762
|
+
/**
|
|
157763
|
+
* Gets the palette create entry
|
|
157764
|
+
*
|
|
157765
|
+
* @param {djs.model.Base} element
|
|
157766
|
+
* @returns {Object}
|
|
157767
|
+
*/
|
|
157768
|
+
CreatePaletteProvider.prototype.getPaletteEntries = function(element) {
|
|
157769
|
+
const translate = this._translate,
|
|
157770
|
+
popupMenu = this._popupMenu,
|
|
157771
|
+
canvas = this._canvas,
|
|
157772
|
+
mouse = this._mouse;
|
|
157773
|
+
|
|
157774
|
+
const getPosition = (event) => {
|
|
157775
|
+
const X_OFFSET = 35;
|
|
157776
|
+
const Y_OFFSET = 10;
|
|
157777
|
+
|
|
157778
|
+
if (event instanceof KeyboardEvent) {
|
|
157779
|
+
event = mouse.getLastMoveEvent();
|
|
157780
|
+
return { x: event.x, y: event.y };
|
|
157781
|
+
}
|
|
157782
|
+
|
|
157783
|
+
const target = event && event.target || query('.djs-palette [data-action="create"]');
|
|
157784
|
+
const targetPosition = target.getBoundingClientRect();
|
|
157785
|
+
|
|
157786
|
+
return target && {
|
|
157787
|
+
x: targetPosition.left + targetPosition.width / 2 + X_OFFSET,
|
|
157788
|
+
y: targetPosition.top + targetPosition.height / 2 + Y_OFFSET
|
|
157789
|
+
};
|
|
157790
|
+
};
|
|
157791
|
+
|
|
157792
|
+
return {
|
|
157793
|
+
'create': {
|
|
157794
|
+
group: 'create',
|
|
157795
|
+
html: `<div class="entry"> ${createIcon}</div>`,
|
|
157796
|
+
title: translate('Create element'),
|
|
157797
|
+
action: {
|
|
157798
|
+
click: function(event) {
|
|
157799
|
+
const position = getPosition(event);
|
|
157800
|
+
|
|
157801
|
+
const element = canvas.getRootElement();
|
|
157802
|
+
|
|
157803
|
+
popupMenu.open(element, 'bpmn-create', position, {
|
|
157804
|
+
title: translate('Create element'),
|
|
157805
|
+
width: 300,
|
|
157806
|
+
search: true
|
|
157807
|
+
});
|
|
157808
|
+
}
|
|
157809
|
+
}
|
|
157810
|
+
}
|
|
157811
|
+
};
|
|
157431
157812
|
};
|
|
157432
157813
|
|
|
157433
157814
|
var CreateMenuModule = {
|
|
@@ -159273,194 +159654,194 @@
|
|
|
159273
159654
|
return ALL_OPTIONS;
|
|
159274
159655
|
}
|
|
159275
159656
|
|
|
159276
|
-
/**
|
|
159277
|
-
* A replace menu provider that allows to replace elements with
|
|
159278
|
-
* templates applied with the correspondent plain element.
|
|
159279
|
-
*/
|
|
159280
|
-
function RemoveTemplateReplaceProvider(popupMenu, translate, elementTemplates) {
|
|
159281
|
-
|
|
159282
|
-
this._popupMenu = popupMenu;
|
|
159283
|
-
this._translate = translate;
|
|
159284
|
-
this._elementTemplates = elementTemplates;
|
|
159285
|
-
|
|
159286
|
-
this.register();
|
|
159287
|
-
}
|
|
159288
|
-
|
|
159289
|
-
RemoveTemplateReplaceProvider.$inject = [
|
|
159290
|
-
'popupMenu',
|
|
159291
|
-
'translate',
|
|
159292
|
-
'elementTemplates'
|
|
159293
|
-
];
|
|
159294
|
-
|
|
159295
|
-
/**
|
|
159296
|
-
* Register replace menu provider in the popup menu
|
|
159297
|
-
*/
|
|
159298
|
-
RemoveTemplateReplaceProvider.prototype.register = function() {
|
|
159299
|
-
this._popupMenu.registerProvider('bpmn-replace', this);
|
|
159300
|
-
};
|
|
159301
|
-
|
|
159302
|
-
/**
|
|
159303
|
-
* Adds the element templates to the replace menu.
|
|
159304
|
-
* @param {djs.model.Base} element
|
|
159305
|
-
*
|
|
159306
|
-
* @returns {Object}
|
|
159307
|
-
*/
|
|
159308
|
-
RemoveTemplateReplaceProvider.prototype.getPopupMenuEntries = function(element) {
|
|
159309
|
-
|
|
159310
|
-
return (entries) => {
|
|
159311
|
-
|
|
159312
|
-
// convert our entries into something sortable
|
|
159313
|
-
let entrySet = Object.entries(entries);
|
|
159314
|
-
|
|
159315
|
-
if (this._elementTemplates && this._elementTemplates.get(element)) {
|
|
159316
|
-
|
|
159317
|
-
// add remove template option
|
|
159318
|
-
this.addPlainElementEntry(element, entrySet, this._translate, this._elementTemplates);
|
|
159319
|
-
}
|
|
159320
|
-
|
|
159321
|
-
// convert back to object
|
|
159322
|
-
return entrySet.reduce((entries, [ key, value ]) => {
|
|
159323
|
-
entries[key] = value;
|
|
159324
|
-
|
|
159325
|
-
return entries;
|
|
159326
|
-
}, {});
|
|
159327
|
-
};
|
|
159328
|
-
};
|
|
159329
|
-
|
|
159330
|
-
|
|
159331
|
-
/**
|
|
159332
|
-
* Adds the option to replace with plain element (remove template).
|
|
159333
|
-
*
|
|
159334
|
-
* @param {djs.model.Base} element
|
|
159335
|
-
* @param {Array<Object>} entries
|
|
159336
|
-
*/
|
|
159337
|
-
RemoveTemplateReplaceProvider.prototype.addPlainElementEntry = function(element, entries, translate, elementTemplates) {
|
|
159338
|
-
|
|
159339
|
-
const replaceOption = this.getPlainEntry(element, entries, translate, elementTemplates);
|
|
159340
|
-
|
|
159341
|
-
if (!replaceOption) {
|
|
159342
|
-
return;
|
|
159343
|
-
}
|
|
159344
|
-
|
|
159345
|
-
const [
|
|
159346
|
-
insertIndex,
|
|
159347
|
-
entry
|
|
159348
|
-
] = replaceOption;
|
|
159349
|
-
|
|
159350
|
-
// insert remove entry
|
|
159351
|
-
entries.splice(insertIndex, 0, [ entry.id, entry ]);
|
|
159352
|
-
};
|
|
159353
|
-
|
|
159354
|
-
/**
|
|
159355
|
-
* Returns the option to replace with plain element and the index where it should be inserted.
|
|
159356
|
-
*
|
|
159357
|
-
* @param {djs.model.Base} element
|
|
159358
|
-
* @param {Array<Object>} entries
|
|
159359
|
-
*
|
|
159360
|
-
* @returns {Array<Object, number>}
|
|
159361
|
-
*/
|
|
159362
|
-
RemoveTemplateReplaceProvider.prototype.getPlainEntry = function(element, entries, translate, elementTemplates) {
|
|
159363
|
-
|
|
159364
|
-
const {
|
|
159365
|
-
options,
|
|
159366
|
-
option,
|
|
159367
|
-
optionIndex
|
|
159368
|
-
} = findReplaceOptions(element) || { };
|
|
159369
|
-
|
|
159370
|
-
if (!options) {
|
|
159371
|
-
return null;
|
|
159372
|
-
}
|
|
159373
|
-
|
|
159374
|
-
const entry = {
|
|
159375
|
-
id: 'replace-remove-element-template',
|
|
159376
|
-
action: () => {
|
|
159377
|
-
elementTemplates.removeTemplate(element);
|
|
159378
|
-
},
|
|
159379
|
-
label: translate(option.label),
|
|
159380
|
-
className: option.className
|
|
159381
|
-
};
|
|
159382
|
-
|
|
159383
|
-
// insert after previous option, if it exists
|
|
159384
|
-
const previousIndex = getOptionIndex(options, optionIndex - 1, entries);
|
|
159385
|
-
|
|
159386
|
-
if (previousIndex) {
|
|
159387
|
-
return [
|
|
159388
|
-
previousIndex + 1,
|
|
159389
|
-
entry
|
|
159390
|
-
];
|
|
159391
|
-
}
|
|
159392
|
-
|
|
159393
|
-
// insert before next option, if it exists
|
|
159394
|
-
const nextIndex = getOptionIndex(options, optionIndex + 1, entries);
|
|
159395
|
-
|
|
159396
|
-
if (nextIndex) {
|
|
159397
|
-
return [
|
|
159398
|
-
nextIndex,
|
|
159399
|
-
entry
|
|
159400
|
-
];
|
|
159401
|
-
}
|
|
159402
|
-
|
|
159403
|
-
// fallback to insert at start
|
|
159404
|
-
return [
|
|
159405
|
-
0,
|
|
159406
|
-
entry
|
|
159407
|
-
];
|
|
159408
|
-
};
|
|
159409
|
-
|
|
159410
|
-
|
|
159411
|
-
/**
|
|
159412
|
-
* @param {ModdleElement} element
|
|
159413
|
-
*
|
|
159414
|
-
* @return { { options: Array<any>, option: any, optionIndex: number } | null }
|
|
159415
|
-
*/
|
|
159416
|
-
function findReplaceOptions(element) {
|
|
159417
|
-
|
|
159418
|
-
const isSameType = (element, option) => option.target && !isDifferentType(element)(option);
|
|
159419
|
-
|
|
159420
|
-
return getReplaceOptionGroups().reduce((result, options) => {
|
|
159421
|
-
|
|
159422
|
-
if (result) {
|
|
159423
|
-
return result;
|
|
159424
|
-
}
|
|
159425
|
-
|
|
159426
|
-
const optionIndex = options.findIndex(option => isSameType(element, option));
|
|
159427
|
-
|
|
159428
|
-
if (optionIndex === -1) {
|
|
159429
|
-
return;
|
|
159430
|
-
}
|
|
159431
|
-
|
|
159432
|
-
return {
|
|
159433
|
-
options,
|
|
159434
|
-
option: options[optionIndex],
|
|
159435
|
-
optionIndex
|
|
159436
|
-
};
|
|
159437
|
-
}, null);
|
|
159438
|
-
}
|
|
159439
|
-
|
|
159440
|
-
function getOptionIndex(options, index, entries) {
|
|
159441
|
-
const option = options[index];
|
|
159442
|
-
|
|
159443
|
-
if (!option) {
|
|
159444
|
-
return false;
|
|
159445
|
-
}
|
|
159446
|
-
|
|
159447
|
-
return entries.findIndex(
|
|
159448
|
-
([ key ]) => key === option.actionName
|
|
159449
|
-
);
|
|
159657
|
+
/**
|
|
159658
|
+
* A replace menu provider that allows to replace elements with
|
|
159659
|
+
* templates applied with the correspondent plain element.
|
|
159660
|
+
*/
|
|
159661
|
+
function RemoveTemplateReplaceProvider(popupMenu, translate, elementTemplates) {
|
|
159662
|
+
|
|
159663
|
+
this._popupMenu = popupMenu;
|
|
159664
|
+
this._translate = translate;
|
|
159665
|
+
this._elementTemplates = elementTemplates;
|
|
159666
|
+
|
|
159667
|
+
this.register();
|
|
159668
|
+
}
|
|
159669
|
+
|
|
159670
|
+
RemoveTemplateReplaceProvider.$inject = [
|
|
159671
|
+
'popupMenu',
|
|
159672
|
+
'translate',
|
|
159673
|
+
'elementTemplates'
|
|
159674
|
+
];
|
|
159675
|
+
|
|
159676
|
+
/**
|
|
159677
|
+
* Register replace menu provider in the popup menu
|
|
159678
|
+
*/
|
|
159679
|
+
RemoveTemplateReplaceProvider.prototype.register = function() {
|
|
159680
|
+
this._popupMenu.registerProvider('bpmn-replace', this);
|
|
159681
|
+
};
|
|
159682
|
+
|
|
159683
|
+
/**
|
|
159684
|
+
* Adds the element templates to the replace menu.
|
|
159685
|
+
* @param {djs.model.Base} element
|
|
159686
|
+
*
|
|
159687
|
+
* @returns {Object}
|
|
159688
|
+
*/
|
|
159689
|
+
RemoveTemplateReplaceProvider.prototype.getPopupMenuEntries = function(element) {
|
|
159690
|
+
|
|
159691
|
+
return (entries) => {
|
|
159692
|
+
|
|
159693
|
+
// convert our entries into something sortable
|
|
159694
|
+
let entrySet = Object.entries(entries);
|
|
159695
|
+
|
|
159696
|
+
if (this._elementTemplates && this._elementTemplates.get(element)) {
|
|
159697
|
+
|
|
159698
|
+
// add remove template option
|
|
159699
|
+
this.addPlainElementEntry(element, entrySet, this._translate, this._elementTemplates);
|
|
159700
|
+
}
|
|
159701
|
+
|
|
159702
|
+
// convert back to object
|
|
159703
|
+
return entrySet.reduce((entries, [ key, value ]) => {
|
|
159704
|
+
entries[key] = value;
|
|
159705
|
+
|
|
159706
|
+
return entries;
|
|
159707
|
+
}, {});
|
|
159708
|
+
};
|
|
159709
|
+
};
|
|
159710
|
+
|
|
159711
|
+
|
|
159712
|
+
/**
|
|
159713
|
+
* Adds the option to replace with plain element (remove template).
|
|
159714
|
+
*
|
|
159715
|
+
* @param {djs.model.Base} element
|
|
159716
|
+
* @param {Array<Object>} entries
|
|
159717
|
+
*/
|
|
159718
|
+
RemoveTemplateReplaceProvider.prototype.addPlainElementEntry = function(element, entries, translate, elementTemplates) {
|
|
159719
|
+
|
|
159720
|
+
const replaceOption = this.getPlainEntry(element, entries, translate, elementTemplates);
|
|
159721
|
+
|
|
159722
|
+
if (!replaceOption) {
|
|
159723
|
+
return;
|
|
159724
|
+
}
|
|
159725
|
+
|
|
159726
|
+
const [
|
|
159727
|
+
insertIndex,
|
|
159728
|
+
entry
|
|
159729
|
+
] = replaceOption;
|
|
159730
|
+
|
|
159731
|
+
// insert remove entry
|
|
159732
|
+
entries.splice(insertIndex, 0, [ entry.id, entry ]);
|
|
159733
|
+
};
|
|
159734
|
+
|
|
159735
|
+
/**
|
|
159736
|
+
* Returns the option to replace with plain element and the index where it should be inserted.
|
|
159737
|
+
*
|
|
159738
|
+
* @param {djs.model.Base} element
|
|
159739
|
+
* @param {Array<Object>} entries
|
|
159740
|
+
*
|
|
159741
|
+
* @returns {Array<Object, number>}
|
|
159742
|
+
*/
|
|
159743
|
+
RemoveTemplateReplaceProvider.prototype.getPlainEntry = function(element, entries, translate, elementTemplates) {
|
|
159744
|
+
|
|
159745
|
+
const {
|
|
159746
|
+
options,
|
|
159747
|
+
option,
|
|
159748
|
+
optionIndex
|
|
159749
|
+
} = findReplaceOptions(element) || { };
|
|
159750
|
+
|
|
159751
|
+
if (!options) {
|
|
159752
|
+
return null;
|
|
159753
|
+
}
|
|
159754
|
+
|
|
159755
|
+
const entry = {
|
|
159756
|
+
id: 'replace-remove-element-template',
|
|
159757
|
+
action: () => {
|
|
159758
|
+
elementTemplates.removeTemplate(element);
|
|
159759
|
+
},
|
|
159760
|
+
label: translate(option.label),
|
|
159761
|
+
className: option.className
|
|
159762
|
+
};
|
|
159763
|
+
|
|
159764
|
+
// insert after previous option, if it exists
|
|
159765
|
+
const previousIndex = getOptionIndex(options, optionIndex - 1, entries);
|
|
159766
|
+
|
|
159767
|
+
if (previousIndex) {
|
|
159768
|
+
return [
|
|
159769
|
+
previousIndex + 1,
|
|
159770
|
+
entry
|
|
159771
|
+
];
|
|
159772
|
+
}
|
|
159773
|
+
|
|
159774
|
+
// insert before next option, if it exists
|
|
159775
|
+
const nextIndex = getOptionIndex(options, optionIndex + 1, entries);
|
|
159776
|
+
|
|
159777
|
+
if (nextIndex) {
|
|
159778
|
+
return [
|
|
159779
|
+
nextIndex,
|
|
159780
|
+
entry
|
|
159781
|
+
];
|
|
159782
|
+
}
|
|
159783
|
+
|
|
159784
|
+
// fallback to insert at start
|
|
159785
|
+
return [
|
|
159786
|
+
0,
|
|
159787
|
+
entry
|
|
159788
|
+
];
|
|
159789
|
+
};
|
|
159790
|
+
|
|
159791
|
+
|
|
159792
|
+
/**
|
|
159793
|
+
* @param {ModdleElement} element
|
|
159794
|
+
*
|
|
159795
|
+
* @return { { options: Array<any>, option: any, optionIndex: number } | null }
|
|
159796
|
+
*/
|
|
159797
|
+
function findReplaceOptions(element) {
|
|
159798
|
+
|
|
159799
|
+
const isSameType = (element, option) => option.target && !isDifferentType(element)(option);
|
|
159800
|
+
|
|
159801
|
+
return getReplaceOptionGroups().reduce((result, options) => {
|
|
159802
|
+
|
|
159803
|
+
if (result) {
|
|
159804
|
+
return result;
|
|
159805
|
+
}
|
|
159806
|
+
|
|
159807
|
+
const optionIndex = options.findIndex(option => isSameType(element, option));
|
|
159808
|
+
|
|
159809
|
+
if (optionIndex === -1) {
|
|
159810
|
+
return;
|
|
159811
|
+
}
|
|
159812
|
+
|
|
159813
|
+
return {
|
|
159814
|
+
options,
|
|
159815
|
+
option: options[optionIndex],
|
|
159816
|
+
optionIndex
|
|
159817
|
+
};
|
|
159818
|
+
}, null);
|
|
159450
159819
|
}
|
|
159451
159820
|
|
|
159452
|
-
|
|
159453
|
-
|
|
159454
|
-
|
|
159821
|
+
function getOptionIndex(options, index, entries) {
|
|
159822
|
+
const option = options[index];
|
|
159823
|
+
|
|
159824
|
+
if (!option) {
|
|
159825
|
+
return false;
|
|
159826
|
+
}
|
|
159827
|
+
|
|
159828
|
+
return entries.findIndex(
|
|
159829
|
+
([ key ]) => key === option.actionName
|
|
159830
|
+
);
|
|
159831
|
+
}
|
|
159832
|
+
|
|
159833
|
+
var RemoveTemplatesModule = {
|
|
159834
|
+
__init__: [ 'removeTemplateReplaceProvider' ],
|
|
159835
|
+
removeTemplateReplaceProvider: [ 'type', RemoveTemplateReplaceProvider ]
|
|
159455
159836
|
};
|
|
159456
159837
|
|
|
159457
|
-
var index = {
|
|
159458
|
-
__depends__: [
|
|
159459
|
-
AppendElementTemplatesModule,
|
|
159460
|
-
CreateElementTemplatesModule,
|
|
159461
|
-
ReplaceElementTemplatesModule,
|
|
159462
|
-
RemoveTemplatesModule
|
|
159463
|
-
]
|
|
159838
|
+
var index = {
|
|
159839
|
+
__depends__: [
|
|
159840
|
+
AppendElementTemplatesModule,
|
|
159841
|
+
CreateElementTemplatesModule,
|
|
159842
|
+
ReplaceElementTemplatesModule,
|
|
159843
|
+
RemoveTemplatesModule
|
|
159844
|
+
]
|
|
159464
159845
|
};
|
|
159465
159846
|
|
|
159466
159847
|
/**
|