openc3-cosmos-tool-limitsmonitor 6.2.1 → 6.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/tools/limitsmonitor/{ArrayWidget-BxEO5hEG-e31f0f4484a2486f09f1.js → ArrayWidget-BbsN1dzF-c495179477f8e0d53c28.js} +2 -2
- data/tools/limitsmonitor/{ArrayplotWidget-B_VPoV4v-6821c84c27dd083ac1d1.js → ArrayplotWidget-CCKEyYIx-93ff49cd8d0912a03d2c.js} +1 -1
- data/tools/limitsmonitor/{BarColumn-C9dkpg2O-39581cbfa1f879c54974.js → BarColumn-C6p07yWK-31348127e98f8a6d12c1.js} +1 -1
- data/tools/limitsmonitor/BlockWidget-DlCHbqZX-89e3ee63181cf8622ec6.js +2 -0
- data/tools/limitsmonitor/{ButtonWidget-B6HM0Doo-a16a575cb584e9fa4e76.js → ButtonWidget-CtfJzCBR-45f75e1b1d6357037f78.js} +2 -2
- data/tools/limitsmonitor/{CanvasWidget-DZQGG-yQ-10d8eac0fffcfa833076.js → CanvasWidget-CqRlXc4r-ce210af67ae7afaa7fa8.js} +1 -1
- data/tools/limitsmonitor/CanvasdotWidget--Xr_KsZs-aad0f9906cec5b300893.js +1 -0
- data/tools/limitsmonitor/{CanvasimageWidget-mhcPpAuN-41e2a29b0edc4df95ff6.js → CanvasimageWidget-BPlj5QYK-dfd47f06a39678f852fe.js} +1 -1
- data/tools/limitsmonitor/{CanvasimagevalueWidget-Cx-dH8Gc-362130c03797dc77b886.js → CanvasimagevalueWidget-DVFGLt8f-643ff4395f482f959685.js} +1 -1
- data/tools/limitsmonitor/CanvaslabelWidget-CYNqmyP0-7812308cdd08338ac612.js +1 -0
- data/tools/limitsmonitor/{CanvaslabelvalueWidget-CwmYDCjr-a41116ae5d9866dd1919.js → CanvaslabelvalueWidget-B7yIDmsn-9aeb47cfd72548060a57.js} +1 -1
- data/tools/limitsmonitor/CanvaslineWidget-BICdxX0Q-a319487ffd081aefe9f5.js +1 -0
- data/tools/limitsmonitor/{CanvaslinevalueWidget-C3sJnjLQ-9e8c71470959e0bec272.js → CanvaslinevalueWidget-Cq-Ddh0P-bb9e3b294170a647d857.js} +1 -1
- data/tools/limitsmonitor/CheckbuttonWidget-B74AWeaW-2f167e8846b85b0ddcc2.js +1 -0
- data/tools/limitsmonitor/ComboboxWidget-CtyKbEWb-812f099c7a3b392f778c.js +1 -0
- data/tools/limitsmonitor/DateWidget-BEVSczU8-dc1894a0c5648e14867e.js +1 -0
- data/tools/limitsmonitor/{DetailsDialog-BvbziA7Y-e0d047404b509f9a332a.js → DetailsDialog-DmEC5BTs-9861628031e7555d351a.js} +1 -1
- data/tools/limitsmonitor/{DynamicWidget-gFSYxzvT-9dd5d91d5fd21bf3c544.js → DynamicWidget-CfMtj7H8-365d3a085880c321f1b4.js} +1 -1
- data/tools/limitsmonitor/{FormatvalueWidget-CGpnTqVH-db0ad74712c1593651b8.js → FormatvalueWidget-DN12xymS-a9bf907de699d0fdbcde.js} +1 -1
- data/tools/limitsmonitor/Graph-Bgo0cjl3-a7da22d67a0ed8c014e3.js +1 -0
- data/tools/limitsmonitor/{GraphWidget-Dycey-mj-e8389f3f66fdbd36be56.js → GraphWidget-DurWDmpg-994d56a281d499d8b2ab.js} +1 -1
- data/tools/limitsmonitor/{HorizontalWidget-D31NRWy5-22fdf7eb72a77151f435.js → HorizontalWidget-Cd_wl1b3-92cc2909919966d788c8.js} +1 -1
- data/tools/limitsmonitor/HorizontalboxWidget-BcMTFBU--6963f78ca5443beb09e0.js +1 -0
- data/tools/limitsmonitor/HorizontallineWidget-CXFqHclf-a77cbdaeb53e2bc610eb.js +1 -0
- data/tools/limitsmonitor/{IframeWidget-Ctj8OIcG-8f0976dfff02f7bd2be8.js → IframeWidget-BPerHCCa-81d77f3fbeb0911acc9c.js} +1 -1
- data/tools/limitsmonitor/{ImageLoader-BrNrCBvi-214f2a947227da235be2.js → ImageLoader-4N-7Gj61-98d1112cba636616eb6e.js} +1 -1
- data/tools/limitsmonitor/ImageviewerWidget-Cw_H_HmZ-46732fea1911b36c2dc8.js +1 -0
- data/tools/limitsmonitor/{LabelWidget-t7I87dp7-b1bce124ab6dfdcfdb79.js → LabelWidget-xrmcVeq8-a934d4d4238473382002.js} +1 -1
- data/tools/limitsmonitor/LabelledWidget-D48QoyMk-9caf92dc0ac5571d755b.js +1 -0
- data/tools/limitsmonitor/LabelprogressbarWidget-C_950t6g-8a1e1905c0cf0f8fe6f8.js +1 -0
- data/tools/limitsmonitor/LabelsparklineWidget-0KXQyPoU-97378cc2e366f349ac56.js +1 -0
- data/tools/limitsmonitor/{LabelvalueWidget-Zx_yHCtl-3375343ec8ee890b72b4.js → LabelvalueWidget-CQ06wWDK-30c906574e27cb8385dc.js} +1 -1
- data/tools/limitsmonitor/{LabelvaluedescWidget-BBSBh4vI-d53b59b1e2deccea1538.js → LabelvaluedescWidget-Bo8zT01X-8c289d97f2ea7dba9732.js} +1 -1
- data/tools/limitsmonitor/{LabelvaluelimitsbarWidget-CZueHYWG-b22361dac809f4773b68.js → LabelvaluelimitsbarWidget-BucTw8Yk-bfeb50716d98e9ddec1c.js} +1 -1
- data/tools/limitsmonitor/LabelvaluelimitscolumnWidget-Dflb1hNd-5967e4a4dfe3bcb11e98.js +1 -0
- data/tools/limitsmonitor/{LabelvaluerangebarWidget-BhYTBgDq-6634816e2eed6be5844f.js → LabelvaluerangebarWidget-D8cbfXFM-5ac692a8dadeab461a9f.js} +1 -1
- data/tools/limitsmonitor/{Layout-Bh7VzCZd-4413af25199d52238484.js → Layout-Tf--nruw-3794f7b5e1017b913cf3.js} +1 -1
- data/tools/limitsmonitor/LedWidget-qH_FthkK-d2b7d713e37e9d7e88ad.js +1 -0
- data/tools/limitsmonitor/LimitsMonitor-a07e860ebc801f2d58cc.js +8 -0
- data/tools/limitsmonitor/{LimitsbarWidget-Djui0IpK-cd6dbfcb920ad694e290.js → LimitsbarWidget-B9lAB2RD-d1f3c0d80df43f4a7e74.js} +1 -1
- data/tools/limitsmonitor/{LimitscolorWidget-DdmvKzmx-55ba861629837a003f3f.js → LimitscolorWidget-c6Qa6su7-93d58ea47f21249a7338.js} +1 -1
- data/tools/limitsmonitor/{LimitscolumnWidget-Cc19IEjq-39521651b17801e047c6.js → LimitscolumnWidget-CcLs_443-c2b2e70c3855510b158a.js} +1 -1
- data/tools/limitsmonitor/LinegraphWidget-BSVYLFo1-adeeef7e9aba7dd8906e.js +1 -0
- data/tools/limitsmonitor/{MatrixbycolumnsWidget-DnExVRF8-92faefc2a65502ac2e67.js → MatrixbycolumnsWidget-DXFpZTre-465780941de5d363b0ff.js} +1 -1
- data/tools/limitsmonitor/{ProgressbarWidget-DIfqhHRE-bdd12fec51cf8e7b649b.js → ProgressbarWidget-iYGw8-Dc-293bd0c924cc415b0d0c.js} +1 -1
- data/tools/limitsmonitor/RadiobuttonWidget-ytmoVZ3u-80e5fb4c8cb8f6e5ed3a.js +1 -0
- data/tools/limitsmonitor/{RadiogroupWidget-Ci9sCX39-17b14106fd272ead1682.js → RadiogroupWidget-CusMBhKH-8df4b5d9f2ef4442ebd8.js} +1 -1
- data/tools/limitsmonitor/{RangebarWidget-CN0YuHqy-88743bd1380de6bf343b.js → RangebarWidget-D_zGTtCa-7cdd037c37cb8a65621c.js} +1 -1
- data/tools/limitsmonitor/{RollupWidget-y4jBtJB2-92d4588deeeaedbb860e.js → RollupWidget-Dolsixyt-7546f5d28b554fdae6f4.js} +1 -1
- data/tools/limitsmonitor/ScrollwindowWidget-DV2nZuNi-5ff53430c331f4801115.js +1 -0
- data/tools/limitsmonitor/{SignalWidget-DQ5Uc2uV-c4fbb81b6f18950d2679.js → SignalWidget-d9-6h85k-bd310137844a549adeab.js} +1 -1
- data/tools/limitsmonitor/SpacerWidget-BH0p2OLi-e6f492b59cfa0190cbf9.js +1 -0
- data/tools/limitsmonitor/{SparklineWidget-CZtvu2ss-39ab9fe829ecc18abd3e.js → SparklineWidget-coxi9r2g-9164fc82d9b2c83f575b.js} +1 -1
- data/tools/limitsmonitor/TabbookWidget-B1XKplGH-46efd3f390a99cc0e906.js +1 -0
- data/tools/limitsmonitor/TextboxWidget-C-_M2M4l-3de11b04c15a8e03f9ca.js +1 -0
- data/tools/limitsmonitor/{TextfieldWidget-Df0ANSiU-d97d295a642e9a4f48b5.js → TextfieldWidget-C08N4JE8-65fcd642f125946cec1b.js} +1 -1
- data/tools/limitsmonitor/TimeWidget-DtwdEcFg-ec26edfb1938b3db638b.js +1 -0
- data/tools/limitsmonitor/TitleWidget-CT-aLcNb-5a951d608bc4b8697b75.js +1 -0
- data/tools/limitsmonitor/{VWidget-C4spAawK-e511008555d8894be77e.js → VWidget-DQqb7NVW-ca9c28d1dcfbe431d7e0.js} +1 -1
- data/tools/limitsmonitor/ValueWidget-C6RanBj3-3dbf7e600c9cc7d32092.js +1 -0
- data/tools/limitsmonitor/ValuelimitsbarWidget-B3bvjfxc-e346a9a944d6ca0d2f62.js +1 -0
- data/tools/limitsmonitor/ValuelimitscolumnWidget-QvhI6EcE-16439d72c457ed922b0e.js +1 -0
- data/tools/limitsmonitor/ValuerangebarWidget-Dt3K9BnC-f593a92e1a860eae9828.js +1 -0
- data/tools/limitsmonitor/{VerticalWidget-D8jUFxjS-db7b4e6f9ee93e73fbb7.js → VerticalWidget-BIIViZgI-a9bf3384447d400268fd.js} +1 -1
- data/tools/limitsmonitor/VerticalboxWidget-DY72fLHW-ee0c7a861a85039033c7.js +1 -0
- data/tools/limitsmonitor/{Widget-fRCERxGf-d41f5679fd96d070d90a.js → Widget-oyqWpFXJ-8ddc0c20a29aec6d8ea4.js} +1 -1
- data/tools/limitsmonitor/main-753f2fc61e5e6d5ec666.js +1497 -0
- data/tools/limitsmonitor/main.js +1 -1
- metadata +70 -73
- data/tools/limitsmonitor/BlockWidget-CuefOin6-f2aad9a9b939b131f5bd.js +0 -2
- data/tools/limitsmonitor/CanvasdotWidget-6wuCSnw_-f069c7d501e8114b7f14.js +0 -1
- data/tools/limitsmonitor/CanvaslabelWidget-CQZCeohU-8085970b16c467d2ee75.js +0 -1
- data/tools/limitsmonitor/CanvaslineWidget-nTP3fJB4-cdf4d24a4e567c54e127.js +0 -1
- data/tools/limitsmonitor/CheckbuttonWidget-5-8YDsQL-d3b9b54e25a9b0477d8a.js +0 -1
- data/tools/limitsmonitor/ComboboxWidget-DzBL8h9f-1cba297bf6160f9c2a0b.js +0 -1
- data/tools/limitsmonitor/DateWidget-CW7Od7lB-f86884bc1d161d0986a6.js +0 -1
- data/tools/limitsmonitor/Graph-3rkhFP3G-13f4b388c563c17ad7c7.js +0 -1
- data/tools/limitsmonitor/HorizontalboxWidget-Br8dSVHD-cc49c5aab1ec31d54365.js +0 -1
- data/tools/limitsmonitor/HorizontallineWidget-CbxREBYI-4980d0ab74230c46abac.js +0 -1
- data/tools/limitsmonitor/ImageviewerWidget-XrsqxmLo-ee30805a897e7426c5ba.js +0 -1
- data/tools/limitsmonitor/LabelledWidget-C7TDf92M-ae6b8a8d299d810c2a13.js +0 -1
- data/tools/limitsmonitor/LabelprogressbarWidget-wwLURt1u-5a1cfb7aebe8dc3e1da8.js +0 -1
- data/tools/limitsmonitor/LabelsparklineWidget-B3awLUyP-2a16839d17999d67d71b.js +0 -1
- data/tools/limitsmonitor/LabelvaluelimitscolumnWidget-BTvzyQMq-e38489d6fc917792b1c4.js +0 -1
- data/tools/limitsmonitor/LedWidget-CxJjJBBS-f9d36733386476faeb3d.js +0 -1
- data/tools/limitsmonitor/LimitsMonitor-1ef55350bb13530a31dc.js +0 -8
- data/tools/limitsmonitor/LinegraphWidget-BtieJxeL-c81aec0afa8ba97b1ed3.js +0 -1
- data/tools/limitsmonitor/RadiobuttonWidget-QzIkNP7m-63826adbac34bc93af4b.js +0 -1
- data/tools/limitsmonitor/ScrollwindowWidget-CBzYk4Y3-ffcb6bc0ee1f30748125.js +0 -1
- data/tools/limitsmonitor/SpacerWidget-6rsc_dSM-31909c974472171d748c.js +0 -1
- data/tools/limitsmonitor/TabbookWidget-DNALU0jl-bf3d37bf3ce9f3a159b0.js +0 -1
- data/tools/limitsmonitor/TextboxWidget-5hqPj74D-97c569569131217eb9ed.js +0 -1
- data/tools/limitsmonitor/TimeWidget-C6XQMUG2-f92b5453710475e02238.js +0 -1
- data/tools/limitsmonitor/TitleWidget-B9SPUlbW-fe2a55d5e41d2e182431.js +0 -1
- data/tools/limitsmonitor/ValueWidget-D4RrYVEK-aa11dca149c0ba475998.js +0 -1
- data/tools/limitsmonitor/ValuelimitsbarWidget-Bc9_Vj_f-752dc345d7ac993695d2.js +0 -1
- data/tools/limitsmonitor/ValuelimitscolumnWidget-DHKIL7sf-1ae0a39b4a01cfc0b938.js +0 -1
- data/tools/limitsmonitor/ValuerangebarWidget-CecQRIok-6ca9dde91df211b1b680.js +0 -1
- data/tools/limitsmonitor/VerticalboxWidget-B4eGUSYH-f45cf7c78ffc43f301bd.js +0 -1
- data/tools/limitsmonitor/main-198c84edc9d877ab9beb.js +0 -1421
@@ -1 +1 @@
|
|
1
|
-
System.register(["./main-
|
1
|
+
System.register(["./main-753f2fc61e5e6d5ec666.js","./Widget-oyqWpFXJ-8ddc0c20a29aec6d8ea4.js"],function(S,T){"use strict";var w,_;return{setters:[p=>{w=p.P},p=>{_=p.o}],execute:function(){var p={},I;function x(){return I||(I=1,function(t){(function(){var s={not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,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(a){return V(E(a),arguments)}function b(a,u){return c.apply(null,[a].concat(u||[]))}function V(a,u){var i=1,h=a.length,e,o="",l,n,r,m,g,y,v,d;for(l=0;l<h;l++)if(typeof a[l]=="string")o+=a[l];else if(typeof a[l]=="object"){if(r=a[l],r.keys)for(e=u[i],n=0;n<r.keys.length;n++){if(e==null)throw new Error(c('[sprintf] Cannot access property "%s" of undefined value "%s"',r.keys[n],r.keys[n-1]));e=e[r.keys[n]]}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(a){if(f[a])return f[a];for(var u=a,i,h=[],e=0;u;){if((i=s.text.exec(u))!==null)h.push(i[0]);else if((i=s.modulo.exec(u))!==null)h.push("%");else if((i=s.placeholder.exec(u))!==null){if(i[2]){e|=1;var o=[],l=i[2],n=[];if((n=s.key.exec(l))!==null)for(o.push(n[1]);(l=l.substring(n[0].length))!=="";)if((n=s.key_access.exec(l))!==null)o.push(n[1]);else if((n=s.index_access.exec(l))!==null)o.push(n[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");h.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[a]=h}t.sprintf=c,t.vsprintf=b,typeof window<"u"&&(window.sprintf=c,window.vsprintf=b)})()}(p)),p}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.toUpperCase().includes("PACKET_TIMEFORMATTED")||this.valueId.toUpperCase().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-753f2fc61e5e6d5ec666.js","vue","./DetailsDialog-DmEC5BTs-9861628031e7555d351a.js","single-spa","./VWidget-DQqb7NVW-ca9c28d1dcfbe431d7e0.js","vue-router","vuex","vuetify","./Widget-oyqWpFXJ-8ddc0c20a29aec6d8ea4.js"],function(C,A){"use strict";var c,a,o,r,d,n,l,m,u,p,v,g,h,f,x,y,V,k;return{setters:[e=>{c=e.d},e=>{a=e.resolveComponent,o=e.createElementBlock,r=e.openBlock,d=e.normalizeStyle,n=e.createVNode,l=e.withCtx,m=e.createElementVNode,u=e.toDisplayString,p=e.mergeProps,v=e.createSlots,g=e.Fragment,h=e.renderList,f=e.createBlock,x=e.withModifiers,y=e.createTextVNode},e=>{V=e.P},null,e=>{k=e.L},null,null,null,null],execute:function(){const S={components:{DetailsDialog:V},mixins:[k],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,j,I,z,w){const E=a("rux-status"),_=a("v-text-field"),N=a("v-tooltip"),T=a("v-list-item-title"),B=a("v-list-item"),L=a("v-list"),M=a("v-menu"),P=a("details-dialog");return r(),o("div",{class:"value-widget-container",style:d([t.computedStyle,w.aging])},[n(N,{location:"top"},{activator:l(({props:s})=>[n(_,p({variant:"solo",density:"compact",flat:"",readonly:"","hide-details":"","model-value":t._value,class:t.valueClass,"data-test":"value",onContextmenu:t.showContextMenu},s),v({_: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(()=>[m("span",null,u(w.fullName),1)]),_:1}),n(M,{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(L,null,{default:l(()=>[(r(!0),o(g,null,h(t.contextMenuOptions,(s,W)=>(r(),f(B,{key:W,onClick:x(s.action,["stop"])},{default:l(()=>[n(T,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=C("default",c(S,[["render",D],["__scopeId","data-v-c21e4dde"]]))}}});
|
@@ -0,0 +1 @@
|
|
1
|
+
System.register(["./ValueWidget-C6RanBj3-3dbf7e600c9cc7d32092.js","./LimitsbarWidget-B9lAB2RD-d1f3c0d80df43f4a7e74.js","./Widget-oyqWpFXJ-8ddc0c20a29aec6d8ea4.js","vue","./main-753f2fc61e5e6d5ec666.js","./DetailsDialog-DmEC5BTs-9861628031e7555d351a.js","single-spa","./VWidget-DQqb7NVW-ca9c28d1dcfbe431d7e0.js","vue-router","vuex","vuetify","./BarColumn-C6p07yWK-31348127e98f8a6d12c1.js"],function(g,f){"use strict";var r,i,a,n,o,u,c,s,l,m;return{setters:[e=>{r=e.default},e=>{i=e.default},e=>{a=e.o},e=>{n=e.resolveComponent,o=e.createElementBlock,u=e.openBlock,c=e.normalizeStyle,s=e.createVNode,l=e.mergeProps},e=>{m=e.d},null,null,null,null,null,null,null],execute:function(){const e={mixins:[a],components:{ValueWidget:r,LimitsbarWidget:i}};function d(t,B,W,b,j,V){const p=n("value-widget"),v=n("limitsbar-widget");return u(),o("div",{ref:"container",class:"d-flex flex-row",style:c(t.computedStyle)},[s(p,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"]),s(v,l(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 y=g("default",m(e,[["render",d]]))}}});
|
@@ -0,0 +1 @@
|
|
1
|
+
System.register(["./ValueWidget-C6RanBj3-3dbf7e600c9cc7d32092.js","./LimitscolumnWidget-CcLs_443-c2b2e70c3855510b158a.js","./Widget-oyqWpFXJ-8ddc0c20a29aec6d8ea4.js","vue","./main-753f2fc61e5e6d5ec666.js","./DetailsDialog-DmEC5BTs-9861628031e7555d351a.js","single-spa","./VWidget-DQqb7NVW-ca9c28d1dcfbe431d7e0.js","vue-router","vuex","vuetify","./BarColumn-C6p07yWK-31348127e98f8a6d12c1.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.createElementBlock,o=e.openBlock,c=e.normalizeStyle,s=e.createVNode,l=e.mergeProps},e=>{m=e.d},null,null,null,null,null,null,null],execute:function(){const e={mixins:[a],components:{ValueWidget:r,LimitscolumnWidget:i}};function d(t,W,j,y,B,C){const p=n("limitscolumn-widget"),v=n("value-widget");return o(),u("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-C6RanBj3-3dbf7e600c9cc7d32092.js","./RangebarWidget-D_zGTtCa-7cdd037c37cb8a65621c.js","./Widget-oyqWpFXJ-8ddc0c20a29aec6d8ea4.js","vue","./main-753f2fc61e5e6d5ec666.js","./DetailsDialog-DmEC5BTs-9861628031e7555d351a.js","single-spa","./VWidget-DQqb7NVW-ca9c28d1dcfbe431d7e0.js","vue-router","vuex","vuetify"],function(g,f){"use strict";var n,i,l,r,m,u,o,s,a,p;return{setters:[e=>{n=e.default},e=>{i=e.default},e=>{l=e.o},e=>{r=e.resolveComponent,m=e.createElementBlock,u=e.openBlock,o=e.normalizeStyle,s=e.createVNode,a=e.mergeProps},e=>{p=e.d},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,W,j,x,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 B=g("default",p(e,[["render",d]]))}}});
|
@@ -1 +1 @@
|
|
1
|
-
System.register(["./Layout-
|
1
|
+
System.register(["./Layout-Tf--nruw-3794f7b5e1017b913cf3.js","vue","./main-753f2fc61e5e6d5ec666.js","./Widget-oyqWpFXJ-8ddc0c20a29aec6d8ea4.js","vue-router","single-spa","vuex","vuetify"],function(y,k){"use strict";var l,i,r,c,o,u,m,g,p,f;return{setters:[e=>{l=e.r},e=>{i=e.createElementBlock,r=e.openBlock,c=e.normalizeStyle,o=e.Fragment,u=e.renderList,m=e.createBlock,g=e.resolveDynamicComponent,p=e.mergeProps},e=>{f=e.d},null,null,null,null,null],execute:function(){const e={mixins:[l],created:function(){if(this.parameters[0]){let n=this.parameters[0];this.widgets.forEach(a=>{a.settings.find(s=>s[0]==="MARGIN"||s[0]==="RAW"&&s[1].toUpperCase().includes("MARGIN"))===void 0&&a.settings.push(["MARGIN",n])})}}};function d(n,a,s,w,B,R){return r(),i("div",{ref:"container",style:c(n.computedStyle)},[(r(!0),i(o,null,u(n.widgets,(t,v)=>(r(),m(g(t.type),p({ref_for:!0},n.listeners,{key:v,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",d]]))}}});
|
@@ -0,0 +1 @@
|
|
1
|
+
System.register(["./LabelWidget-xrmcVeq8-a934d4d4238473382002.js","./HorizontallineWidget-CXFqHclf-a77cbdaeb53e2bc610eb.js","./VerticalWidget-BIIViZgI-a9bf3384447d400268fd.js","./Layout-Tf--nruw-3794f7b5e1017b913cf3.js","vue","./main-753f2fc61e5e6d5ec666.js","./Widget-oyqWpFXJ-8ddc0c20a29aec6d8ea4.js","vue-router","single-spa","vuex","vuetify"],function(m,V){"use strict";var r,l,a,o,n,c,s,g,d,i,u,p;return{setters:[e=>{r=e.default},e=>{l=e.default},e=>{a=e.default},e=>{o=e.r},e=>{n=e.resolveComponent,c=e.createElementBlock,s=e.openBlock,g=e.createBlock,d=e.createCommentVNode,i=e.createVNode,u=e.mergeProps},e=>{p=e.d},null,null,null,null,null],execute:function(){const e={mixins:[o],components:{LabelWidget:r,HorizontalLineWidget:l,VerticalWidget:a},created(){this.labelSettings=[...this.appliedSettings],this.labelSettings.find(t=>t[0]==="0"&&t[1]==="RAW"&&t[2]==="font-weight")||this.labelSettings.push(["0","RAW","font-weight","bold"])}};function f(t,h,S,k,B,j){const v=n("label-widget"),w=n("horizontal-line-widget"),W=n("vertical-widget");return s(),c("div",null,[t.parameters.length>0?(s(),g(v,{key:0,parameters:t.parameters.slice(0,1),settings:[...t.labelSettings],"widget-index":0},null,8,["parameters","settings"])):d("",!0),i(w,{settings:[...t.appliedSettings],"widget-index":1},null,8,["settings"]),i(W,u(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 b=m("default",p(e,[["render",f]]))}}});
|
@@ -1 +1 @@
|
|
1
|
-
System.register(["./main-
|
1
|
+
System.register(["./main-753f2fc61e5e6d5ec666.js"],function(o,d){"use strict";var p,r;return{setters:[n=>{p=n.W,r=n.c}],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}`}}})}}});
|