You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 line
20 KiB
1 line
20 KiB
"use strict";(self.webpackChunkjupyter_web=self.webpackChunkjupyter_web||[]).push([[5313],{31329:(Ue,se,k)=>{k.r(se),k.d(se,{diagram:()=>Re});var de=k(53420),ie=k(26692),z=k(9681),fe=(k(25333),k(77437),k(50027),k(62477),k(39624)),s=k(3685),pe=k(39603),re=k(46803),ae=k(69965),X=function(){var e=(0,s.eW)(function(I,i,t,a){for(t=t||{},a=I.length;a--;t[I[a]]=i);return t},"o"),u=[1,4],f=[1,13],r=[1,12],g=[1,15],v=[1,16],m=[1,20],l=[1,19],N=[6,7,8],C=[1,26],d=[1,24],K=[1,25],b=[6,7,11],T=[1,31],x=[6,7,11,24],R=[1,6,13,16,17,20,23],B=[1,35],y=[1,36],L=[1,6,7,11,13,16,17,20,23],A=[1,38],U={trace:(0,s.eW)(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,KANBAN:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,shapeData:15,ICON:16,CLASS:17,nodeWithId:18,nodeWithoutId:19,NODE_DSTART:20,NODE_DESCR:21,NODE_DEND:22,NODE_ID:23,SHAPE_DATA:24,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"KANBAN",11:"EOF",13:"SPACELIST",16:"ICON",17:"CLASS",20:"NODE_DSTART",21:"NODE_DESCR",22:"NODE_DEND",23:"NODE_ID",24:"SHAPE_DATA"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,3],[12,2],[12,2],[12,2],[12,1],[12,2],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[19,3],[18,1],[18,4],[15,2],[15,1]],performAction:(0,s.eW)(function(i,t,a,o,h,n,P){var c=n.length-1;switch(h){case 6:case 7:return o;case 8:o.getLogger().trace("Stop NL ");break;case 9:o.getLogger().trace("Stop EOF ");break;case 11:o.getLogger().trace("Stop NL2 ");break;case 12:o.getLogger().trace("Stop EOF2 ");break;case 15:o.getLogger().info("Node: ",n[c-1].id),o.addNode(n[c-2].length,n[c-1].id,n[c-1].descr,n[c-1].type,n[c]);break;case 16:o.getLogger().info("Node: ",n[c].id),o.addNode(n[c-1].length,n[c].id,n[c].descr,n[c].type);break;case 17:o.getLogger().trace("Icon: ",n[c]),o.decorateNode({icon:n[c]});break;case 18:case 23:o.decorateNode({class:n[c]});break;case 19:o.getLogger().trace("SPACELIST");break;case 20:o.getLogger().trace("Node: ",n[c-1].id),o.addNode(0,n[c-1].id,n[c-1].descr,n[c-1].type,n[c]);break;case 21:o.getLogger().trace("Node: ",n[c].id),o.addNode(0,n[c].id,n[c].descr,n[c].type);break;case 22:o.decorateNode({icon:n[c]});break;case 27:o.getLogger().trace("node found ..",n[c-2]),this.$={id:n[c-1],descr:n[c-1],type:o.getType(n[c-2],n[c])};break;case 28:this.$={id:n[c],descr:n[c],type:0};break;case 29:o.getLogger().trace("node found ..",n[c-3]),this.$={id:n[c-3],descr:n[c-1],type:o.getType(n[c-2],n[c])};break;case 30:this.$=n[c-1]+n[c];break;case 31:this.$=n[c]}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:u},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:u},{6:f,7:[1,10],9:9,12:11,13:r,14:14,16:g,17:v,18:17,19:18,20:m,23:l},e(N,[2,3]),{1:[2,2]},e(N,[2,4]),e(N,[2,5]),{1:[2,6],6:f,12:21,13:r,14:14,16:g,17:v,18:17,19:18,20:m,23:l},{6:f,9:22,12:11,13:r,14:14,16:g,17:v,18:17,19:18,20:m,23:l},{6:C,7:d,10:23,11:K},e(b,[2,24],{18:17,19:18,14:27,16:[1,28],17:[1,29],20:m,23:l}),e(b,[2,19]),e(b,[2,21],{15:30,24:T}),e(b,[2,22]),e(b,[2,23]),e(x,[2,25]),e(x,[2,26]),e(x,[2,28],{20:[1,32]}),{21:[1,33]},{6:C,7:d,10:34,11:K},{1:[2,7],6:f,12:21,13:r,14:14,16:g,17:v,18:17,19:18,20:m,23:l},e(R,[2,14],{7:B,11:y}),e(L,[2,8]),e(L,[2,9]),e(L,[2,10]),e(b,[2,16],{15:37,24:T}),e(b,[2,17]),e(b,[2,18]),e(b,[2,20],{24:A}),e(x,[2,31]),{21:[1,39]},{22:[1,40]},e(R,[2,13],{7:B,11:y}),e(L,[2,11]),e(L,[2,12]),e(b,[2,15],{24:A}),e(x,[2,30]),{22:[1,41]},e(x,[2,27]),e(x,[2,29])],defaultActions:{2:[2,1],6:[2,2]},parseError:(0,s.eW)(function(i,t){if(!t.recoverable){var a=new Error(i);throw a.hash=t,a}this.trace(i)},"parseError"),parse:(0,s.eW)(function(i){var t=this,a=[0],o=[],h=[null],n=[],P=this.table,c="",F=0,ce=0,le=0,Pe=2,he=1,Me=n.slice.call(arguments,1),_=Object.create(this.lexer),M={yy:{}};for(var q in this.yy)Object.prototype.hasOwnProperty.call(this.yy,q)&&(M.yy[q]=this.yy[q]);_.setInput(i,M.yy),M.yy.lexer=_,M.yy.parser=this,typeof _.yylloc>"u"&&(_.yylloc={});var $=_.yylloc;n.push($);var we=_.options&&_.options.ranges;function Be(D){a.length=a.length-2*D,h.length=h.length-D,n.length=n.length-D}function ue(){var D;return"number"!=typeof(D=o.pop()||_.lex()||he)&&(D instanceof Array&&(D=(o=D).pop()),D=t.symbols_[D]||D),D}"function"==typeof M.yy.parseError?this.parseError=M.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,(0,s.eW)(Be,"popStack"),(0,s.eW)(ue,"lex");for(var E,ee,w,O,te,G,W,ge,Z,V={};;){if(w=a[a.length-1],this.defaultActions[w]?O=this.defaultActions[w]:((null===E||typeof E>"u")&&(E=ue()),O=P[w]&&P[w][E]),typeof O>"u"||!O.length||!O[0]){var ne="";for(G in Z=[],P[w])this.terminals_[G]&&G>Pe&&Z.push("'"+this.terminals_[G]+"'");ne=_.showPosition?"Parse error on line "+(F+1)+":\n"+_.showPosition()+"\nExpecting "+Z.join(", ")+", got '"+(this.terminals_[E]||E)+"'":"Parse error on line "+(F+1)+": Unexpected "+(E==he?"end of input":"'"+(this.terminals_[E]||E)+"'"),this.parseError(ne,{text:_.match,token:this.terminals_[E]||E,line:_.yylineno,loc:$,expected:Z})}if(O[0]instanceof Array&&O.length>1)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+E);switch(O[0]){case 1:a.push(E),h.push(_.yytext),n.push(_.yylloc),a.push(O[1]),E=null,ee?(E=ee,ee=null):(ce=_.yyleng,c=_.yytext,F=_.yylineno,$=_.yylloc,le>0&&le--);break;case 2:if(W=this.productions_[O[1]][1],V.$=h[h.length-W],V._$={first_line:n[n.length-(W||1)].first_line,last_line:n[n.length-1].last_line,first_column:n[n.length-(W||1)].first_column,last_column:n[n.length-1].last_column},we&&(V._$.range=[n[n.length-(W||1)].range[0],n[n.length-1].range[1]]),typeof(te=this.performAction.apply(V,[c,ce,F,M.yy,O[1],h,n].concat(Me)))<"u")return te;W&&(a=a.slice(0,-1*W*2),h=h.slice(0,-1*W),n=n.slice(0,-1*W)),a.push(this.productions_[O[1]][0]),h.push(V.$),n.push(V._$),ge=P[a[a.length-2]][a[a.length-1]],a.push(ge);break;case 3:return!0}}return!0},"parse")},H=function(){return{EOF:1,parseError:(0,s.eW)(function(t,a){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,a)},"parseError"),setInput:(0,s.eW)(function(i,t){return this.yy=t||this.yy||{},this._input=i,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:(0,s.eW)(function(){var i=this._input[0];return this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i,i.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},"input"),unput:(0,s.eW)(function(i){var t=i.length,a=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var o=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),a.length-1&&(this.yylineno-=a.length-1);var h=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:a?(a.length===o.length?this.yylloc.first_column:0)+o[o.length-a.length].length-a[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[h[0],h[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},"unput"),more:(0,s.eW)(function(){return this._more=!0,this},"more"),reject:(0,s.eW)(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:(0,s.eW)(function(i){this.unput(this.match.slice(i))},"less"),pastInput:(0,s.eW)(function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:(0,s.eW)(function(){var i=this.match;return i.length<20&&(i+=this._input.substr(0,20-i.length)),(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:(0,s.eW)(function(){var i=this.pastInput(),t=new Array(i.length+1).join("-");return i+this.upcomingInput()+"\n"+t+"^"},"showPosition"),test_match:(0,s.eW)(function(i,t){var a,o,h;if(this.options.backtrack_lexer&&(h={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(h.yylloc.range=this.yylloc.range.slice(0))),(o=i[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=o.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:o?o[o.length-1].length-o[o.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+i[0].length},this.yytext+=i[0],this.match+=i[0],this.matches=i,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(i[0].length),this.matched+=i[0],a=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),a)return a;if(this._backtrack){for(var n in h)this[n]=h[n];return!1}return!1},"test_match"),next:(0,s.eW)(function(){if(this.done)return this.EOF;var i,t,a,o;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var h=this._currentRules(),n=0;n<h.length;n++)if((a=this._input.match(this.rules[h[n]]))&&(!t||a[0].length>t[0].length)){if(t=a,o=n,this.options.backtrack_lexer){if(!1!==(i=this.test_match(a,h[n])))return i;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(i=this.test_match(t,h[o]))&&i:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:(0,s.eW)(function(){return this.next()||this.lex()},"lex"),begin:(0,s.eW)(function(t){this.conditionStack.push(t)},"begin"),popState:(0,s.eW)(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:(0,s.eW)(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:(0,s.eW)(function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},"topState"),pushState:(0,s.eW)(function(t){this.begin(t)},"pushState"),stateStackSize:(0,s.eW)(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:(0,s.eW)(function(t,a,o,h){switch(o){case 0:return this.pushState("shapeData"),a.yytext="",24;case 1:return this.pushState("shapeDataStr"),24;case 2:return this.popState(),24;case 3:const P=/\n\s*/g;return a.yytext=a.yytext.replace(P,"<br/>"),24;case 4:return 24;case 5:case 10:case 29:case 32:this.popState();break;case 6:return t.getLogger().trace("Found comment",a.yytext),6;case 7:return 8;case 8:this.begin("CLASS");break;case 9:return this.popState(),17;case 11:t.getLogger().trace("Begin icon"),this.begin("ICON");break;case 12:return t.getLogger().trace("SPACELINE"),6;case 13:return 7;case 14:return 16;case 15:t.getLogger().trace("end icon"),this.popState();break;case 16:return t.getLogger().trace("Exploding node"),this.begin("NODE"),20;case 17:return t.getLogger().trace("Cloud"),this.begin("NODE"),20;case 18:return t.getLogger().trace("Explosion Bang"),this.begin("NODE"),20;case 19:return t.getLogger().trace("Cloud Bang"),this.begin("NODE"),20;case 20:case 21:case 22:case 23:return this.begin("NODE"),20;case 24:return 13;case 25:return 23;case 26:return 11;case 27:this.begin("NSTR2");break;case 28:return"NODE_DESCR";case 30:t.getLogger().trace("Starting NSTR"),this.begin("NSTR");break;case 31:return t.getLogger().trace("description:",a.yytext),"NODE_DESCR";case 33:return this.popState(),t.getLogger().trace("node end ))"),"NODE_DEND";case 34:return this.popState(),t.getLogger().trace("node end )"),"NODE_DEND";case 35:return this.popState(),t.getLogger().trace("node end ...",a.yytext),"NODE_DEND";case 36:case 39:case 40:return this.popState(),t.getLogger().trace("node end (("),"NODE_DEND";case 37:case 38:return this.popState(),t.getLogger().trace("node end (-"),"NODE_DEND";case 41:case 42:return t.getLogger().trace("Long description:",a.yytext),21}},"anonymous"),rules:[/^(?:@\{)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^\"]+)/i,/^(?:[^}^"]+)/i,/^(?:\})/i,/^(?:\s*%%.*)/i,/^(?:kanban\b)/i,/^(?::::)/i,/^(?:.+)/i,/^(?:\n)/i,/^(?:::icon\()/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[^\)]+)/i,/^(?:\))/i,/^(?:-\))/i,/^(?:\(-)/i,/^(?:\)\))/i,/^(?:\))/i,/^(?:\(\()/i,/^(?:\{\{)/i,/^(?:\()/i,/^(?:\[)/i,/^(?:[\s]+)/i,/^(?:[^\(\[\n\)\{\}@]+)/i,/^(?:$)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:[^"]+)/i,/^(?:["])/i,/^(?:[\)]\))/i,/^(?:[\)])/i,/^(?:[\]])/i,/^(?:\}\})/i,/^(?:\(-)/i,/^(?:-\))/i,/^(?:\(\()/i,/^(?:\()/i,/^(?:[^\)\]\(\}]+)/i,/^(?:.+(?!\(\())/i],conditions:{shapeDataEndBracket:{rules:[],inclusive:!1},shapeDataStr:{rules:[2,3],inclusive:!1},shapeData:{rules:[1,4,5],inclusive:!1},CLASS:{rules:[9,10],inclusive:!1},ICON:{rules:[14,15],inclusive:!1},NSTR2:{rules:[28,29],inclusive:!1},NSTR:{rules:[31,32],inclusive:!1},NODE:{rules:[27,30,33,34,35,36,37,38,39,40,41,42],inclusive:!1},INITIAL:{rules:[0,6,7,8,11,12,13,16,17,18,19,20,21,22,23,24,25,26],inclusive:!0}}}}();function j(){this.yy={}}return U.lexer=H,(0,s.eW)(j,"Parser"),j.prototype=U,U.Parser=j,new j}();X.parser=X;var _e=X,S=[],Y=[],J=0,Q={},ye=(0,s.eW)(()=>{S=[],Y=[],J=0,Q={}},"clear"),be=(0,s.eW)(e=>{if(0===S.length)return null;const u=S[0].level;let f=null;for(let r=S.length-1;r>=0;r--)if(S[r].level===u&&!f&&(f=S[r]),S[r].level<u)throw new Error('Items without section detected, found section ("'+S[r].label+'")');return e===f?.level?null:f},"getSection"),oe=(0,s.eW)(function(){return Y},"getSections"),Ee=(0,s.eW)(function(){const u=[],f=oe(),r=(0,s.nV)();for(const g of f){const v={id:g.id,label:(0,s.oO)(g.label??"",r),isGroup:!0,ticket:g.ticket,shape:"kanbanSection",level:g.level,look:r.look};u.push(v);const m=S.filter(l=>l.parentId===g.id);for(const l of m){const N={id:l.id,parentId:g.id,label:(0,s.oO)(l.label??"",r),isGroup:!1,ticket:l?.ticket,priority:l?.priority,assigned:l?.assigned,icon:l?.icon,shape:"kanbanItem",level:l.level,rx:5,ry:5,cssStyles:["text-align: left"]};u.push(N)}}return{nodes:u,edges:[],other:{},config:(0,s.nV)()}},"getData"),ke=(0,s.eW)((e,u,f,r,g)=>{const v=(0,s.nV)();let m=v.mindmap?.padding??s.vZ.mindmap.padding;switch(r){case p.ROUNDED_RECT:case p.RECT:case p.HEXAGON:m*=2}const l={id:(0,s.oO)(u,v)||"kbn"+J++,level:e,label:(0,s.oO)(f,v),width:v.mindmap?.maxNodeWidth??s.vZ.mindmap.maxNodeWidth,padding:m,isGroup:!1};if(void 0!==g){let C;C=g.includes("\n")?g+"\n":"{\n"+g+"\n}";const d=(0,ie.z)(C,{schema:ie.A});if(d.shape&&(d.shape!==d.shape.toLowerCase()||d.shape.includes("_")))throw new Error(`No such shape: ${d.shape}. Shape names should be lowercase.`);d?.shape&&"kanbanItem"===d.shape&&(l.shape=d?.shape),d?.label&&(l.label=d?.label),d?.icon&&(l.icon=d?.icon.toString()),d?.assigned&&(l.assigned=d?.assigned.toString()),d?.ticket&&(l.ticket=d?.ticket.toString()),d?.priority&&(l.priority=d?.priority)}const N=be(e);N?l.parentId=N.id||"kbn"+J++:Y.push(l),S.push(l)},"addNode"),p={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},xe={clear:ye,addNode:ke,getSections:oe,getData:Ee,nodeType:p,getType:(0,s.eW)((e,u)=>{switch(s.cM.debug("In get type",e,u),e){case"[":return p.RECT;case"(":return")"===u?p.ROUNDED_RECT:p.CLOUD;case"((":return p.CIRCLE;case")":return p.CLOUD;case"))":return p.BANG;case"{{":return p.HEXAGON;default:return p.DEFAULT}},"getType"),setElementForId:(0,s.eW)((e,u)=>{Q[e]=u},"setElementForId"),decorateNode:(0,s.eW)(e=>{if(!e)return;const u=(0,s.nV)(),f=S[S.length-1];e.icon&&(f.icon=(0,s.oO)(e.icon,u)),e.class&&(f.cssClasses=(0,s.oO)(e.class,u))},"decorateNode"),type2Str:(0,s.eW)(e=>{switch(e){case p.DEFAULT:return"no-border";case p.RECT:return"rect";case p.ROUNDED_RECT:return"rounded-rect";case p.CIRCLE:return"circle";case p.CLOUD:return"cloud";case p.BANG:return"bang";case p.HEXAGON:return"hexgon";default:return"no-border"}},"type2Str"),getLogger:(0,s.eW)(()=>s.cM,"getLogger"),getElementById:(0,s.eW)(e=>Q[e],"getElementById")},Ce={draw:(0,s.eW)(function(){var e=(0,de.Z)(function*(u,f,r,g){s.cM.debug("Rendering kanban diagram\n"+u);const m=g.db.getData(),l=(0,s.nV)();l.htmlLabels=!1;const N=(0,fe.P)(f),C=N.append("g");C.attr("class","sections");const d=N.append("g");d.attr("class","items");const K=m.nodes.filter(y=>y.isGroup);let b=0;const x=[];let R=25;for(const y of K){const L=l?.kanban?.sectionWidth||200;b+=1,y.x=L*b+10*(b-1)/2,y.width=L,y.y=0,y.height=3*L,y.rx=5,y.ry=5,y.cssClasses=y.cssClasses+" section-"+b;const A=yield(0,z.us)(C,y);R=Math.max(R,A?.labelBBox?.height),x.push(A)}let B=0;for(const y of K){const L=x[B];B+=1;const A=l?.kanban?.sectionWidth||200,U=3*-A/2+R;let H=U;const j=m.nodes.filter(t=>t.parentId===y.id);for(const t of j){if(t.isGroup)throw new Error("Groups within groups are not allowed in Kanban diagrams");t.x=y.x,t.width=A-15;const o=(yield(0,z.Lf)(d,t,{config:l})).node().getBBox();t.y=H+o.height/2,yield(0,z.aH)(t),H=t.y+o.height/2+5}const I=L.cluster.select("rect"),i=Math.max(H-U+30,50)+(R-25);I.attr("height",i)}(0,s.j7)(void 0,N,l.mindmap?.padding??s.vZ.kanban.padding,l.mindmap?.useMaxWidth??s.vZ.kanban.useMaxWidth)});return function(u,f,r,g){return e.apply(this,arguments)}}(),"draw")},We=(0,s.eW)(e=>{let u="";for(let r=0;r<e.THEME_COLOR_LIMIT;r++)e["lineColor"+r]=e["lineColor"+r]||e["cScaleInv"+r],(0,pe.Z)(e["lineColor"+r])?e["lineColor"+r]=(0,re.Z)(e["lineColor"+r],20):e["lineColor"+r]=(0,ae.Z)(e["lineColor"+r],20);const f=(0,s.eW)((r,g)=>e.darkMode?(0,ae.Z)(r,g):(0,re.Z)(r,g),"adjuster");for(let r=0;r<e.THEME_COLOR_LIMIT;r++){const g=""+(17-3*r);u+=`\n .section-${r-1} rect, .section-${r-1} path, .section-${r-1} circle, .section-${r-1} polygon, .section-${r-1} path {\n fill: ${f(e["cScale"+r],10)};\n stroke: ${f(e["cScale"+r],10)};\n\n }\n .section-${r-1} text {\n fill: ${e["cScaleLabel"+r]};\n }\n .node-icon-${r-1} {\n font-size: 40px;\n color: ${e["cScaleLabel"+r]};\n }\n .section-edge-${r-1}{\n stroke: ${e["cScale"+r]};\n }\n .edge-depth-${r-1}{\n stroke-width: ${g};\n }\n .section-${r-1} line {\n stroke: ${e["cScaleInv"+r]} ;\n stroke-width: 3;\n }\n\n .disabled, .disabled circle, .disabled text {\n fill: lightgray;\n }\n .disabled text {\n fill: #efefef;\n }\n\n .node rect,\n .node circle,\n .node ellipse,\n .node polygon,\n .node path {\n fill: ${e.background};\n stroke: ${e.nodeBorder};\n stroke-width: 1px;\n }\n\n .kanban-ticket-link {\n fill: ${e.background};\n stroke: ${e.nodeBorder};\n text-decoration: underline;\n }\n `}return u},"genSections"),Re={db:xe,renderer:Ce,parser:_e,styles:(0,s.eW)(e=>`\n .edge {\n stroke-width: 3;\n }\n ${We(e)}\n .section-root rect, .section-root path, .section-root circle, .section-root polygon {\n fill: ${e.git0};\n }\n .section-root text {\n fill: ${e.gitBranchLabel0};\n }\n .icon-container {\n height:100%;\n display: flex;\n justify-content: center;\n align-items: center;\n }\n .edge {\n fill: none;\n }\n .cluster-label, .label {\n color: ${e.textColor};\n fill: ${e.textColor};\n }\n .kanban-label {\n dy: 1em;\n alignment-baseline: middle;\n text-anchor: middle;\n dominant-baseline: middle;\n text-align: center;\n }\n`,"getStyles")}}}]); |