@wandox/sdk 0.1.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/README.md +59 -0
- package/dist/arc-BJMRTG9S.cjs +1 -0
- package/dist/arc-Vdco0qfw.js +83 -0
- package/dist/architectureDiagram-3BPJPVTR-BjEqcvey.js +4695 -0
- package/dist/architectureDiagram-3BPJPVTR-BvjJfAkh.cjs +36 -0
- package/dist/blockDiagram-GPEHLZMM-B1xf7RE9.js +2427 -0
- package/dist/blockDiagram-GPEHLZMM-B5VqovGY.cjs +132 -0
- package/dist/c4Diagram-AAUBKEIU-C4kjMRea.js +1578 -0
- package/dist/c4Diagram-AAUBKEIU-Ck5uEnJI.cjs +10 -0
- package/dist/channel-DlRtLuYv.js +5 -0
- package/dist/channel-Dm_yrRYJ.cjs +1 -0
- package/dist/chunk-2J33WTMH-CG2n_n4y.cjs +1 -0
- package/dist/chunk-2J33WTMH-CWvmGb4H.js +20 -0
- package/dist/chunk-4BX2VUAB-Bq3GzsD8.js +9 -0
- package/dist/chunk-4BX2VUAB-CdMctZeT.cjs +1 -0
- package/dist/chunk-55IACEB6-BdJhzL0d.js +8 -0
- package/dist/chunk-55IACEB6-sHyHtvg8.cjs +1 -0
- package/dist/chunk-727SXJPM-D-Vmam30.cjs +206 -0
- package/dist/chunk-727SXJPM-DmruCqjM.js +1529 -0
- package/dist/chunk-AQP2D5EJ-CWhKjcV3.cjs +231 -0
- package/dist/chunk-AQP2D5EJ-Ca0ak6w7.js +1399 -0
- package/dist/chunk-FMBD7UC4-CqV0NWQQ.js +19 -0
- package/dist/chunk-FMBD7UC4-DOxtd0OO.cjs +15 -0
- package/dist/chunk-ND2GUHAM-6EMX5Mu8.js +68 -0
- package/dist/chunk-ND2GUHAM-BXeDBtSC.cjs +1 -0
- package/dist/chunk-QZHKN3VN-B7FSI55w.js +15 -0
- package/dist/chunk-QZHKN3VN-CbbdNKnD.cjs +1 -0
- package/dist/classDiagram-4FO5ZUOK-0Kaf7WfA.js +16 -0
- package/dist/classDiagram-4FO5ZUOK-C4it2xBI.cjs +1 -0
- package/dist/classDiagram-v2-Q7XG4LA2-Byom5adL.js +16 -0
- package/dist/classDiagram-v2-Q7XG4LA2-C4it2xBI.cjs +1 -0
- package/dist/cose-bilkent-S5V4N54A-CuUv9oIm.js +2606 -0
- package/dist/cose-bilkent-S5V4N54A-Dh6nTopA.cjs +1 -0
- package/dist/cytoscape.esm-Cp8cXbK2.js +18729 -0
- package/dist/cytoscape.esm-fcqEUasK.cjs +331 -0
- package/dist/dagre-BM42HDAG-CwxJjZ2n.cjs +4 -0
- package/dist/dagre-BM42HDAG-DMBidMxP.js +448 -0
- package/dist/defaultLocale-BDVPUiG2.js +171 -0
- package/dist/defaultLocale-k2G_58r6.cjs +1 -0
- package/dist/diagram-2AECGRRQ-B2a4nXgJ.js +221 -0
- package/dist/diagram-2AECGRRQ-r7De7taS.cjs +43 -0
- package/dist/diagram-5GNKFQAL-CDiO79WC.cjs +10 -0
- package/dist/diagram-5GNKFQAL-DrHBNZzF.js +123 -0
- package/dist/diagram-KO2AKTUF-BcjWCXZr.js +466 -0
- package/dist/diagram-KO2AKTUF-CDlJCxVO.cjs +3 -0
- package/dist/diagram-LMA3HP47-BXFSAyNV.cjs +24 -0
- package/dist/diagram-LMA3HP47-DJxmyqn0.js +143 -0
- package/dist/diagram-OG6HWLK6-ATK__ca8.js +531 -0
- package/dist/diagram-OG6HWLK6-CgIyEO8_.cjs +24 -0
- package/dist/erDiagram-TEJ5UH35-D4baWNzQ.js +900 -0
- package/dist/erDiagram-TEJ5UH35-Dyuc5EB6.cjs +85 -0
- package/dist/flowDiagram-I6XJVG4X-BMZOncyU.js +1635 -0
- package/dist/flowDiagram-I6XJVG4X-C45fICr4.cjs +162 -0
- package/dist/ganttDiagram-6RSMTGT7-CiYZmmke.js +2526 -0
- package/dist/ganttDiagram-6RSMTGT7-Cxoj6IK8.cjs +292 -0
- package/dist/gitGraphDiagram-PVQCEYII-CQ9bNuwN.js +828 -0
- package/dist/gitGraphDiagram-PVQCEYII-rlaY9dfj.cjs +106 -0
- package/dist/graph-CBizzZ7K.js +1545 -0
- package/dist/graph-V5BNIbHU.cjs +1 -0
- package/dist/index-jBRold1l.js +173159 -0
- package/dist/index-sFrjovbM.cjs +804 -0
- package/dist/index.d.ts +54 -0
- package/dist/infoDiagram-5YYISTIA-CAzYIvUX.js +24 -0
- package/dist/infoDiagram-5YYISTIA-zX5rQglQ.cjs +2 -0
- package/dist/init-CHZsXQcr.cjs +1 -0
- package/dist/init-DjUOC4st.js +16 -0
- package/dist/ishikawaDiagram-YF4QCWOH-09prKBsn.cjs +70 -0
- package/dist/ishikawaDiagram-YF4QCWOH-Co8BnN24.js +622 -0
- package/dist/journeyDiagram-JHISSGLW-DkdWRF_-.cjs +139 -0
- package/dist/journeyDiagram-JHISSGLW-riCLiMCC.js +836 -0
- package/dist/kanban-definition-UN3LZRKU-DWipOCsx.cjs +89 -0
- package/dist/kanban-definition-UN3LZRKU-SRyCSn2H.js +725 -0
- package/dist/katex-Cf_UVKIT.cjs +257 -0
- package/dist/katex-RNjvZ8pg.js +11681 -0
- package/dist/layout-CbksXFOD.js +1728 -0
- package/dist/layout-Dh52gsIJ.cjs +1 -0
- package/dist/linear-C3xSMJV8.cjs +1 -0
- package/dist/linear-CmUCzX9U.js +259 -0
- package/dist/mermaid.core-BzNKr-OJ.cjs +308 -0
- package/dist/mermaid.core-CdBIz6FY.js +15475 -0
- package/dist/mindmap-definition-RKZ34NQL-Cs63oyIX.cjs +96 -0
- package/dist/mindmap-definition-RKZ34NQL-Gcma5iTd.js +830 -0
- package/dist/ordinal-CagbB1m8.cjs +1 -0
- package/dist/ordinal-DfAQgscy.js +61 -0
- package/dist/pieDiagram-4H26LBE5-CBGkD8dp.cjs +30 -0
- package/dist/pieDiagram-4H26LBE5-DSL8cVK1.js +164 -0
- package/dist/quadrantDiagram-W4KKPZXB-D3nCWRjF.cjs +7 -0
- package/dist/quadrantDiagram-W4KKPZXB-uod6bhUy.js +1026 -0
- package/dist/requirementDiagram-4Y6WPE33-Bc_6y7SM.js +884 -0
- package/dist/requirementDiagram-4Y6WPE33-D2mHlh5i.cjs +84 -0
- package/dist/sankeyDiagram-5OEKKPKP-DL_kXejW.cjs +40 -0
- package/dist/sankeyDiagram-5OEKKPKP-DMsjY4G4.js +847 -0
- package/dist/sequenceDiagram-3UESZ5HK-CBGalGOV.cjs +162 -0
- package/dist/sequenceDiagram-3UESZ5HK-CH2Z-Pis.js +2901 -0
- package/dist/stateDiagram-AJRCARHV-gEqlAI6t.js +263 -0
- package/dist/stateDiagram-AJRCARHV-rNMrAI-A.cjs +1 -0
- package/dist/stateDiagram-v2-BHNVJYJU-CDj7L1wi.js +16 -0
- package/dist/stateDiagram-v2-BHNVJYJU-LLlFJ1GM.cjs +1 -0
- package/dist/timeline-definition-PNZ67QCA-Bbuv3uu-.cjs +120 -0
- package/dist/timeline-definition-PNZ67QCA-DrGFbQdC.js +1068 -0
- package/dist/types.d.ts +295 -0
- package/dist/vennDiagram-CIIHVFJN-CGcAwVxU.js +1564 -0
- package/dist/vennDiagram-CIIHVFJN-DsSjXluJ.cjs +34 -0
- package/dist/wandox.cjs +1 -0
- package/dist/wandox.css +1 -0
- package/dist/wandox.js +6 -0
- package/dist/wandox.umd.js +4172 -0
- package/dist/wardley-L42UT6IY-DUnkyH_z.js +22539 -0
- package/dist/wardley-L42UT6IY-tDp0NbFW.cjs +165 -0
- package/dist/wardleyDiagram-YWT4CUSO-CB_Qa4lR.js +684 -0
- package/dist/wardleyDiagram-YWT4CUSO-D0BUmvVW.cjs +78 -0
- package/dist/xychartDiagram-2RQKCTM6-Bcq-ACuw.js +1342 -0
- package/dist/xychartDiagram-2RQKCTM6-BjeAPKLo.cjs +7 -0
- package/package.json +42 -0
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./mermaid.core-BzNKr-OJ.cjs"),ce=require("./chunk-FMBD7UC4-DOxtd0OO.cjs");var J=function(){var t=n.__name(function(b,s,i,o){for(i=i||{},o=b.length;o--;i[b[o]]=s);return i},"o"),g=[1,4],d=[1,13],a=[1,12],p=[1,15],k=[1,16],f=[1,20],h=[1,19],L=[6,7,8],I=[1,26],w=[1,24],N=[1,25],r=[6,7,11],M=[1,31],x=[6,7,11,24],P=[1,6,13,16,17,20,23],G=[1,35],U=[1,36],T=[1,6,7,11,13,16,17,20,23],j=[1,38],B={trace:n.__name(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:n.__name(function(s,i,o,l,u,e,V){var c=e.length-1;switch(u){case 6:case 7:return l;case 8:l.getLogger().trace("Stop NL ");break;case 9:l.getLogger().trace("Stop EOF ");break;case 11:l.getLogger().trace("Stop NL2 ");break;case 12:l.getLogger().trace("Stop EOF2 ");break;case 15:l.getLogger().info("Node: ",e[c-1].id),l.addNode(e[c-2].length,e[c-1].id,e[c-1].descr,e[c-1].type,e[c]);break;case 16:l.getLogger().info("Node: ",e[c].id),l.addNode(e[c-1].length,e[c].id,e[c].descr,e[c].type);break;case 17:l.getLogger().trace("Icon: ",e[c]),l.decorateNode({icon:e[c]});break;case 18:case 23:l.decorateNode({class:e[c]});break;case 19:l.getLogger().trace("SPACELIST");break;case 20:l.getLogger().trace("Node: ",e[c-1].id),l.addNode(0,e[c-1].id,e[c-1].descr,e[c-1].type,e[c]);break;case 21:l.getLogger().trace("Node: ",e[c].id),l.addNode(0,e[c].id,e[c].descr,e[c].type);break;case 22:l.decorateNode({icon:e[c]});break;case 27:l.getLogger().trace("node found ..",e[c-2]),this.$={id:e[c-1],descr:e[c-1],type:l.getType(e[c-2],e[c])};break;case 28:this.$={id:e[c],descr:e[c],type:0};break;case 29:l.getLogger().trace("node found ..",e[c-3]),this.$={id:e[c-3],descr:e[c-1],type:l.getType(e[c-2],e[c])};break;case 30:this.$=e[c-1]+e[c];break;case 31:this.$=e[c];break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:g},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:g},{6:d,7:[1,10],9:9,12:11,13:a,14:14,16:p,17:k,18:17,19:18,20:f,23:h},t(L,[2,3]),{1:[2,2]},t(L,[2,4]),t(L,[2,5]),{1:[2,6],6:d,12:21,13:a,14:14,16:p,17:k,18:17,19:18,20:f,23:h},{6:d,9:22,12:11,13:a,14:14,16:p,17:k,18:17,19:18,20:f,23:h},{6:I,7:w,10:23,11:N},t(r,[2,24],{18:17,19:18,14:27,16:[1,28],17:[1,29],20:f,23:h}),t(r,[2,19]),t(r,[2,21],{15:30,24:M}),t(r,[2,22]),t(r,[2,23]),t(x,[2,25]),t(x,[2,26]),t(x,[2,28],{20:[1,32]}),{21:[1,33]},{6:I,7:w,10:34,11:N},{1:[2,7],6:d,12:21,13:a,14:14,16:p,17:k,18:17,19:18,20:f,23:h},t(P,[2,14],{7:G,11:U}),t(T,[2,8]),t(T,[2,9]),t(T,[2,10]),t(r,[2,16],{15:37,24:M}),t(r,[2,17]),t(r,[2,18]),t(r,[2,20],{24:j}),t(x,[2,31]),{21:[1,39]},{22:[1,40]},t(P,[2,13],{7:G,11:U}),t(T,[2,11]),t(T,[2,12]),t(r,[2,15],{24:j}),t(x,[2,30]),{22:[1,41]},t(x,[2,27]),t(x,[2,29])],defaultActions:{2:[2,1],6:[2,2]},parseError:n.__name(function(s,i){if(i.recoverable)this.trace(s);else{var o=new Error(s);throw o.hash=i,o}},"parseError"),parse:n.__name(function(s){var i=this,o=[0],l=[],u=[null],e=[],V=this.table,c="",H=0,ee=0,re=2,te=1,ae=e.slice.call(arguments,1),m=Object.create(this.lexer),A={yy:{}};for(var X in this.yy)Object.prototype.hasOwnProperty.call(this.yy,X)&&(A.yy[X]=this.yy[X]);m.setInput(s,A.yy),A.yy.lexer=m,A.yy.parser=this,typeof m.yylloc>"u"&&(m.yylloc={});var K=m.yylloc;e.push(K);var oe=m.options&&m.options.ranges;typeof A.yy.parseError=="function"?this.parseError=A.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function le(S){o.length=o.length-2*S,u.length=u.length-S,e.length=e.length-S}n.__name(le,"popStack");function ne(){var S;return S=l.pop()||m.lex()||te,typeof S!="number"&&(S instanceof Array&&(l=S,S=l.pop()),S=i.symbols_[S]||S),S}n.__name(ne,"lex");for(var E,R,v,Y,F={},z,C,ie,W;;){if(R=o[o.length-1],this.defaultActions[R]?v=this.defaultActions[R]:((E===null||typeof E>"u")&&(E=ne()),v=V[R]&&V[R][E]),typeof v>"u"||!v.length||!v[0]){var q="";W=[];for(z in V[R])this.terminals_[z]&&z>re&&W.push("'"+this.terminals_[z]+"'");m.showPosition?q="Parse error on line "+(H+1)+`:
|
|
2
|
+
`+m.showPosition()+`
|
|
3
|
+
Expecting `+W.join(", ")+", got '"+(this.terminals_[E]||E)+"'":q="Parse error on line "+(H+1)+": Unexpected "+(E==te?"end of input":"'"+(this.terminals_[E]||E)+"'"),this.parseError(q,{text:m.match,token:this.terminals_[E]||E,line:m.yylineno,loc:K,expected:W})}if(v[0]instanceof Array&&v.length>1)throw new Error("Parse Error: multiple actions possible at state: "+R+", token: "+E);switch(v[0]){case 1:o.push(E),u.push(m.yytext),e.push(m.yylloc),o.push(v[1]),E=null,ee=m.yyleng,c=m.yytext,H=m.yylineno,K=m.yylloc;break;case 2:if(C=this.productions_[v[1]][1],F.$=u[u.length-C],F._$={first_line:e[e.length-(C||1)].first_line,last_line:e[e.length-1].last_line,first_column:e[e.length-(C||1)].first_column,last_column:e[e.length-1].last_column},oe&&(F._$.range=[e[e.length-(C||1)].range[0],e[e.length-1].range[1]]),Y=this.performAction.apply(F,[c,ee,H,A.yy,v[1],u,e].concat(ae)),typeof Y<"u")return Y;C&&(o=o.slice(0,-1*C*2),u=u.slice(0,-1*C),e=e.slice(0,-1*C)),o.push(this.productions_[v[1]][0]),u.push(F.$),e.push(F._$),ie=V[o[o.length-2]][o[o.length-1]],o.push(ie);break;case 3:return!0}}return!0},"parse")},_=function(){var b={EOF:1,parseError:n.__name(function(i,o){if(this.yy.parser)this.yy.parser.parseError(i,o);else throw new Error(i)},"parseError"),setInput:n.__name(function(s,i){return this.yy=i||this.yy||{},this._input=s,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:n.__name(function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var i=s.match(/(?:\r\n?|\n).*/g);return i?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),s},"input"),unput:n.__name(function(s){var i=s.length,o=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-i),this.offset-=i;var l=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),o.length-1&&(this.yylineno-=o.length-1);var u=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:o?(o.length===l.length?this.yylloc.first_column:0)+l[l.length-o.length].length-o[0].length:this.yylloc.first_column-i},this.options.ranges&&(this.yylloc.range=[u[0],u[0]+this.yyleng-i]),this.yyleng=this.yytext.length,this},"unput"),more:n.__name(function(){return this._more=!0,this},"more"),reject:n.__name(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return 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).
|
|
4
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:n.__name(function(s){this.unput(this.match.slice(s))},"less"),pastInput:n.__name(function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:n.__name(function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:n.__name(function(){var s=this.pastInput(),i=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
|
|
5
|
+
`+i+"^"},"showPosition"),test_match:n.__name(function(s,i){var o,l,u;if(this.options.backtrack_lexer&&(u={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&&(u.yylloc.range=this.yylloc.range.slice(0))),l=s[0].match(/(?:\r\n?|\n).*/g),l&&(this.yylineno+=l.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:l?l[l.length-1].length-l[l.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+s[0].length},this.yytext+=s[0],this.match+=s[0],this.matches=s,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(s[0].length),this.matched+=s[0],o=this.performAction.call(this,this.yy,this,i,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),o)return o;if(this._backtrack){for(var e in u)this[e]=u[e];return!1}return!1},"test_match"),next:n.__name(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var s,i,o,l;this._more||(this.yytext="",this.match="");for(var u=this._currentRules(),e=0;e<u.length;e++)if(o=this._input.match(this.rules[u[e]]),o&&(!i||o[0].length>i[0].length)){if(i=o,l=e,this.options.backtrack_lexer){if(s=this.test_match(o,u[e]),s!==!1)return s;if(this._backtrack){i=!1;continue}else return!1}else if(!this.options.flex)break}return i?(s=this.test_match(i,u[l]),s!==!1?s:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
6
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:n.__name(function(){var i=this.next();return i||this.lex()},"lex"),begin:n.__name(function(i){this.conditionStack.push(i)},"begin"),popState:n.__name(function(){var i=this.conditionStack.length-1;return i>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:n.__name(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:n.__name(function(i){return i=this.conditionStack.length-1-Math.abs(i||0),i>=0?this.conditionStack[i]:"INITIAL"},"topState"),pushState:n.__name(function(i){this.begin(i)},"pushState"),stateStackSize:n.__name(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:n.__name(function(i,o,l,u){switch(l){case 0:return this.pushState("shapeData"),o.yytext="",24;case 1:return this.pushState("shapeDataStr"),24;case 2:return this.popState(),24;case 3:const e=/\n\s*/g;return o.yytext=o.yytext.replace(e,"<br/>"),24;case 4:return 24;case 5:this.popState();break;case 6:return i.getLogger().trace("Found comment",o.yytext),6;case 7:return 8;case 8:this.begin("CLASS");break;case 9:return this.popState(),17;case 10:this.popState();break;case 11:i.getLogger().trace("Begin icon"),this.begin("ICON");break;case 12:return i.getLogger().trace("SPACELINE"),6;case 13:return 7;case 14:return 16;case 15:i.getLogger().trace("end icon"),this.popState();break;case 16:return i.getLogger().trace("Exploding node"),this.begin("NODE"),20;case 17:return i.getLogger().trace("Cloud"),this.begin("NODE"),20;case 18:return i.getLogger().trace("Explosion Bang"),this.begin("NODE"),20;case 19:return i.getLogger().trace("Cloud Bang"),this.begin("NODE"),20;case 20:return this.begin("NODE"),20;case 21:return this.begin("NODE"),20;case 22:return this.begin("NODE"),20;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 29:this.popState();break;case 30:i.getLogger().trace("Starting NSTR"),this.begin("NSTR");break;case 31:return i.getLogger().trace("description:",o.yytext),"NODE_DESCR";case 32:this.popState();break;case 33:return this.popState(),i.getLogger().trace("node end ))"),"NODE_DEND";case 34:return this.popState(),i.getLogger().trace("node end )"),"NODE_DEND";case 35:return this.popState(),i.getLogger().trace("node end ...",o.yytext),"NODE_DEND";case 36:return this.popState(),i.getLogger().trace("node end (("),"NODE_DEND";case 37:return this.popState(),i.getLogger().trace("node end (-"),"NODE_DEND";case 38:return this.popState(),i.getLogger().trace("node end (-"),"NODE_DEND";case 39:return this.popState(),i.getLogger().trace("node end (("),"NODE_DEND";case 40:return this.popState(),i.getLogger().trace("node end (("),"NODE_DEND";case 41:return i.getLogger().trace("Long description:",o.yytext),21;case 42:return i.getLogger().trace("Long description:",o.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}}};return b}();B.lexer=_;function O(){this.yy={}}return n.__name(O,"Parser"),O.prototype=B,B.Parser=O,new O}();J.parser=J;var he=J,D=[],Z=[],Q=0,$={},ue=n.__name(()=>{D=[],Z=[],Q=0,$={}},"clear"),ge=n.__name(t=>{if(D.length===0)return null;const g=D[0].level;let d=null;for(let a=D.length-1;a>=0;a--)if(D[a].level===g&&!d&&(d=D[a]),D[a].level<g)throw new Error('Items without section detected, found section ("'+D[a].label+'")');return t===(d==null?void 0:d.level)?null:d},"getSection"),se=n.__name(function(){return Z},"getSections"),de=n.__name(function(){const t=[],g=[],d=se(),a=n.getConfig2();for(const p of d){const k={id:p.id,label:n.sanitizeText(p.label??"",a),labelType:"markdown",isGroup:!0,ticket:p.ticket,shape:"kanbanSection",level:p.level,look:a.look};g.push(k);const f=D.filter(h=>h.parentId===p.id);for(const h of f){const L={id:h.id,parentId:p.id,label:n.sanitizeText(h.label??"",a),labelType:"markdown",isGroup:!1,ticket:h==null?void 0:h.ticket,priority:h==null?void 0:h.priority,assigned:h==null?void 0:h.assigned,icon:h==null?void 0:h.icon,shape:"kanbanItem",level:h.level,rx:5,ry:5,cssStyles:["text-align: left"]};g.push(L)}}return{nodes:g,edges:t,other:{},config:n.getConfig2()}},"getData"),pe=n.__name((t,g,d,a,p)=>{var I,w;const k=n.getConfig2();let f=((I=k.mindmap)==null?void 0:I.padding)??n.defaultConfig_default.mindmap.padding;switch(a){case y.ROUNDED_RECT:case y.RECT:case y.HEXAGON:f*=2}const h={id:n.sanitizeText(g,k)||"kbn"+Q++,level:t,label:n.sanitizeText(d,k),width:((w=k.mindmap)==null?void 0:w.maxNodeWidth)??n.defaultConfig_default.mindmap.maxNodeWidth,padding:f,isGroup:!1};if(p!==void 0){let N;p.includes(`
|
|
7
|
+
`)?N=p+`
|
|
8
|
+
`:N=`{
|
|
9
|
+
`+p+`
|
|
10
|
+
}`;const r=n.load(N,{schema:n.JSON_SCHEMA});if(r.shape&&(r.shape!==r.shape.toLowerCase()||r.shape.includes("_")))throw new Error(`No such shape: ${r.shape}. Shape names should be lowercase.`);r!=null&&r.shape&&r.shape==="kanbanItem"&&(h.shape=r==null?void 0:r.shape),r!=null&&r.label&&(h.label=r==null?void 0:r.label),r!=null&&r.icon&&(h.icon=r==null?void 0:r.icon.toString()),r!=null&&r.assigned&&(h.assigned=r==null?void 0:r.assigned.toString()),r!=null&&r.ticket&&(h.ticket=r==null?void 0:r.ticket.toString()),r!=null&&r.priority&&(h.priority=r==null?void 0:r.priority)}const L=ge(t);L?h.parentId=L.id||"kbn"+Q++:Z.push(h),D.push(h)},"addNode"),y={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},fe=n.__name((t,g)=>{switch(n.log.debug("In get type",t,g),t){case"[":return y.RECT;case"(":return g===")"?y.ROUNDED_RECT:y.CLOUD;case"((":return y.CIRCLE;case")":return y.CLOUD;case"))":return y.BANG;case"{{":return y.HEXAGON;default:return y.DEFAULT}},"getType"),_e=n.__name((t,g)=>{$[t]=g},"setElementForId"),ye=n.__name(t=>{if(!t)return;const g=n.getConfig2(),d=D[D.length-1];t.icon&&(d.icon=n.sanitizeText(t.icon,g)),t.class&&(d.cssClasses=n.sanitizeText(t.class,g))},"decorateNode"),me=n.__name(t=>{switch(t){case y.DEFAULT:return"no-border";case y.RECT:return"rect";case y.ROUNDED_RECT:return"rounded-rect";case y.CIRCLE:return"circle";case y.CLOUD:return"cloud";case y.BANG:return"bang";case y.HEXAGON:return"hexgon";default:return"no-border"}},"type2Str"),be=n.__name(()=>n.log,"getLogger"),ke=n.__name(t=>$[t],"getElementById"),Ee={clear:ue,addNode:pe,getSections:se,getData:de,nodeType:y,getType:fe,setElementForId:_e,decorateNode:ye,type2Str:me,getLogger:be,getElementById:ke},Se=Ee,Ne=n.__name(async(t,g,d,a)=>{var G,U,T,j,B;n.log.debug(`Rendering kanban diagram
|
|
11
|
+
`+t);const k=a.db.getData(),f=n.getConfig2();f.htmlLabels=!1;const h=n.selectSvgElement(g);for(const _ of k.nodes)_.domId=`${g}-${_.id}`;const L=h.append("g");L.attr("class","sections");const I=h.append("g");I.attr("class","items");const w=k.nodes.filter(_=>_.isGroup);let N=0;const r=10,M=[];let x=25;for(const _ of w){const O=((G=f==null?void 0:f.kanban)==null?void 0:G.sectionWidth)||200;N=N+1,_.x=O*N+(N-1)*r/2,_.width=O,_.y=0,_.height=O*3,_.rx=5,_.ry=5,_.cssClasses=_.cssClasses+" section-"+N;const b=await n.insertCluster(L,_);x=Math.max(x,(U=b==null?void 0:b.labelBBox)==null?void 0:U.height),M.push(b)}let P=0;for(const _ of w){const O=M[P];P=P+1;const b=((T=f==null?void 0:f.kanban)==null?void 0:T.sectionWidth)||200,s=-b*3/2+x;let i=s;const o=k.nodes.filter(e=>e.parentId===_.id);for(const e of o){if(e.isGroup)throw new Error("Groups within groups are not allowed in Kanban diagrams");e.x=_.x,e.width=b-1.5*r;const c=(await n.insertNode(I,e,{config:f})).node().getBBox();e.y=i+c.height/2,await n.positionNode(e),i=e.y+c.height/2+r/2}const l=O.cluster.select("rect"),u=Math.max(i-s+3*r,50)+(x-25);l.attr("height",u)}n.setupGraphViewbox(void 0,h,((j=f.mindmap)==null?void 0:j.padding)??n.defaultConfig_default.kanban.padding,((B=f.mindmap)==null?void 0:B.useMaxWidth)??n.defaultConfig_default.kanban.useMaxWidth)},"draw"),xe={draw:Ne},ve=n.__name(t=>{let g="";for(let a=0;a<t.THEME_COLOR_LIMIT;a++)t["lineColor"+a]=t["lineColor"+a]||t["cScaleInv"+a],n.isDark(t["lineColor"+a])?t["lineColor"+a]=n.lighten(t["lineColor"+a],20):t["lineColor"+a]=n.darken(t["lineColor"+a],20);const d=n.__name((a,p)=>t.darkMode?n.darken(a,p):n.lighten(a,p),"adjuster");for(let a=0;a<t.THEME_COLOR_LIMIT;a++){const p=""+(17-3*a);g+=`
|
|
12
|
+
.section-${a-1} rect, .section-${a-1} path, .section-${a-1} circle, .section-${a-1} polygon, .section-${a-1} path {
|
|
13
|
+
fill: ${d(t["cScale"+a],10)};
|
|
14
|
+
stroke: ${d(t["cScale"+a],10)};
|
|
15
|
+
|
|
16
|
+
}
|
|
17
|
+
.section-${a-1} text {
|
|
18
|
+
fill: ${t["cScaleLabel"+a]};
|
|
19
|
+
}
|
|
20
|
+
.node-icon-${a-1} {
|
|
21
|
+
font-size: 40px;
|
|
22
|
+
color: ${t["cScaleLabel"+a]};
|
|
23
|
+
}
|
|
24
|
+
.section-edge-${a-1}{
|
|
25
|
+
stroke: ${t["cScale"+a]};
|
|
26
|
+
}
|
|
27
|
+
.edge-depth-${a-1}{
|
|
28
|
+
stroke-width: ${p};
|
|
29
|
+
}
|
|
30
|
+
.section-${a-1} line {
|
|
31
|
+
stroke: ${t["cScaleInv"+a]} ;
|
|
32
|
+
stroke-width: 3;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.disabled, .disabled circle, .disabled text {
|
|
36
|
+
fill: lightgray;
|
|
37
|
+
}
|
|
38
|
+
.disabled text {
|
|
39
|
+
fill: #efefef;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.node rect,
|
|
43
|
+
.node circle,
|
|
44
|
+
.node ellipse,
|
|
45
|
+
.node polygon,
|
|
46
|
+
.node path {
|
|
47
|
+
fill: ${t.background};
|
|
48
|
+
stroke: ${t.nodeBorder};
|
|
49
|
+
stroke-width: 1px;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.kanban-ticket-link {
|
|
53
|
+
fill: ${t.background};
|
|
54
|
+
stroke: ${t.nodeBorder};
|
|
55
|
+
text-decoration: underline;
|
|
56
|
+
}
|
|
57
|
+
`}return g},"genSections"),De=n.__name(t=>`
|
|
58
|
+
.edge {
|
|
59
|
+
stroke-width: 3;
|
|
60
|
+
}
|
|
61
|
+
${ve(t)}
|
|
62
|
+
.section-root rect, .section-root path, .section-root circle, .section-root polygon {
|
|
63
|
+
fill: ${t.git0};
|
|
64
|
+
}
|
|
65
|
+
.section-root text {
|
|
66
|
+
fill: ${t.gitBranchLabel0};
|
|
67
|
+
}
|
|
68
|
+
.icon-container {
|
|
69
|
+
height:100%;
|
|
70
|
+
display: flex;
|
|
71
|
+
justify-content: center;
|
|
72
|
+
align-items: center;
|
|
73
|
+
}
|
|
74
|
+
.edge {
|
|
75
|
+
fill: none;
|
|
76
|
+
}
|
|
77
|
+
.cluster-label, .label {
|
|
78
|
+
color: ${t.textColor};
|
|
79
|
+
fill: ${t.textColor};
|
|
80
|
+
}
|
|
81
|
+
.kanban-label {
|
|
82
|
+
dy: 1em;
|
|
83
|
+
alignment-baseline: middle;
|
|
84
|
+
text-anchor: middle;
|
|
85
|
+
dominant-baseline: middle;
|
|
86
|
+
text-align: center;
|
|
87
|
+
}
|
|
88
|
+
${ce.getIconStyles()}
|
|
89
|
+
`,"getStyles"),Le=De,Oe={db:Se,renderer:xe,parser:he,styles:Le};exports.diagram=Oe;
|