openc3-cosmos-tool-iframe 5.20.0 → 6.0.0
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-By62tXtU-9fa7fa7233239c1d6b09.js +2 -0
- data/tools/iframe/BarColumn-Dm3D1Lhp-a1a73d512ad707e5e0f5.js +1 -0
- data/tools/iframe/BlockWidget-CrT45ode-c2108dbd08d8d2d45dba.js +2 -0
- data/tools/iframe/ButtonWidget-CKyBBv6m-70ee045f4e91a9f1fcd0.js +2 -0
- data/tools/iframe/CanvasWidget-PqkppHC7-17714cd568094906389b.js +1 -0
- data/tools/iframe/CanvasdotWidget-BUbJgM2d-7b27c5ecefbde1552d8e.js +1 -0
- data/tools/iframe/CanvasimageWidget-DPVBY7mi-b26ce799e3dfbc59728e.js +1 -0
- data/tools/iframe/CanvasimagevalueWidget-GX37zzNc-bf6ed2a407172d8c1295.js +1 -0
- data/tools/iframe/CanvaslabelWidget-P2_Y6Edw-4d7491090bc9f78e2321.js +1 -0
- data/tools/iframe/CanvaslabelvalueWidget-Cuas1i9P-730dcaa25eeceedb38ce.js +1 -0
- data/tools/iframe/CanvaslineWidget-BYOYgPya-5ea99fe3326c61faab2b.js +1 -0
- data/tools/iframe/CanvaslinevalueWidget-3cVJMFo7-ebab6cdadf97d5401fce.js +1 -0
- data/tools/iframe/CheckbuttonWidget-B3wgSMuB-36973a82ca4df8b1c79b.js +1 -0
- data/tools/iframe/ComboboxWidget-Dzr4Scvf-e346f3ecee374886d96b.js +1 -0
- data/tools/iframe/DateWidget-BWh76Ibb-7ad1809c400c89fcdbc8.js +1 -0
- data/tools/iframe/DetailsDialog-EWjtBjle-e227ad47f14c6ff65b52.js +1 -0
- data/tools/iframe/DynamicWidget-m9EliUR2-8ef4e83e9232e72a9aa6.js +1 -0
- data/tools/iframe/FormatvalueWidget-Rk0_eeIm-864a572b8739871fb21c.js +1 -0
- data/tools/iframe/GraphWidget-LqekkNDr-6f53ee50362d1bf51887.js +1 -0
- data/tools/iframe/HorizontalWidget-BcfJ24Zn-6dda669e620d70b53fe9.js +1 -0
- data/tools/iframe/HorizontalboxWidget-CQy1Hv9E-d17cf7e3a142c3d1e8fe.js +1 -0
- data/tools/iframe/HorizontallineWidget-BdlNB951-4c947945154994977966.js +1 -0
- data/tools/iframe/Iframe-54cc18400d96c75036cf.js +1 -0
- data/tools/iframe/IframeWidget-BBaDrRLo-6796d4b67dc0594907ec.js +1 -0
- data/tools/iframe/ImageLoader-CDLQopxJ-56b5798177f9c14b1b20.js +1 -0
- data/tools/iframe/ImageviewerWidget-BgO3Pq6I-e5f731c9ccb25c9f0236.js +1 -0
- data/tools/iframe/LabelWidget-B_C6lKOE-95965fe92b20f624ac6b.js +1 -0
- data/tools/iframe/LabelledWidget-B_UGivhr-7624f4770c55e6c4530a.js +1 -0
- data/tools/iframe/LabelprogressbarWidget-BJWCmsYC-3b8546d4ddd75849768d.js +1 -0
- data/tools/iframe/LabelsparklineWidget-DILCIh3q-e92b8925c6a0b01ed965.js +1 -0
- data/tools/iframe/LabelvalueWidget-CCZd1NXE-3d09558ed9a23475a2fe.js +1 -0
- data/tools/iframe/LabelvaluedescWidget-Bsllq8W6-350983d6bd1eb3782d1b.js +1 -0
- data/tools/iframe/LabelvaluelimitsbarWidget-BV-cfaD--e7dd2aa70ad51b357d50.js +1 -0
- data/tools/iframe/LabelvaluelimitscolumnWidget-DwA0eRBw-c50747046139caf55030.js +1 -0
- data/tools/iframe/LabelvaluerangebarWidget-3GDJz3dj-ff4f08b31ba2dd01ce1a.js +1 -0
- data/tools/iframe/Layout-klOVw-YN-7416c8d75743f0bbefae.js +1 -0
- data/tools/iframe/LedWidget-BAt02s0J-bff56e0a535c1e296b45.js +1 -0
- data/tools/iframe/LimitsbarWidget-JJiyzZjb-7fe03f81cac1692f802e.js +1 -0
- data/tools/iframe/LimitscolorWidget-CYzXKbYd-c6f89570f7da519fd778.js +1 -0
- data/tools/iframe/LimitscolumnWidget-Cd76tBo7-9c35101e13ede81d67c1.js +1 -0
- data/tools/iframe/LinegraphWidget-DWRtO6Ej-358a26f2f1ed862cf2e5.js +1 -0
- data/tools/iframe/MatrixbycolumnsWidget-cwsyjNV2-a39cca602a6ae405ab4f.js +1 -0
- data/tools/iframe/ProgressbarWidget-CYDziFej-a9366924787b1b2fa505.js +1 -0
- data/tools/iframe/RadiobuttonWidget-U6jcQZoD-766227d1bde9523f2781.js +1 -0
- data/tools/iframe/RadiogroupWidget-HTPJnsB0-2553d78f1f89978da091.js +1 -0
- data/tools/iframe/RangebarWidget-DW0FJK6y-547c627374970d77fee7.js +1 -0
- data/tools/iframe/RollupWidget-B2qrx55f-3844ab288499e6576b52.js +1 -0
- data/tools/iframe/ScrollwindowWidget-CwIDxgO6-81069d5a81f4dd32dfed.js +1 -0
- data/tools/iframe/SignalWidget-Bosa3AbW-69c905269d4d3fa89f2c.js +1 -0
- data/tools/iframe/SpacerWidget-DYAlt5mt-e1653eb035b3cede6801.js +1 -0
- data/tools/iframe/SparklineWidget-CDrVXOFV-91085d179a0d8e882f85.js +1 -0
- data/tools/iframe/TabbookWidget-DDdlzCkv-8f6d106fc45c05cd342a.js +1 -0
- data/tools/iframe/TextboxWidget-5euFelEq-be369d1f03105b90b280.js +1 -0
- data/tools/iframe/TextfieldWidget-BFripYeh-df94cc18b4a5cab90662.js +1 -0
- data/tools/iframe/TimeWidget-BBSbsUYJ-f25975626527249306f2.js +1 -0
- data/tools/iframe/TitleWidget-p8cjo-Bs-9b5ac7a6662cfe018f78.js +1 -0
- data/tools/iframe/VWidget-Dmqf_jKM-32a3ca7588629b9aa48f.js +1 -0
- data/tools/iframe/ValueWidget-CZh7JWwT-f1c1b0685231d2f139c2.js +1 -0
- data/tools/iframe/ValuelimitsbarWidget-DU7ybswC-b98e36ac78767fdce7ab.js +1 -0
- data/tools/iframe/ValuelimitscolumnWidget-DMw-h5jM-d253c96b747edce74d73.js +1 -0
- data/tools/iframe/ValuerangebarWidget-DPpofDpA-67202fabced87d13805d.js +1 -0
- data/tools/iframe/VerticalWidget-Ch7VAEmz-6fb19285d2d0180f9005.js +1 -0
- data/tools/iframe/VerticalboxWidget-DYx-TFT4-18417a7c3d17ebf8bc1e.js +1 -0
- data/tools/iframe/Widget-orNSvnOh-2beb98bff6bcacd1b087.js +1 -0
- data/tools/iframe/main-9a8fb56d7db3307801d4.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-9a8fb56d7db3307801d4.js","./Widget-orNSvnOh-2beb98bff6bcacd1b087.js"],function(S,T){"use strict";var _,w;return{setters:[h=>{_=h.P},h=>{w=h.o}],execute:function(){var h={},b;function x(){return b||(b=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 V(E(n),arguments)}function I(n,u){return c.apply(null,[n].concat(u||[]))}function V(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=I,typeof window<"u"&&(window.sprintf=c,window.vsprintf=I)})()}(h)),h}x();const k={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,_,k],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-9a8fb56d7db3307801d4.js","vue","./DetailsDialog-EWjtBjle-e227ad47f14c6ff65b52.js","./VWidget-Dmqf_jKM-32a3ca7588629b9aa48f.js","vue-router","vuex","vuetify","./Widget-orNSvnOh-2beb98bff6bcacd1b087.js"],function(w,W){"use strict";var c,a,r,o,d,n,l,m,p,v,u,g,h,f,x,y,V,S;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},e=>{S=e.L},null,null,null,null],execute:function(){const C={components:{DetailsDialog:V},mixins:[S],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 E(t,i,U,I,z,k){const _=a("rux-status"),D=a("v-text-field"),N=a("v-tooltip"),B=a("v-list-item-title"),L=a("v-list-item"),M=a("v-list"),T=a("v-menu"),j=a("details-dialog");return r(),o("div",{class:"value-widget-container",style:d([t.computedStyle,k.aging])},[n(N,{location:"top"},{activator:l(({props:s})=>[n(D,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(_,{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(T,{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(M,null,{default:l(()=>[(r(!0),o(g,null,h(t.contextMenuOptions,(s,P)=>(r(),f(L,{key:P,onClick:x(s.action,["stop"])},{default:l(()=>[n(B,null,{default:l(()=>[y(u(s.title),1)]),_:2},1024)]),_:2},1032,["onClick"]))),128))]),_:1})]),_:1},8,["modelValue","target"]),n(j,{"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 A=w("default",c(C,[["render",E],["__scopeId","data-v-c21e4dde"]]))}}});
|
@@ -0,0 +1 @@
|
|
1
|
+
System.register(["./ValueWidget-CZh7JWwT-f1c1b0685231d2f139c2.js","./LimitsbarWidget-JJiyzZjb-7fe03f81cac1692f802e.js","./Widget-orNSvnOh-2beb98bff6bcacd1b087.js","vue","./main-9a8fb56d7db3307801d4.js","./DetailsDialog-EWjtBjle-e227ad47f14c6ff65b52.js","./VWidget-Dmqf_jKM-32a3ca7588629b9aa48f.js","vue-router","vuex","vuetify","./BarColumn-Dm3D1Lhp-a1a73d512ad707e5e0f5.js"],function(g,f){"use strict";var l,i,a,s,o,u,c,n,r,m;return{setters:[e=>{l=e.default},e=>{i=e.default},e=>{a=e.o},e=>{s=e.resolveComponent,o=e.openBlock,u=e.createElementBlock,c=e.normalizeStyle,n=e.createVNode,r=e.mergeProps},e=>{m=e.s},null,null,null,null,null,null],execute:function(){const e={mixins:[a],components:{ValueWidget:l,LimitsbarWidget:i}};function d(t,x,V,W,w,y){const p=s("value-widget"),v=s("limitsbar-widget");return o(),u("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}),null,16,["parameters","settings","screen-values"])],4)}const j=g("default",m(e,[["render",d]]))}}});
|
@@ -0,0 +1 @@
|
|
1
|
+
System.register(["./ValueWidget-CZh7JWwT-f1c1b0685231d2f139c2.js","./LimitscolumnWidget-Cd76tBo7-9c35101e13ede81d67c1.js","./Widget-orNSvnOh-2beb98bff6bcacd1b087.js","vue","./main-9a8fb56d7db3307801d4.js","./DetailsDialog-EWjtBjle-e227ad47f14c6ff65b52.js","./VWidget-Dmqf_jKM-32a3ca7588629b9aa48f.js","vue-router","vuex","vuetify","./BarColumn-Dm3D1Lhp-a1a73d512ad707e5e0f5.js"],function(g,f){"use strict";var l,i,a,s,o,u,c,n,r,m;return{setters:[e=>{l=e.default},e=>{i=e.default},e=>{a=e.o},e=>{s=e.resolveComponent,o=e.openBlock,u=e.createElementBlock,c=e.normalizeStyle,n=e.createVNode,r=e.mergeProps},e=>{m=e.s},null,null,null,null,null,null],execute:function(){const e={mixins:[a],components:{ValueWidget:l,LimitscolumnWidget:i}};function d(t,V,W,B,S,w){const p=s("limitscolumn-widget"),v=s("value-widget");return o(),u("div",{ref:"container",style:c(t.computedStyle)},[n(p,r(t.$attrs,{parameters:t.parameters,settings:[...t.appliedSettings],"screen-values":t.screenValues,"widget-index":1}),null,16,["parameters","settings","screen-values"]),n(v,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"])],4)}const j=g("default",m(e,[["render",d]]))}}});
|
@@ -0,0 +1 @@
|
|
1
|
+
System.register(["./ValueWidget-CZh7JWwT-f1c1b0685231d2f139c2.js","./RangebarWidget-DW0FJK6y-547c627374970d77fee7.js","./Widget-orNSvnOh-2beb98bff6bcacd1b087.js","vue","./main-9a8fb56d7db3307801d4.js","./DetailsDialog-EWjtBjle-e227ad47f14c6ff65b52.js","./VWidget-Dmqf_jKM-32a3ca7588629b9aa48f.js","vue-router","vuex","vuetify"],function(g,f){"use strict";var n,i,l,r,m,o,u,s,a,c;return{setters:[e=>{n=e.default},e=>{i=e.default},e=>{l=e.o},e=>{r=e.resolveComponent,m=e.openBlock,o=e.createElementBlock,u=e.normalizeStyle,s=e.createVNode,a=e.mergeProps},e=>{c=e.s},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,W,S,w,x,p){const v=r("value-widget"),h=r("rangebar-widget");return m(),o("div",{ref:"container",class:"d-flex flex-row",style:u(t.computedStyle)},[s(v,a(t.$attrs,{parameters:p.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:p.rangeBarParameters,settings:[...t.appliedSettings],"screen-values":t.screenValues,"widget-index":1}),null,16,["parameters","settings","screen-values"])],4)}const j=g("default",c(e,[["render",d]]))}}});
|
@@ -0,0 +1 @@
|
|
1
|
+
System.register(["./Layout-klOVw-YN-7416c8d75743f0bbefae.js","vue","./main-9a8fb56d7db3307801d4.js","./Widget-orNSvnOh-2beb98bff6bcacd1b087.js","vue-router","vuex","vuetify"],function(v,k){"use strict";var a,r,i,c,o,m,u,g,p,f;return{setters:[e=>{a=e.r},e=>{r=e.openBlock,i=e.createElementBlock,c=e.normalizeStyle,o=e.Fragment,m=e.renderList,u=e.createBlock,g=e.resolveDynamicComponent,p=e.mergeProps},e=>{f=e.s},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 y(n,l,s,w,B,N){return r(),i("div",{ref:"container",class:"d-flex flex-column",style:c(n.computedStyle)},[(r(!0),i(o,null,m(n.widgets,(t,d)=>(r(),u(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=v("default",f(e,[["render",y]]))}}});
|
@@ -0,0 +1 @@
|
|
1
|
+
System.register(["./VerticalWidget-Ch7VAEmz-6fb19285d2d0180f9005.js","./Layout-klOVw-YN-7416c8d75743f0bbefae.js","vue","./main-9a8fb56d7db3307801d4.js","./Widget-orNSvnOh-2beb98bff6bcacd1b087.js","vue-router","vuex","vuetify"],function(m,f){"use strict";var r,i,n,a,l,s,c,o,u,g,p,v;return{setters:[e=>{r=e.default},e=>{i=e.r},e=>{n=e.resolveComponent,a=e.openBlock,l=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],execute:function(){const e={mixins:[i],components:{VerticalWidget:r}};function d(t,x,S,k,N,z){const y=n("v-banner"),V=n("vertical-widget");return a(),l("div",null,[s(y,{class:"boxbanner",style:c(t.computedStyle),"single-line":""},{default:o(()=>[u(g(t.parameters[0]),1)]),_:1},8,["style"]),s(V,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 w=m("default",v(e,[["render",d],["__scopeId","data-v-832aa5cd"]]))}}});
|
@@ -0,0 +1 @@
|
|
1
|
+
System.register(["./main-9a8fb56d7db3307801d4.js"],function(o,d){"use strict";var p,r;return{setters:[n=>{p=n.z,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}`}}})}}});
|