@marimo-team/frontend 0.14.5 → 0.14.7
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/{ConnectedDataExplorerComponent-Cd8OePNL.js → ConnectedDataExplorerComponent-BdQW-gwg.js} +2 -2
- package/dist/assets/{ImageComparisonComponent-BaounMqb.js → ImageComparisonComponent-BIBfPPuz.js} +1 -1
- package/dist/assets/{VegaLite-BThNu01F.js → VegaLite-GVqhQbDs.js} +4 -4
- package/dist/assets/_baseEach-DtUk7cBy.js +1 -0
- package/dist/assets/_baseMap-zXgLfXUO.js +1 -0
- package/dist/assets/_baseUniq-BuhsH2Gw.js +1 -0
- package/dist/assets/_createAggregator-CCTzDuxr.js +1 -0
- package/dist/assets/{any-language-editor-BwrzhW9s.js → any-language-editor-C16cE8Sc.js} +1 -1
- package/dist/assets/architectureDiagram-IEHRJDOE-A6ZwaSTM.js +36 -0
- package/dist/assets/{blockDiagram-JOT3LUYC-D5tDE05w.js → blockDiagram-JOT3LUYC-CGgOmZ6q.js} +1 -1
- package/dist/assets/{c4Diagram-VJAJSXHY-D2EVIFPE.js → c4Diagram-VJAJSXHY-21Uq3Dg7.js} +1 -1
- package/dist/assets/channel-BAvRfsic.js +1 -0
- package/dist/assets/{chunk-4BMEZGHF-CADZZMGY.js → chunk-4BMEZGHF-DLcqo-x9.js} +1 -1
- package/dist/assets/{chunk-A2AXSNBT-CfEZbXlN.js → chunk-A2AXSNBT-ClwGv4ej.js} +1 -1
- package/dist/assets/{chunk-AEK57VVT-BQlr57ae.js → chunk-AEK57VVT-DXU_Eu70.js} +1 -1
- package/dist/assets/{chunk-D6G4REZN-CcnlvIsn.js → chunk-D6G4REZN-CdJcmRtu.js} +1 -1
- package/dist/assets/{chunk-RZ5BOZE2-BQ7pJY-M.js → chunk-RZ5BOZE2-BjqSfcQg.js} +1 -1
- package/dist/assets/{chunk-XZIHB7SX-BuiqX9Aw.js → chunk-XZIHB7SX-XW5eSvGR.js} +1 -1
- package/dist/assets/{circle-play-Bxr4QwIa.js → circle-play-CxSSFgdO.js} +1 -1
- package/dist/assets/classDiagram-GIVACNV2-CK_KuAvj.js +1 -0
- package/dist/assets/classDiagram-v2-COTLJTTW-CK_KuAvj.js +1 -0
- package/dist/assets/clone-Cho8ekmu.js +1 -0
- package/dist/assets/compile-DnHFbvjV.js +3 -0
- package/dist/assets/cytoscape.esm-UYyVlru8.js +10 -0
- package/dist/assets/dagre-OKDRZEBW-D75XrYB0.js +4 -0
- package/dist/assets/{data-editor-rukfgV6c.js → data-editor-DOJVcXVY.js} +29 -29
- package/dist/assets/diagram-SSKATNLV-BTff3VIp.js +43 -0
- package/dist/assets/diagram-VNBRO52H-LnHBmUxh.js +24 -0
- package/dist/assets/edit-page-CM7Z6do2.js +144 -0
- package/dist/assets/{erDiagram-Q7BY3M3F-DjRQ_etL.js → erDiagram-Q7BY3M3F-DPuHBTLc.js} +5 -5
- package/dist/assets/{flowDiagram-4HSFHLVR-CeFuqcbl.js → flowDiagram-4HSFHLVR-DyJAEc--.js} +1 -1
- package/dist/assets/{ganttDiagram-APWFNJXF-ByTTg73J.js → ganttDiagram-APWFNJXF-CuNs6GsL.js} +3 -3
- package/dist/assets/gitGraphDiagram-7IBYFJ6S-B8RjSR7Y.js +65 -0
- package/dist/assets/{graph-DNRj_GT8.js → graph-DfO_3t8f.js} +1 -1
- package/dist/assets/{home-page-PkK2rOsj.js → home-page-DNroMY0L.js} +3 -3
- package/dist/assets/index-7fo-bO1b.css +1 -0
- package/dist/assets/{index-CfDLJuRd.js → index-BGV64nJA.js} +1 -1
- package/dist/assets/{index-BLEx_XmQ.js → index-BLhUKus3.js} +1 -1
- package/dist/assets/index-BWJPY1iW.js +1 -0
- package/dist/assets/index-BWLBzXjn.js +1 -0
- package/dist/assets/{index-RvePnxjR.js → index-BWRJuAq5.js} +1 -1
- package/dist/assets/{index-D8_wOrAS.js → index-B_2-onrX.js} +1 -1
- package/dist/assets/{index-C4zeEHGR.js → index-Bhxhykeb.js} +1 -1
- package/dist/assets/{index-Dqale_LJ.js → index-BkG9SImY.js} +1 -1
- package/dist/assets/{index-unIeHe6K.js → index-CFqFJcvv.js} +1 -1
- package/dist/assets/index-CSVJhvPj.js +1 -0
- package/dist/assets/index-ChJ6MVK4.js +1 -0
- package/dist/assets/{index-DmNMHBkh.js → index-Ckjkc_22.js} +1 -1
- package/dist/assets/{index-BgLoMO85.js → index-Cu42ofZQ.js} +1 -1
- package/dist/assets/{index-CTa3U4be.js → index-DLz0HVCk.js} +1 -1
- package/dist/assets/{index-Cxi469si.js → index-DhhQl-OJ.js} +1 -1
- package/dist/assets/index-DlQKt39j.js +507 -0
- package/dist/assets/{index-C15JFT_c.js → index-DyyuCOy7.js} +1 -1
- package/dist/assets/{index-DFFTVPrS.js → index-TycZpXM8.js} +1 -1
- package/dist/assets/{index-DUYmArTl.js → index-cyG9KqdX.js} +1 -1
- package/dist/assets/infoDiagram-PH2N3AL5-Dh9JpBgC.js +2 -0
- package/dist/assets/{journeyDiagram-U35MCT3I-BmSbbdbZ.js → journeyDiagram-U35MCT3I-D0z4rhTA.js} +6 -6
- package/dist/assets/{kanban-definition-NDS4AKOZ-wn14wHeG.js → kanban-definition-NDS4AKOZ-0mBTqXp8.js} +1 -1
- package/dist/assets/{katex-BsnJiHtx.js → katex-LV4FpwlL.js} +26 -26
- package/dist/assets/layout-DJLBNR64.js +1 -0
- package/dist/assets/{mermaid-D9TTXveo.js → mermaid-BgCxVw2J.js} +30 -30
- package/dist/assets/{mhchem-C_nT2J_7.js → mhchem-DFRC5yJY.js} +1 -1
- package/dist/assets/min-DTkssK90.js +1 -0
- package/dist/assets/mindmap-definition-ALO5MXBD-LCnJv2FH.js +95 -0
- package/dist/assets/pieDiagram-IB7DONF6-B4-ZhPJf.js +30 -0
- package/dist/assets/{pug-_kJOm_E2.js → pug-BTvK5tSS.js} +1 -1
- package/dist/assets/{quadrantDiagram-7GDLP6J5-CgsaXk59.js → quadrantDiagram-7GDLP6J5-DKB7UlL9.js} +4 -4
- package/dist/assets/{radar-MK3ICKWK-DpxMM0Qw.js → radar-MK3ICKWK-FyfW4UKQ.js} +33 -33
- package/dist/assets/react-plotly-Cq47c_fP.js +4074 -0
- package/dist/assets/{requirementDiagram-KVF5MWMF-rD1Xtg0C.js → requirementDiagram-KVF5MWMF-Kkhfwu0p.js} +1 -1
- package/dist/assets/run-page-GUDMiyk3.js +1 -0
- package/dist/assets/sankeyDiagram-QLVOVGJD-BZ4xSd22.js +10 -0
- package/dist/assets/save-worker-Bm3BvYpV.js +1 -0
- package/dist/assets/{sequenceDiagram-X6HHIX6F-DOr7opXd.js → sequenceDiagram-X6HHIX6F-Dj06cd6Y.js} +1 -1
- package/dist/assets/{shutdown-button-CNHmqusO.js → shutdown-button-D56z6eVx.js} +13 -13
- package/dist/assets/slides-component-CDu4ZSzE.js +1 -0
- package/dist/assets/sortBy-CDXarBT-.js +1 -0
- package/dist/assets/stateDiagram-DGXRK772-j06SHL3p.js +1 -0
- package/dist/assets/stateDiagram-v2-YXO3MK2T-DuT23alC.js +1 -0
- package/dist/assets/storage-Dz2fUeWr.js +27 -0
- package/dist/assets/{terminal-C9AM9Ufr.js → terminal-DZLrrul6.js} +1 -1
- package/dist/assets/{timeline-definition-BDJGKUSR-BQjvgKyo.js → timeline-definition-BDJGKUSR-BQyRy1s7.js} +1 -1
- package/dist/assets/tracing-CDEeF17U.js +2 -0
- package/dist/assets/transform-C5148Z0S.js +1 -0
- package/dist/assets/vega-component-CUPLtVbZ.js +1 -0
- package/dist/assets/worker-CJ614ngf.js +1 -0
- package/dist/assets/worker-C_uu8t-8.js +1 -0
- package/dist/assets/{xychartDiagram-VJFVF3MP-D6G5YXc9.js → xychartDiagram-VJFVF3MP--8SfVdNT.js} +3 -3
- package/dist/index.html +2 -2
- package/package.json +3 -4
- package/dist/assets/_baseEach-AMF-7d2J.js +0 -1
- package/dist/assets/_baseMap-CtLb1-E9.js +0 -1
- package/dist/assets/_baseUniq-DmGC0EvQ.js +0 -1
- package/dist/assets/_createAggregator-nAviCUEI.js +0 -1
- package/dist/assets/arc-ZB5pDULS.js +0 -1
- package/dist/assets/architectureDiagram-IEHRJDOE-DELkI6j7.js +0 -36
- package/dist/assets/channel-Bsq91aIP.js +0 -1
- package/dist/assets/classDiagram-GIVACNV2-uoJGO3VQ.js +0 -1
- package/dist/assets/classDiagram-v2-COTLJTTW-uoJGO3VQ.js +0 -1
- package/dist/assets/clone-Yb_iboYC.js +0 -1
- package/dist/assets/colors-bszWmPJw.js +0 -1
- package/dist/assets/compile-D71Q4H3R.js +0 -10
- package/dist/assets/cytoscape.esm-C11VZyMT.js +0 -10
- package/dist/assets/dagre-OKDRZEBW-DarkVs9y.js +0 -4
- package/dist/assets/diagram-SSKATNLV-D4OT3ifx.js +0 -43
- package/dist/assets/diagram-VNBRO52H-BUvUJmDs.js +0 -24
- package/dist/assets/edit-page-DCGyJssF.js +0 -144
- package/dist/assets/gitGraphDiagram-7IBYFJ6S-DzfS7fCx.js +0 -65
- package/dist/assets/index-9wcEzf6r.js +0 -1
- package/dist/assets/index-BVt8Dtzn.css +0 -1
- package/dist/assets/index-CsvxUqpa.js +0 -1
- package/dist/assets/index-OXxabNuL.js +0 -1
- package/dist/assets/index-g8LxgBK2.js +0 -500
- package/dist/assets/index-rl-fndXu.js +0 -1
- package/dist/assets/infoDiagram-PH2N3AL5-C2E2NFkV.js +0 -2
- package/dist/assets/init-DLRA0X12.js +0 -1
- package/dist/assets/layout-BVHTL_z5.js +0 -1
- package/dist/assets/linear-BCVS3STf.js +0 -1
- package/dist/assets/min-DHnRmciI.js +0 -1
- package/dist/assets/mindmap-definition-ALO5MXBD-a8I3m_98.js +0 -95
- package/dist/assets/ordinal-DDUp3AbE.js +0 -1
- package/dist/assets/pieDiagram-IB7DONF6-DUDocndn.js +0 -30
- package/dist/assets/range-CtcPcB_L.js +0 -1
- package/dist/assets/react-plotly-DvB1Xb5a.js +0 -4074
- package/dist/assets/run-page-B0Hx0CMC.js +0 -1
- package/dist/assets/sankeyDiagram-QLVOVGJD-C0DUUjQG.js +0 -10
- package/dist/assets/save-worker-BDcz2hJn.js +0 -1
- package/dist/assets/slides-component-c1dc16jM.js +0 -1
- package/dist/assets/sortBy-ozOfSDdJ.js +0 -1
- package/dist/assets/stateDiagram-DGXRK772-Ez0EwtuH.js +0 -1
- package/dist/assets/stateDiagram-v2-YXO3MK2T-DzizQt5g.js +0 -1
- package/dist/assets/step-BwsUM5iJ.js +0 -1
- package/dist/assets/storage-DmZs9OBM.js +0 -27
- package/dist/assets/time-Bto2Pv9Y.js +0 -1
- package/dist/assets/timer-B5eI7Tcu.js +0 -1
- package/dist/assets/tracing-42w5ahGA.js +0 -2
- package/dist/assets/transform-BzDy4yXW.js +0 -1
- package/dist/assets/vega-component-DPpmBYts.js +0 -1
- package/dist/assets/worker-BoGc2ntD.js +0 -1
- package/dist/assets/worker-D9uxCaRv.js +0 -1
- package/dist/assets/zoom-COrs4lFh.js +0 -1
- /package/dist/assets/{clojure-DR_hEDJv.js → clojure-DiuoqK-z.js} +0 -0
- /package/dist/assets/{dylan-CHJ5qNM_.js → dylan-DkEP81N9.js} +0 -0
- /package/dist/assets/{elm-D7xaZ7Da.js → elm-DompmV0j.js} +0 -0
- /package/dist/assets/{forth-Dri_5nFc.js → forth-POgR1ypr.js} +0 -0
- /package/dist/assets/{gas-5kEe4nk0.js → gas-bV0CklSb.js} +0 -0
- /package/dist/assets/{haskell-CmdsSjFB.js → haskell-CLQs6EAM.js} +0 -0
- /package/dist/assets/{javascript-D48wDJXV.js → javascript-BpzJj0-u.js} +0 -0
- /package/dist/assets/{ntriples-FFvkTduk.js → ntriples-BSwWqoLa.js} +0 -0
- /package/dist/assets/{stylus-OdhglgkO.js → stylus-Bdo_Aemu.js} +0 -0
- /package/dist/assets/{toml-BQXy8elZ.js → toml-wcPdHu67.js} +0 -0
- /package/dist/assets/{web-vitals-Buym0gfC.js → web-vitals-qptAEYGW.js} +0 -0
@@ -1 +1 @@
|
|
1
|
-
import{f as Q,s as c,t as O,b as i,d as p,i as g,g as R,h as n,k as m}from"./index-
|
1
|
+
import{f as Q,s as c,t as O,b as i,d as p,i as g,g as R,h as n,k as m}from"./index-DlQKt39j.js";const u=c({String:O.string,Number:O.number,"True False":O.bool,PropertyName:O.propertyName,Null:O.null,",":O.separator,"[ ]":O.squareBracket,"{ }":O.brace}),l=Q.deserialize({version:14,states:"$bOVQPOOOOQO'#Cb'#CbOnQPO'#CeOvQPO'#CjOOQO'#Cp'#CpQOQPOOOOQO'#Cg'#CgO}QPO'#CfO!SQPO'#CrOOQO,59P,59PO![QPO,59PO!aQPO'#CuOOQO,59U,59UO!iQPO,59UOVQPO,59QOqQPO'#CkO!nQPO,59^OOQO1G.k1G.kOVQPO'#ClO!vQPO,59aOOQO1G.p1G.pOOQO1G.l1G.lOOQO,59V,59VOOQO-E6i-E6iOOQO,59W,59WOOQO-E6j-E6j",stateData:"#O~OcOS~OQSORSOSSOTSOWQO]ROePO~OVXOeUO~O[[O~PVOg^O~Oh_OVfX~OVaO~OhbO[iX~O[dO~Oh_OVfa~OhbO[ia~O",goto:"!kjPPPPPPkPPkqwPPk{!RPPP!XP!ePP!hXSOR^bQWQRf_TVQ_Q`WRg`QcZRicQTOQZRQe^RhbRYQR]R",nodeNames:"\u26A0 JsonText True False Null Number String } { Object Property PropertyName ] [ Array",maxTerm:25,nodeProps:[["openedBy",7,"{",12,"["],["closedBy",8,"}",13,"]"]],propSources:[u],skippedNodes:[0],repeatNodeCount:2,tokenData:"(|~RaXY!WYZ!W]^!Wpq!Wrs!]|}$u}!O$z!Q!R%T!R![&c![!]&t!}#O&y#P#Q'O#Y#Z'T#b#c'r#h#i(Z#o#p(r#q#r(w~!]Oc~~!`Wpq!]qr!]rs!xs#O!]#O#P!}#P;'S!];'S;=`$o<%lO!]~!}Oe~~#QXrs!]!P!Q!]#O#P!]#U#V!]#Y#Z!]#b#c!]#f#g!]#h#i!]#i#j#m~#pR!Q![#y!c!i#y#T#Z#y~#|R!Q![$V!c!i$V#T#Z$V~$YR!Q![$c!c!i$c#T#Z$c~$fR!Q![!]!c!i!]#T#Z!]~$rP;=`<%l!]~$zOh~~$}Q!Q!R%T!R![&c~%YRT~!O!P%c!g!h%w#X#Y%w~%fP!Q![%i~%nRT~!Q![%i!g!h%w#X#Y%w~%zR{|&T}!O&T!Q![&Z~&WP!Q![&Z~&`PT~!Q![&Z~&hST~!O!P%c!Q![&c!g!h%w#X#Y%w~&yOg~~'OO]~~'TO[~~'WP#T#U'Z~'^P#`#a'a~'dP#g#h'g~'jP#X#Y'm~'rOR~~'uP#i#j'x~'{P#`#a(O~(RP#`#a(U~(ZOS~~(^P#f#g(a~(dP#i#j(g~(jP#X#Y(m~(rOQ~~(wOW~~(|OV~",tokenizers:[0],topRules:{JsonText:[0,1]},tokenPrec:0}),d=()=>t=>{try{JSON.parse(t.state.doc.toString())}catch(r){if(!(r instanceof SyntaxError))throw r;const s=function(P,a){let e;return(e=P.message.match(/at position (\d+)/))?Math.min(+e[1],a.length):(e=P.message.match(/at line (\d+) column (\d+)/))?Math.min(a.line(+e[1]).from+ +e[2]-1,a.length):0}(r,t.state.doc);return[{from:s,message:r.message,severity:"error",to:s}]}return[]},o=p.define({name:"json",parser:l.configure({props:[g.add({Object:n({except:/^\s*\}/}),Array:n({except:/^\s*\]/})}),R.add({"Object Array":m})]}),languageData:{closeBrackets:{brackets:["[","{",'"']},indentOnInput:/^\s*[\}\]]$/}});function h(){return new i(o)}export{h as json,o as jsonLanguage,d as jsonParseLinter};
|
@@ -0,0 +1,2 @@
|
|
1
|
+
import{_ as a,l as i,I as s,d as n,K as p}from"./mermaid-BgCxVw2J.js";import{p as m}from"./radar-MK3ICKWK-FyfW4UKQ.js";import"./index-DlQKt39j.js";import"./transform-C5148Z0S.js";import"./_baseEach-DtUk7cBy.js";import"./_baseUniq-BuhsH2Gw.js";import"./min-DTkssK90.js";import"./_baseMap-zXgLfXUO.js";import"./clone-Cho8ekmu.js";import"./_createAggregator-CCTzDuxr.js";var d={parse:a(async r=>{const t=await m("info",r);i.debug(t)},"parse")},g={version:p.version},v={parser:d,db:{getVersion:a(()=>g.version,"getVersion")},renderer:{draw:a((r,t,o)=>{i.debug(`rendering info diagram
|
2
|
+
`+r);const e=s(t);n(e,100,400,!0),e.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size",32).style("text-anchor","middle").text(`v${o}`)},"draw")}};export{v as diagram};
|
package/dist/assets/{journeyDiagram-U35MCT3I-BmSbbdbZ.js → journeyDiagram-U35MCT3I-D0z4rhTA.js}
RENAMED
@@ -1,9 +1,9 @@
|
|
1
|
-
import{a as ut,g as J,f as
|
1
|
+
import{a as ut,g as J,f as yt,d as pt}from"./chunk-D6G4REZN-CdJcmRtu.js";import{_ as s,g as dt,s as ft,a as gt,b as mt,q as xt,p as kt,c as A,d as _t,y as bt}from"./mermaid-BgCxVw2J.js";import{s as K}from"./transform-C5148Z0S.js";import{B as Q}from"./index-DlQKt39j.js";var z=function(){var t=s(function(n,y,a,u){for(a=a||{},u=n.length;u--;a[n[u]]=y);return a},"o"),e=[6,8,10,11,12,14,16,17,18],r=[1,9],l=[1,10],i=[1,11],o=[1,12],h=[1,13],d=[1,14],p={trace:s(function(){},"trace"),yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,taskName:18,taskData:19,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",18:"taskName",19:"taskData"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,2]],performAction:s(function(n,y,a,u,f,c,v){var x=c.length-1;switch(f){case 1:return c[x-1];case 2:case 6:case 7:this.$=[];break;case 3:c[x-1].push(c[x]),this.$=c[x-1];break;case 4:case 5:this.$=c[x];break;case 8:u.setDiagramTitle(c[x].substr(6)),this.$=c[x].substr(6);break;case 9:this.$=c[x].trim(),u.setAccTitle(this.$);break;case 10:case 11:this.$=c[x].trim(),u.setAccDescription(this.$);break;case 12:u.addSection(c[x].substr(8)),this.$=c[x].substr(8);break;case 13:u.addTask(c[x-1],c[x]),this.$="task"}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:r,12:l,14:i,16:o,17:h,18:d},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:15,11:r,12:l,14:i,16:o,17:h,18:d},t(e,[2,5]),t(e,[2,6]),t(e,[2,8]),{13:[1,16]},{15:[1,17]},t(e,[2,11]),t(e,[2,12]),{19:[1,18]},t(e,[2,4]),t(e,[2,9]),t(e,[2,10]),t(e,[2,13])],defaultActions:{},parseError:s(function(n,y){if(!y.recoverable){var a=new Error(n);throw a.hash=y,a}this.trace(n)},"parseError"),parse:s(function(n){var y=this,a=[0],u=[],f=[null],c=[],v=this.table,x="",L=0,X=0,lt=c.slice.call(arguments,1),k=Object.create(this.lexer),M={yy:{}};for(var N in this.yy)Object.prototype.hasOwnProperty.call(this.yy,N)&&(M.yy[N]=this.yy[N]);k.setInput(n,M.yy),M.yy.lexer=k,M.yy.parser=this,k.yylloc===void 0&&(k.yylloc={});var R=k.yylloc;c.push(R);var ht=k.options&&k.options.ranges;function G(){var w;return typeof(w=u.pop()||k.lex()||1)!="number"&&(w instanceof Array&&(w=(u=w).pop()),w=y.symbols_[w]||w),w}typeof M.yy.parseError=="function"?this.parseError=M.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,s(function(w){a.length=a.length-2*w,f.length=f.length-w,c.length=c.length-w},"popStack"),s(G,"lex");for(var _,E,b,U,O,T,H,B,P={};;){if(E=a[a.length-1],this.defaultActions[E]?b=this.defaultActions[E]:(_==null&&(_=G()),b=v[E]&&v[E][_]),b===void 0||!b.length||!b[0]){var Z="";for(O in B=[],v[E])this.terminals_[O]&&O>2&&B.push("'"+this.terminals_[O]+"'");Z=k.showPosition?"Parse error on line "+(L+1)+`:
|
2
2
|
`+k.showPosition()+`
|
3
|
-
Expecting `+B.join(", ")+", got '"+(this.terminals_[_]||_)+"'":"Parse error on line "+(L+1)+": Unexpected "+(_==1?"end of input":"'"+(this.terminals_[_]||_)+"'"),this.parseError(Z,{text:k.match,token:this.terminals_[_]||_,line:k.yylineno,loc:R,expected:B})}if(b[0]instanceof Array&&b.length>1)throw new Error("Parse Error: multiple actions possible at state: "+E+", token: "+_);switch(b[0]){case 1:a.push(_),f.push(k.yytext),c.push(k.yylloc),a.push(b[1]),_=null,X=k.yyleng,x=k.yytext,L=k.yylineno,R=k.yylloc;break;case 2:if(T=this.productions_[b[1]][1],P.$=f[f.length-T],P._$={first_line:c[c.length-(T||1)].first_line,last_line:c[c.length-1].last_line,first_column:c[c.length-(T||1)].first_column,last_column:c[c.length-1].last_column},ht&&(P._$.range=[c[c.length-(T||1)].range[0],c[c.length-1].range[1]]),(U=this.performAction.apply(P,[x,X,L,M.yy,b[1],f,c].concat(lt)))!==void 0)return U;T&&(a=a.slice(0,-1*T*2),f=f.slice(0,-1*T),c=c.slice(0,-1*T)),a.push(this.productions_[b[1]][0]),f.push(P.$),c.push(P._$),H=v[a[a.length-2]][a[a.length-1]],a.push(H);break;case 3:return!0}}return!0},"parse")},m=function(){return{EOF:1,parseError:s(function(n,
|
4
|
-
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:s(function(n){this.unput(this.match.slice(n))},"less"),pastInput:s(function(){var n=this.matched.substr(0,this.matched.length-this.match.length);return(n.length>20?"...":"")+n.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:s(function(){var n=this.match;return n.length<20&&(n+=this._input.substr(0,20-n.length)),(n.substr(0,20)+(n.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:s(function(){var n=this.pastInput(),
|
5
|
-
`+
|
6
|
-
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:s(function(){var n=this.next();return n||this.lex()},"lex"),begin:s(function(n){this.conditionStack.push(n)},"begin"),popState:s(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:s(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:s(function(n){return(n=this.conditionStack.length-1-Math.abs(n||0))>=0?this.conditionStack[n]:"INITIAL"},"topState"),pushState:s(function(n){this.begin(n)},"pushState"),stateStackSize:s(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:s(function(n,
|
3
|
+
Expecting `+B.join(", ")+", got '"+(this.terminals_[_]||_)+"'":"Parse error on line "+(L+1)+": Unexpected "+(_==1?"end of input":"'"+(this.terminals_[_]||_)+"'"),this.parseError(Z,{text:k.match,token:this.terminals_[_]||_,line:k.yylineno,loc:R,expected:B})}if(b[0]instanceof Array&&b.length>1)throw new Error("Parse Error: multiple actions possible at state: "+E+", token: "+_);switch(b[0]){case 1:a.push(_),f.push(k.yytext),c.push(k.yylloc),a.push(b[1]),_=null,X=k.yyleng,x=k.yytext,L=k.yylineno,R=k.yylloc;break;case 2:if(T=this.productions_[b[1]][1],P.$=f[f.length-T],P._$={first_line:c[c.length-(T||1)].first_line,last_line:c[c.length-1].last_line,first_column:c[c.length-(T||1)].first_column,last_column:c[c.length-1].last_column},ht&&(P._$.range=[c[c.length-(T||1)].range[0],c[c.length-1].range[1]]),(U=this.performAction.apply(P,[x,X,L,M.yy,b[1],f,c].concat(lt)))!==void 0)return U;T&&(a=a.slice(0,-1*T*2),f=f.slice(0,-1*T),c=c.slice(0,-1*T)),a.push(this.productions_[b[1]][0]),f.push(P.$),c.push(P._$),H=v[a[a.length-2]][a[a.length-1]],a.push(H);break;case 3:return!0}}return!0},"parse")},m=function(){return{EOF:1,parseError:s(function(n,y){if(!this.yy.parser)throw new Error(n);this.yy.parser.parseError(n,y)},"parseError"),setInput:s(function(n,y){return this.yy=y||this.yy||{},this._input=n,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:s(function(){var n=this._input[0];return this.yytext+=n,this.yyleng++,this.offset++,this.match+=n,this.matched+=n,n.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),n},"input"),unput:s(function(n){var y=n.length,a=n.split(/(?:\r\n?|\n)/g);this._input=n+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-y),this.offset-=y;var u=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 f=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===u.length?this.yylloc.first_column:0)+u[u.length-a.length].length-a[0].length:this.yylloc.first_column-y},this.options.ranges&&(this.yylloc.range=[f[0],f[0]+this.yyleng-y]),this.yyleng=this.yytext.length,this},"unput"),more:s(function(){return this._more=!0,this},"more"),reject:s(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).
|
4
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:s(function(n){this.unput(this.match.slice(n))},"less"),pastInput:s(function(){var n=this.matched.substr(0,this.matched.length-this.match.length);return(n.length>20?"...":"")+n.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:s(function(){var n=this.match;return n.length<20&&(n+=this._input.substr(0,20-n.length)),(n.substr(0,20)+(n.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:s(function(){var n=this.pastInput(),y=new Array(n.length+1).join("-");return n+this.upcomingInput()+`
|
5
|
+
`+y+"^"},"showPosition"),test_match:s(function(n,y){var a,u,f;if(this.options.backtrack_lexer&&(f={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&&(f.yylloc.range=this.yylloc.range.slice(0))),(u=n[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=u.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:u?u[u.length-1].length-u[u.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+n[0].length},this.yytext+=n[0],this.match+=n[0],this.matches=n,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(n[0].length),this.matched+=n[0],a=this.performAction.call(this,this.yy,this,y,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),a)return a;if(this._backtrack){for(var c in f)this[c]=f[c];return!1}return!1},"test_match"),next:s(function(){if(this.done)return this.EOF;var n,y,a,u;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var f=this._currentRules(),c=0;c<f.length;c++)if((a=this._input.match(this.rules[f[c]]))&&(!y||a[0].length>y[0].length)){if(y=a,u=c,this.options.backtrack_lexer){if((n=this.test_match(a,f[c]))!==!1)return n;if(this._backtrack){y=!1;continue}return!1}if(!this.options.flex)break}return y?(n=this.test_match(y,f[u]))!==!1&&n: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:s(function(){var n=this.next();return n||this.lex()},"lex"),begin:s(function(n){this.conditionStack.push(n)},"begin"),popState:s(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:s(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:s(function(n){return(n=this.conditionStack.length-1-Math.abs(n||0))>=0?this.conditionStack[n]:"INITIAL"},"topState"),pushState:s(function(n){this.begin(n)},"pushState"),stateStackSize:s(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:s(function(n,y,a,u){switch(a){case 0:case 1:case 3:case 4:break;case 2:return 10;case 5:return 4;case 6:return 11;case 7:return this.begin("acc_title"),12;case 8:return this.popState(),"acc_title_value";case 9:return this.begin("acc_descr"),14;case 10:return this.popState(),"acc_descr_value";case 11:this.begin("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:return 17;case 15:return 18;case 16:return 19;case 17:return":";case 18:return 6;case 19:return"INVALID"}},"anonymous"),rules:[/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:journey\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,9,11,14,15,16,17,18,19],inclusive:!0}}}}();function g(){this.yy={}}return p.lexer=m,s(g,"Parser"),g.prototype=p,p.Parser=g,new g}();z.parser=z;var wt=z,C="",Y=[],j=[],V=[],$t=s(function(){Y.length=0,j.length=0,C="",V.length=0,bt()},"clear"),vt=s(function(t){C=t,Y.push(t)},"addSection"),Tt=s(function(){return Y},"getSections"),St=s(function(){let t=tt(),e=0;for(;!t&&e<100;)t=tt(),e++;return j.push(...V),j},"getTasks"),Mt=s(function(){const t=[];return j.forEach(e=>{e.people&&t.push(...e.people)}),[...new Set(t)].sort()},"updateActors"),Et=s(function(t,e){const r=e.substr(1).split(":");let l=0,i=[];r.length===1?(l=Number(r[0]),i=[]):(l=Number(r[0]),i=r[1].split(","));const o=i.map(d=>d.trim()),h={section:C,type:C,people:o,task:t,score:l};V.push(h)},"addTask"),At=s(function(t){const e={section:C,type:C,description:t,task:t,classes:[]};j.push(e)},"addTaskOrg"),tt=s(function(){const t=s(function(r){return V[r].processed},"compileTask");let e=!0;for(const[r,l]of V.entries())t(r),e=e&&l.processed;return e},"compileTasks"),It=s(function(){return Mt()},"getActors"),et={getConfig:s(()=>A().journey,"getConfig"),clear:$t,setDiagramTitle:kt,getDiagramTitle:xt,setAccTitle:mt,getAccTitle:gt,setAccDescription:ft,getAccDescription:dt,addSection:vt,getSections:Tt,getTasks:St,addTask:Et,addTaskOrg:At,getActors:It},Pt=s(t=>`.label {
|
7
7
|
font-family: ${t.fontFamily};
|
8
8
|
color: ${t.textColor};
|
9
9
|
}
|
@@ -135,4 +135,4 @@ Expecting `+B.join(", ")+", got '"+(this.terminals_[_]||_)+"'":"Parse error on l
|
|
135
135
|
.actor-5 {
|
136
136
|
${t.actor5?`fill: ${t.actor5}`:""};
|
137
137
|
}
|
138
|
-
`,"getStyles"),q=s(function(t,e){return
|
138
|
+
`,"getStyles"),q=s(function(t,e){return pt(t,e)},"drawRect"),Ct=s(function(t,e){const l=t.append("circle").attr("cx",e.cx).attr("cy",e.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),i=t.append("g");function o(p){const m=Q().startAngle(Math.PI/2).endAngle(Math.PI/2*3).innerRadius(7.5).outerRadius(6.8181818181818175);p.append("path").attr("class","mouth").attr("d",m).attr("transform","translate("+e.cx+","+(e.cy+2)+")")}function h(p){const m=Q().startAngle(3*Math.PI/2).endAngle(Math.PI/2*5).innerRadius(7.5).outerRadius(6.8181818181818175);p.append("path").attr("class","mouth").attr("d",m).attr("transform","translate("+e.cx+","+(e.cy+7)+")")}function d(p){p.append("line").attr("class","mouth").attr("stroke",2).attr("x1",e.cx-5).attr("y1",e.cy+7).attr("x2",e.cx+5).attr("y2",e.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}return i.append("circle").attr("cx",e.cx-5).attr("cy",e.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),i.append("circle").attr("cx",e.cx+5).attr("cy",e.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),s(o,"smile"),s(h,"sad"),s(d,"ambivalent"),e.score>3?o(i):e.score<3?h(i):d(i),l},"drawFace"),nt=s(function(t,e){const r=t.append("circle");return r.attr("cx",e.cx),r.attr("cy",e.cy),r.attr("class","actor-"+e.pos),r.attr("fill",e.fill),r.attr("stroke",e.stroke),r.attr("r",e.r),r.class!==void 0&&r.attr("class",r.class),e.title!==void 0&&r.append("title").text(e.title),r},"drawCircle"),it=s(function(t,e){return yt(t,e)},"drawText"),jt=s(function(t,e){function r(i,o,h,d,p){return i+","+o+" "+(i+h)+","+o+" "+(i+h)+","+(o+d-p)+" "+(i+h-1.2*p)+","+(o+d)+" "+i+","+(o+d)}s(r,"genPoints");const l=t.append("polygon");l.attr("points",r(e.x,e.y,50,20,7)),l.attr("class","labelBox"),e.y=e.y+e.labelMargin,e.x=e.x+.5*e.labelMargin,it(t,e)},"drawLabel"),Vt=s(function(t,e,r){const l=t.append("g"),i=J();i.x=e.x,i.y=e.y,i.fill=e.fill,i.width=r.width*e.taskCount+r.diagramMarginX*(e.taskCount-1),i.height=r.height,i.class="journey-section section-type-"+e.num,i.rx=3,i.ry=3,q(l,i),at(r)(e.text,l,i.x,i.y,i.width,i.height,{class:"journey-section section-type-"+e.num},r,e.colour)},"drawSection"),st=-1,Ft=s(function(t,e,r){const l=e.x+r.width/2,i=t.append("g");st++,i.append("line").attr("id","task"+st).attr("x1",l).attr("y1",e.y).attr("x2",l).attr("y2",450).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),Ct(i,{cx:l,cy:300+30*(5-e.score),score:e.score});const o=J();o.x=e.x,o.y=e.y,o.fill=e.fill,o.width=r.width,o.height=r.height,o.class="task task-type-"+e.num,o.rx=3,o.ry=3,q(i,o);let h=e.x+14;e.people.forEach(d=>{const p=e.actors[d].color,m={cx:h,cy:e.y,r:7,fill:p,stroke:"#000",title:d,pos:e.actors[d].position};nt(i,m),h+=10}),at(r)(e.task,i,o.x,o.y,o.width,o.height,{class:"task"},r,e.colour)},"drawTask"),Lt=s(function(t,e){ut(t,e)},"drawBackgroundRect"),at=function(){function t(i,o,h,d,p,m,g,n){l(o.append("text").attr("x",h+p/2).attr("y",d+m/2+5).style("font-color",n).style("text-anchor","middle").text(i),g)}function e(i,o,h,d,p,m,g,n,y){const{taskFontSize:a,taskFontFamily:u}=n,f=i.split(/<br\s*\/?>/gi);for(let c=0;c<f.length;c++){const v=c*a-a*(f.length-1)/2,x=o.append("text").attr("x",h+p/2).attr("y",d).attr("fill",y).style("text-anchor","middle").style("font-size",a).style("font-family",u);x.append("tspan").attr("x",h+p/2).attr("dy",v).text(f[c]),x.attr("y",d+m/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),l(x,g)}}function r(i,o,h,d,p,m,g,n){const y=o.append("switch"),a=y.append("foreignObject").attr("x",h).attr("y",d).attr("width",p).attr("height",m).attr("position","fixed").append("xhtml:div").style("display","table").style("height","100%").style("width","100%");a.append("div").attr("class","label").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(i),e(i,y,h,d,p,m,g,n),l(a,g)}function l(i,o){for(const h in o)h in o&&i.attr(h,o[h])}return s(t,"byText"),s(e,"byTspan"),s(r,"byFo"),s(l,"_setTextAttrs"),function(i){return i.textPlacement==="fo"?r:i.textPlacement==="old"?t:e}}(),F={drawRect:q,drawCircle:nt,drawSection:Vt,drawText:it,drawLabel:jt,drawTask:Ft,drawBackgroundRect:Lt,initGraphics:s(function(t){t.append("defs").append("marker").attr("id","arrowhead").attr("refX",5).attr("refY",2).attr("markerWidth",6).attr("markerHeight",4).attr("orient","auto").append("path").attr("d","M 0,0 V 4 L6,2 Z")},"initGraphics")},Ot=s(function(t){Object.keys(t).forEach(function(e){D[e]=t[e]})},"setConf"),S={};function rt(t){const e=A().journey;let r=60;Object.keys(S).forEach(l=>{const i=S[l].color,o={cx:20,cy:r,r:7,fill:i,stroke:"#000",pos:S[l].position};F.drawCircle(t,o);const h={x:40,y:r+7,fill:"#666",text:l,textMargin:5|e.boxTextMargin};F.drawText(t,h),r+=20})}s(rt,"drawActorLegend");var D=A().journey,I=D.leftMargin,Bt=s(function(t,e,r,l){const i=A().journey,o=A().securityLevel;let h;o==="sandbox"&&(h=K("#i"+e));const d=K(o==="sandbox"?h.nodes()[0].contentDocument.body:"body");$.init();const p=d.select("#"+e);F.initGraphics(p);const m=l.db.getTasks(),g=l.db.getDiagramTitle(),n=l.db.getActors();for(const v in S)delete S[v];let y=0;n.forEach(v=>{S[v]={color:i.actorColours[y%i.actorColours.length],position:y},y++}),rt(p),$.insert(0,0,I,50*Object.keys(S).length),Dt(p,m,0);const a=$.getBounds();g&&p.append("text").text(g).attr("x",I).attr("font-size","4ex").attr("font-weight","bold").attr("y",25);const u=a.stopy-a.starty+2*i.diagramMarginY,f=I+a.stopx+2*i.diagramMarginX;_t(p,u,f,i.useMaxWidth),p.append("line").attr("x1",I).attr("y1",4*i.height).attr("x2",f-I-4).attr("y2",4*i.height).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)");const c=g?70:0;p.attr("viewBox",`${a.startx} -25 ${f} ${u+c}`),p.attr("preserveAspectRatio","xMinYMin meet"),p.attr("height",u+c+25)},"draw"),$={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],init:s(function(){this.sequenceItems=[],this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0},"init"),updateVal:s(function(t,e,r,l){t[e]===void 0?t[e]=r:t[e]=l(r,t[e])},"updateVal"),updateBounds:s(function(t,e,r,l){const i=A().journey,o=this;let h=0;function d(p){return s(function(m){h++;const g=o.sequenceItems.length-h+1;o.updateVal(m,"starty",e-g*i.boxMargin,Math.min),o.updateVal(m,"stopy",l+g*i.boxMargin,Math.max),o.updateVal($.data,"startx",t-g*i.boxMargin,Math.min),o.updateVal($.data,"stopx",r+g*i.boxMargin,Math.max),p!=="activation"&&(o.updateVal(m,"startx",t-g*i.boxMargin,Math.min),o.updateVal(m,"stopx",r+g*i.boxMargin,Math.max),o.updateVal($.data,"starty",e-g*i.boxMargin,Math.min),o.updateVal($.data,"stopy",l+g*i.boxMargin,Math.max))},"updateItemBounds")}s(d,"updateFn"),this.sequenceItems.forEach(d())},"updateBounds"),insert:s(function(t,e,r,l){const i=Math.min(t,r),o=Math.max(t,r),h=Math.min(e,l),d=Math.max(e,l);this.updateVal($.data,"startx",i,Math.min),this.updateVal($.data,"starty",h,Math.min),this.updateVal($.data,"stopx",o,Math.max),this.updateVal($.data,"stopy",d,Math.max),this.updateBounds(i,h,o,d)},"insert"),bumpVerticalPos:s(function(t){this.verticalPos=this.verticalPos+t,this.data.stopy=this.verticalPos},"bumpVerticalPos"),getVerticalPos:s(function(){return this.verticalPos},"getVerticalPos"),getBounds:s(function(){return this.data},"getBounds")},W=D.sectionFills,ot=D.sectionColours,Dt=s(function(t,e,r){const l=A().journey;let i="";const o=r+(2*l.height+l.diagramMarginY);let h=0,d="#CCC",p="black",m=0;for(const[g,n]of e.entries()){if(i!==n.section){d=W[h%W.length],m=h%W.length,p=ot[h%ot.length];let a=0;const u=n.section;for(let c=g;c<e.length&&e[c].section==u;c++)a+=1;const f={x:g*l.taskMargin+g*l.width+I,y:50,text:n.section,fill:d,num:m,colour:p,taskCount:a};F.drawSection(t,f,l),i=n.section,h++}const y=n.people.reduce((a,u)=>(S[u]&&(a[u]=S[u]),a),{});n.x=g*l.taskMargin+g*l.width+I,n.y=o,n.width=l.diagramMarginX,n.height=l.diagramMarginY,n.colour=p,n.fill=d,n.num=m,n.actors=y,F.drawTask(t,n,l),$.insert(n.x,n.y,n.x+n.width+l.taskMargin,450)}},"drawTasks"),ct={setConf:Ot,draw:Bt},Nt={parser:wt,db:et,renderer:ct,styles:Pt,init:s(t=>{ct.setConf(t.journey),et.clear()},"init")};export{Nt as diagram};
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import{_ as a,l as V,c as W,I as gt,Y as ut,$ as dt,a0 as pt,S as yt,G as K,h as B,t as ft,J as mt,T as bt,V as rt,W as at}from"./mermaid-
|
1
|
+
import{_ as a,l as V,c as W,I as gt,Y as ut,$ as dt,a0 as pt,S as yt,G as K,h as B,t as ft,J as mt,T as bt,V as rt,W as at}from"./mermaid-BgCxVw2J.js";import"./index-DlQKt39j.js";import"./transform-C5148Z0S.js";var q=function(){var t=a(function(e,l,r,o){for(r=r||{},o=e.length;o--;r[e[o]]=l);return r},"o"),d=[1,4],u=[1,13],s=[1,12],f=[1,15],p=[1,16],g=[1,20],y=[1,19],D=[6,7,8],v=[1,26],N=[1,24],A=[1,25],i=[6,7,11],G=[1,31],L=[6,7,11,24],F=[1,6,13,16,17,20,23],U=[1,35],M=[1,36],w=[1,6,7,11,13,16,17,20,23],E=[1,38],I={trace:a(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:a(function(e,l,r,o,h,n,j){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:d},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:d},{6:u,7:[1,10],9:9,12:11,13:s,14:14,16:f,17:p,18:17,19:18,20:g,23:y},t(D,[2,3]),{1:[2,2]},t(D,[2,4]),t(D,[2,5]),{1:[2,6],6:u,12:21,13:s,14:14,16:f,17:p,18:17,19:18,20:g,23:y},{6:u,9:22,12:11,13:s,14:14,16:f,17:p,18:17,19:18,20:g,23:y},{6:v,7:N,10:23,11:A},t(i,[2,24],{18:17,19:18,14:27,16:[1,28],17:[1,29],20:g,23:y}),t(i,[2,19]),t(i,[2,21],{15:30,24:G}),t(i,[2,22]),t(i,[2,23]),t(L,[2,25]),t(L,[2,26]),t(L,[2,28],{20:[1,32]}),{21:[1,33]},{6:v,7:N,10:34,11:A},{1:[2,7],6:u,12:21,13:s,14:14,16:f,17:p,18:17,19:18,20:g,23:y},t(F,[2,14],{7:U,11:M}),t(w,[2,8]),t(w,[2,9]),t(w,[2,10]),t(i,[2,16],{15:37,24:G}),t(i,[2,17]),t(i,[2,18]),t(i,[2,20],{24:E}),t(L,[2,31]),{21:[1,39]},{22:[1,40]},t(F,[2,13],{7:U,11:M}),t(w,[2,11]),t(w,[2,12]),t(i,[2,15],{24:E}),t(L,[2,30]),{22:[1,41]},t(L,[2,27]),t(L,[2,29])],defaultActions:{2:[2,1],6:[2,2]},parseError:a(function(e,l){if(!l.recoverable){var r=new Error(e);throw r.hash=l,r}this.trace(e)},"parseError"),parse:a(function(e){var l=this,r=[0],o=[],h=[null],n=[],j=this.table,c="",H=0,et=0,lt=n.slice.call(arguments,1),b=Object.create(this.lexer),T={yy:{}};for(var Y in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Y)&&(T.yy[Y]=this.yy[Y]);b.setInput(e,T.yy),T.yy.lexer=b,T.yy.parser=this,b.yylloc===void 0&&(b.yylloc={});var J=b.yylloc;n.push(J);var ht=b.options&&b.options.ranges;function nt(){var S;return typeof(S=o.pop()||b.lex()||1)!="number"&&(S instanceof Array&&(S=(o=S).pop()),S=l.symbols_[S]||S),S}typeof T.yy.parseError=="function"?this.parseError=T.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,a(function(S){r.length=r.length-2*S,h.length=h.length-S,n.length=n.length-S},"popStack"),a(nt,"lex");for(var _,R,k,it,z,C,st,X,P={};;){if(R=r[r.length-1],this.defaultActions[R]?k=this.defaultActions[R]:(_==null&&(_=nt()),k=j[R]&&j[R][_]),k===void 0||!k.length||!k[0]){var ot="";for(z in X=[],j[R])this.terminals_[z]&&z>2&&X.push("'"+this.terminals_[z]+"'");ot=b.showPosition?"Parse error on line "+(H+1)+`:
|
2
2
|
`+b.showPosition()+`
|
3
3
|
Expecting `+X.join(", ")+", got '"+(this.terminals_[_]||_)+"'":"Parse error on line "+(H+1)+": Unexpected "+(_==1?"end of input":"'"+(this.terminals_[_]||_)+"'"),this.parseError(ot,{text:b.match,token:this.terminals_[_]||_,line:b.yylineno,loc:J,expected:X})}if(k[0]instanceof Array&&k.length>1)throw new Error("Parse Error: multiple actions possible at state: "+R+", token: "+_);switch(k[0]){case 1:r.push(_),h.push(b.yytext),n.push(b.yylloc),r.push(k[1]),_=null,et=b.yyleng,c=b.yytext,H=b.yylineno,J=b.yylloc;break;case 2:if(C=this.productions_[k[1]][1],P.$=h[h.length-C],P._$={first_line:n[n.length-(C||1)].first_line,last_line:n[n.length-1].last_line,first_column:n[n.length-(C||1)].first_column,last_column:n[n.length-1].last_column},ht&&(P._$.range=[n[n.length-(C||1)].range[0],n[n.length-1].range[1]]),(it=this.performAction.apply(P,[c,et,H,T.yy,k[1],h,n].concat(lt)))!==void 0)return it;C&&(r=r.slice(0,-1*C*2),h=h.slice(0,-1*C),n=n.slice(0,-1*C)),r.push(this.productions_[k[1]][0]),h.push(P.$),n.push(P._$),st=j[r[r.length-2]][r[r.length-1]],r.push(st);break;case 3:return!0}}return!0},"parse")},O=function(){return{EOF:1,parseError:a(function(e,l){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,l)},"parseError"),setInput:a(function(e,l){return this.yy=l||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:a(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:a(function(e){var l=e.length,r=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-l),this.offset-=l;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),r.length-1&&(this.yylineno-=r.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:r?(r.length===o.length?this.yylloc.first_column:0)+o[o.length-r.length].length-r[0].length:this.yylloc.first_column-l},this.options.ranges&&(this.yylloc.range=[h[0],h[0]+this.yyleng-l]),this.yyleng=this.yytext.length,this},"unput"),more:a(function(){return this._more=!0,this},"more"),reject:a(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).
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:a(function(e){this.unput(this.match.slice(e))},"less"),pastInput:a(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:a(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:a(function(){var e=this.pastInput(),l=new Array(e.length+1).join("-");return e+this.upcomingInput()+`
|