bpmn-js 11.0.5 → 11.1.1
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/assets/diagram-js.css +1 -3
- package/dist/bpmn-modeler.development.js +114 -47
- package/dist/bpmn-modeler.production.min.js +23 -23
- package/dist/bpmn-navigated-viewer.development.js +20 -9
- package/dist/bpmn-navigated-viewer.production.min.js +2 -2
- package/dist/bpmn-viewer.development.js +20 -9
- package/dist/bpmn-viewer.production.min.js +2 -2
- package/lib/features/editor-actions/BpmnEditorActions.js +8 -1
- package/lib/features/keyboard/BpmnKeyboardBindings.js +17 -0
- package/package.json +4 -4
|
@@ -524,8 +524,6 @@ marker.djs-dragger tspan {
|
|
|
524
524
|
z-index: 200;
|
|
525
525
|
line-height: 1;
|
|
526
526
|
font-family: "IBM Plex Sans", sans-serif;
|
|
527
|
-
border: solid 1px var(--popup-border-color);
|
|
528
|
-
border-radius: 2px;
|
|
529
527
|
}
|
|
530
528
|
|
|
531
529
|
.djs-popup {
|
|
@@ -605,7 +603,7 @@ marker.djs-dragger tspan {
|
|
|
605
603
|
margin: 7px 3px 7px 12px;
|
|
606
604
|
list-style: none;
|
|
607
605
|
max-height: 280px;
|
|
608
|
-
overflow:
|
|
606
|
+
overflow: auto;
|
|
609
607
|
padding-right: 9px;
|
|
610
608
|
}
|
|
611
609
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* bpmn-js - bpmn-modeler v11.
|
|
2
|
+
* bpmn-js - bpmn-modeler v11.1.1
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) 2014-present, camunda Services GmbH
|
|
5
5
|
*
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
*
|
|
9
9
|
* Source Code: https://github.com/bpmn-io/bpmn-js
|
|
10
10
|
*
|
|
11
|
-
* Date:
|
|
11
|
+
* Date: 2023-01-06
|
|
12
12
|
*/
|
|
13
13
|
(function (global, factory) {
|
|
14
14
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
|
@@ -807,14 +807,17 @@
|
|
|
807
807
|
* @return {Array<?>}
|
|
808
808
|
*/
|
|
809
809
|
|
|
810
|
-
|
|
811
|
-
|
|
810
|
+
const nativeToString = Object.prototype.toString;
|
|
811
|
+
const nativeHasOwnProperty = Object.prototype.hasOwnProperty;
|
|
812
|
+
|
|
812
813
|
function isUndefined$1(obj) {
|
|
813
814
|
return obj === undefined;
|
|
814
815
|
}
|
|
816
|
+
|
|
815
817
|
function isArray$2(obj) {
|
|
816
818
|
return nativeToString.call(obj) === '[object Array]';
|
|
817
819
|
}
|
|
820
|
+
|
|
818
821
|
/**
|
|
819
822
|
* Return true, if target owns a property with the given key.
|
|
820
823
|
*
|
|
@@ -823,10 +826,11 @@
|
|
|
823
826
|
*
|
|
824
827
|
* @return {Boolean}
|
|
825
828
|
*/
|
|
826
|
-
|
|
827
829
|
function has(target, key) {
|
|
828
830
|
return nativeHasOwnProperty.call(target, key);
|
|
829
831
|
}
|
|
832
|
+
|
|
833
|
+
|
|
830
834
|
/**
|
|
831
835
|
* Iterate over collection; returning something
|
|
832
836
|
* (non-undefined) will stop iteration.
|
|
@@ -836,19 +840,22 @@
|
|
|
836
840
|
*
|
|
837
841
|
* @return {Object} return result that stopped the iteration
|
|
838
842
|
*/
|
|
839
|
-
|
|
840
843
|
function forEach(collection, iterator) {
|
|
841
|
-
|
|
844
|
+
|
|
845
|
+
let val,
|
|
846
|
+
result;
|
|
842
847
|
|
|
843
848
|
if (isUndefined$1(collection)) {
|
|
844
849
|
return;
|
|
845
850
|
}
|
|
846
851
|
|
|
847
|
-
|
|
852
|
+
const convertKey = isArray$2(collection) ? toNum : identity;
|
|
853
|
+
|
|
854
|
+
for (let key in collection) {
|
|
848
855
|
|
|
849
|
-
for (var key in collection) {
|
|
850
856
|
if (has(collection, key)) {
|
|
851
857
|
val = collection[key];
|
|
858
|
+
|
|
852
859
|
result = iterator(val, convertKey(key));
|
|
853
860
|
|
|
854
861
|
if (result === false) {
|
|
@@ -858,6 +865,7 @@
|
|
|
858
865
|
}
|
|
859
866
|
}
|
|
860
867
|
|
|
868
|
+
|
|
861
869
|
function identity(arg) {
|
|
862
870
|
return arg;
|
|
863
871
|
}
|
|
@@ -21907,6 +21915,9 @@
|
|
|
21907
21915
|
|
|
21908
21916
|
};
|
|
21909
21917
|
|
|
21918
|
+
Overlays.prototype.isShown = function() {
|
|
21919
|
+
return this._overlayRoot.style.display !== 'none';
|
|
21920
|
+
};
|
|
21910
21921
|
|
|
21911
21922
|
Overlays.prototype.show = function() {
|
|
21912
21923
|
setVisible$1(this._overlayRoot);
|
|
@@ -27813,7 +27824,9 @@
|
|
|
27813
27824
|
|
|
27814
27825
|
|
|
27815
27826
|
/**
|
|
27816
|
-
* Trigger context pad
|
|
27827
|
+
* Trigger context pad via DOM event.
|
|
27828
|
+
*
|
|
27829
|
+
* The entry to trigger is determined by the target element.
|
|
27817
27830
|
*
|
|
27818
27831
|
* @param {string} action
|
|
27819
27832
|
* @param {Event} event
|
|
@@ -27821,10 +27834,7 @@
|
|
|
27821
27834
|
*/
|
|
27822
27835
|
ContextPad.prototype.trigger = function(action, event, autoActivate) {
|
|
27823
27836
|
|
|
27824
|
-
var
|
|
27825
|
-
entries = this._current.entries,
|
|
27826
|
-
entry,
|
|
27827
|
-
handler,
|
|
27837
|
+
var entry,
|
|
27828
27838
|
originalEvent,
|
|
27829
27839
|
button = event.delegateTarget || event.target;
|
|
27830
27840
|
|
|
@@ -27832,19 +27842,45 @@
|
|
|
27832
27842
|
return event.preventDefault();
|
|
27833
27843
|
}
|
|
27834
27844
|
|
|
27835
|
-
entry =
|
|
27836
|
-
handler = entry.action;
|
|
27837
|
-
|
|
27845
|
+
entry = attr$1(button, 'data-action');
|
|
27838
27846
|
originalEvent = event.originalEvent || event;
|
|
27839
27847
|
|
|
27848
|
+
return this.triggerEntry(entry, action, originalEvent, autoActivate);
|
|
27849
|
+
};
|
|
27850
|
+
|
|
27851
|
+
/**
|
|
27852
|
+
* Trigger context pad entry entry.
|
|
27853
|
+
*
|
|
27854
|
+
* @param {string} entryId
|
|
27855
|
+
* @param {string} action
|
|
27856
|
+
* @param {Event} event
|
|
27857
|
+
* @param {boolean} [autoActivate=false]
|
|
27858
|
+
*/
|
|
27859
|
+
ContextPad.prototype.triggerEntry = function(entryId, action, event, autoActivate) {
|
|
27860
|
+
|
|
27861
|
+
if (!this.isShown()) {
|
|
27862
|
+
return;
|
|
27863
|
+
}
|
|
27864
|
+
|
|
27865
|
+
var target = this._current.target,
|
|
27866
|
+
entries = this._current.entries;
|
|
27867
|
+
|
|
27868
|
+
var entry = entries[entryId];
|
|
27869
|
+
|
|
27870
|
+
if (!entry) {
|
|
27871
|
+
return;
|
|
27872
|
+
}
|
|
27873
|
+
|
|
27874
|
+
var handler = entry.action;
|
|
27875
|
+
|
|
27840
27876
|
// simple action (via callback function)
|
|
27841
27877
|
if (isFunction(handler)) {
|
|
27842
27878
|
if (action === 'click') {
|
|
27843
|
-
return handler(
|
|
27879
|
+
return handler(event, target, autoActivate);
|
|
27844
27880
|
}
|
|
27845
27881
|
} else {
|
|
27846
27882
|
if (handler[action]) {
|
|
27847
|
-
return handler[action](
|
|
27883
|
+
return handler[action](event, target, autoActivate);
|
|
27848
27884
|
}
|
|
27849
27885
|
}
|
|
27850
27886
|
|
|
@@ -28045,6 +28081,16 @@
|
|
|
28045
28081
|
};
|
|
28046
28082
|
|
|
28047
28083
|
|
|
28084
|
+
/**
|
|
28085
|
+
* Check if pad is open and not hidden.
|
|
28086
|
+
*
|
|
28087
|
+
* @return {boolean}
|
|
28088
|
+
*/
|
|
28089
|
+
ContextPad.prototype.isShown = function() {
|
|
28090
|
+
return this.isOpen() && this._overlays.isShown();
|
|
28091
|
+
};
|
|
28092
|
+
|
|
28093
|
+
|
|
28048
28094
|
/**
|
|
28049
28095
|
* Get contex pad position.
|
|
28050
28096
|
*
|
|
@@ -28097,11 +28143,11 @@
|
|
|
28097
28143
|
|
|
28098
28144
|
var n$1,l$1,u$1,t$2,o$1,f$1={},e$2=[],c$1=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function s$1(n,l){for(var u in l)n[u]=l[u];return n}function a$1(n){var l=n.parentNode;l&&l.removeChild(n);}function h$1(l,u,i){var t,o,r,f={};for(r in u)"key"==r?t=u[r]:"ref"==r?o=u[r]:f[r]=u[r];if(arguments.length>2&&(f.children=arguments.length>3?n$1.call(arguments,2):i),"function"==typeof l&&null!=l.defaultProps)for(r in l.defaultProps)void 0===f[r]&&(f[r]=l.defaultProps[r]);return v$1(l,f,t,o,null)}function v$1(n,i,t,o,r){var f={type:n,props:i,key:t,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==r?++u$1:r};return null==r&&null!=l$1.vnode&&l$1.vnode(f),f}function p$1(n){return n.children}function d$1(n,l){this.props=n,this.context=l;}function _$1(n,l){if(null==l)return n.__?_$1(n.__,n.__.__k.indexOf(n)+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?_$1(n):null}function k$1(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$1(n)}}function b$1(n){(!n.__d&&(n.__d=!0)&&t$2.push(n)&&!g$1.__r++||o$1!==l$1.debounceRendering)&&((o$1=l$1.debounceRendering)||setTimeout)(g$1);}function g$1(){for(var n;g$1.__r=t$2.length;)n=t$2.sort(function(n,l){return n.__v.__b-l.__v.__b}),t$2=[],n.some(function(n){var l,u,i,t,o,r;n.__d&&(o=(t=(l=n).__v).__e,(r=l.__P)&&(u=[],(i=s$1({},t)).__v=t.__v+1,j$1(r,t,i,l.__n,void 0!==r.ownerSVGElement,null!=t.__h?[o]:null,u,null==o?_$1(t):o,t.__h),z$1(u,t),t.__e!=o&&k$1(t)));});}function w$1(n,l,u,i,t,o,r,c,s,a){var h,y,d,k,b,g,w,x=i&&i.__k||e$2,C=x.length;for(u.__k=[],h=0;h<l.length;h++)if(null!=(k=u.__k[h]=null==(k=l[h])||"boolean"==typeof k?null:"string"==typeof k||"number"==typeof k||"bigint"==typeof k?v$1(null,k,null,null,k):Array.isArray(k)?v$1(p$1,{children:k},null,null,null):k.__b>0?v$1(k.type,k.props,k.key,k.ref?k.ref:null,k.__v):k)){if(k.__=u,k.__b=u.__b+1,null===(d=x[h])||d&&k.key==d.key&&k.type===d.type)x[h]=void 0;else for(y=0;y<C;y++){if((d=x[y])&&k.key==d.key&&k.type===d.type){x[y]=void 0;break}d=null;}j$1(n,k,d=d||f$1,t,o,r,c,s,a),b=k.__e,(y=k.ref)&&d.ref!=y&&(w||(w=[]),d.ref&&w.push(d.ref,null,k),w.push(y,k.__c||b,k)),null!=b?(null==g&&(g=b),"function"==typeof k.type&&k.__k===d.__k?k.__d=s=m$2(k,s,n):s=A(n,k,d,x,b,s),"function"==typeof u.type&&(u.__d=s)):s&&d.__e==s&&s.parentNode!=n&&(s=_$1(d));}for(u.__e=g,h=C;h--;)null!=x[h]&&N(x[h],x[h]);if(w)for(h=0;h<w.length;h++)M(w[h],w[++h],w[++h]);}function m$2(n,l,u){for(var i,t=n.__k,o=0;t&&o<t.length;o++)(i=t[o])&&(i.__=n,l="function"==typeof i.type?m$2(i,l,u):A(u,i,i,t,i.__e,l));return l}function A(n,l,u,i,t,o){var r,f,e;if(void 0!==l.__d)r=l.__d,l.__d=void 0;else if(null==u||t!=o||null==t.parentNode)n:if(null==o||o.parentNode!==n)n.appendChild(t),r=null;else {for(f=o,e=0;(f=f.nextSibling)&&e<i.length;e+=1)if(f==t)break n;n.insertBefore(t,o),r=o;}return void 0!==r?r:t.nextSibling}function C(n,l,u,i,t){var o;for(o in u)"children"===o||"key"===o||o in l||H(n,o,null,u[o],i);for(o in l)t&&"function"!=typeof l[o]||"children"===o||"key"===o||"value"===o||"checked"===o||u[o]===l[o]||H(n,o,l[o],u[o],i);}function $(n,l,u){"-"===l[0]?n.setProperty(l,u):n[l]=null==u?"":"number"!=typeof u||c$1.test(l)?u:u+"px";}function H(n,l,u,i,t){var o;n:if("style"===l)if("string"==typeof u)n.style.cssText=u;else {if("string"==typeof i&&(n.style.cssText=i=""),i)for(l in i)u&&l in u||$(n.style,l,"");if(u)for(l in u)i&&u[l]===i[l]||$(n.style,l,u[l]);}else if("o"===l[0]&&"n"===l[1])o=l!==(l=l.replace(/Capture$/,"")),l=l.toLowerCase()in n?l.toLowerCase().slice(2):l.slice(2),n.l||(n.l={}),n.l[l+o]=u,u?i||n.addEventListener(l,o?T$1:I,o):n.removeEventListener(l,o?T$1:I,o);else if("dangerouslySetInnerHTML"!==l){if(t)l=l.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("href"!==l&&"list"!==l&&"form"!==l&&"tabIndex"!==l&&"download"!==l&&l in n)try{n[l]=null==u?"":u;break n}catch(n){}"function"==typeof u||(null==u||!1===u&&-1==l.indexOf("-")?n.removeAttribute(l):n.setAttribute(l,u));}}function I(n){this.l[n.type+!1](l$1.event?l$1.event(n):n);}function T$1(n){this.l[n.type+!0](l$1.event?l$1.event(n):n);}function j$1(n,u,i,t,o,r,f,e,c){var a,h,v,y,_,k,b,g,m,x,A,C,$,H,I,T=u.type;if(void 0!==u.constructor)return null;null!=i.__h&&(c=i.__h,e=u.__e=i.__e,u.__h=null,r=[e]),(a=l$1.__b)&&a(u);try{n:if("function"==typeof T){if(g=u.props,m=(a=T.contextType)&&t[a.__c],x=a?m?m.props.value:a.__:t,i.__c?b=(h=u.__c=i.__c).__=h.__E:("prototype"in T&&T.prototype.render?u.__c=h=new T(g,x):(u.__c=h=new d$1(g,x),h.constructor=T,h.render=O),m&&m.sub(h),h.props=g,h.state||(h.state={}),h.context=x,h.__n=t,v=h.__d=!0,h.__h=[],h._sb=[]),null==h.__s&&(h.__s=h.state),null!=T.getDerivedStateFromProps&&(h.__s==h.state&&(h.__s=s$1({},h.__s)),s$1(h.__s,T.getDerivedStateFromProps(g,h.__s))),y=h.props,_=h.state,v)null==T.getDerivedStateFromProps&&null!=h.componentWillMount&&h.componentWillMount(),null!=h.componentDidMount&&h.__h.push(h.componentDidMount);else {if(null==T.getDerivedStateFromProps&&g!==y&&null!=h.componentWillReceiveProps&&h.componentWillReceiveProps(g,x),!h.__e&&null!=h.shouldComponentUpdate&&!1===h.shouldComponentUpdate(g,h.__s,x)||u.__v===i.__v){for(h.props=g,h.state=h.__s,u.__v!==i.__v&&(h.__d=!1),h.__v=u,u.__e=i.__e,u.__k=i.__k,u.__k.forEach(function(n){n&&(n.__=u);}),A=0;A<h._sb.length;A++)h.__h.push(h._sb[A]);h._sb=[],h.__h.length&&f.push(h);break n}null!=h.componentWillUpdate&&h.componentWillUpdate(g,h.__s,x),null!=h.componentDidUpdate&&h.__h.push(function(){h.componentDidUpdate(y,_,k);});}if(h.context=x,h.props=g,h.__v=u,h.__P=n,C=l$1.__r,$=0,"prototype"in T&&T.prototype.render){for(h.state=h.__s,h.__d=!1,C&&C(u),a=h.render(h.props,h.state,h.context),H=0;H<h._sb.length;H++)h.__h.push(h._sb[H]);h._sb=[];}else do{h.__d=!1,C&&C(u),a=h.render(h.props,h.state,h.context),h.state=h.__s;}while(h.__d&&++$<25);h.state=h.__s,null!=h.getChildContext&&(t=s$1(s$1({},t),h.getChildContext())),v||null==h.getSnapshotBeforeUpdate||(k=h.getSnapshotBeforeUpdate(y,_)),I=null!=a&&a.type===p$1&&null==a.key?a.props.children:a,w$1(n,Array.isArray(I)?I:[I],u,i,t,o,r,f,e,c),h.base=u.__e,u.__h=null,h.__h.length&&f.push(h),b&&(h.__E=h.__=null),h.__e=!1;}else null==r&&u.__v===i.__v?(u.__k=i.__k,u.__e=i.__e):u.__e=L(i.__e,u,i,t,o,r,f,c);(a=l$1.diffed)&&a(u);}catch(n){u.__v=null,(c||null!=r)&&(u.__e=e,u.__h=!!c,r[r.indexOf(e)]=null),l$1.__e(n,u,i);}}function z$1(n,u){l$1.__c&&l$1.__c(u,n),n.some(function(u){try{n=u.__h,u.__h=[],n.some(function(n){n.call(u);});}catch(n){l$1.__e(n,u.__v);}});}function L(l,u,i,t,o,r,e,c){var s,h,v,y=i.props,p=u.props,d=u.type,k=0;if("svg"===d&&(o=!0),null!=r)for(;k<r.length;k++)if((s=r[k])&&"setAttribute"in s==!!d&&(d?s.localName===d:3===s.nodeType)){l=s,r[k]=null;break}if(null==l){if(null===d)return document.createTextNode(p);l=o?document.createElementNS("http://www.w3.org/2000/svg",d):document.createElement(d,p.is&&p),r=null,c=!1;}if(null===d)y===p||c&&l.data===p||(l.data=p);else {if(r=r&&n$1.call(l.childNodes),h=(y=i.props||f$1).dangerouslySetInnerHTML,v=p.dangerouslySetInnerHTML,!c){if(null!=r)for(y={},k=0;k<l.attributes.length;k++)y[l.attributes[k].name]=l.attributes[k].value;(v||h)&&(v&&(h&&v.__html==h.__html||v.__html===l.innerHTML)||(l.innerHTML=v&&v.__html||""));}if(C(l,p,y,o,c),v)u.__k=[];else if(k=u.props.children,w$1(l,Array.isArray(k)?k:[k],u,i,t,o&&"foreignObject"!==d,r,e,r?r[0]:i.__k&&_$1(i,0),c),null!=r)for(k=r.length;k--;)null!=r[k]&&a$1(r[k]);c||("value"in p&&void 0!==(k=p.value)&&(k!==l.value||"progress"===d&&!k||"option"===d&&k!==y.value)&&H(l,"value",k,y.value,!1),"checked"in p&&void 0!==(k=p.checked)&&k!==l.checked&&H(l,"checked",k,y.checked,!1));}return l}function M(n,u,i){try{"function"==typeof n?n(u):n.current=u;}catch(n){l$1.__e(n,i);}}function N(n,u,i){var t,o;if(l$1.unmount&&l$1.unmount(n),(t=n.ref)&&(t.current&&t.current!==n.__e||M(t,null,u)),null!=(t=n.__c)){if(t.componentWillUnmount)try{t.componentWillUnmount();}catch(n){l$1.__e(n,u);}t.base=t.__P=null,n.__c=void 0;}if(t=n.__k)for(o=0;o<t.length;o++)t[o]&&N(t[o],u,i||"function"!=typeof n.type);i||null==n.__e||a$1(n.__e),n.__=n.__e=n.__d=void 0;}function O(n,l,u){return this.constructor(n,u)}function P(u,i,t){var o,r,e;l$1.__&&l$1.__(u,i),r=(o="function"==typeof t)?null:t&&t.__k||i.__k,e=[],j$1(i,u=(!o&&t||i).__k=h$1(p$1,null,[u]),r||f$1,f$1,void 0!==i.ownerSVGElement,!o&&t?[t]:r?null:i.firstChild?n$1.call(i.childNodes):null,e,!o&&t?t:r?r.__e:i.firstChild,o),z$1(e,u);}n$1=e$2.slice,l$1={__e:function(n,l,u,i){for(var t,o,r;l=l.__;)if((t=l.__c)&&!t.__)try{if((o=t.constructor)&&null!=o.getDerivedStateFromError&&(t.setState(o.getDerivedStateFromError(n)),r=t.__d),null!=t.componentDidCatch&&(t.componentDidCatch(n,i||{}),r=t.__d),r)return t.__E=t}catch(l){n=l;}throw n}},u$1=0,d$1.prototype.setState=function(n,l){var u;u=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=s$1({},this.state),"function"==typeof n&&(n=n(s$1({},u),this.props)),n&&s$1(u,n),null!=n&&this.__v&&(l&&this._sb.push(l),b$1(this));},d$1.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),b$1(this));},d$1.prototype.render=p$1,t$2=[],g$1.__r=0;
|
|
28099
28145
|
|
|
28100
|
-
var t
|
|
28146
|
+
var n=function(t,s,r,e){var u;s[0]=0;for(var h=1;h<s.length;h++){var p=s[h++],a=s[h]?(s[0]|=p?1:2,r[s[h++]]):s[++h];3===p?e[0]=a:4===p?e[1]=Object.assign(e[1]||{},a):5===p?(e[1]=e[1]||{})[s[++h]]=a:6===p?e[1][s[++h]]+=a+"":p?(u=t.apply(a,n(t,a,r,["",null])),e.push(u),a[0]?s[0]|=2:(s[h-2]=0,s[h]=u)):e.push(a);}return e},t$1=new Map;function e$1(s){var r=t$1.get(this);return r||(r=new Map,t$1.set(this,r)),(r=n(this,r.get(s)||(r.set(s,r=function(n){for(var t,s,r=1,e="",u="",h=[0],p=function(n){1===r&&(n||(e=e.replace(/^\s*\n\s*|\s*\n\s*$/g,"")))?h.push(0,n,e):3===r&&(n||e)?(h.push(3,n,e),r=2):2===r&&"..."===e&&n?h.push(4,n,0):2===r&&e&&!n?h.push(5,0,!0,e):r>=5&&((e||!n&&5===r)&&(h.push(r,0,e,s),r=6),n&&(h.push(r,n,0,s),r=6)),e="";},a=0;a<n.length;a++){a&&(1===r&&p(),p(a));for(var l=0;l<n[a].length;l++)t=n[a][l],1===r?"<"===t?(p(),h=[h],r=3):e+=t:4===r?"--"===e&&">"===t?(r=1,e=""):e=t+e[0]:u?t===u?u="":e+=t:'"'===t||"'"===t?u=t:">"===t?(p(),r=1):r&&("="===t?(r=5,s=e,e=""):"/"===t&&(r<5||">"===n[a][l+1])?(p(),3===r&&(h=h[0]),r=h,(h=h[0]).push(2,0,r),r=0):" "===t||"\t"===t||"\n"===t||"\r"===t?(p(),r=2):e+=t),3===r&&"!--"===e&&(r=4,h=h[0]);}return p(),h}(s)),r),arguments,[])).length>1?r:r[0]}
|
|
28101
28147
|
|
|
28102
|
-
var
|
|
28148
|
+
var m$1=e$1.bind(h$1);
|
|
28103
28149
|
|
|
28104
|
-
var
|
|
28150
|
+
var t,r$1,u,i,o=0,f=[],c=[],e=l$1.__b,a=l$1.__r,v=l$1.diffed,l=l$1.__c,m=l$1.unmount;function d(t,u){l$1.__h&&l$1.__h(r$1,t,o||u),o=0;var i=r$1.__H||(r$1.__H={__:[],__h:[]});return t>=i.__.length&&i.__.push({__V:c}),i.__[t]}function p(n){return o=1,y(B,n)}function y(n,u,i){var o=d(t++,2);if(o.t=n,!o.__c&&(o.__=[i?i(u):B(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$1,!r$1.u)){r$1.u=!0;var f=r$1.shouldComponentUpdate;r$1.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(u,i){var o=d(t++,3);!l$1.__s&&z(o.__H,i)&&(o.__=u,o.i=i,r$1.__H.__h.push(o));}function s(u,i){var o=d(t++,4);!l$1.__s&&z(o.__H,i)&&(o.__=u,o.i=i,r$1.__h.push(o));}function _(n){return o=5,F(function(){return {current:n}},[])}function F(n,r){var u=d(t++,7);return z(u.__H,r)?(u.__V=n(),u.i=r,u.__h=n,u.__V):u.__}function T(n,t){return o=8,F(function(){return n},t)}function b(){for(var t;t=f.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(k),t.__H.__h.forEach(w),t.__H.__h=[];}catch(r){t.__H.__h=[],l$1.__e(r,t.__v);}}l$1.__b=function(n){r$1=null,e&&e(n);},l$1.__r=function(n){a&&a(n),t=0;var i=(r$1=n.__c).__H;i&&(u===r$1?(i.__h=[],r$1.__h=[],i.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=c,n.__N=n.i=void 0;})):(i.__h.forEach(k),i.__h.forEach(w),i.__h=[])),u=r$1;},l$1.diffed=function(t){v&&v(t);var o=t.__c;o&&o.__H&&(o.__H.__h.length&&(1!==f.push(o)&&i===l$1.requestAnimationFrame||((i=l$1.requestAnimationFrame)||j)(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=r$1=null;},l$1.__c=function(t,r){r.some(function(t){try{t.__h.forEach(k),t.__h=t.__h.filter(function(n){return !n.__||w(n)});}catch(u){r.some(function(n){n.__h&&(n.__h=[]);}),r=[],l$1.__e(u,t.__v);}}),l&&l(t,r);},l$1.unmount=function(t){m&&m(t);var r,u=t.__c;u&&u.__H&&(u.__H.__.forEach(function(n){try{k(n);}catch(n){r=n;}}),u.__H=void 0,r&&l$1.__e(r,u.__v));};var g="function"==typeof requestAnimationFrame;function j(n){var t,r=function(){clearTimeout(u),g&&cancelAnimationFrame(t),setTimeout(n);},u=setTimeout(r,100);g&&(t=requestAnimationFrame(r));}function k(n){var t=r$1,u=n.__c;"function"==typeof u&&(n.__c=void 0,u()),r$1=t;}function w(n){var t=r$1;n.__c=n.__(),r$1=t;}function z(n,t){return !n||n.length!==t.length||t.some(function(t,r){return t!==n[r]})}function B(n,t){return "function"==typeof t?t(n):t}
|
|
28105
28151
|
|
|
28106
28152
|
function r(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=" "),n+=f);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function clsx(){for(var e,t,f=0,n="";f<arguments.length;)(e=arguments[f++])&&(t=r(e))&&(n&&(n+=" "),n+=t);return n}
|
|
28107
28153
|
|
|
@@ -28124,7 +28170,7 @@
|
|
|
28124
28170
|
onClick
|
|
28125
28171
|
} = props;
|
|
28126
28172
|
|
|
28127
|
-
return m`
|
|
28173
|
+
return m$1`
|
|
28128
28174
|
<li
|
|
28129
28175
|
class=${ clsx('entry', { selected }) }
|
|
28130
28176
|
data-id=${ entry.id }
|
|
@@ -28137,17 +28183,17 @@
|
|
|
28137
28183
|
<span
|
|
28138
28184
|
class=${ clsx('djs-popup-entry-name', entry.className) }
|
|
28139
28185
|
>
|
|
28140
|
-
${ entry.imageUrl ? m`
|
|
28186
|
+
${ entry.imageUrl ? m$1`
|
|
28141
28187
|
<img class="djs-popup-entry-icon" src=${ entry.imageUrl } />
|
|
28142
28188
|
` : null }
|
|
28143
28189
|
|
|
28144
|
-
${ entry.label ? m`
|
|
28190
|
+
${ entry.label ? m$1`
|
|
28145
28191
|
<span class="djs-popup-label">
|
|
28146
28192
|
${ entry.label }
|
|
28147
28193
|
</span>
|
|
28148
28194
|
` : null }
|
|
28149
28195
|
</span>
|
|
28150
|
-
${ entry.description && m`
|
|
28196
|
+
${ entry.description && m$1`
|
|
28151
28197
|
<span
|
|
28152
28198
|
class="djs-popup-entry-description"
|
|
28153
28199
|
title=${ entry.description }
|
|
@@ -28156,7 +28202,7 @@
|
|
|
28156
28202
|
</span>
|
|
28157
28203
|
` }
|
|
28158
28204
|
</div>
|
|
28159
|
-
${ entry.documentationRef && m`
|
|
28205
|
+
${ entry.documentationRef && m$1`
|
|
28160
28206
|
<div class="djs-popup-entry-docs">
|
|
28161
28207
|
<a
|
|
28162
28208
|
href="${ entry.documentationRef }"
|
|
@@ -28211,16 +28257,16 @@
|
|
|
28211
28257
|
}
|
|
28212
28258
|
}, [ selectedEntry ]);
|
|
28213
28259
|
|
|
28214
|
-
return m`
|
|
28260
|
+
return m$1`
|
|
28215
28261
|
<div class="djs-popup-results" ref=${ resultsRef }>
|
|
28216
|
-
${ groups.map(group => m`
|
|
28217
|
-
${ group.name && m`
|
|
28262
|
+
${ groups.map(group => m$1`
|
|
28263
|
+
${ group.name && m$1`
|
|
28218
28264
|
<div key=${ group.id } class="entry-header" title=${ group.name }>
|
|
28219
28265
|
${ group.name }
|
|
28220
28266
|
</div>
|
|
28221
28267
|
` }
|
|
28222
28268
|
<ul class="djs-popup-group" data-group=${ group.id }>
|
|
28223
|
-
${ group.entries.map(entry => m`
|
|
28269
|
+
${ group.entries.map(entry => m$1`
|
|
28224
28270
|
<${PopupMenuItem}
|
|
28225
28271
|
key=${ entry.id }
|
|
28226
28272
|
entry=${ entry }
|
|
@@ -28439,7 +28485,7 @@
|
|
|
28439
28485
|
|
|
28440
28486
|
const displayHeader = F(() => title || headerEntries.length > 0, [ title, headerEntries ]);
|
|
28441
28487
|
|
|
28442
|
-
return m`
|
|
28488
|
+
return m$1`
|
|
28443
28489
|
<${PopupMenuWrapper}
|
|
28444
28490
|
onClose=${ onClose }
|
|
28445
28491
|
onKeyup=${ handleKey }
|
|
@@ -28449,10 +28495,10 @@
|
|
|
28449
28495
|
width=${ width }
|
|
28450
28496
|
scale=${ scale }
|
|
28451
28497
|
>
|
|
28452
|
-
${ displayHeader && m`
|
|
28498
|
+
${ displayHeader && m$1`
|
|
28453
28499
|
<div class="djs-popup-header">
|
|
28454
28500
|
<h3 class="djs-popup-title" title=${ title }>${ title }</h3>
|
|
28455
|
-
${ headerEntries.map(entry => m`
|
|
28501
|
+
${ headerEntries.map(entry => m$1`
|
|
28456
28502
|
<span
|
|
28457
28503
|
class=${ getHeaderClasses(entry, entry === selectedEntry) }
|
|
28458
28504
|
onClick=${ event => onSelect(event, entry) }
|
|
@@ -28461,21 +28507,21 @@
|
|
|
28461
28507
|
onMouseEnter=${ () => setSelectedEntry(entry) }
|
|
28462
28508
|
onMouseLeave=${ () => setSelectedEntry(null) }
|
|
28463
28509
|
>
|
|
28464
|
-
${ entry.imageUrl ? m`
|
|
28510
|
+
${ entry.imageUrl ? m$1`
|
|
28465
28511
|
<img class="djs-popup-entry-icon" src=${ entry.imageUrl } />
|
|
28466
28512
|
` : null }
|
|
28467
28513
|
|
|
28468
|
-
${ entry.label ? m`
|
|
28514
|
+
${ entry.label ? m$1`
|
|
28469
28515
|
<span class="djs-popup-label">${ entry.label }</span>
|
|
28470
28516
|
` : null }
|
|
28471
28517
|
</span>
|
|
28472
28518
|
`) }
|
|
28473
28519
|
</div>
|
|
28474
28520
|
` }
|
|
28475
|
-
${ originalEntries.length > 0 && m`
|
|
28521
|
+
${ originalEntries.length > 0 && m$1`
|
|
28476
28522
|
<div class="djs-popup-body">
|
|
28477
28523
|
|
|
28478
|
-
${ searchable && m`
|
|
28524
|
+
${ searchable && m$1`
|
|
28479
28525
|
<div class="djs-popup-search">
|
|
28480
28526
|
<svg class="djs-popup-search-icon" width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
28481
28527
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M9.0325 8.5H9.625L13.3675 12.25L12.25 13.3675L8.5 9.625V9.0325L8.2975 8.8225C7.4425 9.5575 6.3325 10 5.125 10C2.4325 10 0.25 7.8175 0.25 5.125C0.25 2.4325 2.4325 0.25 5.125 0.25C7.8175 0.25 10 2.4325 10 5.125C10 6.3325 9.5575 7.4425 8.8225 8.2975L9.0325 8.5ZM1.75 5.125C1.75 6.9925 3.2575 8.5 5.125 8.5C6.9925 8.5 8.5 6.9925 8.5 5.125C8.5 3.2575 6.9925 1.75 5.125 1.75C3.2575 1.75 1.75 3.2575 1.75 5.125Z" fill="#22242A"/>
|
|
@@ -28494,7 +28540,7 @@
|
|
|
28494
28540
|
onClick=${ onSelect }
|
|
28495
28541
|
/>
|
|
28496
28542
|
</div>
|
|
28497
|
-
${ entries.length === 0 && m`
|
|
28543
|
+
${ entries.length === 0 && m$1`
|
|
28498
28544
|
<div class="djs-popup-no-results">No matching entries found.</div>
|
|
28499
28545
|
` }
|
|
28500
28546
|
` }
|
|
@@ -28547,7 +28593,7 @@
|
|
|
28547
28593
|
popupRef.current && popupRef.current.focus();
|
|
28548
28594
|
}, []);
|
|
28549
28595
|
|
|
28550
|
-
return m`
|
|
28596
|
+
return m$1`
|
|
28551
28597
|
<div
|
|
28552
28598
|
class="djs-popup-backdrop"
|
|
28553
28599
|
onClick=${ checkClose }
|
|
@@ -28678,7 +28724,7 @@
|
|
|
28678
28724
|
const onSelect = (event, entry) => this.trigger(event, entry);
|
|
28679
28725
|
|
|
28680
28726
|
P(
|
|
28681
|
-
m`
|
|
28727
|
+
m$1`
|
|
28682
28728
|
<${PopupMenuComponent}
|
|
28683
28729
|
onClose=${ onClose }
|
|
28684
28730
|
onSelect=${ onSelect }
|
|
@@ -28802,13 +28848,10 @@
|
|
|
28802
28848
|
|
|
28803
28849
|
PopupMenu.prototype._createContainer = function(config) {
|
|
28804
28850
|
|
|
28805
|
-
|
|
28806
|
-
|
|
28807
|
-
if (typeof parent === 'string') {
|
|
28808
|
-
parent = document.querySelector(parent);
|
|
28809
|
-
}
|
|
28851
|
+
var canvas = this._canvas,
|
|
28852
|
+
parent = canvas.getContainer();
|
|
28810
28853
|
|
|
28811
|
-
const container = domify$1(`<div class="djs-popup-parent djs-
|
|
28854
|
+
const container = domify$1(`<div class="djs-popup-parent djs-scrollable" data-popup=${config.provider}></div>`);
|
|
28812
28855
|
|
|
28813
28856
|
parent.appendChild(container);
|
|
28814
28857
|
|
|
@@ -39668,6 +39711,7 @@
|
|
|
39668
39711
|
var directEditing = injector.get('directEditing', false);
|
|
39669
39712
|
var searchPad = injector.get('searchPad', false);
|
|
39670
39713
|
var modeling = injector.get('modeling', false);
|
|
39714
|
+
var contextPad = injector.get('contextPad', false);
|
|
39671
39715
|
|
|
39672
39716
|
// (2) check components and register actions
|
|
39673
39717
|
|
|
@@ -39791,6 +39835,12 @@
|
|
|
39791
39835
|
});
|
|
39792
39836
|
}
|
|
39793
39837
|
|
|
39838
|
+
if (selection && contextPad) {
|
|
39839
|
+
this._registerAction('replaceElement', function(event) {
|
|
39840
|
+
contextPad.triggerEntry('replace', 'click', event);
|
|
39841
|
+
});
|
|
39842
|
+
}
|
|
39843
|
+
|
|
39794
39844
|
};
|
|
39795
39845
|
|
|
39796
39846
|
var EditorActionsModule = {
|
|
@@ -40909,6 +40959,23 @@
|
|
|
40909
40959
|
}
|
|
40910
40960
|
});
|
|
40911
40961
|
|
|
40962
|
+
// activate replace element
|
|
40963
|
+
// R
|
|
40964
|
+
addListener('replaceElement', function(context) {
|
|
40965
|
+
|
|
40966
|
+
var event = context.keyEvent;
|
|
40967
|
+
|
|
40968
|
+
if (keyboard.hasModifier(event)) {
|
|
40969
|
+
return;
|
|
40970
|
+
}
|
|
40971
|
+
|
|
40972
|
+
if (keyboard.isKey([ 'r', 'R' ], event)) {
|
|
40973
|
+
editorActions.trigger('replaceElement', event);
|
|
40974
|
+
|
|
40975
|
+
return true;
|
|
40976
|
+
}
|
|
40977
|
+
});
|
|
40978
|
+
|
|
40912
40979
|
};
|
|
40913
40980
|
|
|
40914
40981
|
var KeyboardModule = {
|