| /plugin/bpmnioeditor/vendor/bpmnio-js/ |
| D | bpmn-modeler.development.js | 32253 headerEntries = this._getHeaderEntries(element, providers); 32256 hasHeaderEntries = headerEntries && size(headerEntries) > 0; 32300 headerEntries = this._getHeaderEntries(element, providers); 32302 current.entries = assign({}, entries, headerEntries); 32306 if (size(headerEntries)) { 32308 this._createEntries(headerEntries, 'djs-popup-header') 35365 var headerEntries = []; 35368 headerEntries = headerEntries.concat(this._getLoopEntries(element)); 35372 headerEntries = headerEntries.concat(this._getDataObjectIsCollection(element)); 35376 headerEntries = headerEntries.concat(this._getParticipantMultiplicity(element)); [all …]
|
| /plugin/bpmnio/vendor/dmn-js/dist/ |
| H A D | dmn-modeler.production.min.js | 58 `}function HS(n){var e,t,i="";if(typeof n=="string"||typeof n=="number")i+=n;else if(typeof n=="object")if(Array.isArray(n)){var r=n.length;for(e=0;e<r;e++)n[e]&&(t=HS(n[e]))&&(i&&(i+=" "),i+=t)}else for(t in n)n[t]&&(i&&(i+=" "),i+=t);return i}function Sj(){for(var n,e,t=0,i="",r=arguments.length;t<r;t++)(n=arguments[t])&&(e=HS(n))&&(i&&(i+=" "),i+=e);return i}var ys=Sj;function Ex(n){let{headerEntries:e,onSelect:t,selectedEntry:i,setSelectedEntry:r,title:o}=n,s=Kn(()=>Oj(e),[e]),a=c=>c.action&&!c.disabled,l=(c,u)=>{if(a(u))return t(c,u)};return xe` 167 `}function Rj(n){typeof n.scrollIntoViewIfNeeded=="function"?n.scrollIntoViewIfNeeded():n.scrollIntoView({scrollMode:"if-needed",block:"nearest"})}function kx(n){let{onClose:e,onSelect:t,className:i,headerEntries:r,position:o,title:s,width:a,scale:l,search:c,emptyPlaceholder:u,searchFn:f,entries:h,onOpened:d,onClosed:p}=n,[m,g]=kf([]);Aa(()=>{g([])},[h]);let[b,_]=kf(""),v=b.trim().length>0,x=Kn(()=>Mj(h),[h]),C=Kn(()=>Me(c)?x.length>5:!1,[c,x]),E=Kn(()=>{let re=m.length?m[m.length-1].entries:h;return C?v?f(x.filter(({searchable:me})=>me!==!1),b,{keys:["label","search","description"]}).map(({item:me})=>me):re.filter(({rank:me=0})=>me>=0):re},[C,v,x,b,f,m,h]),S=Kn(()=>v?E.length?[{id:"default",entries:E}]:[]:Pj(E),[E,v]),[w,R]=kf(E[0]),A=Pa(null);Aa(()=>{let re=A.current;re&&E.includes(re)?R(re):R(E[0]),A.current=null},[E]);let I=gs(re=>{let me=Aj(S),$e=me.indexOf(w)+re;$e<0&&($e=me.length-1),$e>=me.length&&($e=0),R(me[$e])},[S,w]),D=gs(re=>{re>0&&w&&w.entries&&g(me=>[...me,w]),re<0&&m.length>0&&(A.current=m[m.length+re],g(me=>me.slice(0,re)))},[w,m]),N=gs((re,me,Ue)=>{if(!(!me||me.disabled))return me.entries?(re.preventDefault(),D(1)):t(re,me,Ue)},[t,D]),W=gs(re=>{if(re.key==="Enter"&&w)return w.disabled?void 0:N(re,w);if(re.key==="Backspace"){let me=re.target;if(!(hr(me,"input")&&me.value!==""))return D(-1),re.preventDefault()}if(re.key==="ArrowUp")return I(-1),re.preventDefault();if(re.key==="ArrowDown")return I(1),re.preventDefault();if(re.key==="ArrowRight")return D(1),re.preventDefault();if(re.key==="ArrowLeft")return D(-1),re.preventDefault()},[w,I,D,N]),Re=gs(re=>{hr(re.target,"input")&&_(()=>re.target.value)},[_]);Aa(()=>(d(),()=>{p()}),[]);let _e=!v&&m.length>0,ue=(s||r.length>0)&&!_e;return xe` 179 headerEntries=${r} 233 `}function Tj(n){return{transform:`scale(${n.scale})`,width:`${n.width}px`,"transform-origin":"top left"}}function Aj(n){let e=[];return n.forEach(t=>{t.entries.forEach(i=>{e.push(i)})}),e}function Mj(n){let e=[];function t(i){i.forEach(r=>{if(r.entries){t(r.entries);return}e.push(r)})}return t(n),e}function Pj(n){let e=[],t=o=>e.find(s=>o.id===s.id),i=o=>!!t(o),r=o=>typeof o=="string"?{id:o}:o;return n.forEach(o=>{let s=o.group?r(o.group):{id:"default"};i(s)?t(s).entries.push(o):e.push({...s,entries:[o]})}),e}var Dj="data-id",WS=["contextPad.close","canvas.viewbox.changing","commandStack.changed"],Ij=1e3;function Le(n,e,t,i){this._eventBus=e,this._canvas=t,this._search=i,this._current=null;var r=Me(n&&n.scale)?n.scale:{min:1,max:1};this._config={scale:r},e.on("diagram.destroy",()=>{this.close()}),e.on("element.changed",o=>{let s=this.isOpen()&&this._current.target;o.element===s&&this.refresh()})}Le.$inject=["config.popupMenu","eventBus","canvas","search"];Le.prototype._render=function(){let{position:n,providerId:e,entries:t,headerEntries:i,emptyPlaceholder:r,options:o}=this._current,s=US(t),a=Object.entries(i).map(([h,d])=>({id:h,...d})),l=n&&(h=>this._ensureVisible(h,n)),c=this._updateScale(this._current.container);cm(xe` 240 headerEntries=${a} 248 `,this._current.container)};Le.prototype.open=function(n,e,t,i){if(!n)throw new Error("target is missing");if(!e)throw new Error("providers for <"+e+"> not found");if(!t)throw new Error("position is missing");var r=this._eventBus.fire("popupMenu.open.allowed",{target:n,providerId:e});if(r===!1)return;this.isOpen()&&this.close();let{entries:o,headerEntries:s,emptyPlaceholder:a}=this._getContext(n,e);this._current={position:t,providerId:e,target:n,entries:o,headerEntries:s,emptyPlaceholder:a,container:this._createContainer({provider:e}),options:i},this._emit("open"),this._bindAutoClose(),this._render()};Le.prototype.refresh=function(){if(!this.isOpen())return;let{target:n,providerId:e}=this._current,{entries:t,headerEntries:i,emptyPlaceholder:r}=this._getContext(n,e);this._current={...this._current,entries:t,headerEntries:i,emptyPlaceholder:r},this._emit("refresh"),this._render()};Le.prototype._getContext=function(n,e){let t=this._getProviders(e);if(!t||!t.length)throw new Error("provider for <"+e+"> not found");let i=this._getEntries(n,t),r=this._getHeaderEntries(n,t),o=this._getEmptyPlaceholder(t);return{entries:i,headerEntries 197 `,this._current.container)};De.prototype.open=function(n,e,t,i){if(!n)throw new Error("target is missing");if(!e)throw new Error("providers for <"+e+"> not found");if(!t)throw global() property [all...] |
| /plugin/bpmnio/vendor/bpmn-js/dist/ |
| H A D | bpmn-modeler.production.min.js | 44 `}function Hv(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Hv(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function CC(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Hv(e))&&(r&&(r+=" "),r+=t);return r}var Ni=CC;function xf(e){let{headerEntries:t,onSelect:n,selectedEntry:r,setSelectedEntry:i,title:o}=e,a=Mn(()=>RC(t),[t]),s=u=>u.action&&!u.disabled,c=(u,p)=>{if(s(p))return n(u,p)};return Re` 153 `}function AC(e){typeof e.scrollIntoViewIfNeeded=="function"?e.scrollIntoViewIfNeeded():e.scrollIntoView({scrollMode:"if-needed",block:"nearest"})}N();function Sf(e){let{onClose:t,onSelect:n,className:r,headerEntries:i,position:o,title:a,width:s,scale:c,search:u,emptyPlaceholder:p,searchFn:l,entries:f,onOpened:d,onClosed:m}=e,[g,v]=Va([]);Po(()=>{v([])},[f]);let[w,S]=Va(""),x=w.trim().length>0,b=Mn(()=>DC(f),[f]),R=Mn(()=>Ue(u)?b.length>5:!1,[u,b]),A=Mn(()=>{let he=g.length?g[g.length-1].entries:f;return R?x?l(b.filter(({searchable:we})=>we!==!1),w,{keys:["label","search","description"]}).map(({item:we})=>we):he.filter(({rank:we=0})=>we>=0):he},[R,x,b,w,l,g,f]),O=Mn(()=>x?A.length?[{id:"default",entries:A}]:[]:kC(A),[A,x]),[T,I]=Va(A[0]),L=To(null);Po(()=>{let he=L.current;he&&A.includes(he)?I(he):I(A[0]),L.current=null},[A]);let W=ki(he=>{let we=MC(O),Ze=we.indexOf(T)+he;Ze<0&&(Ze=we.length-1),Ze>=we.length&&(Ze=0),I(we[Ze])},[O,T]),z=ki(he=>{he>0&&T&&T.entries&&v(we=>[...we,T]),he<0&&g.length>0&&(L.current=g[g.length+he],v(we=>we.slice(0,he)))},[T,g]),K=ki((he,we,Ie)=>{if(!(!we||we.disabled))return we.entries?(he.preventDefault(),z(1)):n(he,we,Ie)},[n,z]),ve=ki(he=>{if(he.key==="Enter"&&T)return T.disabled?void 0:K(he,T);if(he.key==="Backspace"){let we=he.target;if(!(Ra(we,"input")&&we.value!==""))return z(-1),he.preventDefault()}if(he.key==="ArrowUp")return W(-1),he.preventDefault();if(he.key==="ArrowDown")return W(1),he.preventDefault();if(he.key==="ArrowRight")return z(1),he.preventDefault();if(he.key==="ArrowLeft")return z(-1),he.preventDefault()},[T,W,z,K]),Jt=ki(he=>{Ra(he.target,"input")&&S(()=>he.target.value)},[S]);Po(()=>(d(),()=>{m()}),[]);let ke=!x&&g.length>0,ye=(a||i.length>0)&&!ke;return Re` 165 headerEntries=${i} 219 `}function TC(e){return{transform:`scale(${e.scale})`,width:`${e.width}px`,"transform-origin":"top left"}}function MC(e){let t=[];return e.forEach(n=>{n.entries.forEach(r=>{t.push(r)})}),t}function DC(e){let t=[];function n(r){r.forEach(i=>{if(i.entries){n(i.entries);return}t.push(i)})}return n(e),t}function kC(e){let t=[],n=o=>t.find(a=>o.id===a.id),r=o=>!!n(o),i=o=>typeof o=="string"?{id:o}:o;return e.forEach(o=>{let a=o.group?i(o.group):{id:"default"};r(a)?n(a).entries.push(o):t.push({...a,entries:[o]})}),t}var NC="data-id",zv=["contextPad.close","canvas.viewbox.changing","commandStack.changed"],OC=1e3;function Ve(e,t,n,r){this._eventBus=t,this._canvas=n,this._search=r,this._current=null;var i=Ue(e&&e.scale)?e.scale:{min:1,max:1};this._config={scale:i},t.on("diagram.destroy",()=>{this.close()}),t.on("element.changed",o=>{let a=this.isOpen()&&this._current.target;o.element===a&&this.refresh()})}Ve.$inject=["config.popupMenu","eventBus","canvas","search"];Ve.prototype._render=function(){let{position:e,providerId:t,entries:n,headerEntries:r,emptyPlaceholder:i,options:o}=this._current,a=Gv(n),s=Object.entries(r).map(([f,d])=>({id:f,...d})),c=e&&(f=>this._ensureVisible(f,e)),u=this._updateScale(this._current.container);yu(Re` 226 headerEntries=${s} 234 `,this._current.container)};Ve.prototype.open=function(e,t,n,r){if(!e)throw new Error("target is missing");if(!t)throw new Error("providers for <"+t+"> not found");if(!n)throw new Error("position is missing");var i=this._eventBus.fire("popupMenu.open.allowed",{target:e,providerId:t});if(i===!1)return;this.isOpen()&&this.close();let{entries:o,headerEntries:a,emptyPlaceholder:s}=this._getContext(e,t);this._current={position:n,providerId:t,target:e,entries:o,headerEntries:a,emptyPlaceholder:s,container:this._createContainer({provider:t}),options:r},this._emit("open"),this._bindAutoClose(),this._render()};Ve.prototype.refresh=function(){if(!this.isOpen())return;let{target:e,providerId:t}=this._current,{entries:n,headerEntries:r,emptyPlaceholder:i}=this._getContext(e,t);this._current={...this._current,entries:n,headerEntries:r,emptyPlaceholder:i},this._emit("refresh"),this._render()};Ve.prototype._getContext=function(e,t){let n=this._getProviders(t);if(!n||!n.length)throw new Error("provider for <"+t+"> not found");let r=this._getEntries(e,n),i=this._getHeaderEntries(e,n),o=this._getEmptyPlaceholder(n);return{entries:r,headerEntries 183 `,this._current.container)};je.prototype.open=function(e,t,n,r){if(!e)throw new Error("target is missing");if(!t)throw new Error("providers for <"+t+"> not found");if(!n)throw global() property [all...] |