openc3-cosmos-tool-iframe 5.20.0 → 6.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/plugin.txt +1 -1
- data/tools/iframe/ArrayWidget-BTxChSds-62b0746ea0a5d9fd46c1.js +2 -0
- data/tools/iframe/BarColumn-Cdu3OoMa-d98fca75f819106d3e95.js +1 -0
- data/tools/iframe/BlockWidget-PmjzrkXF-76efe280b6c3935f6172.js +2 -0
- data/tools/iframe/ButtonWidget-nwDlOBJT-b497c13e2131139318c6.js +2 -0
- data/tools/iframe/CanvasWidget-BL8930eT-48557ce7910799fdd414.js +1 -0
- data/tools/iframe/CanvasdotWidget-VCf1fL-G-6f5c31368efe7fb0dded.js +1 -0
- data/tools/iframe/CanvasimageWidget-BIw7Wbf2-f549241d8e78bd650412.js +1 -0
- data/tools/iframe/CanvasimagevalueWidget-CE3Dj5bH-d38e21dee9f09da5d9e6.js +1 -0
- data/tools/iframe/CanvaslabelWidget-DWmb356h-6444a44aaec18c567828.js +1 -0
- data/tools/iframe/CanvaslabelvalueWidget-CI3yYwFs-64041416a98ac46f6122.js +1 -0
- data/tools/iframe/CanvaslineWidget-COeapH3P-7a661003687cef3ce983.js +1 -0
- data/tools/iframe/CanvaslinevalueWidget-CI-Bbzfi-1836d23008003e56802d.js +1 -0
- data/tools/iframe/CheckbuttonWidget-BQhggcZ2-a343dc9eb2ba42031ee9.js +1 -0
- data/tools/iframe/ComboboxWidget-BzsbOv54-db648f1e39af64cad31d.js +1 -0
- data/tools/iframe/DateWidget-B5R_9rA8-d190cb1039df156bb5ad.js +1 -0
- data/tools/iframe/DetailsDialog-DLRMqetn-8f8d460f1989b3122adf.js +1 -0
- data/tools/iframe/DynamicWidget-m9EliUR2-30fe3be1ff66090b0cbc.js +1 -0
- data/tools/iframe/FormatvalueWidget-DZkRJce8-b58ed1d866f51e2c86c7.js +1 -0
- data/tools/iframe/GraphWidget-amwxyH1r-2cb9515f6950e4ddc393.js +1 -0
- data/tools/iframe/HorizontalWidget-CirtfuL8-c6935fad4be28f6f3a90.js +1 -0
- data/tools/iframe/HorizontalboxWidget-CyTDt2nl-4d3fd2a52685252208d6.js +1 -0
- data/tools/iframe/HorizontallineWidget-BdlNB951-a36a3b2201c89aade712.js +1 -0
- data/tools/iframe/Iframe-6f68c2f39616b0d09620.js +1 -0
- data/tools/iframe/IframeWidget-DnJmCrCA-b788d482b9d566a13bd4.js +1 -0
- data/tools/iframe/ImageLoader-CpcR6tPi-a432a5910a3c4e963e36.js +1 -0
- data/tools/iframe/ImageviewerWidget-DIkmb_C9-80b7098cb207f3f95a2c.js +1 -0
- data/tools/iframe/LabelWidget-BDsypYho-c964924497b336cc8645.js +1 -0
- data/tools/iframe/LabelledWidget-DjturGl5-93b5c623a02e9237d30b.js +1 -0
- data/tools/iframe/LabelprogressbarWidget-RADJGLj3-464a76e18d33a70b158d.js +1 -0
- data/tools/iframe/LabelsparklineWidget-BlJoICxu-4a17f27635d8bf670a84.js +1 -0
- data/tools/iframe/LabelvalueWidget-DVWJqnlY-644784531f2638bdbb4a.js +1 -0
- data/tools/iframe/LabelvaluedescWidget-CsUP7J4U-f67ca850c0b27947aa0a.js +1 -0
- data/tools/iframe/LabelvaluelimitsbarWidget-Blj1QXV8-1e54b1b1a1aca8d2dcc2.js +1 -0
- data/tools/iframe/LabelvaluelimitscolumnWidget-CvCo-uCe-b6e31598bd40986d37d9.js +1 -0
- data/tools/iframe/LabelvaluerangebarWidget-DpcXhlfF-2b88d240ad0f7f8045f8.js +1 -0
- data/tools/iframe/Layout-C1HoM4Kl-d795f5282486fe4bacc0.js +1 -0
- data/tools/iframe/LedWidget-B_K2e5tq-e8c767ca5974066380d6.js +1 -0
- data/tools/iframe/LimitsbarWidget-DXbqsi4J-d32cbc9eea88aef731ba.js +1 -0
- data/tools/iframe/LimitscolorWidget-Ckmuw0YX-56ac7d1603ad823d9481.js +1 -0
- data/tools/iframe/LimitscolumnWidget-BfY4su5U-1ef550f8b366cce86461.js +1 -0
- data/tools/iframe/LinegraphWidget-y-Qy9P0R-6268fb5819b6ba51d250.js +1 -0
- data/tools/iframe/MatrixbycolumnsWidget-BTBColrs-d65180e0c5afd9c4110f.js +1 -0
- data/tools/iframe/ProgressbarWidget-DpA_-vy9-794781387b284ec3cc70.js +1 -0
- data/tools/iframe/RadiobuttonWidget-BO8zpgwW-f6b948979088f69a3b25.js +1 -0
- data/tools/iframe/RadiogroupWidget-Oy7V4S-V-9ec95bf60662175b1bc0.js +1 -0
- data/tools/iframe/RangebarWidget-DHS7S3vI-23c07164304b6158335a.js +1 -0
- data/tools/iframe/RollupWidget-CTk9Kjwr-b7847f64c39df7c2d9d1.js +1 -0
- data/tools/iframe/ScrollwindowWidget-DD0TOW6s-176dfca5b219d159fc6a.js +1 -0
- data/tools/iframe/SignalWidget-CC33KMTW-dad0eebaa7bb4ec5c6a1.js +1 -0
- data/tools/iframe/SpacerWidget-BnJe_Hq6-d001c65d9fb91371710e.js +1 -0
- data/tools/iframe/SparklineWidget-DMvMQCPm-bc50d1c55a5f8249ec0d.js +1 -0
- data/tools/iframe/TabbookWidget-B3w0JtWe-8941858b809912bc1220.js +1 -0
- data/tools/iframe/TextboxWidget-D2f0-eol-2cb4e3a8ec30b67398eb.js +1 -0
- data/tools/iframe/TextfieldWidget-DXSdgqVP-2be2ebdddcc50dbf7b9c.js +1 -0
- data/tools/iframe/TimeWidget-DvrRaEMz-f191059b6c4accbb12ca.js +1 -0
- data/tools/iframe/TitleWidget-DqViFQl--490a3a0160307ebe672e.js +1 -0
- data/tools/iframe/VWidget-02CG-3Av-b28db6ec76acd5922466.js +1 -0
- data/tools/iframe/ValueWidget-KLYY8L8U-a76ca6e340b1ca0645b5.js +1 -0
- data/tools/iframe/ValuelimitsbarWidget-SR8XNZFB-cb2978fb1ab6cb6a7cde.js +1 -0
- data/tools/iframe/ValuelimitscolumnWidget-xYZSp6YZ-e0f0c90bb0c401878c37.js +1 -0
- data/tools/iframe/ValuerangebarWidget-B6M02a9d-d1817ac356c779d395b5.js +1 -0
- data/tools/iframe/VerticalWidget-z6xUM-ql-51a1decacafb540c814e.js +1 -0
- data/tools/iframe/VerticalboxWidget-3a9cVsW--3deb64ab0a25929722af.js +1 -0
- data/tools/iframe/Widget-C4QVI4IH-e5120dfc925ff69c621a.js +1 -0
- data/tools/iframe/main-851f6cb4e8f90d1d06ad.js +1420 -0
- data/tools/iframe/main.js +1 -0
- metadata +68 -9
- data/tools/iframe/index.html +0 -4
- data/tools/iframe/js/160.js +0 -2
- data/tools/iframe/js/160.js.map +0 -1
- data/tools/iframe/js/272.js +0 -2
- data/tools/iframe/js/272.js.map +0 -1
- data/tools/iframe/js/app.js +0 -2
- data/tools/iframe/js/app.js.map +0 -1
@@ -0,0 +1 @@
|
|
1
|
+
System.register(["./main-851f6cb4e8f90d1d06ad.js","./Widget-C4QVI4IH-e5120dfc925ff69c621a.js"],function(S,T){"use strict";var _,w;return{setters:[h=>{_=h.P},h=>{w=h.o}],execute:function(){var h={},I;function x(){return I||(I=1,function(t){(function(){var s={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function c(n){return k(E(n),arguments)}function b(n,u){return c.apply(null,[n].concat(u||[]))}function k(n,u){var i=1,p=n.length,e,o="",l,a,r,m,g,y,v,d;for(l=0;l<p;l++)if(typeof n[l]=="string")o+=n[l];else if(typeof n[l]=="object"){if(r=n[l],r.keys)for(e=u[i],a=0;a<r.keys.length;a++){if(e==null)throw new Error(c('[sprintf] Cannot access property "%s" of undefined value "%s"',r.keys[a],r.keys[a-1]));e=e[r.keys[a]]}else r.param_no?e=u[r.param_no]:e=u[i++];if(s.not_type.test(r.type)&&s.not_primitive.test(r.type)&&e instanceof Function&&(e=e()),s.numeric_arg.test(r.type)&&typeof e!="number"&&isNaN(e))throw new TypeError(c("[sprintf] expecting number but found %T",e));switch(s.number.test(r.type)&&(v=e>=0),r.type){case"b":e=parseInt(e,10).toString(2);break;case"c":e=String.fromCharCode(parseInt(e,10));break;case"d":case"i":e=parseInt(e,10);break;case"j":e=JSON.stringify(e,null,r.width?parseInt(r.width):0);break;case"e":e=r.precision?parseFloat(e).toExponential(r.precision):parseFloat(e).toExponential();break;case"f":e=r.precision?parseFloat(e).toFixed(r.precision):parseFloat(e);break;case"g":e=r.precision?String(Number(e.toPrecision(r.precision))):parseFloat(e);break;case"o":e=(parseInt(e,10)>>>0).toString(8);break;case"s":e=String(e),e=r.precision?e.substring(0,r.precision):e;break;case"t":e=String(!!e),e=r.precision?e.substring(0,r.precision):e;break;case"T":e=Object.prototype.toString.call(e).slice(8,-1).toLowerCase(),e=r.precision?e.substring(0,r.precision):e;break;case"u":e=parseInt(e,10)>>>0;break;case"v":e=e.valueOf(),e=r.precision?e.substring(0,r.precision):e;break;case"x":e=(parseInt(e,10)>>>0).toString(16);break;case"X":e=(parseInt(e,10)>>>0).toString(16).toUpperCase();break}s.json.test(r.type)?o+=e:(s.number.test(r.type)&&(!v||r.sign)?(d=v?"+":"-",e=e.toString().replace(s.sign,"")):d="",g=r.pad_char?r.pad_char==="0"?"0":r.pad_char.charAt(1):" ",y=r.width-(d+e).length,m=r.width&&y>0?g.repeat(y):"",o+=r.align?d+e+m:g==="0"?d+m+e:m+d+e)}return o}var f=Object.create(null);function E(n){if(f[n])return f[n];for(var u=n,i,p=[],e=0;u;){if((i=s.text.exec(u))!==null)p.push(i[0]);else if((i=s.modulo.exec(u))!==null)p.push("%");else if((i=s.placeholder.exec(u))!==null){if(i[2]){e|=1;var o=[],l=i[2],a=[];if((a=s.key.exec(l))!==null)for(o.push(a[1]);(l=l.substring(a[0].length))!=="";)if((a=s.key_access.exec(l))!==null)o.push(a[1]);else if((a=s.index_access.exec(l))!==null)o.push(a[1]);else throw new SyntaxError("[sprintf] failed to parse named argument key");else throw new SyntaxError("[sprintf] failed to parse named argument key");i[2]=o}else e|=2;if(e===3)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");p.push({placeholder:i[0],param_no:i[1],keys:i[2],sign:i[3],pad_char:i[4],align:i[5],width:i[6],precision:i[7],type:i[8]})}else throw new SyntaxError("[sprintf] unexpected placeholder");u=u.substring(i[0].length)}return f[n]=p}t.sprintf=c,t.vsprintf=b,typeof window<"u"&&(window.sprintf=c,window.vsprintf=b)})()}(h)),h}x();const V={methods:{formatValueBase(t,s){return this.isJsonString(t)?this.formatJsonString(t):Array.isArray(t)?this.formatArray(t):this.isObject(t)?"":s&&t?sprintf(s,t):String(t)},isJsonString(t){return t&&t.json_class==="String"&&t.raw!==void 0},formatJsonString(t){let s=Array.from(t.raw.slice(0,32),c=>("0"+(c&255).toString(16)).slice(-2)).join(" ").toUpperCase();return t.raw.length>32&&(s+="..."),s},formatArray(t){return"["+t.map(s=>typeof s=="string"?`"${s}"`:s).join(", ")+"]"},isObject(t){return Object.prototype.toString.call(t).slice(8,-1)==="Object"}}},L=S("L",{mixins:[w,_,V],props:{value:{default:null},limitsState:{type:String,default:null},counter:{default:null},formatString:null,timeZone:{type:String,default:"local"}},emits:["addItem","deleteItem","open"],data(){return{appliedTimeZone:"local",curValue:null,prevValue:null,grayLevel:80,grayRate:5,valueId:null,arrayIndex:null,viewDetails:!1,contextMenuShown:!1,x:0,y:0,contextMenuOptions:[{title:"Details",action:()=>{this.contextMenuShown=!1,this.viewDetails=!0}},{title:"Graph",action:()=>{window.open("/tools/tlmgrapher/"+encodeURIComponent(this.parameters[0])+"/"+encodeURIComponent(this.parameters[1])+"/"+encodeURIComponent(this.parameters[2]),"_blank")}}]}},watch:{_counter:function(t,s){this.curValue!==this.prevValue?this.grayLevel=80:(this.grayLevel-=this.grayRate,this.grayLevel<30&&(this.grayLevel=30)),this.prevValue=this.curValue}},computed:{_value:function(){return this.curValue=this.value,this.curValue===null&&(this.screenValues?this.screenValues[this.valueId]&&(this.arrayIndex!==null&&this.screenValues[this.valueId][0]?this.curValue=this.screenValues[this.valueId][0][this.arrayIndex]:this.curValue=this.screenValues[this.valueId][0]):this.curValue=null),this.curValue=this.formatValue(this.curValue),this.curValue},_limitsState:function(){let t=this.limitsState;return t===null&&(this.screenValues?this.screenValues[this.valueId]&&(t=this.screenValues[this.valueId][1]):t=null),t},_counter:function(){let t=this.counter;return t===null&&(this.screenValues?this.screenValues[this.valueId]&&(t=this.screenValues[this.valueId][2]):t=null),t},valueClass:function(){return"value shrink pa-1 openc3-"+this.limitsColor},astroStatus(){switch(this.limitsColor){case"green":return"normal";case"yellow":return"caution";case"red":return"critical";case"blue":return"standby";default:return null}},limitsColor(){let t=this._limitsState;if(t!=null)switch(t){case"GREEN":case"GREEN_HIGH":case"GREEN_LOW":return"green";case"YELLOW":case"YELLOW_HIGH":case"YELLOW_LOW":return"yellow";case"RED":case"RED_HIGH":case"RED_LOW":return"red";case"BLUE":return"blue";case"STALE":return"purple";default:return"white"}return""},limitsLetter(){let t=this._limitsState;if(t!=null){let s=t.charAt(0);return t.endsWith("_LOW")&&(s=s.toLowerCase()),s}return""}},created(){if(this.value===null||this.limitsState===null){if(this.parameters[2].includes("[["))this.parameters[2]=this.parameters[2].replace("[[","[").replace("]]","]");else if(this.parameters[2].includes("[")){let t=this.parameters[2].match(/\[(\d+)\]/);this.arrayIndex=parseInt(t[1]),this.parameters[2]=this.parameters[2].replace(t[0],"")}this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__${this.getType()}`,this.$emit("addItem",this.valueId),this.screenTimeZone?this.appliedTimeZone=this.screenTimeZone:this.appliedTimeZone=this.timeZone}},destroyed(){(this.value===null||this.limitsState===null)&&this.$emit("deleteItem",this.valueId)},methods:{getType(){let t="WITH_UNITS";return this.parameters[3]&&(t=this.parameters[3]),t},formatValue(t){return t&&this.valueId&&(this.valueId.includes("PACKET_TIMEFORMATTED")||this.valueId.includes("RECEIVED_TIMEFORMATTED"))?(t=t.replaceAll("/","-"),this.formatUtcToLocal(new Date(t),this.appliedTimeZone)):this.formatValueBase(t,this.formatString)},showContextMenu(t){t.preventDefault(),this.contextMenuShown=!1,this.x=t.clientX,this.y=t.clientY,this.$nextTick(()=>{this.contextMenuShown=!0})}}})}}});
|
@@ -0,0 +1 @@
|
|
1
|
+
System.register(["./main-851f6cb4e8f90d1d06ad.js","vue","./DetailsDialog-DLRMqetn-8f8d460f1989b3122adf.js","single-spa","./VWidget-02CG-3Av-b28db6ec76acd5922466.js","vue-router","vuex","vuetify","./Widget-C4QVI4IH-e5120dfc925ff69c621a.js"],function(w,I){"use strict";var c,a,r,o,d,n,l,m,p,v,u,g,h,f,x,y,V,C;return{setters:[e=>{c=e.s},e=>{a=e.resolveComponent,r=e.openBlock,o=e.createElementBlock,d=e.normalizeStyle,n=e.createVNode,l=e.withCtx,m=e.mergeProps,p=e.createSlots,v=e.createElementVNode,u=e.toDisplayString,g=e.Fragment,h=e.renderList,f=e.createBlock,x=e.withModifiers,y=e.createTextVNode},e=>{V=e.P},null,e=>{C=e.L},null,null,null,null],execute:function(){const S={components:{DetailsDialog:V},mixins:[C],data:function(){return{width:16}},computed:{fullName(){return this.parameters[0]+" "+this.parameters[1]+" "+this.parameters[2]},aging(){return{"--aging":this.grayLevel}}},created(){this.verifyNumParams("VALUE",3,5,"VALUE <TARGET> <PACKET> <ITEM> <TYPE> <WIDTH>"),this.setWidth(parseInt(this.parameters[4])+4,"ch",this.width)}};function D(t,i,W,j,z,k){const E=a("rux-status"),_=a("v-text-field"),L=a("v-tooltip"),N=a("v-list-item-title"),M=a("v-list-item"),T=a("v-list"),B=a("v-menu"),P=a("details-dialog");return r(),o("div",{class:"value-widget-container",style:d([t.computedStyle,k.aging])},[n(L,{location:"top"},{activator:l(({props:s})=>[n(_,m({variant:"solo",density:"compact",flat:"",readonly:"","hide-details":"","model-value":t._value,class:t.valueClass,"data-test":"value",onContextmenu:t.showContextMenu},s),p({_:2},[t.astroStatus?{name:"prepend-inner",fn:l(()=>[n(E,{status:t.astroStatus},null,8,["status"])]),key:"0"}:void 0]),1040,["model-value","class","onContextmenu"])]),default:l(()=>[v("span",null,u(k.fullName),1)]),_:1}),n(B,{modelValue:t.contextMenuShown,"onUpdate:modelValue":i[0]||(i[0]=s=>t.contextMenuShown=s),target:[t.x,t.y],style:{"z-index":"3000"}},{default:l(()=>[n(T,null,{default:l(()=>[(r(!0),o(g,null,h(t.contextMenuOptions,(s,A)=>(r(),f(M,{key:A,onClick:x(s.action,["stop"])},{default:l(()=>[n(N,null,{default:l(()=>[y(u(s.title),1)]),_:2},1024)]),_:2},1032,["onClick"]))),128))]),_:1})]),_:1},8,["modelValue","target"]),n(P,{"target-name":t.parameters[0],"packet-name":t.parameters[1],"item-name":t.parameters[2],modelValue:t.viewDetails,"onUpdate:modelValue":i[1]||(i[1]=s=>t.viewDetails=s)},null,8,["target-name","packet-name","item-name","modelValue"])],4)}const U=w("default",c(S,[["render",D],["__scopeId","data-v-c21e4dde"]]))}}});
|
@@ -0,0 +1 @@
|
|
1
|
+
System.register(["./ValueWidget-KLYY8L8U-a76ca6e340b1ca0645b5.js","./LimitsbarWidget-DXbqsi4J-d32cbc9eea88aef731ba.js","./Widget-C4QVI4IH-e5120dfc925ff69c621a.js","vue","./main-851f6cb4e8f90d1d06ad.js","./DetailsDialog-DLRMqetn-8f8d460f1989b3122adf.js","single-spa","./VWidget-02CG-3Av-b28db6ec76acd5922466.js","vue-router","vuex","vuetify","./BarColumn-Cdu3OoMa-d98fca75f819106d3e95.js"],function(g,f){"use strict";var l,i,a,s,u,o,c,n,r,m;return{setters:[e=>{l=e.default},e=>{i=e.default},e=>{a=e.o},e=>{s=e.resolveComponent,u=e.openBlock,o=e.createElementBlock,c=e.normalizeStyle,n=e.createVNode,r=e.mergeProps},e=>{m=e.s},null,null,null,null,null,null,null],execute:function(){const e={mixins:[a],components:{ValueWidget:l,LimitsbarWidget:i}};function d(t,x,V,j,w,y){const p=s("value-widget"),v=s("limitsbar-widget");return u(),o("div",{ref:"container",class:"d-flex flex-row",style:c(t.computedStyle)},[n(p,r(t.$attrs,{parameters:t.parameters,settings:[...t.appliedSettings],"screen-values":t.screenValues,"screen-time-zone":t.screenTimeZone,"widget-index":0}),null,16,["parameters","settings","screen-values","screen-time-zone"]),n(v,r(t.$attrs,{parameters:t.parameters.slice(0,3),settings:[...t.appliedSettings],"screen-values":t.screenValues,"widget-index":1,line:t.line,lineNumber:t.lineNumber}),null,16,["parameters","settings","screen-values","line","lineNumber"])],4)}const b=g("default",m(e,[["render",d]]))}}});
|
@@ -0,0 +1 @@
|
|
1
|
+
System.register(["./ValueWidget-KLYY8L8U-a76ca6e340b1ca0645b5.js","./LimitscolumnWidget-BfY4su5U-1ef550f8b366cce86461.js","./Widget-C4QVI4IH-e5120dfc925ff69c621a.js","vue","./main-851f6cb4e8f90d1d06ad.js","./DetailsDialog-DLRMqetn-8f8d460f1989b3122adf.js","single-spa","./VWidget-02CG-3Av-b28db6ec76acd5922466.js","vue-router","vuex","vuetify","./BarColumn-Cdu3OoMa-d98fca75f819106d3e95.js"],function(g,f){"use strict";var r,i,a,n,u,o,c,s,l,m;return{setters:[e=>{r=e.default},e=>{i=e.default},e=>{a=e.o},e=>{n=e.resolveComponent,u=e.openBlock,o=e.createElementBlock,c=e.normalizeStyle,s=e.createVNode,l=e.mergeProps},e=>{m=e.s},null,null,null,null,null,null,null],execute:function(){const e={mixins:[a],components:{ValueWidget:r,LimitscolumnWidget:i}};function d(t,j,w,y,z,B){const p=n("limitscolumn-widget"),v=n("value-widget");return u(),o("div",{ref:"container",style:c(t.computedStyle)},[s(p,l(t.$attrs,{parameters:t.parameters,settings:[...t.appliedSettings],"screen-values":t.screenValues,"widget-index":1,line:t.line,lineNumber:t.lineNumber}),null,16,["parameters","settings","screen-values","line","lineNumber"]),s(v,l(t.$attrs,{parameters:t.parameters,settings:[...t.appliedSettings],"screen-values":t.screenValues,"screen-time-zone":t.screenTimeZone,"widget-index":0}),null,16,["parameters","settings","screen-values","screen-time-zone"])],4)}const V=g("default",m(e,[["render",d]]))}}});
|
@@ -0,0 +1 @@
|
|
1
|
+
System.register(["./ValueWidget-KLYY8L8U-a76ca6e340b1ca0645b5.js","./RangebarWidget-DHS7S3vI-23c07164304b6158335a.js","./Widget-C4QVI4IH-e5120dfc925ff69c621a.js","vue","./main-851f6cb4e8f90d1d06ad.js","./DetailsDialog-DLRMqetn-8f8d460f1989b3122adf.js","single-spa","./VWidget-02CG-3Av-b28db6ec76acd5922466.js","vue-router","vuex","vuetify"],function(g,f){"use strict";var n,i,l,r,u,m,o,s,a,p;return{setters:[e=>{n=e.default},e=>{i=e.default},e=>{l=e.o},e=>{r=e.resolveComponent,u=e.openBlock,m=e.createElementBlock,o=e.normalizeStyle,s=e.createVNode,a=e.mergeProps},e=>{p=e.s},null,null,null,null,null,null],execute:function(){const e={mixins:[l],components:{ValueWidget:n,RangebarWidget:i},computed:{valueParameters(){return[this.parameters[0],this.parameters[1],this.parameters[2],this.parameters[5],this.parameters[6]]},rangeBarParameters(){return[this.parameters[0],this.parameters[1],this.parameters[2],this.parameters[3],this.parameters[4],this.parameters[5],this.parameters[7],this.parameters[8]]}}};function d(t,V,x,j,w,c){const v=r("value-widget"),h=r("rangebar-widget");return u(),m("div",{ref:"container",class:"d-flex flex-row",style:o(t.computedStyle)},[s(v,a(t.$attrs,{parameters:c.valueParameters,settings:[...t.appliedSettings],"screen-values":t.screenValues,"screen-time-zone":t.screenTimeZone,"widget-index":0}),null,16,["parameters","settings","screen-values","screen-time-zone"]),s(h,a(t.$attrs,{parameters:c.rangeBarParameters,settings:[...t.appliedSettings],"screen-values":t.screenValues,"widget-index":1}),null,16,["parameters","settings","screen-values"])],4)}const S=g("default",p(e,[["render",d]]))}}});
|
@@ -0,0 +1 @@
|
|
1
|
+
System.register(["./Layout-C1HoM4Kl-d795f5282486fe4bacc0.js","vue","./main-851f6cb4e8f90d1d06ad.js","./Widget-C4QVI4IH-e5120dfc925ff69c621a.js","vue-router","single-spa","vuex","vuetify"],function(y,k){"use strict";var a,r,i,c,o,u,m,g,p,f;return{setters:[e=>{a=e.r},e=>{r=e.openBlock,i=e.createElementBlock,c=e.normalizeStyle,o=e.Fragment,u=e.renderList,m=e.createBlock,g=e.resolveDynamicComponent,p=e.mergeProps},e=>{f=e.s},null,null,null,null,null],execute:function(){const e={mixins:[a],created:function(){if(this.parameters[0]){let n=this.parameters[0];this.widgets.forEach(l=>{l.settings.find(s=>s[0]==="MARGIN"||s[0]==="RAW"&&s[1].toUpperCase().includes("MARGIN"))===void 0&&l.settings.push(["MARGIN",n])})}}};function v(n,l,s,B,w,C){return r(),i("div",{ref:"container",style:c(n.computedStyle)},[(r(!0),i(o,null,u(n.widgets,(t,d)=>(r(),m(g(t.type),p({ref_for:!0},n.listeners,{key:d,target:t.target,parameters:t.parameters,settings:t.settings,"screen-values":n.screenValues,"screen-time-zone":n.screenTimeZone,widgets:t.widgets,name:t.name,line:t.line,"line-number":t.lineNumber}),null,16,["target","parameters","settings","screen-values","screen-time-zone","widgets","name","line","line-number"]))),128))],4)}const h=y("default",f(e,[["render",v]]))}}});
|
@@ -0,0 +1 @@
|
|
1
|
+
System.register(["./VerticalWidget-z6xUM-ql-51a1decacafb540c814e.js","./Layout-C1HoM4Kl-d795f5282486fe4bacc0.js","vue","./main-851f6cb4e8f90d1d06ad.js","./Widget-C4QVI4IH-e5120dfc925ff69c621a.js","vue-router","single-spa","vuex","vuetify"],function(d,V){"use strict";var r,l,n,i,a,s,c,o,u,g,p,v;return{setters:[e=>{r=e.default},e=>{l=e.r},e=>{n=e.resolveComponent,i=e.openBlock,a=e.createElementBlock,s=e.createVNode,c=e.normalizeStyle,o=e.withCtx,u=e.createTextVNode,g=e.toDisplayString,p=e.mergeProps},e=>{v=e.s},null,null,null,null,null],execute:function(){const e={mixins:[l],components:{VerticalWidget:r}};function m(t,w,C,S,k,z){const y=n("v-banner"),x=n("vertical-widget");return i(),a("div",null,[s(y,{class:"boxbanner",style:c(t.computedStyle),"single-line":""},{default:o(()=>[u(g(t.parameters[0]),1)]),_:1},8,["style"]),s(x,p(t.listeners,{parameters:t.parameters.slice(1),settings:t.settings,widgets:t.widgets,"screen-values":t.screenValues,"screen-time-zone":t.screenTimeZone}),null,16,["parameters","settings","widgets","screen-values","screen-time-zone"])])}const f=d("default",v(e,[["render",m],["__scopeId","data-v-832aa5cd"]]))}}});
|
@@ -0,0 +1 @@
|
|
1
|
+
System.register(["./main-851f6cb4e8f90d1d06ad.js"],function(o,d){"use strict";var p,r;return{setters:[n=>{p=n.B,r=n.a}],execute:function(){const n=o("o",{mixins:[p],props:{widgetIndex:{type:Number,default:null},parameters:{type:Array,default:()=>[]},settings:{type:Array,default:()=>[]},screenValues:{type:Object,default:()=>{}},screenTimeZone:{type:String,default:"local"},namedWidgets:{type:Object,default:{}},line:{type:String,default:""},lineNumber:{type:Number,default:0}},data(){return{appliedSettings:[],appliedStyle:{},widgetName:null,screenId:"NO_SCREEN"}},computed:{computedStyle:function(){return this.appliedSettings.forEach(t=>{this.applyStyleSetting(t)}),this.appliedStyle.width===void 0&&this.appliedStyle.height===void 0&&(this.appliedStyle.flex="0 10 100%"),this.appliedStyle},screen:function(){const t=this;return{getNamedWidget:function(e){return t.$store.getters.namedWidget(t.toQualifiedWidgetName(e))},open:function(e,i){t.$emit("open",e,i)},close:function(e,i){t.$emit("close",e,i)},closeAll:function(){t.$emit("closeAll")}}},listeners:function(){return Object.entries(this.$attrs).reduce((t,e)=>e[0].startsWith("on")?{...t,[e[0]]:e[1]}:t,{})}},watch:{widgetName:function(t,e){this.$store.commit("clearNamedWidget",this.toQualifiedWidgetName(e)),this.$store.commit("setNamedWidget",{[this.toQualifiedWidgetName(t)]:this})}},created(){var t,e;this.screenId=(t=this.settings.find(i=>i[0]==="__SCREEN_ID__"))==null?void 0:t.at(1),this.widgetName=(e=this.settings.find(i=>i[0]==="NAMED_WIDGET"))==null?void 0:e.at(1),this.appliedSettings=this.settings.map(i=>{const s=parseInt(i[0]);if(isNaN(s)||this.widgetIndex===null)return i;if(this.widgetIndex===s)return i.slice(1)}).filter(i=>i!==void 0)},beforeUnmount(){this.widgetName&&this.$store.commit("clearNamedWidget",this.toQualifiedWidgetName(this.widgetName))},methods:{applyStyleSetting(t){switch(t[0]){case"TEXTALIGN":this.appliedStyle["text-align"]=t[1].toLowerCase()+" !important",this.appliedStyle["--text-align"]=t[1].toLowerCase();break;case"PADDING":isNaN(Number(t[1]))||(t[1]+="px"),this.appliedStyle.padding=t[1]+" !important";break;case"MARGIN":isNaN(Number(t[1]))||(t[1]+="px"),this.appliedStyle.margin=t[1]+" !important";break;case"BACKCOLOR":this.appliedStyle["background-color"]=this.getColor(t.slice(1))+" !important";break;case"TEXTCOLOR":this.appliedStyle.color=this.getColor(t.slice(1))+" !important";break;case"BORDERCOLOR":this.appliedStyle["border-width"]="1px!important",this.appliedStyle["border-style"]="solid!important",this.appliedStyle["border-color"]=this.getColor(t.slice(1))+" !important";break;case"WIDTH":isNaN(Number(t[1]))||(t[1]+="px"),this.appliedStyle.width=t[1]+" !important";break;case"HEIGHT":isNaN(Number(t[1]))||(t[1]+="px"),this.appliedStyle.height=t[1]+" !important";break;case"RAW":this.appliedStyle[t[1].toLowerCase()]=t[2]+" !important";break}},verifyNumParams(t,e,i,s=""){let a={line:this.line,lineNumber:this.lineNumber,keyword:t,parameters:this.parameters};for(let l=1;l<=e;l++)if(this.parameters[l-1]===void 0)throw new r(a,`Not enough parameters for ${t}.`,s,"https://docs.openc3.com/docs/configuration");if(i!==null&&this.parameters.length>i)throw new r(a,`Too many parameters for ${t}.`,s,"https://docs.openc3.com/docs/configuration")},setWidth(t,e="px",i="120"){let s=this.appliedSettings.find(a=>a[0]==="WIDTH");return s?s.WIDTH:t?(this.appliedSettings.push(["WIDTH",`${t}${e}`]),parseInt(t)):(this.appliedSettings.push(["WIDTH",`${i}${e}`]),parseInt(i))},setHeight(t,e="px",i="20"){let s=null;return s=this.appliedSettings.find(a=>a[0]==="HEIGHT"),s?s.HEIGHT:t?(this.appliedSettings.push(["HEIGHT",`${t}${e}`]),parseInt(t)):(this.appliedSettings.push(["HEIGHT",`${i}${e}`]),parseInt(i))},getColor(t){switch(t.length){case 1:return t[0].toLowerCase();case 3:return`rgb(${t[0]},${t[1]},${t[2]})`}},toQualifiedWidgetName(t){return`${this.screenId}:${t}`}}})}}});
|