@flowfuse/node-red-dashboard 0.11.4 → 0.11.5
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/{arc-HT979WDr.js → arc-yHC07jh5.js} +1 -1
- package/dist/assets/{c4Diagram-c0b17d02-layKFfWt.js → c4Diagram-c0b17d02-YtgqISMs.js} +1 -1
- package/dist/assets/{classDiagram-a8cc8886-VzwANB8n.js → classDiagram-a8cc8886-yXrzCv-T.js} +1 -1
- package/dist/assets/{classDiagram-v2-802a48d3-M26XBLNm.js → classDiagram-v2-802a48d3-NjkwMnSL.js} +1 -1
- package/dist/assets/{createText-3b1f58a4-LQdZvLTq.js → createText-3b1f58a4-NgnhIV1y.js} +1 -1
- package/dist/assets/{edges-0005682e-lMzwRHyD.js → edges-0005682e-z6K4c7OR.js} +1 -1
- package/dist/assets/{erDiagram-dedf2781-3d1HJdR-.js → erDiagram-dedf2781-qOfGFhoC.js} +1 -1
- package/dist/assets/{flowDb-ff651a22-8b9iWX0f.js → flowDb-ff651a22-VLXAYP-0.js} +1 -1
- package/dist/assets/{flowDiagram-d6f8fe3a-njWzbfzQ.js → flowDiagram-d6f8fe3a-cThkyiTm.js} +1 -1
- package/dist/assets/flowDiagram-v2-58f49b84-JR6gJiOl.js +1 -0
- package/dist/assets/{flowchart-elk-definition-56584a6c-GPNB6Kha.js → flowchart-elk-definition-56584a6c-aGhbEEKl.js} +1 -1
- package/dist/assets/{ganttDiagram-088dbd90-jcU-ukfH.js → ganttDiagram-088dbd90-rlAgIGtj.js} +1 -1
- package/dist/assets/{gitGraphDiagram-e0ffc2d1-dIZkYsih.js → gitGraphDiagram-e0ffc2d1-dlmhzu4a.js} +1 -1
- package/dist/assets/{index-madM--SU.css → index-HxR1I_hP.css} +1 -1
- package/dist/assets/{index-f58d48f9-kIjxmOoc.js → index-f58d48f9-Lp59Xbtf.js} +1 -1
- package/dist/assets/{index-fUjal6zz.js → index-nVoogp1U.js} +5 -5
- package/dist/assets/{infoDiagram-64895a6e-YiATGfeS.js → infoDiagram-64895a6e-HI-1CJkM.js} +1 -1
- package/dist/assets/{journeyDiagram-adaa34f8-C2dMQzW1.js → journeyDiagram-adaa34f8-rTj5fqGN.js} +1 -1
- package/dist/assets/{layout-dqGeNW7E.js → layout-fVXYNle2.js} +1 -1
- package/dist/assets/{line-5CT6jkJV.js → line-Z_CHQEeo.js} +1 -1
- package/dist/assets/{linear-n-hIdvcA.js → linear-q6lIuSLn.js} +1 -1
- package/dist/assets/{mindmap-definition-57868176-zoiLDgkE.js → mindmap-definition-57868176-8Fv_UaTx.js} +1 -1
- package/dist/assets/{pieDiagram-3fca7ce7-M1y5XJ7-.js → pieDiagram-3fca7ce7-LxBanFqs.js} +1 -1
- package/dist/assets/{quadrantDiagram-0ca4be02-d6_yGzai.js → quadrantDiagram-0ca4be02-i3mUuanh.js} +1 -1
- package/dist/assets/{requirementDiagram-e13af0f0-5sui4YMq.js → requirementDiagram-e13af0f0-u5059spj.js} +1 -1
- package/dist/assets/{sankeyDiagram-a7f8e230-CI_VVAG4.js → sankeyDiagram-a7f8e230-lFgjv4Iy.js} +1 -1
- package/dist/assets/{sequenceDiagram-84aa38e3-A8w5qHau.js → sequenceDiagram-84aa38e3-2ROgjdrk.js} +1 -1
- package/dist/assets/{stateDiagram-9a586ac6-7q5M0Pi-.js → stateDiagram-9a586ac6-N4CEixko.js} +1 -1
- package/dist/assets/{stateDiagram-v2-96f2b9df-7tVst5gU.js → stateDiagram-v2-96f2b9df-FbOIE7I-.js} +1 -1
- package/dist/assets/{styles-1b0c237a-sLXSCoO5.js → styles-1b0c237a-AFZGBoCy.js} +1 -1
- package/dist/assets/{styles-622362e4-U0vqC8io.js → styles-622362e4-Uf0NQb62.js} +1 -1
- package/dist/assets/{styles-a1a6e33f-TN9IkCLV.js → styles-a1a6e33f-bG-oUCNz.js} +1 -1
- package/dist/assets/{svgDraw-70101091-Uwgdyqw3.js → svgDraw-70101091-PiQV_Dss.js} +1 -1
- package/dist/assets/{svgDrawCommon-42e92da3-cQnk6Abg.js → svgDrawCommon-42e92da3-nBbiZX3l.js} +1 -1
- package/dist/assets/{timeline-definition-1a90b03d-P7XO3C-W.js → timeline-definition-1a90b03d-PQ0VUSc2.js} +1 -1
- package/dist/index.html +2 -2
- package/nodes/config/locales/en-US/ui_base.json +3 -1
- package/nodes/config/ui_base.html +10 -0
- package/nodes/config/ui_page.html +14 -3
- package/nodes/widgets/ui_button.js +1 -0
- package/package.json +2 -2
- package/dist/assets/flowDiagram-v2-58f49b84-J8Y8LcUP.js +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{G as k,A as v,l as B,H as N}from"./index-
|
|
1
|
+
import{G as k,A as v,l as B,H as N}from"./index-nVoogp1U.js";import{l as I}from"./line-Z_CHQEeo.js";let S=0;const O=function(i,e,t,a,r){const o=function(d){switch(d){case r.db.relationType.AGGREGATION:return"aggregation";case r.db.relationType.EXTENSION:return"extension";case r.db.relationType.COMPOSITION:return"composition";case r.db.relationType.DEPENDENCY:return"dependency";case r.db.relationType.LOLLIPOP:return"lollipop"}};e.points=e.points.filter(d=>!Number.isNaN(d.y));const l=e.points,g=I().x(function(d){return d.x}).y(function(d){return d.y}).curve(k),s=i.append("path").attr("d",g(l)).attr("id","edge"+S).attr("class","relation");let p="";a.arrowMarkerAbsolute&&(p=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,p=p.replace(/\(/g,"\\("),p=p.replace(/\)/g,"\\)")),t.relation.lineType==1&&s.attr("class","relation dashed-line"),t.relation.lineType==10&&s.attr("class","relation dotted-line"),t.relation.type1!=="none"&&s.attr("marker-start","url("+p+"#"+o(t.relation.type1)+"Start)"),t.relation.type2!=="none"&&s.attr("marker-end","url("+p+"#"+o(t.relation.type2)+"End)");let h,n;const c=e.points.length;let b=v.calcLabelPosition(e.points);h=b.x,n=b.y;let x,m,f,T;if(c%2!==0&&c>1){let d=v.calcCardinalityPosition(t.relation.type1!=="none",e.points,e.points[0]),w=v.calcCardinalityPosition(t.relation.type2!=="none",e.points,e.points[c-1]);B.debug("cardinality_1_point "+JSON.stringify(d)),B.debug("cardinality_2_point "+JSON.stringify(w)),x=d.x,m=d.y,f=w.x,T=w.y}if(t.title!==void 0){const d=i.append("g").attr("class","classLabel"),w=d.append("text").attr("class","label").attr("x",h).attr("y",n).attr("fill","red").attr("text-anchor","middle").text(t.title);window.label=w;const y=w.node().getBBox();d.insert("rect",":first-child").attr("class","box").attr("x",y.x-a.padding/2).attr("y",y.y-a.padding/2).attr("width",y.width+a.padding).attr("height",y.height+a.padding)}B.info("Rendering relation "+JSON.stringify(t)),t.relationTitle1!==void 0&&t.relationTitle1!=="none"&&i.append("g").attr("class","cardinality").append("text").attr("class","type1").attr("x",x).attr("y",m).attr("fill","black").attr("font-size","6").text(t.relationTitle1),t.relationTitle2!==void 0&&t.relationTitle2!=="none"&&i.append("g").attr("class","cardinality").append("text").attr("class","type2").attr("x",f).attr("y",T).attr("fill","black").attr("font-size","6").text(t.relationTitle2),S++},P=function(i,e,t,a){B.debug("Rendering class ",e,t);const r=e.id,o={id:r,label:e.id,width:0,height:0},l=i.append("g").attr("id",a.db.lookUpDomId(r)).attr("class","classGroup");let g;e.link?g=l.append("svg:a").attr("xlink:href",e.link).attr("target",e.linkTarget).append("text").attr("y",t.textHeight+t.padding).attr("x",0):g=l.append("text").attr("y",t.textHeight+t.padding).attr("x",0);let s=!0;e.annotations.forEach(function(u){const H=g.append("tspan").text("«"+u+"»");s||H.attr("dy",t.textHeight),s=!1});let p=E(e);const h=g.append("tspan").text(p).attr("class","title");s||h.attr("dy",t.textHeight);const n=g.node().getBBox().height,c=l.append("line").attr("x1",0).attr("y1",t.padding+n+t.dividerMargin/2).attr("y2",t.padding+n+t.dividerMargin/2),b=l.append("text").attr("x",t.padding).attr("y",n+t.dividerMargin+t.textHeight).attr("fill","white").attr("class","classText");s=!0,e.members.forEach(function(u){_(b,u,s,t),s=!1});const x=b.node().getBBox(),m=l.append("line").attr("x1",0).attr("y1",t.padding+n+t.dividerMargin+x.height).attr("y2",t.padding+n+t.dividerMargin+x.height),f=l.append("text").attr("x",t.padding).attr("y",n+2*t.dividerMargin+x.height+t.textHeight).attr("fill","white").attr("class","classText");s=!0,e.methods.forEach(function(u){_(f,u,s,t),s=!1});const T=l.node().getBBox();var d=" ";e.cssClasses.length>0&&(d=d+e.cssClasses.join(" "));const y=l.insert("rect",":first-child").attr("x",0).attr("y",0).attr("width",T.width+2*t.padding).attr("height",T.height+t.padding+.5*t.dividerMargin).attr("class",d).node().getBBox().width;return g.node().childNodes.forEach(function(u){u.setAttribute("x",(y-u.getBBox().width)/2)}),e.tooltip&&g.insert("title").text(e.tooltip),c.attr("x2",y),m.attr("x2",y),o.width=y,o.height=T.height+t.padding+.5*t.dividerMargin,o},E=function(i){let e=i.id;return i.type&&(e+="<"+i.type+">"),e},A=function(i,e,t,a){B.debug("Rendering note ",e,t);const r=e.id,o={id:r,text:e.text,width:0,height:0},l=i.append("g").attr("id",r).attr("class","classGroup");let g=l.append("text").attr("y",t.textHeight+t.padding).attr("x",0);const s=JSON.parse(`"${e.text}"`).split(`
|
|
2
2
|
`);s.forEach(function(c){B.debug(`Adding line: ${c}`),g.append("tspan").text(c).attr("class","title").attr("dy",t.textHeight)});const p=l.node().getBBox(),n=l.insert("rect",":first-child").attr("x",0).attr("y",0).attr("width",p.width+2*t.padding).attr("height",p.height+s.length*t.textHeight+t.padding+.5*t.dividerMargin).node().getBBox().width;return g.node().childNodes.forEach(function(c){c.setAttribute("x",(n-c.getBBox().width)/2)}),o.width=n,o.height=p.height+s.length*t.textHeight+t.padding+.5*t.dividerMargin,o},M=function(i){let e="",t="",a="",r="",o=i.substring(0,1),l=i.substring(i.length-1,i.length);o.match(/[#+~-]/)&&(r=o);let g=/[\s\w)~]/;l.match(g)||(t=C(l));const s=r===""?0:1;let p=t===""?i.length:i.length-1;i=i.substring(s,p);const h=i.indexOf("("),n=i.indexOf(")");if(h>1&&n>h&&n<=i.length){let b=i.substring(0,h).trim();const x=i.substring(h+1,n);if(e=r+b+"("+N(x.trim())+")",n<i.length){let m=i.substring(n+1,n+2);t===""&&!m.match(g)?(t=C(m),a=i.substring(n+2).trim()):a=i.substring(n+1).trim(),a!==""&&(a.charAt(0)===":"&&(a=a.substring(1).trim()),a=" : "+N(a),e+=a)}}else e=r+N(i);return{displayText:e,cssStyle:t}},_=function(i,e,t,a){let r=M(e);const o=i.append("tspan").attr("x",a.padding).text(r.displayText);r.cssStyle!==""&&o.attr("style",r.cssStyle),t||o.attr("dy",a.textHeight)},C=function(i){switch(i){case"*":return"font-style:italic;";case"$":return"text-decoration:underline;";default:return""}},R={getClassTitleString:E,drawClass:P,drawEdge:O,drawNote:A,parseMember:M};export{M as p,R as s};
|
package/dist/assets/{svgDrawCommon-42e92da3-cQnk6Abg.js → svgDrawCommon-42e92da3-nBbiZX3l.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{aR as o,n as i}from"./index-
|
|
1
|
+
import{aR as o,n as i}from"./index-nVoogp1U.js";const c=(s,t)=>{const r=s.append("rect");if(r.attr("x",t.x),r.attr("y",t.y),r.attr("fill",t.fill),r.attr("stroke",t.stroke),r.attr("width",t.width),r.attr("height",t.height),t.rx!==void 0&&r.attr("rx",t.rx),t.ry!==void 0&&r.attr("ry",t.ry),t.attrs!==void 0)for(const e in t.attrs)r.attr(e,t.attrs[e]);return t.class!==void 0&&r.attr("class",t.class),r},x=(s,t)=>{const r={x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,stroke:t.stroke,class:"rect"};c(s,r).lower()},d=(s,t)=>{const r=t.text.replace(o," "),e=s.append("text");e.attr("x",t.x),e.attr("y",t.y),e.attr("class","legend"),e.style("text-anchor",t.anchor),t.class!==void 0&&e.attr("class",t.class);const n=e.append("tspan");return n.attr("x",t.x+t.textMargin*2),n.text(r),e},h=(s,t,r,e)=>{const n=s.append("image");n.attr("x",t),n.attr("y",r);const a=i.sanitizeUrl(e);n.attr("xlink:href",a)},y=(s,t,r,e)=>{const n=s.append("use");n.attr("x",t),n.attr("y",r);const a=i.sanitizeUrl(e);n.attr("xlink:href",`#${a}`)},g=()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),p=()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0});export{x as a,y as b,h as c,c as d,p as e,d as f,g};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{aU as bt,Z as vt,F as kt,c as wt,l as I,h as U,t as St,aV as Et,aW as Tt,aX as It}from"./index-
|
|
1
|
+
import{aU as bt,Z as vt,F as kt,c as wt,l as I,h as U,t as St,aV as Et,aW as Tt,aX as It}from"./index-nVoogp1U.js";import{a as nt}from"./arc-yHC07jh5.js";import"./path-aUcfwwLI.js";var Y=function(){var n=function(x,r,c,h){for(c=c||{},h=x.length;h--;c[x[h]]=r);return c},t=[1,2],e=[1,5],s=[6,9,11,17,18,20,22,23,26,27,28],i=[1,15],o=[1,16],a=[1,17],p=[1,18],y=[1,19],g=[1,23],b=[1,24],m=[1,27],v=[4,6,9,11,17,18,20,22,23,26,27,28],E={trace:function(){},yy:{},symbols_:{error:2,start:3,timeline:4,document:5,EOF:6,directive:7,line:8,SPACE:9,statement:10,NEWLINE:11,openDirective:12,typeDirective:13,closeDirective:14,":":15,argDirective:16,title:17,acc_title:18,acc_title_value:19,acc_descr:20,acc_descr_value:21,acc_descr_multiline_value:22,section:23,period_statement:24,event_statement:25,period:26,event:27,open_directive:28,type_directive:29,arg_directive:30,close_directive:31,$accept:0,$end:1},terminals_:{2:"error",4:"timeline",6:"EOF",9:"SPACE",11:"NEWLINE",15:":",17:"title",18:"acc_title",19:"acc_title_value",20:"acc_descr",21:"acc_descr_value",22:"acc_descr_multiline_value",23:"section",26:"period",27:"event",28:"open_directive",29:"type_directive",30:"arg_directive",31:"close_directive"},productions_:[0,[3,3],[3,2],[5,0],[5,2],[8,2],[8,1],[8,1],[8,1],[7,4],[7,6],[10,1],[10,2],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[24,1],[25,1],[12,1],[13,1],[16,1],[14,1]],performAction:function(r,c,h,d,u,l,M){var f=l.length-1;switch(u){case 1:return l[f-1];case 3:this.$=[];break;case 4:l[f-1].push(l[f]),this.$=l[f-1];break;case 5:case 6:this.$=l[f];break;case 7:case 8:this.$=[];break;case 11:d.getCommonDb().setDiagramTitle(l[f].substr(6)),this.$=l[f].substr(6);break;case 12:this.$=l[f].trim(),d.getCommonDb().setAccTitle(this.$);break;case 13:case 14:this.$=l[f].trim(),d.getCommonDb().setAccDescription(this.$);break;case 15:d.addSection(l[f].substr(8)),this.$=l[f].substr(8);break;case 19:d.addTask(l[f],0,""),this.$=l[f];break;case 20:d.addEvent(l[f].substr(2)),this.$=l[f];break;case 21:d.parseDirective("%%{","open_directive");break;case 22:d.parseDirective(l[f],"type_directive");break;case 23:l[f]=l[f].trim().replace(/'/g,'"'),d.parseDirective(l[f],"arg_directive");break;case 24:d.parseDirective("}%%","close_directive","timeline");break}},table:[{3:1,4:t,7:3,12:4,28:e},{1:[3]},n(s,[2,3],{5:6}),{3:7,4:t,7:3,12:4,28:e},{13:8,29:[1,9]},{29:[2,21]},{6:[1,10],7:22,8:11,9:[1,12],10:13,11:[1,14],12:4,17:i,18:o,20:a,22:p,23:y,24:20,25:21,26:g,27:b,28:e},{1:[2,2]},{14:25,15:[1,26],31:m},n([15,31],[2,22]),n(s,[2,8],{1:[2,1]}),n(s,[2,4]),{7:22,10:28,12:4,17:i,18:o,20:a,22:p,23:y,24:20,25:21,26:g,27:b,28:e},n(s,[2,6]),n(s,[2,7]),n(s,[2,11]),{19:[1,29]},{21:[1,30]},n(s,[2,14]),n(s,[2,15]),n(s,[2,16]),n(s,[2,17]),n(s,[2,18]),n(s,[2,19]),n(s,[2,20]),{11:[1,31]},{16:32,30:[1,33]},{11:[2,24]},n(s,[2,5]),n(s,[2,12]),n(s,[2,13]),n(v,[2,9]),{14:34,31:m},{31:[2,23]},{11:[1,35]},n(v,[2,10])],defaultActions:{5:[2,21],7:[2,2],27:[2,24],33:[2,23]},parseError:function(r,c){if(c.recoverable)this.trace(r);else{var h=new Error(r);throw h.hash=c,h}},parse:function(r){var c=this,h=[0],d=[],u=[null],l=[],M=this.table,f="",C=0,J=0,V=2,w=1,L=l.slice.call(arguments,1),_=Object.create(this.lexer),$={yy:{}};for(var A in this.yy)Object.prototype.hasOwnProperty.call(this.yy,A)&&($.yy[A]=this.yy[A]);_.setInput(r,$.yy),$.yy.lexer=_,$.yy.parser=this,typeof _.yylloc>"u"&&(_.yylloc={});var O=_.yylloc;l.push(O);var K=_.options&&_.options.ranges;typeof $.yy.parseError=="function"?this.parseError=$.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function _t(){var H;return H=d.pop()||_.lex()||w,typeof H!="number"&&(H instanceof Array&&(d=H,H=d.pop()),H=c.symbols_[H]||H),H}for(var T,z,N,Q,F={},j,P,et,G;;){if(z=h[h.length-1],this.defaultActions[z]?N=this.defaultActions[z]:((T===null||typeof T>"u")&&(T=_t()),N=M[z]&&M[z][T]),typeof N>"u"||!N.length||!N[0]){var X="";G=[];for(j in M[z])this.terminals_[j]&&j>V&&G.push("'"+this.terminals_[j]+"'");_.showPosition?X="Parse error on line "+(C+1)+`:
|
|
2
2
|
`+_.showPosition()+`
|
|
3
3
|
Expecting `+G.join(", ")+", got '"+(this.terminals_[T]||T)+"'":X="Parse error on line "+(C+1)+": Unexpected "+(T==w?"end of input":"'"+(this.terminals_[T]||T)+"'"),this.parseError(X,{text:_.match,token:this.terminals_[T]||T,line:_.yylineno,loc:O,expected:G})}if(N[0]instanceof Array&&N.length>1)throw new Error("Parse Error: multiple actions possible at state: "+z+", token: "+T);switch(N[0]){case 1:h.push(T),u.push(_.yytext),l.push(_.yylloc),h.push(N[1]),T=null,J=_.yyleng,f=_.yytext,C=_.yylineno,O=_.yylloc;break;case 2:if(P=this.productions_[N[1]][1],F.$=u[u.length-P],F._$={first_line:l[l.length-(P||1)].first_line,last_line:l[l.length-1].last_line,first_column:l[l.length-(P||1)].first_column,last_column:l[l.length-1].last_column},K&&(F._$.range=[l[l.length-(P||1)].range[0],l[l.length-1].range[1]]),Q=this.performAction.apply(F,[f,J,C,$.yy,N[1],u,l].concat(L)),typeof Q<"u")return Q;P&&(h=h.slice(0,-1*P*2),u=u.slice(0,-1*P),l=l.slice(0,-1*P)),h.push(this.productions_[N[1]][0]),u.push(F.$),l.push(F._$),et=M[h[h.length-2]][h[h.length-1]],h.push(et);break;case 3:return!0}}return!0}},S=function(){var x={EOF:1,parseError:function(c,h){if(this.yy.parser)this.yy.parser.parseError(c,h);else throw new Error(c)},setInput:function(r,c){return this.yy=c||this.yy||{},this._input=r,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},input:function(){var r=this._input[0];this.yytext+=r,this.yyleng++,this.offset++,this.match+=r,this.matched+=r;var c=r.match(/(?:\r\n?|\n).*/g);return c?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),r},unput:function(r){var c=r.length,h=r.split(/(?:\r\n?|\n)/g);this._input=r+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-c),this.offset-=c;var d=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),h.length-1&&(this.yylineno-=h.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:h?(h.length===d.length?this.yylloc.first_column:0)+d[d.length-h.length].length-h[0].length:this.yylloc.first_column-c},this.options.ranges&&(this.yylloc.range=[u[0],u[0]+this.yyleng-c]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject: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
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(r){this.unput(this.match.slice(r))},pastInput:function(){var r=this.matched.substr(0,this.matched.length-this.match.length);return(r.length>20?"...":"")+r.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var r=this.match;return r.length<20&&(r+=this._input.substr(0,20-r.length)),(r.substr(0,20)+(r.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var r=this.pastInput(),c=new Array(r.length+1).join("-");return r+this.upcomingInput()+`
|
package/dist/index.html
CHANGED
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
<link rel="icon" type="image/svg+xml" href="/dashboard/favicon.ico" />
|
|
12
12
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
13
13
|
<title>Node-RED Dashboard 2.0</title>
|
|
14
|
-
<script type="module" crossorigin src="/dashboard/assets/index-
|
|
15
|
-
<link rel="stylesheet" crossorigin href="/dashboard/assets/index-
|
|
14
|
+
<script type="module" crossorigin src="/dashboard/assets/index-nVoogp1U.js"></script>
|
|
15
|
+
<link rel="stylesheet" crossorigin href="/dashboard/assets/index-HxR1I_hP.css">
|
|
16
16
|
</head>
|
|
17
17
|
<body>
|
|
18
18
|
<div id="app"></div>
|
|
@@ -184,6 +184,9 @@
|
|
|
184
184
|
},
|
|
185
185
|
acceptsClientConfig: {
|
|
186
186
|
value: ['ui-notification', 'ui-control']
|
|
187
|
+
},
|
|
188
|
+
showPathInSidebar: {
|
|
189
|
+
value: false
|
|
187
190
|
}
|
|
188
191
|
},
|
|
189
192
|
label: function () {
|
|
@@ -1021,4 +1024,11 @@
|
|
|
1021
1024
|
<input type="text" id="node-config-input-path" disabled>
|
|
1022
1025
|
<span style="display: block; margin-left: 105px; margin-top: 0px; font-style: italic; color: #bbb; font-size: 8pt;">This option is currently disabled and still in-development.</span>
|
|
1023
1026
|
</div>
|
|
1027
|
+
<div class="form-row" style="margin-bottom: 0;">
|
|
1028
|
+
<label style="font-weight: 600; width: auto;"><span data-i18n="ui-base.label.sidebar"></span></label>
|
|
1029
|
+
</div>
|
|
1030
|
+
<div class="form-row form-row-flex" style="align-items: center;">
|
|
1031
|
+
<input style="margin: 8px 0 10px 16px; width:20px;" type="checkbox" id="node-config-input-showPathInSidebar">
|
|
1032
|
+
<label style="width:auto" for="node-config-input-showPathInSidebar"><span data-i18n="ui-base.label.showPath"></span></label>
|
|
1033
|
+
</div>
|
|
1024
1034
|
</script>
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
required: true
|
|
13
13
|
},
|
|
14
14
|
path: {
|
|
15
|
-
value:
|
|
15
|
+
value: -1,
|
|
16
16
|
required: false
|
|
17
17
|
},
|
|
18
18
|
icon: {
|
|
@@ -32,10 +32,21 @@
|
|
|
32
32
|
value: -1
|
|
33
33
|
},
|
|
34
34
|
className: { value: '' },
|
|
35
|
-
visible: { value: true },
|
|
36
|
-
disabled: { value: false }
|
|
35
|
+
visible: { value: 'true' },
|
|
36
|
+
disabled: { value: 'false' }
|
|
37
37
|
},
|
|
38
38
|
oneditprepare: function () {
|
|
39
|
+
if (this.path === -1) {
|
|
40
|
+
// we have no path set yet
|
|
41
|
+
let pageCount = 0
|
|
42
|
+
RED.nodes.eachConfig((cNode) => {
|
|
43
|
+
pageCount += cNode.type === 'ui-page' ? 1 : 0
|
|
44
|
+
})
|
|
45
|
+
this.path = '/page' + (pageCount + 1)
|
|
46
|
+
$('#node-config-input-path').val(this.path)
|
|
47
|
+
console.log('setting path to', this.path)
|
|
48
|
+
}
|
|
49
|
+
|
|
39
50
|
$('#node-config-input-layout').typedInput({
|
|
40
51
|
type: 'layout',
|
|
41
52
|
types: [{
|
|
@@ -22,6 +22,7 @@ module.exports = function (RED) {
|
|
|
22
22
|
if (parts.length === 0) {
|
|
23
23
|
throw new Error()
|
|
24
24
|
}
|
|
25
|
+
payload = RED.util.evaluateNodeProperty(payload, payloadType, node)
|
|
25
26
|
} catch (err) {
|
|
26
27
|
node.warn('Invalid payload property expression - defaulting to node id')
|
|
27
28
|
payload = node.id
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flowfuse/node-red-dashboard",
|
|
3
|
-
"version": "0.11.
|
|
4
|
-
"description": "A collection of Node-RED nodes that provide functionality to build your own UI applications (inc. forms, buttons, charts)
|
|
3
|
+
"version": "0.11.5",
|
|
4
|
+
"description": "Dashboard 2.0 - A collection of Node-RED nodes that provide functionality to build your own UI applications (inc. forms, buttons, charts).",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"node-red"
|
|
7
7
|
],
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{p as e,f as o}from"./flowDb-ff651a22-8b9iWX0f.js";import{f as t,g as a}from"./styles-1b0c237a-sLXSCoO5.js";import{u as s}from"./index-fUjal6zz.js";import"./layout-dqGeNW7E.js";import"./index-f58d48f9-kIjxmOoc.js";import"./edges-0005682e-lMzwRHyD.js";import"./createText-3b1f58a4-LQdZvLTq.js";import"./svgDraw-70101091-Uwgdyqw3.js";import"./line-5CT6jkJV.js";import"./array-Nw74a44z.js";import"./path-aUcfwwLI.js";const k={parser:e,db:o,renderer:t,styles:a,init:r=>{r.flowchart||(r.flowchart={}),r.flowchart.arrowMarkerAbsolute=r.arrowMarkerAbsolute,s({flowchart:{arrowMarkerAbsolute:r.arrowMarkerAbsolute}}),t.setConf(r.flowchart),o.clear(),o.setGen("gen-2")}};export{k as diagram};
|