@galaxy-tool-util/gxwf-web 1.0.0 → 1.2.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/app.js +3 -3
- package/dist/app.js.map +1 -1
- package/dist/generated/api-types.d.ts +344 -0
- package/dist/generated/api-types.d.ts.map +1 -1
- package/dist/router.d.ts +2 -1
- package/dist/router.d.ts.map +1 -1
- package/dist/router.js +77 -1
- package/dist/router.js.map +1 -1
- package/dist/tool-cache.d.ts +63 -0
- package/dist/tool-cache.d.ts.map +1 -0
- package/dist/tool-cache.js +118 -0
- package/dist/tool-cache.js.map +1 -0
- package/dist/workflows.d.ts +13 -0
- package/dist/workflows.d.ts.map +1 -1
- package/dist/workflows.js +19 -1
- package/dist/workflows.js.map +1 -1
- package/openapi.json +296 -0
- package/package.json +5 -4
- package/public/assets/FileView-BjO71gOh.css +1 -0
- package/public/assets/FileView-CsOpVj29.js +1389 -0
- package/public/assets/ToolCacheView-E1LZS0xv.css +1 -0
- package/public/assets/ToolCacheView-bRFTq8lT.js +120 -0
- package/public/assets/WorkflowView-CRSqinCX.js +198 -0
- package/public/assets/WorkflowView-DIO7pNhW.css +1 -0
- package/public/assets/_baseFor-CPf-8vV8.js +1 -0
- package/public/assets/arc-Cwod2qo3.js +1 -0
- package/public/assets/architecture-YZFGNWBL-DQVw0vyH.js +1 -0
- package/public/assets/architectureDiagram-Q4EWVU46-jinf4bpr.js +36 -0
- package/public/assets/array-DYRGGQae.js +1 -0
- package/public/assets/blockDiagram-DXYQGD6D-DyH9QtyX.js +132 -0
- package/public/assets/browser-DVDf39JZ.js +107 -0
- package/public/assets/c4Diagram-AHTNJAMY-eIaaNFF5.js +10 -0
- package/public/assets/channel-B9wkeALp.js +1 -0
- package/public/assets/chunk-2KRD3SAO-CbETq-ui.js +1 -0
- package/public/assets/chunk-336JU56O-K6Z1vrz8.js +2 -0
- package/public/assets/chunk-426QAEUC-B7stkjff.js +1 -0
- package/public/assets/chunk-4BX2VUAB-DAYhiPDD.js +1 -0
- package/public/assets/chunk-4TB4RGXK-DzYiMt8K.js +206 -0
- package/public/assets/chunk-55IACEB6-Bs8d_KN7.js +1 -0
- package/public/assets/chunk-5FUZZQ4R-BXjMW0vl.js +62 -0
- package/public/assets/chunk-5PVQY5BW-DpYMb9bR.js +2 -0
- package/public/assets/chunk-67CJDMHE-CYVqyDPX.js +1 -0
- package/public/assets/chunk-7N4EOEYR-DSMoHHQB.js +1 -0
- package/public/assets/chunk-AA7GKIK3-CVBwnsUJ.js +1 -0
- package/public/assets/chunk-BSJP7CBP-DG8ixKk7.js +1 -0
- package/public/assets/chunk-Bj-mKKzh.js +1 -0
- package/public/assets/chunk-CIAEETIT-ChsKIYeM.js +1 -0
- package/public/assets/chunk-EDXVE4YY-B13SDZ3c.js +1 -0
- package/public/assets/chunk-ENJZ2VHE-DrVCiAoi.js +10 -0
- package/public/assets/chunk-FMBD7UC4-Cwhu6s_B.js +15 -0
- package/public/assets/chunk-FOC6F5B3-CXZWmV4p.js +1 -0
- package/public/assets/chunk-ICPOFSXX-DwxYmUOT.js +121 -0
- package/public/assets/chunk-K5T4RW27-DjpJ2Af8.js +94 -0
- package/public/assets/chunk-KGLVRYIC-l_Galra0.js +1 -0
- package/public/assets/chunk-LIHQZDEY-SFFOoGZ_.js +1 -0
- package/public/assets/chunk-ORNJ4GCN-CJCUlfd1.js +1 -0
- package/public/assets/chunk-OYMX7WX6-CmfQJYSW.js +231 -0
- package/public/assets/chunk-QZHKN3VN-CXmXAQWB.js +1 -0
- package/public/assets/chunk-U2HBQHQK-oBXc92ns.js +70 -0
- package/public/assets/chunk-X2U36JSP-CWkpvLVO.js +1 -0
- package/public/assets/chunk-XPW4576I-DLAs5a7i.js +32 -0
- package/public/assets/chunk-YZCP3GAM-0MxWrEbo.js +1 -0
- package/public/assets/chunk-ZZ45TVLE-BqOxN5U6.js +1 -0
- package/public/assets/classDiagram-6PBFFD2Q-A_f6K02B.js +1 -0
- package/public/assets/classDiagram-v2-HSJHXN6E-DrcrbPO1.js +1 -0
- package/public/assets/clone-grQBEjNN.js +1 -0
- package/public/assets/cose-bilkent-S5V4N54A-D4wikFr1.js +1 -0
- package/public/assets/cytoscape-dagre-CO2HNyOd.js +1 -0
- package/public/assets/cytoscape-popper-D30IDL9Y.js +1 -0
- package/public/assets/cytoscape.esm-Cj_wycbY.js +321 -0
- package/public/assets/dagre-BxiFovGJ.js +1 -0
- package/public/assets/dagre-KV5264BT-1zSgR5z0.js +4 -0
- package/public/assets/defaultLocale-Du1XY3Dp.js +1 -0
- package/public/assets/diagram-5BDNPKRD-DpWxP0aE.js +10 -0
- package/public/assets/diagram-G4DWMVQ6-BhUB45RQ.js +24 -0
- package/public/assets/diagram-MMDJMWI5-D3tAT1JA.js +43 -0
- package/public/assets/diagram-TYMM5635-Y66BFGuY.js +24 -0
- package/public/assets/dist-J4JWBlIj.js +1 -0
- package/public/assets/erDiagram-SMLLAGMA-olVV48Hp.js +85 -0
- package/public/assets/flatten-CJeJD637.js +1 -0
- package/public/assets/flowDiagram-DWJPFMVM-QayyKS33.js +162 -0
- package/public/assets/ganttDiagram-T4ZO3ILL-DmE3LL1i.js +292 -0
- package/public/assets/gitGraph-7Q5UKJZL-CFN6X8um.js +1 -0
- package/public/assets/gitGraphDiagram-UUTBAWPF-KhK3dvbQ.js +106 -0
- package/public/assets/graphlib-Bi-ymRsv.js +1 -0
- package/public/assets/{iconv-lite-umd-B_p9IM1r.js → iconv-lite-umd-D-w9FMFt.js} +1 -1
- package/public/assets/index-4Ycp0GGC.js +1824 -0
- package/public/assets/index-DwHu09Uc.css +1 -0
- package/public/assets/info-OMHHGYJF-DTuIGRm4.js +1 -0
- package/public/assets/infoDiagram-42DDH7IO-BmhfgIe-.js +2 -0
- package/public/assets/init-B5BXBRcm.js +1 -0
- package/public/assets/isEmpty-D5KDGotR.js +1 -0
- package/public/assets/ishikawaDiagram-UXIWVN3A-D-BfQrbQ.js +70 -0
- package/public/assets/journeyDiagram-VCZTEJTY-CT0HRztw.js +139 -0
- package/public/assets/{jschardet-CGqe33Rd.js → jschardet-tASGyPDl.js} +1 -1
- package/public/assets/kanban-definition-6JOO6SKY-BZnydE-0.js +89 -0
- package/public/assets/katex-B-EfS3nw.js +257 -0
- package/public/assets/lib-qyXcPJAL.js +1 -0
- package/public/assets/line-qKqldnLj.js +1 -0
- package/public/assets/linear-BiJptqH_.js +1 -0
- package/public/assets/mermaid-parser.core-C09j9HB7.js +4 -0
- package/public/assets/mermaid.core-BDhviqRd.js +11 -0
- package/public/assets/mindmap-definition-QFDTVHPH-Dt3WMSPV.js +96 -0
- package/public/assets/ordinal-BDi6f4xk.js +1 -0
- package/public/assets/packet-4T2RLAQJ-tlarMvy0.js +1 -0
- package/public/assets/path-CNO468J-.js +1 -0
- package/public/assets/pie-ZZUOXDRM-BQlXSSpD.js +1 -0
- package/public/assets/pieDiagram-DEJITSTG-Yqe8uCAr.js +30 -0
- package/public/assets/purify.es-PlwmxSh4.js +2 -0
- package/public/assets/quadrantDiagram-34T5L4WZ-D6S_SKNN.js +7 -0
- package/public/assets/radar-PYXPWWZC-CazFChG-.js +1 -0
- package/public/assets/reduce-CulceXYF.js +1 -0
- package/public/assets/requirementDiagram-MS252O5E-jfbAS50v.js +84 -0
- package/public/assets/rough.esm-Ci7Kjt46.js +1 -0
- package/public/assets/sankeyDiagram-XADWPNL6-BAUJwgc9.js +10 -0
- package/public/assets/sequenceDiagram-FGHM5R23-D7HLbuOf.js +157 -0
- package/public/assets/src-Com_8MQM.js +1 -0
- package/public/assets/stateDiagram-FHFEXIEX-BX7o31BE.js +1 -0
- package/public/assets/stateDiagram-v2-QKLJ7IA2-Co5H7aCg.js +1 -0
- package/public/assets/timeline-definition-GMOUNBTQ-CZLMeEm3.js +120 -0
- package/public/assets/tippy-Lcq2UOUK.css +1 -0
- package/public/assets/tippy.esm-BUtiz0E2.js +1 -0
- package/public/assets/treeView-SZITEDCU-DF1ehvU3.js +1 -0
- package/public/assets/treemap-W4RFUUIX-BPejKas6.js +1 -0
- package/public/assets/useApi-CXAk43j3.js +1511 -0
- package/public/assets/useOperation-6c4UXxWc.js +74 -0
- package/public/assets/useToolInfoService-BoFJqmDR.js +276 -0
- package/public/assets/vennDiagram-DHZGUBPP-CU_yL8Jq.js +34 -0
- package/public/assets/wardley-RL74JXVD-BMMwMdqw.js +1 -0
- package/public/assets/wardleyDiagram-NUSXRM2D-BJ2G793c.js +20 -0
- package/public/assets/xychartDiagram-5P7HB3ND-CtCVgkGt.js +7 -0
- package/public/index.html +4 -2
- package/public/assets/index-BuA7-9w3.js +0 -4768
- package/public/assets/index-CWluWhm0.css +0 -1
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import{g as e,h as t}from"./src-Com_8MQM.js";import{K as n,L as r,Q as i,Z as a,b as o,d as s,et as c}from"./chunk-ICPOFSXX-DwxYmUOT.js";import"./chunk-5PVQY5BW-DpYMb9bR.js";import{t as l}from"./chunk-426QAEUC-B7stkjff.js";import"./chunk-U2HBQHQK-oBXc92ns.js";import{t as u}from"./chunk-FMBD7UC4-Cwhu6s_B.js";import"./chunk-ZZ45TVLE-BqOxN5U6.js";import"./chunk-X2U36JSP-CWkpvLVO.js";import{a as d,c as f,i as p}from"./chunk-5FUZZQ4R-BXjMW0vl.js";import{n as m,t as h}from"./chunk-XPW4576I-DLAs5a7i.js";var g=(function(){var e=t(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[1,4],r=[1,13],i=[1,12],a=[1,15],o=[1,16],s=[1,20],c=[1,19],l=[6,7,8],u=[1,26],d=[1,24],f=[1,25],p=[6,7,11],m=[1,31],h=[6,7,11,24],g=[1,6,13,16,17,20,23],_=[1,35],v=[1,36],y=[1,6,7,11,13,16,17,20,23],b=[1,38],x={trace:t(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:t(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 6:case 7:return r;case 8:r.getLogger().trace(`Stop NL `);break;case 9:r.getLogger().trace(`Stop EOF `);break;case 11:r.getLogger().trace(`Stop NL2 `);break;case 12:r.getLogger().trace(`Stop EOF2 `);break;case 15:r.getLogger().info(`Node: `,a[s-1].id),r.addNode(a[s-2].length,a[s-1].id,a[s-1].descr,a[s-1].type,a[s]);break;case 16:r.getLogger().info(`Node: `,a[s].id),r.addNode(a[s-1].length,a[s].id,a[s].descr,a[s].type);break;case 17:r.getLogger().trace(`Icon: `,a[s]),r.decorateNode({icon:a[s]});break;case 18:case 23:r.decorateNode({class:a[s]});break;case 19:r.getLogger().trace(`SPACELIST`);break;case 20:r.getLogger().trace(`Node: `,a[s-1].id),r.addNode(0,a[s-1].id,a[s-1].descr,a[s-1].type,a[s]);break;case 21:r.getLogger().trace(`Node: `,a[s].id),r.addNode(0,a[s].id,a[s].descr,a[s].type);break;case 22:r.decorateNode({icon:a[s]});break;case 27:r.getLogger().trace(`node found ..`,a[s-2]),this.$={id:a[s-1],descr:a[s-1],type:r.getType(a[s-2],a[s])};break;case 28:this.$={id:a[s],descr:a[s],type:0};break;case 29:r.getLogger().trace(`node found ..`,a[s-3]),this.$={id:a[s-3],descr:a[s-1],type:r.getType(a[s-2],a[s])};break;case 30:this.$=a[s-1]+a[s];break;case 31:this.$=a[s];break}},`anonymous`),table:[{3:1,4:2,5:3,6:[1,5],8:n},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:n},{6:r,7:[1,10],9:9,12:11,13:i,14:14,16:a,17:o,18:17,19:18,20:s,23:c},e(l,[2,3]),{1:[2,2]},e(l,[2,4]),e(l,[2,5]),{1:[2,6],6:r,12:21,13:i,14:14,16:a,17:o,18:17,19:18,20:s,23:c},{6:r,9:22,12:11,13:i,14:14,16:a,17:o,18:17,19:18,20:s,23:c},{6:u,7:d,10:23,11:f},e(p,[2,24],{18:17,19:18,14:27,16:[1,28],17:[1,29],20:s,23:c}),e(p,[2,19]),e(p,[2,21],{15:30,24:m}),e(p,[2,22]),e(p,[2,23]),e(h,[2,25]),e(h,[2,26]),e(h,[2,28],{20:[1,32]}),{21:[1,33]},{6:u,7:d,10:34,11:f},{1:[2,7],6:r,12:21,13:i,14:14,16:a,17:o,18:17,19:18,20:s,23:c},e(g,[2,14],{7:_,11:v}),e(y,[2,8]),e(y,[2,9]),e(y,[2,10]),e(p,[2,16],{15:37,24:m}),e(p,[2,17]),e(p,[2,18]),e(p,[2,20],{24:b}),e(h,[2,31]),{21:[1,39]},{22:[1,40]},e(g,[2,13],{7:_,11:v}),e(y,[2,11]),e(y,[2,12]),e(p,[2,15],{24:b}),e(h,[2,30]),{22:[1,41]},e(h,[2,27]),e(h,[2,29])],defaultActions:{2:[2,1],6:[2,2]},parseError:t(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:t(function(e){var n=this,r=[0],i=[],a=[null],o=[],s=this.table,c=``,l=0,u=0,d=0,f=2,p=1,m=o.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;o.push(v);var y=h.options&&h.options.ranges;typeof g.yy.parseError==`function`?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function b(e){r.length-=2*e,a.length-=e,o.length-=e}t(b,`popStack`);function x(){var e=i.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=n.symbols_[e]||e),e}t(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=r[r.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=s[w]&&s[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],s[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`:
|
|
2
|
+
`+h.showPosition()+`
|
|
3
|
+
Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:r.push(S),a.push(h.yytext),o.push(h.yylloc),r.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,c=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=a[a.length-k],D._$={first_line:o[o.length-(k||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(k||1)].first_column,last_column:o[o.length-1].last_column},y&&(D._$.range=[o[o.length-(k||1)].range[0],o[o.length-1].range[1]]),E=this.performAction.apply(D,[c,u,l,g.yy,T[1],a,o].concat(m)),E!==void 0)return E;k&&(r=r.slice(0,-1*k*2),a=a.slice(0,-1*k),o=o.slice(0,-1*k)),r.push(this.productions_[T[1]][0]),a.push(D.$),o.push(D._$),A=s[r[r.length-2]][r[r.length-1]],r.push(A);break;case 3:return!0}}return!0},`parse`)};x.lexer=(function(){return{EOF:1,parseError:t(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:t(function(e,t){return this.yy=t||this.yy||{},this._input=e,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:t(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.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),e},`input`),unput:t(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=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),n.length-1&&(this.yylineno-=n.length-1);var i=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:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:t(function(){return this._more=!0,this},`more`),reject:t(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:t(function(e){this.unput(this.match.slice(e))},`less`),pastInput:t(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:t(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:t(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+`
|
|
5
|
+
`+t+`^`},`showPosition`),test_match:t(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={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&&(i.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,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(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},`test_match`),next:t(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);for(var i=this._currentRules(),a=0;a<i.length;a++)if(n=this._input.match(this.rules[i[a]]),n&&(!t||n[0].length>t[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}else return!1}else if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e===!1?!1:e):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:t(function(){return this.next()||this.lex()},`lex`),begin:t(function(e){this.conditionStack.push(e)},`begin`),popState:t(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:t(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:t(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:t(function(e){this.begin(e)},`pushState`),stateStackSize:t(function(){return this.conditionStack.length},`stateStackSize`),options:{"case-insensitive":!0},performAction:t(function(e,t,n,r){switch(n){case 0:return this.pushState(`shapeData`),t.yytext=``,24;case 1:return this.pushState(`shapeDataStr`),24;case 2:return this.popState(),24;case 3:return t.yytext=t.yytext.replace(/\n\s*/g,`<br/>`),24;case 4:return 24;case 5:this.popState();break;case 6:return e.getLogger().trace(`Found comment`,t.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:e.getLogger().trace(`Begin icon`),this.begin(`ICON`);break;case 12:return e.getLogger().trace(`SPACELINE`),6;case 13:return 7;case 14:return 16;case 15:e.getLogger().trace(`end icon`),this.popState();break;case 16:return e.getLogger().trace(`Exploding node`),this.begin(`NODE`),20;case 17:return e.getLogger().trace(`Cloud`),this.begin(`NODE`),20;case 18:return e.getLogger().trace(`Explosion Bang`),this.begin(`NODE`),20;case 19:return e.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:e.getLogger().trace(`Starting NSTR`),this.begin(`NSTR`);break;case 31:return e.getLogger().trace(`description:`,t.yytext),`NODE_DESCR`;case 32:this.popState();break;case 33:return this.popState(),e.getLogger().trace(`node end ))`),`NODE_DEND`;case 34:return this.popState(),e.getLogger().trace(`node end )`),`NODE_DEND`;case 35:return this.popState(),e.getLogger().trace(`node end ...`,t.yytext),`NODE_DEND`;case 36:return this.popState(),e.getLogger().trace(`node end ((`),`NODE_DEND`;case 37:return this.popState(),e.getLogger().trace(`node end (-`),`NODE_DEND`;case 38:return this.popState(),e.getLogger().trace(`node end (-`),`NODE_DEND`;case 39:return this.popState(),e.getLogger().trace(`node end ((`),`NODE_DEND`;case 40:return this.popState(),e.getLogger().trace(`node end ((`),`NODE_DEND`;case 41:return e.getLogger().trace(`Long description:`,t.yytext),21;case 42:return e.getLogger().trace(`Long description:`,t.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 S(){this.yy={}}return t(S,`Parser`),S.prototype=x,x.Parser=S,new S})();g.parser=g;var _=g,v=[],y=[],b=0,x={},S=t(()=>{v=[],y=[],b=0,x={}},`clear`),C=t(e=>{if(v.length===0)return null;let t=v[0].level,n=null;for(let e=v.length-1;e>=0;e--)if(v[e].level===t&&!n&&(n=v[e]),v[e].level<t)throw Error(`Items without section detected, found section ("`+v[e].label+`")`);return e===n?.level?null:n},`getSection`),w=t(function(){return y},`getSections`),T=t(function(){let e=[],t=[],n=w(),i=o();for(let e of n){let n={id:e.id,label:r(e.label??``,i),labelType:`markdown`,isGroup:!0,ticket:e.ticket,shape:`kanbanSection`,level:e.level,look:i.look};t.push(n);let a=v.filter(t=>t.parentId===e.id);for(let n of a){let a={id:n.id,parentId:e.id,label:r(n.label??``,i),labelType:`markdown`,isGroup:!1,ticket:n?.ticket,priority:n?.priority,assigned:n?.assigned,icon:n?.icon,shape:`kanbanItem`,level:n.level,rx:5,ry:5,cssStyles:[`text-align: left`]};t.push(a)}}return{nodes:t,edges:e,other:{},config:o()}},`getData`),E=t((e,t,n,i,a)=>{let c=o(),l=c.mindmap?.padding??s.mindmap.padding;switch(i){case D.ROUNDED_RECT:case D.RECT:case D.HEXAGON:l*=2}let u={id:r(t,c)||`kbn`+ b++,level:e,label:r(n,c),width:c.mindmap?.maxNodeWidth??s.mindmap.maxNodeWidth,padding:l,isGroup:!1};if(a!==void 0){let e;e=a.includes(`
|
|
7
|
+
`)?a+`
|
|
8
|
+
`:`{
|
|
9
|
+
`+a+`
|
|
10
|
+
}`;let t=m(e,{schema:h});if(t.shape&&(t.shape!==t.shape.toLowerCase()||t.shape.includes(`_`)))throw Error(`No such shape: ${t.shape}. Shape names should be lowercase.`);t?.shape&&t.shape===`kanbanItem`&&(u.shape=t?.shape),t?.label&&(u.label=t?.label),t?.icon&&(u.icon=t?.icon.toString()),t?.assigned&&(u.assigned=t?.assigned.toString()),t?.ticket&&(u.ticket=t?.ticket.toString()),t?.priority&&(u.priority=t?.priority)}let d=C(e);d?u.parentId=d.id||`kbn`+ b++:y.push(u),v.push(u)},`addNode`),D={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},O={clear:S,addNode:E,getSections:w,getData:T,nodeType:D,getType:t((t,n)=>{switch(e.debug(`In get type`,t,n),t){case`[`:return D.RECT;case`(`:return n===`)`?D.ROUNDED_RECT:D.CLOUD;case`((`:return D.CIRCLE;case`)`:return D.CLOUD;case`))`:return D.BANG;case`{{`:return D.HEXAGON;default:return D.DEFAULT}},`getType`),setElementForId:t((e,t)=>{x[e]=t},`setElementForId`),decorateNode:t(e=>{if(!e)return;let t=o(),n=v[v.length-1];e.icon&&(n.icon=r(e.icon,t)),e.class&&(n.cssClasses=r(e.class,t))},`decorateNode`),type2Str:t(e=>{switch(e){case D.DEFAULT:return`no-border`;case D.RECT:return`rect`;case D.ROUNDED_RECT:return`rounded-rect`;case D.CIRCLE:return`circle`;case D.CLOUD:return`cloud`;case D.BANG:return`bang`;case D.HEXAGON:return`hexgon`;default:return`no-border`}},`type2Str`),getLogger:t(()=>e,`getLogger`),getElementById:t(e=>x[e],`getElementById`)},k={draw:t(async(t,r,i,a)=>{e.debug(`Rendering kanban diagram
|
|
11
|
+
`+t);let c=a.db.getData(),u=o();u.htmlLabels=!1;let m=l(r);for(let e of c.nodes)e.domId=`${r}-${e.id}`;let h=m.append(`g`);h.attr(`class`,`sections`);let g=m.append(`g`);g.attr(`class`,`items`);let _=c.nodes.filter(e=>e.isGroup),v=0,y=[],b=25;for(let e of _){let t=u?.kanban?.sectionWidth||200;v+=1,e.x=t*v+(v-1)*10/2,e.width=t,e.y=0,e.height=t*3,e.rx=5,e.ry=5,e.cssClasses=e.cssClasses+` section-`+v;let n=await p(h,e);b=Math.max(b,n?.labelBBox?.height),y.push(n)}let x=0;for(let e of _){let t=y[x];x+=1;let n=u?.kanban?.sectionWidth||200,r=-n*3/2+b,i=r,a=c.nodes.filter(t=>t.parentId===e.id);for(let t of a){if(t.isGroup)throw Error(`Groups within groups are not allowed in Kanban diagrams`);t.x=e.x,t.width=n-1.5*10;let r=(await d(g,t,{config:u})).node().getBBox();t.y=i+r.height/2,await f(t),i=t.y+r.height/2+10/2}let o=t.cluster.select(`rect`),s=Math.max(i-r+30,50)+(b-25);o.attr(`height`,s)}n(void 0,m,u.mindmap?.padding??s.kanban.padding,u.mindmap?.useMaxWidth??s.kanban.useMaxWidth)},`draw`)},A=t(e=>{let n=``;for(let t=0;t<e.THEME_COLOR_LIMIT;t++)e[`lineColor`+t]=e[`lineColor`+t]||e[`cScaleInv`+t],c(e[`lineColor`+t])?e[`lineColor`+t]=i(e[`lineColor`+t],20):e[`lineColor`+t]=a(e[`lineColor`+t],20);let r=t((t,n)=>e.darkMode?a(t,n):i(t,n),`adjuster`);for(let t=0;t<e.THEME_COLOR_LIMIT;t++){let i=``+(17-3*t);n+=`
|
|
12
|
+
.section-${t-1} rect, .section-${t-1} path, .section-${t-1} circle, .section-${t-1} polygon, .section-${t-1} path {
|
|
13
|
+
fill: ${r(e[`cScale`+t],10)};
|
|
14
|
+
stroke: ${r(e[`cScale`+t],10)};
|
|
15
|
+
|
|
16
|
+
}
|
|
17
|
+
.section-${t-1} text {
|
|
18
|
+
fill: ${e[`cScaleLabel`+t]};
|
|
19
|
+
}
|
|
20
|
+
.node-icon-${t-1} {
|
|
21
|
+
font-size: 40px;
|
|
22
|
+
color: ${e[`cScaleLabel`+t]};
|
|
23
|
+
}
|
|
24
|
+
.section-edge-${t-1}{
|
|
25
|
+
stroke: ${e[`cScale`+t]};
|
|
26
|
+
}
|
|
27
|
+
.edge-depth-${t-1}{
|
|
28
|
+
stroke-width: ${i};
|
|
29
|
+
}
|
|
30
|
+
.section-${t-1} line {
|
|
31
|
+
stroke: ${e[`cScaleInv`+t]} ;
|
|
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: ${e.background};
|
|
48
|
+
stroke: ${e.nodeBorder};
|
|
49
|
+
stroke-width: 1px;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.kanban-ticket-link {
|
|
53
|
+
fill: ${e.background};
|
|
54
|
+
stroke: ${e.nodeBorder};
|
|
55
|
+
text-decoration: underline;
|
|
56
|
+
}
|
|
57
|
+
`}return n},`genSections`),j={db:O,renderer:k,parser:_,styles:t(e=>`
|
|
58
|
+
.edge {
|
|
59
|
+
stroke-width: 3;
|
|
60
|
+
}
|
|
61
|
+
${A(e)}
|
|
62
|
+
.section-root rect, .section-root path, .section-root circle, .section-root polygon {
|
|
63
|
+
fill: ${e.git0};
|
|
64
|
+
}
|
|
65
|
+
.section-root text {
|
|
66
|
+
fill: ${e.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: ${e.textColor};
|
|
79
|
+
fill: ${e.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
|
+
${u()}
|
|
89
|
+
`,`getStyles`)};export{j as diagram};
|