openc3-cosmos-tool-cmdsender 6.0.1 → 6.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/tools/cmdsender/{ArrayWidget-BTxChSds-bfafcb1e282209bae9b8.js → ArrayWidget-DBpEoQ1y-7774f174f100079a8a19.js} +2 -2
- data/tools/cmdsender/{BarColumn-Cdu3OoMa-abf26d8ecccbc20014fa.js → BarColumn-B6tCmNJm-c2cf6197c1ac7721cb12.js} +1 -1
- data/tools/cmdsender/BlockWidget-Bmi0UcUW-6ba650ec33b40d8cf01c.js +2 -0
- data/tools/cmdsender/{ButtonWidget-nwDlOBJT-5d2233c4dd6b7fbc6a0e.js → ButtonWidget-CHrHS_Bw-697bfff0f94c0f031fc0.js} +2 -2
- data/tools/cmdsender/CanvasWidget-BqdyLbQz-167c323870bbdd0b3f0a.js +1 -0
- data/tools/cmdsender/CanvasdotWidget-YYwca104-3c5550facd36f5ee6eac.js +1 -0
- data/tools/cmdsender/{CanvasimageWidget-BIw7Wbf2-8e7b9b767c12e0edb2e1.js → CanvasimageWidget-BrYlPQCf-d1bb68f987e71202c775.js} +1 -1
- data/tools/cmdsender/CanvasimagevalueWidget-HnEOXmZy-1f66702888c804c6a591.js +1 -0
- data/tools/cmdsender/{CanvaslabelWidget-DWmb356h-5fc6134785489e31d1e3.js → CanvaslabelWidget-BfMHNei--ddf219663eebb46e3e99.js} +1 -1
- data/tools/cmdsender/{CanvaslabelvalueWidget-CI3yYwFs-3a88d85b06479d994308.js → CanvaslabelvalueWidget-0zRDJav3-89a8555dff72104c9172.js} +1 -1
- data/tools/cmdsender/CanvaslineWidget-BmOwJP_G-2a8c53c443123088b6ac.js +1 -0
- data/tools/cmdsender/CanvaslinevalueWidget-H3L1aUKM-a4c9e63e78093733ab93.js +1 -0
- data/tools/cmdsender/CheckbuttonWidget-BnT9X7wE-1ccb715f3ae947f1a60a.js +1 -0
- data/tools/cmdsender/{ComboboxWidget-BzsbOv54-97af9800f87899870f36.js → ComboboxWidget-BykAAoxH-cf35e0e6ad301a3be379.js} +1 -1
- data/tools/cmdsender/{CommandSender-91f6b4e2ba1f0f0e74f3.js → CommandSender-1ae9e7b06ab4a44e3988.js} +1 -1
- data/tools/cmdsender/{CriticalCmdDialog-BjoqcWTu-7066b9cf6e6bf2144279.js → CriticalCmdDialog-CAcGOWok-3a7c5d277fa3e0c3343f.js} +1 -1
- data/tools/cmdsender/{DateWidget-B5R_9rA8-7bc966f31f48f2f10fb2.js → DateWidget-FtYD86xW-f07540c6584501509891.js} +1 -1
- data/tools/cmdsender/{DetailsDialog-DLRMqetn-5d64bdc67b9b5e43bbb7.js → DetailsDialog-DiVcC3Fg-b8c5672df1c2b2428051.js} +1 -1
- data/tools/cmdsender/{DynamicWidget-m9EliUR2-5fdc39e4237c90463f9e.js → DynamicWidget-m9EliUR2-cd4304c5cec47f4c2b36.js} +1 -1
- data/tools/cmdsender/FormatvalueWidget-OykwwCrw-1fd27fa2bfe3d84ce8a8.js +1 -0
- data/tools/cmdsender/{GraphWidget-amwxyH1r-57c0bb46f7944b5f8b21.js → GraphWidget-BohHW-97-faf931524e0f1fcaf469.js} +1 -1
- data/tools/cmdsender/{HorizontalWidget-CirtfuL8-130ee0de3779a46e336f.js → HorizontalWidget-B7YdcFVN-19fd2a8909ee1482983b.js} +1 -1
- data/tools/cmdsender/HorizontalboxWidget-D-kCNwI3-52bf1c4d51d144ddda92.js +1 -0
- data/tools/cmdsender/{HorizontallineWidget-BdlNB951-7d56517b135d013a58d1.js → HorizontallineWidget-BdlNB951-ce22f48a612ae9004c09.js} +1 -1
- data/tools/cmdsender/IframeWidget-0C7GYEVc-47f0be68b0a3d92923e5.js +1 -0
- data/tools/cmdsender/{ImageLoader-CpcR6tPi-ec9fe1d8bae683498eeb.js → ImageLoader-y6fAZe9P-be2fdea8237d46c95a90.js} +1 -1
- data/tools/cmdsender/{ImageviewerWidget-DIkmb_C9-a97b74157aa8507d0e8d.js → ImageviewerWidget-B4HbUIfR-a7289f3e4790b90ab40f.js} +1 -1
- data/tools/cmdsender/{LabelWidget-BDsypYho-5842eba381f322880b6a.js → LabelWidget-D1JhQAzR-e559310457943d231cab.js} +1 -1
- data/tools/cmdsender/{LabelledWidget-DjturGl5-75f7971d9a3a88f889e9.js → LabelledWidget-C2VGJ5OJ-7d7514cb845dbfc1912a.js} +1 -1
- data/tools/cmdsender/LabelprogressbarWidget-DN0cAeLK-1652c8018f4ded8040f9.js +1 -0
- data/tools/cmdsender/LabelsparklineWidget--sxBENxs-c1ed7a8108887948d8ec.js +1 -0
- data/tools/cmdsender/LabelvalueWidget-BWpP5KX6-5fefd46f4773bfb9ac62.js +1 -0
- data/tools/cmdsender/{LabelvaluedescWidget-CsUP7J4U-cc8102a5929bef7a04d9.js → LabelvaluedescWidget-DtJwggDu-df040185dadc8b78dd8b.js} +1 -1
- data/tools/cmdsender/{LabelvaluelimitsbarWidget-Blj1QXV8-75674a72a5b16dcb65c6.js → LabelvaluelimitsbarWidget-Bj6UVK-5-f5f0705d019564ee5ff2.js} +1 -1
- data/tools/cmdsender/LabelvaluelimitscolumnWidget-BVcEEcUx-c374ebf3559a730c88b4.js +1 -0
- data/tools/cmdsender/{LabelvaluerangebarWidget-DpcXhlfF-2097027f1df8fc82e2b5.js → LabelvaluerangebarWidget-DCJ42bmf-d7afd12d4a48a917f9e8.js} +1 -1
- data/tools/cmdsender/{Layout-C1HoM4Kl-509835ae46afcc2761f8.js → Layout-D4YBjuWs-583536aa12d8f093d8e3.js} +1 -1
- data/tools/cmdsender/{LedWidget-B_K2e5tq-f2e610278ed4d8752dd8.js → LedWidget-hN9JHxjr-ca1a4be6c84b62755121.js} +1 -1
- data/tools/cmdsender/{LimitsbarWidget-DXbqsi4J-7d0a6c9ba1aeb18ca24f.js → LimitsbarWidget-D-wfz_St-21c8e72fdac76bad7143.js} +1 -1
- data/tools/cmdsender/{LimitscolorWidget-Ckmuw0YX-7fdbaf3d646ca8102dbb.js → LimitscolorWidget-B0AVGdkz-4ac2d13fe998758ca84c.js} +1 -1
- data/tools/cmdsender/{LimitscolumnWidget-BfY4su5U-f98080008ba9c0d58db9.js → LimitscolumnWidget-Dt5ce4hN-8b1119f6301eac097187.js} +1 -1
- data/tools/cmdsender/{LinegraphWidget-y-Qy9P0R-2db99d29a1db81efba15.js → LinegraphWidget-CTjtvtPd-38c53ea1a35e71abbf6e.js} +1 -1
- data/tools/cmdsender/MatrixbycolumnsWidget-wLx4NvXV-774e3a6fcab20b0c6448.js +1 -0
- data/tools/cmdsender/{ProgressbarWidget-DpA_-vy9-40ccbf5aab4901aca30a.js → ProgressbarWidget-B7l0BBiX-468f0d738a18c61dde60.js} +1 -1
- data/tools/cmdsender/RadiobuttonWidget-B032jKIw-84e0a102cc723cb3175b.js +1 -0
- data/tools/cmdsender/RadiogroupWidget-Busjqikr-2e4b2935b15ff341e62b.js +1 -0
- data/tools/cmdsender/{RangebarWidget-DHS7S3vI-2646fb7ece1a2359286e.js → RangebarWidget-DbYrwEfC-20517e3e661d03bf7afe.js} +1 -1
- data/tools/cmdsender/{RollupWidget-CTk9Kjwr-c4784121fdb0a9e93f9d.js → RollupWidget-rKxLXuCv-bbe5342ec4066f452f29.js} +1 -1
- data/tools/cmdsender/{ScrollwindowWidget-DD0TOW6s-53516999264c91d321c5.js → ScrollwindowWidget-D4NKIzQO-cf05873762f289c94fa1.js} +1 -1
- data/tools/cmdsender/{SignalWidget-CC33KMTW-9cc4302103a346ccdece.js → SignalWidget-h-oivReC-6cdafa1a64ddb6920377.js} +1 -1
- data/tools/cmdsender/SpacerWidget-BSy9eOlB-6499772ba0a8beb636cc.js +1 -0
- data/tools/cmdsender/{SparklineWidget-DMvMQCPm-222d2d2f47670c53df2f.js → SparklineWidget-C9vdxar--ed6cef5da69f19d06020.js} +1 -1
- data/tools/cmdsender/TabbookWidget-DTFTKURm-702f0e437f846a8af994.js +1 -0
- data/tools/cmdsender/TextboxWidget-BZyYHmBq-8c5923acee53bab72c82.js +1 -0
- data/tools/cmdsender/{TextfieldWidget-DXSdgqVP-d29c84adc9e8a449cab7.js → TextfieldWidget-aVRdXRsT-63e891c4e771f5de6796.js} +1 -1
- data/tools/cmdsender/TimeWidget-BE2rtMxg-c27729f03957442c6e1c.js +1 -0
- data/tools/cmdsender/{TitleWidget-DqViFQl--cbcf777e58e4b0254010.js → TitleWidget-BB29MZb2-5be03ab24576d78c18fe.js} +1 -1
- data/tools/cmdsender/{VWidget-02CG-3Av-67baf40d925167b6126a.js → VWidget-CGdM4sTw-f5881252e6f5adbafc7e.js} +1 -1
- data/tools/cmdsender/ValueWidget-h3905woQ-dfd435618aad43031119.js +1 -0
- data/tools/cmdsender/{ValuelimitsbarWidget-SR8XNZFB-22b8d75beaf705e14f20.js → ValuelimitsbarWidget-LMXYjWtS-ff48a7489cf874306856.js} +1 -1
- data/tools/cmdsender/{ValuelimitscolumnWidget-xYZSp6YZ-4c6f2cec5915bd085c50.js → ValuelimitscolumnWidget-gA3ZcfAT-1d440c612ec5819e135e.js} +1 -1
- data/tools/cmdsender/ValuerangebarWidget-DwZ9KQ0O-fab6e18035be68ad18d5.js +1 -0
- data/tools/cmdsender/VerticalWidget-DziyURNu-e0b82b7a0d24dd5d1526.js +1 -0
- data/tools/cmdsender/VerticalboxWidget-OcoZBsFU-e0bb467552e346f35c8e.js +1 -0
- data/tools/cmdsender/{Widget-C4QVI4IH-b4ca8b1098cb75567491.js → Widget-C7ms_xDE-3bcea1febf251efccd7e.js} +1 -1
- data/tools/cmdsender/{main-d60a87535d79453f428d.js → main-d619649b01078bd926a2.js} +72 -72
- data/tools/cmdsender/main.js +1 -1
- metadata +68 -68
- data/tools/cmdsender/BlockWidget-PmjzrkXF-f77b1a3b85a63474970b.js +0 -2
- data/tools/cmdsender/CanvasWidget-BL8930eT-767b3cc61c3248e3bfde.js +0 -1
- data/tools/cmdsender/CanvasdotWidget-VCf1fL-G-a7cd286a4fff2a5c3a3a.js +0 -1
- data/tools/cmdsender/CanvasimagevalueWidget-CE3Dj5bH-9b935cbb5d68af8412cd.js +0 -1
- data/tools/cmdsender/CanvaslineWidget-COeapH3P-ceedeb91f76c5c159259.js +0 -1
- data/tools/cmdsender/CanvaslinevalueWidget-CI-Bbzfi-37e7e6b12aa2a1235f5f.js +0 -1
- data/tools/cmdsender/CheckbuttonWidget-BQhggcZ2-68fba4651ecafd573779.js +0 -1
- data/tools/cmdsender/FormatvalueWidget-DZkRJce8-48d4f370b30c434d4138.js +0 -1
- data/tools/cmdsender/HorizontalboxWidget-CyTDt2nl-90bce91cb40b2088123a.js +0 -1
- data/tools/cmdsender/IframeWidget-DnJmCrCA-74a9d8024841f127285f.js +0 -1
- data/tools/cmdsender/LabelprogressbarWidget-RADJGLj3-28cfb5802ac44d80181c.js +0 -1
- data/tools/cmdsender/LabelsparklineWidget-BlJoICxu-3626aed85c602d73cbb4.js +0 -1
- data/tools/cmdsender/LabelvalueWidget-DVWJqnlY-2b9ef3a4d6c1afb83f58.js +0 -1
- data/tools/cmdsender/LabelvaluelimitscolumnWidget-CvCo-uCe-7b694e6ee492bcd00865.js +0 -1
- data/tools/cmdsender/MatrixbycolumnsWidget-BTBColrs-948d20ae04aa2860a35f.js +0 -1
- data/tools/cmdsender/RadiobuttonWidget-BO8zpgwW-41d417347486d74f2782.js +0 -1
- data/tools/cmdsender/RadiogroupWidget-Oy7V4S-V-2324de2e8229dd9e6d4d.js +0 -1
- data/tools/cmdsender/SpacerWidget-BnJe_Hq6-73082f990f99edf7455d.js +0 -1
- data/tools/cmdsender/TabbookWidget-B3w0JtWe-aede92a386581335c5ab.js +0 -1
- data/tools/cmdsender/TextboxWidget-D2f0-eol-40b07e8bf056122463a2.js +0 -1
- data/tools/cmdsender/TimeWidget-DvrRaEMz-c96d8216e966349903aa.js +0 -1
- data/tools/cmdsender/ValueWidget-KLYY8L8U-29b03c814f71a0ec3a4e.js +0 -1
- data/tools/cmdsender/ValuerangebarWidget-B6M02a9d-d4c7c7aa11904e031ed7.js +0 -1
- data/tools/cmdsender/VerticalWidget-z6xUM-ql-7b86828842d1aba0e3bc.js +0 -1
- data/tools/cmdsender/VerticalboxWidget-3a9cVsW--46cface9417db41fad42.js +0 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cbcf60a1878fd9c023157f495e5584f04e24cdb085f2e6d1fc4696a7f688cd2d
|
4
|
+
data.tar.gz: a571bcd3f5715de35e149442ae4cc3690962afe13c15c92cecb0b3141a84e9e5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9dbffdb1c3bd929b7d262c04f9148215dff6b3166555a11c3732273a4ba9b81142c06ebab7ba5c06a11810bc9eff58642c6b9509f75b3e0acb62c898447fbf5b
|
7
|
+
data.tar.gz: afbf9310b8736352f9a04aa4b212b8b6e294fba025363deb3f155e20444ff3f57bf304193ed08caddb896240f6dc4b638f9b40740dd8a08710eaa371840ba629
|
@@ -1,2 +1,2 @@
|
|
1
|
-
System.register(["./main-
|
2
|
-
`,o=0;if(Array.isArray(e)){for(const m of e)this.formatter&&((r=this.formatter)==null?void 0:r.toLowerCase())!=="nil"?s+=sprintf(this.formatter,m):s+=m,o+=1,o%this.itemsPerRow===0?(o=0,s+=D):s+=k;return s.trim()}else return e}}},
|
1
|
+
System.register(["./main-d619649b01078bd926a2.js","vue","./DetailsDialog-DiVcC3Fg-b8c5672df1c2b2428051.js","single-spa","./VWidget-CGdM4sTw-f5881252e6f5adbafc7e.js","vue-router","vuex","vuetify","./Widget-C7ms_xDE-3bcea1febf251efccd7e.js"],function(_,T){"use strict";var h,a,u,c,i,d,p,l,g,f,v,w,y,x,C,V;return{setters:[t=>{h=t.s},t=>{a=t.resolveComponent,u=t.openBlock,c=t.createElementBlock,i=t.createVNode,d=t.normalizeClass,p=t.normalizeStyle,l=t.withCtx,g=t.Fragment,f=t.renderList,v=t.createBlock,w=t.withModifiers,y=t.createTextVNode,x=t.toDisplayString},t=>{C=t.P},null,t=>{V=t.L},null,null,null,null],execute:function(){const t={components:{DetailsDialog:C},data:function(){return{width:200,height:100,itemsPerRow:4,formatter:null}},mixins:[V],computed:{aging(){return{"--aging":this.grayLevel}}},created:function(){this.width=this.setWidth(this.parameters[3],"px",this.width),this.height=this.setHeight(this.parameters[4],"px",this.height),this.parameters[5]&&(this.formatter=this.parameters[5]),this.parameters[6]&&(this.itemsPerRow=parseInt(this.parameters[6]))},methods:{getType:function(){let e="CONVERTED";return this.parameters[7]&&(e=this.parameters[7]),e},formatValue:function(e){var r;let s="",k=" ",D=`
|
2
|
+
`,o=0;if(Array.isArray(e)){for(const m of e)this.formatter&&((r=this.formatter)==null?void 0:r.toLowerCase())!=="nil"?s+=sprintf(this.formatter,m):s+=m,o+=1,o%this.itemsPerRow===0?(o=0,s+=D):s+=k;return s.trim()}else return e}}},S={class:"array-widget-container"};function B(e,r,s,k,D,o){const m=a("v-textarea"),M=a("v-list-item-title"),z=a("v-list-item"),L=a("v-list"),E=a("v-menu"),N=a("details-dialog");return u(),c("div",S,[i(m,{variant:"solo",density:"compact",readonly:"","no-resize":"","auto-grow":"",rows:"2","hide-details":"","model-value":e._value,class:d(e.valueClass),style:p([e.computedStyle,o.aging]),"data-test":"array-widget",onContextmenu:e.showContextMenu},null,8,["model-value","class","style","onContextmenu"]),i(E,{modelValue:e.contextMenuShown,"onUpdate:modelValue":r[0]||(r[0]=n=>e.contextMenuShown=n),target:[e.x,e.y]},{default:l(()=>[i(L,null,{default:l(()=>[(u(!0),c(g,null,f(e.contextMenuOptions,(n,P)=>(u(),v(z,{key:P,onClick:w(n.action,["stop"])},{default:l(()=>[i(M,null,{default:l(()=>[y(x(n.title),1)]),_:2},1024)]),_:2},1032,["onClick"]))),128))]),_:1})]),_:1},8,["modelValue","target"]),i(N,{"target-name":e.parameters[0],"packet-name":e.parameters[1],"item-name":e.parameters[2],modelValue:e.viewDetails,"onUpdate:modelValue":r[1]||(r[1]=n=>e.viewDetails=n)},null,8,["target-name","packet-name","item-name","modelValue"])])}const j=_("default",h(t,[["render",B],["__scopeId","data-v-62b9e9e1"]]))}}});
|
@@ -1 +1 @@
|
|
1
|
-
System.register(["./Widget-
|
1
|
+
System.register(["./Widget-C7ms_xDE-3bcea1febf251efccd7e.js","./main-d619649b01078bd926a2.js"],function(a,n){"use strict";var h,l;return{setters:[s=>{h=s.o},s=>{l=s.F}],execute:function(){const s=a("l",{mixins:[h],data(){return{minValue:null,maxValue:null,redLow:0,yellowLow:0,greenLow:0,greenHigh:0,yellowHigh:0,redHigh:0,blue:0,api:null,limitsSettings:{DEFAULT:[]},currentLimitsSet:"DEFAULT",currentSetRefreshInterval:null}},computed:{cssProps:function(){let t=this.screenValues[this.valueId][0],i=this.modifyLimits(this.limitsSettings[this.selectedLimitsSet]);return this.calcLimits(i),{"--height":this.height+"px","--width":this.width+"px","--container-height":this.height-5+"px","--position":this.calcPosition(t,i)+"%","--redlow-width":this.redLow+"%","--redhigh-width":this.redHigh+"%","--yellowlow-width":this.yellowLow+"%","--yellowhigh-width":this.yellowHigh+"%","--greenlow-width":this.greenLow+"%","--greenhigh-width":this.greenHigh+"%","--blue-width":this.blue+"%"}},selectedLimitsSet:function(){return this.limitsSettings.hasOwnProperty(this.currentLimitsSet)?this.currentLimitsSet:"DEFAULT"}},created(){this.api=new l,this.api.get_limits(this.parameters[0],this.parameters[1],this.parameters[2]).then(t=>{this.limitsSettings=t}),this.getCurrentLimitsSet(),this.currentSetRefreshInterval=setInterval(this.getCurrentLimitsSet,6e4),this.appliedSettings.forEach(t=>{t[0]==="MIN_VALUE"&&(this.minValue=parseInt(t[1])),t[0]==="MAX_VALUE"&&(this.maxValue=parseInt(t[1]))}),this.width=this.setWidth(this.parameters[4],"px",this.width),this.height=this.setHeight(this.parameters[5],"px",this.height),this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__CONVERTED`,this.$emit("addItem",this.valueId)},destroyed(){this.$emit("deleteItem",this.valueId),clearInterval(this.currentSetRefreshInterval)},methods:{modifyLimits(t){if(!t)return;this.redLow=10,this.redHigh=10,this.minValue!==null&&(t[0]<=this.minValue&&(t[0]=this.minValue,this.redLow=0),t[1]<=this.minValue&&(t[1]=this.minValue),t[2]<=this.minValue&&(t[2]=this.minValue),t[3]<=this.minValue&&(t[3]=this.minValue),t.length>4&&t[4]<=this.minValue&&(t[4]=this.minValue),t.length>4&&t[5]<=this.minValue&&(t[5]=this.minValue)),this.maxValue!==null&&(t[0]>=this.maxValue&&(t[0]=this.maxValue),t[1]>=this.maxValue&&(t[1]=this.maxValue),t[2]>=this.maxValue&&(t[2]=this.maxValue),t[3]>=this.maxValue&&(t[3]=this.maxValue,this.redHigh=0),t.length>4&&t[4]>=this.maxValue&&(t[4]=this.maxValue),t.length>4&&t[5]>=this.maxValue&&(t[5]=this.maxValue)),t[0]==t[1]&&(this.yellowLow=0),t[2]==t[3]&&(this.yellowHigh=0);let i=80;return this.redLow==0&&(i+=10),this.redHigh==0&&(i+=10),this.scale=(t[3]-t[0])/i,t},calcPosition(t,i){if(!t||!i)return;let r=i[0]-10*this.scale;if(this.minValue&&this.minValue==i[0]&&(r=i[0]),i[3]-10*this.scale,this.maxValue&&this.maxValue==i[3]&&i[3],t.raw)return t.raw==="-Infinity"?0:100;if(t<this.min)return 0;if(t>this.max)return 100;{const e=parseInt((t-r)/this.scale);return e>100?100:e<0?0:e}},calcLimits(t){t&&(this.yellowLow=Math.round((t[1]-t[0])/this.scale),this.yellowHigh=Math.round((t[3]-t[2])/this.scale),t.length>4?(this.greenLow=Math.round((t[4]-t[1])/this.scale),this.greenHigh=Math.round((t[2]-t[5])/this.scale),this.blue=Math.round(100-this.redLow-this.yellowLow-this.greenLow-this.greenHigh-this.yellowHigh-this.redHigh)):(this.greenLow=Math.round(100-this.redLow-this.yellowLow-this.yellowHigh-this.redHigh),this.greenHigh=0,this.blue=0))},getCurrentLimitsSet:function(){this.api.get_limits_set().then(t=>{this.currentLimitsSet=t})}}})}}});
|
@@ -0,0 +1,2 @@
|
|
1
|
+
System.register(["./main-d619649b01078bd926a2.js","vue","./DetailsDialog-DiVcC3Fg-b8c5672df1c2b2428051.js","single-spa","./VWidget-CGdM4sTw-f5881252e6f5adbafc7e.js","vue-router","vuex","vuetify","./Widget-C7ms_xDE-3bcea1febf251efccd7e.js"],function(S,L){"use strict";var u,a,h,m,s,p,g,o,w,f,v,x,y,C,V,k;return{setters:[e=>{u=e.s},e=>{a=e.resolveComponent,h=e.openBlock,m=e.createElementBlock,s=e.createVNode,p=e.normalizeClass,g=e.normalizeStyle,o=e.withCtx,w=e.Fragment,f=e.renderList,v=e.createBlock,x=e.withModifiers,y=e.createTextVNode,C=e.toDisplayString},e=>{V=e.P},null,e=>{k=e.L},null,null,null,null],execute:function(){const e={components:{DetailsDialog:V},data:function(){return{width:400,height:400,bytesPerWord:4,wordsPerRow:4,addrFormat:null,formatter:"%02X"}},mixins:[k],computed:{aging(){return{"--aging":this.grayLevel}},rows:function(){return(this.height-16)/24}},created:function(){this.width=this.setWidth(this.parameters[3],"px",this.width),this.height=this.setHeight(this.parameters[4],"px",this.height),this.parameters[5]&&(this.formatter=this.parameters[5]),this.parameters[6]&&(this.bytesPerWord=parseInt(this.parameters[6])),this.parameters[7]&&(this.wordsPerRow=parseInt(this.parameters[7])),this.parameters[8]&&(this.addrFormat=this.parameters[8])},methods:{getType:function(){let t="RAW";return this.parameters[9]&&(t=this.parameters[9]),t},formatValue:function(t){let r="";if(t&&t.raw){let D=" ",P=`
|
2
|
+
`,i=0,l=0;const d=this.bytesPerWord*this.wordsPerRow;for(const c of t.raw)this.addrFormat&&i===0&&(r+=sprintf(this.addrFormat,l),l+=d),r+=sprintf(this.formatter,c),i+=1,i%d===0?(i=0,r+=P):i%this.bytesPerWord===0&&(r+=D)}else r=t;return r}}},_={class:"block-widget-container"};function M(t,r,D,P,i,l){const d=a("v-textarea"),c=a("v-list-item-title"),W=a("v-list-item"),F=a("v-list"),B=a("v-menu"),b=a("details-dialog");return h(),m("div",_,[s(d,{variant:"solo",density:"compact",readonly:"","no-resize":"","hide-details":"",rows:l.rows,width:t.width,"model-value":t._value,class:p(t.valueClass),style:g([t.computedStyle,l.aging]),"data-test":"valueText",onContextmenu:t.showContextMenu},null,8,["rows","width","model-value","class","style","onContextmenu"]),s(B,{modelValue:t.contextMenuShown,"onUpdate:modelValue":r[0]||(r[0]=n=>t.contextMenuShown=n),target:[t.x,t.y]},{default:o(()=>[s(F,null,{default:o(()=>[(h(!0),m(w,null,f(t.contextMenuOptions,(n,z)=>(h(),v(W,{key:z,onClick:x(n.action,["stop"])},{default:o(()=>[s(c,null,{default:o(()=>[y(C(n.title),1)]),_:2},1024)]),_:2},1032,["onClick"]))),128))]),_:1})]),_:1},8,["modelValue","target"]),s(b,{"target-name":t.parameters[0],"packet-name":t.parameters[1],"item-name":t.parameters[2],modelValue:t.viewDetails,"onUpdate:modelValue":r[1]||(r[1]=n=>t.viewDetails=n)},null,8,["target-name","packet-name","item-name","modelValue"])])}const N=S("default",u(e,[["render",M],["__scopeId","data-v-4d4589c2"]]))}}});
|
@@ -1,2 +1,2 @@
|
|
1
|
-
System.register(["./main-
|
2
|
-
`).pop(),this.displaySendHazardous=!0;this.displaySendHazardous;)await new Promise(t=>setTimeout(t,500));else console.error(e)}},async sendHazardousCmd(){this.lastCmd=this.lastCmd.replace("cmd(","this.api.cmd_no_hazardous_check(");try{const result=eval(this.lastCmd);result instanceof Promise&&await result}catch(e){e.message.includes("CriticalCmdError")&&(this.criticalCmdUuid=e.object.data.instance_variables["@uuid"],this.criticalCmdString=e.object.data.instance_variables["@cmd_string"],this.criticalCmdUser=e.object.data.instance_variables["@username"],this.displayCriticalCmd=!0)}this.displaySendHazardous=!1},cancelHazardousCmd(){this.displaySendHazardous=!1},runScript(e,t=!0,
|
1
|
+
System.register(["./main-d619649b01078bd926a2.js","vue","./CriticalCmdDialog-CAcGOWok-3a7c5d277fa3e0c3343f.js","single-spa","./Widget-C7ms_xDE-3bcea1febf251efccd7e.js","vue-router","vuex","vuetify"],function(exports,module){"use strict";var s,Fk,Ik,resolveComponent,openBlock,createElementBlock,createVNode,normalizeStyle,withCtx,createTextVNode,toDisplayString,createElementVNode,N,o;return{setters:[e=>{s=e.s,Fk=e.F,Ik=e.I},e=>{resolveComponent=e.resolveComponent,openBlock=e.openBlock,createElementBlock=e.createElementBlock,createVNode=e.createVNode,normalizeStyle=e.normalizeStyle,withCtx=e.withCtx,createTextVNode=e.createTextVNode,toDisplayString=e.toDisplayString,createElementVNode=e.createElementVNode},e=>{N=e.N},null,e=>{o=e.o},null,null,null],execute:function(){const _sfc_main={mixins:[o],components:{CriticalCmdDialog:N},data(){return{api:null,displaySendHazardous:!1,lastCmd:"",criticalCmdUuid:null,criticalCmdString:null,criticalCmdUser:null,displayCriticalCmd:!1}},computed:{buttonText(){return this.parameters[0]},eval(){return this.parameters[1]}},created(){this.api=new Fk},methods:{async onClick(){const lines=this.eval.split(";;"),self=this,screen=this.screen,screenValues=this.screenValues,screenTimeZone=this.screenTimeZone,api=this.api,runScript=this.runScript;(self||screen||screenValues||screenTimeZone||api||runScript)&&this.$nextTick(()=>{});for(let i=0;i<lines.length;i++)try{const result=eval(lines[i].trim());result instanceof Promise&&await result}catch(e){if(e.message.includes("CriticalCmdError"))this.criticalCmdUuid=e.object.data.instance_variables["@uuid"],this.criticalCmdString=e.object.data.instance_variables["@cmd_string"],this.criticalCmdUser=e.object.data.instance_variables["@username"],this.displayCriticalCmd=!0;else if(e.message.includes("is Hazardous"))for(this.lastCmd=e.message.split(`
|
2
|
+
`).pop(),this.displaySendHazardous=!0;this.displaySendHazardous;)await new Promise(t=>setTimeout(t,500));else console.error(e)}},async sendHazardousCmd(){this.lastCmd=this.lastCmd.replace("cmd(","this.api.cmd_no_hazardous_check(");try{const result=eval(this.lastCmd);result instanceof Promise&&await result}catch(e){e.message.includes("CriticalCmdError")&&(this.criticalCmdUuid=e.object.data.instance_variables["@uuid"],this.criticalCmdString=e.object.data.instance_variables["@cmd_string"],this.criticalCmdUser=e.object.data.instance_variables["@username"],this.displayCriticalCmd=!0)}this.displaySendHazardous=!1},cancelHazardousCmd(){this.displaySendHazardous=!1},runScript(e,t=!0,l={}){let n=[];for(const a in l)n.push({key:a,value:l[a],readonly:!1});Ik.post(`/script-api/scripts/${e}/run`,{data:{environment:n}}).then(a=>{t&&window.open(`/tools/scriptrunner/${a.data}`,"_blank")})}}},_hoisted_1={class:"mx-1"};function _sfc_render(e,t,l,n,a,r){const c=resolveComponent("v-btn"),m=resolveComponent("v-card-title"),u=resolveComponent("v-row"),C=resolveComponent("v-spacer"),p=resolveComponent("v-card-text"),h=resolveComponent("v-card"),v=resolveComponent("v-dialog"),_=resolveComponent("critical-cmd-dialog");return openBlock(),createElementBlock("div",null,[createVNode(c,{class:"ma-1",color:"primary",style:normalizeStyle(e.computedStyle),onClick:r.onClick},{default:withCtx(()=>[createTextVNode(toDisplayString(r.buttonText),1)]),_:1},8,["style","onClick"]),createVNode(v,{modelValue:a.displaySendHazardous,"onUpdate:modelValue":t[0]||(t[0]=d=>a.displaySendHazardous=d),"max-width":"300"},{default:withCtx(()=>[createVNode(h,null,{default:withCtx(()=>[createVNode(m,null,{default:withCtx(()=>t[2]||(t[2]=[createTextVNode("Hazardous")])),_:1}),createVNode(p,null,{default:withCtx(()=>[createElementVNode("div",_hoisted_1,[createVNode(u,{class:"my-2"},{default:withCtx(()=>t[3]||(t[3]=[createElementVNode("span",null," Warning: Command is Hazardous. Send? ",-1)])),_:1}),createVNode(u,null,{default:withCtx(()=>[createVNode(C),createVNode(c,{onClick:r.cancelHazardousCmd,variant:"outlined"},{default:withCtx(()=>t[4]||(t[4]=[createTextVNode(" Cancel ")])),_:1},8,["onClick"]),createVNode(c,{onClick:r.sendHazardousCmd,class:"bg-primary mx-1"},{default:withCtx(()=>t[5]||(t[5]=[createTextVNode(" Send ")])),_:1},8,["onClick"])]),_:1})])]),_:1})]),_:1})]),_:1},8,["modelValue"]),createVNode(_,{uuid:a.criticalCmdUuid,cmdString:a.criticalCmdString,cmdUser:a.criticalCmdUser,modelValue:a.displayCriticalCmd,"onUpdate:modelValue":t[1]||(t[1]=d=>a.displayCriticalCmd=d)},null,8,["uuid","cmdString","cmdUser","modelValue"])])}const ButtonWidget=exports("default",s(_sfc_main,[["render",_sfc_render]]))}}});
|
@@ -0,0 +1 @@
|
|
1
|
+
System.register(["./Layout-D4YBjuWs-583536aa12d8f093d8e3.js","vue","./main-d619649b01078bd926a2.js","./Widget-C7ms_xDE-3bcea1febf251efccd7e.js","vue-router","single-spa","vuex","vuetify"],function(p,f){"use strict";var i,n,s,a,l,c,u,m,o;return{setters:[e=>{i=e.r},e=>{n=e.openBlock,s=e.createElementBlock,a=e.Fragment,l=e.renderList,c=e.createBlock,u=e.resolveDynamicComponent,m=e.mergeProps},e=>{o=e.s},null,null,null,null,null],execute:function(){const e={mixins:[i],computed:{width(){return this.parameters[0]+"px"},height(){return this.parameters[1]+"px"}}},h=["width","height"];function d(r,k,y,B,x,g){return n(),s("svg",{id:"canvas",width:g.width,height:g.height},[(n(!0),s(a,null,l(r.widgets,(t,v)=>(n(),c(u(t.type),m({ref_for:!0},r.listeners,{key:v,target:t.target,parameters:t.parameters,settings:t.settings,"screen-values":r.screenValues,"screen-time-zone":r.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))],8,h)}const w=p("default",o(e,[["render",d],["__scopeId","data-v-47bdfc3c"]]))}}});
|
@@ -0,0 +1 @@
|
|
1
|
+
System.register(["./Widget-C7ms_xDE-3bcea1febf251efccd7e.js","vue","./main-d619649b01078bd926a2.js","vue-router","single-spa","vuex","vuetify"],function(c,a){"use strict";var t,l,n,s;return{setters:[e=>{t=e.o},e=>{l=e.openBlock,n=e.createElementBlock},e=>{s=e.s},null,null,null,null],execute:function(){const e={mixins:[t]},u=["cx","cy","r","fill"];function i(r,m,f,p,x,v){return l(),n("circle",{cx:r.parameters[0],cy:r.parameters[1],r:r.parameters[3],fill:r.parameters[2]},null,8,u)}const o=c("default",s(e,[["render",i]]))}}});
|
@@ -1 +1 @@
|
|
1
|
-
System.register(["./Widget-
|
1
|
+
System.register(["./Widget-C7ms_xDE-3bcea1febf251efccd7e.js","./ImageLoader-y6fAZe9P-be2fdea8237d46c95a90.js","vue","./main-d619649b01078bd926a2.js","vue-router","single-spa","vuex","vuetify"],function(o,d){"use strict";var s,i,n,a,l,c,h;return{setters:[e=>{s=e.o},e=>{i=e.s},e=>{n=e.openBlock,a=e.createElementBlock,l=e.normalizeStyle,c=e.createCommentVNode},e=>{h=e.s},null,null,null,null],execute:function(){const e={mixins:[s,i],data:function(){return{imageUrl:null,screenTarget:null,screenName:null}},computed:{width:function(){return this.parameters[3]?`${this.parameters[3]}px`:"100%"},height:function(){return this.parameters[4]?`${this.parameters[4]}px`:"100%"},pointerStyle(){return this.screenTarget&&this.screenName?{cursor:"pointer"}:{cursor:"default"}}},created:function(){this.appliedSettings.forEach(t=>{t[0]==="SCREEN"&&(this.screenTarget=t[1],this.screenName=t[2])}),this.parameters[0].startsWith("http")?this.imageUrl=this.parameters[0]:this.getPresignedUrl(this.parameters[0]).then(t=>{this.imageUrl=t})},methods:{clickHandler(){this.screenTarget&&this.screenName&&this.$emit("open",this.screenTarget,this.screenName)}}},u=["href","x","y","width","height"];function g(t,m,y,k,x,r){return t.imageUrl?(n(),a("image",{key:0,href:t.imageUrl,x:t.parameters[1],y:t.parameters[2],width:r.width,height:r.height,style:l(r.pointerStyle),onClick:m[0]||(m[0]=(...p)=>r.clickHandler&&r.clickHandler(...p))},null,12,u)):c("",!0)}const f=o("default",h(e,[["render",g]]))}}});
|
@@ -0,0 +1 @@
|
|
1
|
+
System.register(["./Widget-C7ms_xDE-3bcea1febf251efccd7e.js","./ImageLoader-y6fAZe9P-be2fdea8237d46c95a90.js","vue","./main-d619649b01078bd926a2.js","vue-router","single-spa","vuex","vuetify"],function(v,S){"use strict";var m,d,l,n,g,o,h,u,c,f,p;return{setters:[t=>{m=t.o},t=>{d=t.s},t=>{l=t.openBlock,n=t.createElementBlock,g=t.Fragment,o=t.renderList,h=t.withDirectives,u=t.normalizeStyle,c=t.vShow,f=t.createCommentVNode},t=>{p=t.s},null,null,null,null],execute:function(){const t={mixins:[m,d],data:function(){return{images:[],defaultImage:null,screenTarget:null,screenName:null}},computed:{selectedValue:function(){return this.screenValues[this.valueId]?this.screenValues[this.valueId][0]:null},showDefault:function(){return!this.images.some(r=>r.value==this.selectedValue)},pointerStyle(){return this.screenTarget&&this.screenName?{cursor:"pointer"}:{cursor:"default"}}},created:function(){this.appliedSettings.forEach(e=>{e[0]==="SCREEN"&&(this.screenTarget=e[1],this.screenName=e[2])}),this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__${this.parameters[3]||"RAW"}`,this.$emit("addItem",this.valueId);const r=this.appliedSettings.filter(e=>e[0]==="IMAGE").map(async e=>{let i=e[2];return i.startsWith("http")||(i=await this.getPresignedUrl(i)),{url:i,value:e[1],x:e[3],y:e[4],width:e[5],height:e[6]}});if(Promise.all(r).then(e=>{this.images=e}),this.parameters[4]){const e={x:this.parameters[5],y:this.parameters[6],width:this.parameters[7]?`${this.parameters[7]}px`:"100%",height:this.parameters[8]?`${this.parameters[8]}px`:"100%"};let i=this.parameters[4];i.startsWith("http")?this.defaultImage={...e,url:i}:this.getPresignedUrl(i).then(y=>{this.defaultImage={...e,url:y}})}},unmounted:function(){this.$emit("deleteItem",this.valueId)},methods:{clickHandler(){this.screenTarget&&this.screenName&&this.$emit("open",this.screenTarget,this.screenName)}}},I=["href","x","y","width","height"],w=["href","x","y","width","height"];function k(r,e,i,y,N,a){return l(),n("g",null,[(l(!0),n(g,null,o(r.images,s=>h((l(),n("image",{key:s.value,href:s.url,x:s.x,y:s.y,width:s.width,height:s.height,style:u(a.pointerStyle),onClick:e[0]||(e[0]=(...x)=>a.clickHandler&&a.clickHandler(...x))},null,12,I)),[[c,s.value==a.selectedValue]])),128)),r.defaultImage?h((l(),n("image",{key:0,href:r.defaultImage.url,x:r.defaultImage.x,y:r.defaultImage.y,width:r.defaultImage.width,height:r.defaultImage.height,style:u(a.pointerStyle),onClick:e[1]||(e[1]=(...s)=>a.clickHandler&&a.clickHandler(...s))},null,12,w)),[[c,a.showDefault]]):f("",!0)])}const $=v("default",p(t,[["render",k]]))}}});
|
@@ -1 +1 @@
|
|
1
|
-
System.register(["./Widget-
|
1
|
+
System.register(["./Widget-C7ms_xDE-3bcea1febf251efccd7e.js","vue","./main-d619649b01078bd926a2.js","vue-router","single-spa","vuex","vuetify"],function(o,m){"use strict";var r,l,n,s,i;return{setters:[e=>{r=e.o},e=>{l=e.openBlock,n=e.createElementBlock,s=e.toDisplayString},e=>{i=e.s},null,null,null,null],execute:function(){const e={mixins:[r],computed:{fillColor(){return this.parameters[3]?this.parameters[3]:"black"}}},a=["x","y","fill"];function u(t,f,x,y,g,c){return l(),n("text",{x:t.parameters[0],y:t.parameters[1],fill:c.fillColor},s(t.parameters[2]),9,a)}const p=o("default",i(e,[["render",u]]))}}});
|
@@ -1 +1 @@
|
|
1
|
-
System.register(["./Widget-
|
1
|
+
System.register(["./Widget-C7ms_xDE-3bcea1febf251efccd7e.js","vue","./main-d619649b01078bd926a2.js","vue-router","single-spa","vuex","vuetify"],function(u,p){"use strict";var s,a,i,l,n;return{setters:[e=>{s=e.o},e=>{a=e.openBlock,i=e.createElementBlock,l=e.toDisplayString},e=>{n=e.s},null,null,null,null],execute:function(){const e={mixins:[s],data(){return{valueId:null}},computed:{_value(){return this.screenValues[this.valueId][0]},fontSize(){return this.parameters[5]?this.parameters[5]+"px":"14px"},fillColor(){return this.parameters[6]?this.parameters[6]:"black"}},created(){let t="CONVERTED";this.parameters[7]&&(t=this.parameters[7]),this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__${t}`,this.$emit("addItem",this.valueId)},unmounted(){this.$emit("deleteItem",this.valueId)}},o=["x","y","font-size","fill"];function m(t,h,d,f,v,r){return a(),i("text",{x:t.parameters[3],y:t.parameters[4],"font-size":r.fontSize,fill:r.fillColor},l(r._value),9,o)}const c=u("default",n(e,[["render",m]]))}}});
|
@@ -0,0 +1 @@
|
|
1
|
+
System.register(["./Widget-C7ms_xDE-3bcea1febf251efccd7e.js","vue","./main-d619649b01078bd926a2.js","vue-router","single-spa","vuex","vuetify"],function(i,p){"use strict";var s,l,n,a,c;return{setters:[e=>{s=e.o},e=>{l=e.openBlock,n=e.createElementBlock,a=e.normalizeStyle},e=>{c=e.s},null,null,null,null],execute:function(){const e={mixins:[s],computed:{calcStyle(){let t="black";this.parameters[4]&&(t=this.parameters[4]);let r=1;return this.parameters[5]&&(r=this.parameters[5]),"stroke:"+t+";stroke-width:"+r}}},u=["x1","y1","x2","y2"];function o(t,r,x,k,f,m){return l(),n("line",{x1:t.parameters[0],y1:t.parameters[1],x2:t.parameters[2],y2:t.parameters[3],style:a(m.calcStyle)},null,12,u)}const y=i("default",c(e,[["render",o]]))}}});
|
@@ -0,0 +1 @@
|
|
1
|
+
System.register(["./Widget-C7ms_xDE-3bcea1febf251efccd7e.js","vue","./main-d619649b01078bd926a2.js","vue-router","single-spa","vuex","vuetify"],function(u,o){"use strict";var a,r,l,i,n;return{setters:[t=>{a=t.o},t=>{r=t.openBlock,l=t.createElementBlock,i=t.normalizeStyle},t=>{n=t.s},null,null,null,null],execute:function(){const t={mixins:[a],data(){return{valueId:0,valueMap:{}}},computed:{calcStyle(){let e="black";this.screenValues[this.valueId]&&(e=this.valueMap[this.screenValues[this.valueId][0]]);let s=1;return this.parameters[7]&&(s=this.parameters[7]),"stroke:"+e+";stroke-width:"+s}},created(){this.appliedSettings.forEach(s=>{s[0]==="VALUE_EQ"&&(this.valueMap[s[1]]=s[2])});let e="CONVERTED";this.parameters[8]&&(e=this.parameters[8]),this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__${e}`,this.$emit("addItem",this.valueId)},unmounted(){this.$emit("deleteItem",this.valueId)}},m=["x1","y1","x2","y2"];function c(e,s,d,v,y,h){return r(),l("line",{x1:e.parameters[3],y1:e.parameters[4],x2:e.parameters[5],y2:e.parameters[6],style:i(h.calcStyle)},null,12,m)}const p=u("default",n(t,[["render",c]]))}}});
|
@@ -0,0 +1 @@
|
|
1
|
+
System.register(["./Widget-C7ms_xDE-3bcea1febf251efccd7e.js","vue","./main-d619649b01078bd926a2.js","vue-router","single-spa","vuex","vuetify"],function(c,h){"use strict";var t,s,a,n,o,r;return{setters:[e=>{t=e.o},e=>{s=e.resolveComponent,a=e.openBlock,n=e.createBlock,o=e.normalizeStyle},e=>{r=e.s},null,null,null,null],execute:function(){const e={mixins:[t],data(){return{items:[],label:"Checkbox",value:!1}},created(){this.label=this.parameters[0],this.parameters[1]&&(this.value=!0)},methods:{checked(){return this.value}}};function i(m,u,k,y,l,b){const d=s("v-checkbox");return a(),n(d,{"hide-details":"",density:"compact",label:l.label,modelValue:l.value,"onUpdate:modelValue":u[0]||(u[0]=v=>l.value=v),style:o(m.computedStyle)},null,8,["label","modelValue","style"])}const p=c("default",r(e,[["render",i]]))}}});
|
@@ -1 +1 @@
|
|
1
|
-
System.register(["./Widget-
|
1
|
+
System.register(["./Widget-C7ms_xDE-3bcea1febf251efccd7e.js","vue","./main-d619649b01078bd926a2.js","vue-router","single-spa","vuex","vuetify"],function(i,p){"use strict";var l,s,n,o,r,u;return{setters:[e=>{l=e.o},e=>{s=e.resolveComponent,n=e.openBlock,o=e.createBlock,r=e.normalizeStyle},e=>{u=e.s},null,null,null,null],execute:function(){const e={mixins:[l],data(){return{items:[],value:null}},created(){this.value=this.parameters[0],this.items=this.parameters},methods:{text(){return this.value}}};function c(m,a,h,f,t,x){const v=s("v-select");return n(),o(v,{"hide-details":"",density:"compact",variant:"outlined",items:t.items,modelValue:t.value,"onUpdate:modelValue":a[0]||(a[0]=d=>t.value=d),style:r(m.computedStyle)},null,8,["items","modelValue","style"])}const y=i("default",u(e,[["render",c]]))}}});
|
data/tools/cmdsender/{CommandSender-91f6b4e2ba1f0f0e74f3.js → CommandSender-1ae9e7b06ab4a44e3988.js}
RENAMED
@@ -1,4 +1,4 @@
|
|
1
|
-
System.register(["./main-
|
1
|
+
System.register(["./main-d619649b01078bd926a2.js","vue","./DetailsDialog-DiVcC3Fg-b8c5672df1c2b2428051.js","./CriticalCmdDialog-CAcGOWok-3a7c5d277fa3e0c3343f.js","vue-router","single-spa","vuex","vuetify"],function(exports,module){"use strict";var s,_export_sfc,et$1,$e$1,resolveComponent,openBlock,createBlock,Teleport,createVNode,withCtx,createElementVNode,toDisplayString,createElementBlock,Fragment,renderList,mergeProps,createTextVNode,createSlots,normalizeStyle,createCommentVNode,normalizeClass,withModifiers,P$1,N;return{setters:[x=>{s=x.s,_export_sfc=x._,et$1=x.e,$e$1=x.$},x=>{resolveComponent=x.resolveComponent,openBlock=x.openBlock,createBlock=x.createBlock,Teleport=x.Teleport,createVNode=x.createVNode,withCtx=x.withCtx,createElementVNode=x.createElementVNode,toDisplayString=x.toDisplayString,createElementBlock=x.createElementBlock,Fragment=x.Fragment,renderList=x.renderList,mergeProps=x.mergeProps,createTextVNode=x.createTextVNode,createSlots=x.createSlots,normalizeStyle=x.normalizeStyle,createCommentVNode=x.createCommentVNode,normalizeClass=x.normalizeClass,withModifiers=x.withModifiers},x=>{P$1=x.P},x=>{N=x.N},null,null,null,null],execute:function(){var __vite_style__=document.createElement("style");__vite_style__.textContent=`.container[data-v-b19a55d5] .v-select__selections{width:auto}.v-overflow-btn[data-v-b19a55d5]{margin-top:0}.container[data-v-b19a55d5]{padding:0}.hazardous[data-v-b19a55d5] .v-select__selection-text{color:#ffdc00!important}.editor[data-v-dda0eae4]{margin-left:30px;height:50px;width:95%;position:relative;font-size:16px}
|
2
2
|
/*$vite$:1*/`,document.head.appendChild(__vite_style__);const I$1={props:{menus:{type:Array,default:function(){return[]}},title:{type:String,default:""}},methods:{formatDT:function(x){return x.replaceAll(" ","-").toLowerCase()},subMenuClick(x){x.command(x),this.$refs.topmenu[0].isActive=!1}},mounted(){document.title=this.title}},P={class:"app-title mr-2"};function q$1(x,b,p,m,Gn,Q){const R=resolveComponent("v-col"),M=resolveComponent("v-row"),l=resolveComponent("v-icon"),u=resolveComponent("v-btn"),o=resolveComponent("v-divider"),i=resolveComponent("v-list-item-title"),r=resolveComponent("v-list-item"),t=resolveComponent("v-list"),e=resolveComponent("v-menu"),n=resolveComponent("v-radio"),a=resolveComponent("v-list-item-action"),d=resolveComponent("v-radio-group"),f=resolveComponent("v-checkbox");return openBlock(),createBlock(Teleport,{to:"#openc3-menu"},[createVNode(M,{"no-gutters":""},{default:withCtx(()=>[createVNode(R,{"align-self":"end"},{default:withCtx(()=>[createElementVNode("span",P,toDisplayString(p.title),1)]),_:1})]),_:1}),createVNode(M,{dense:"",class:"flex-nowrap"},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(p.menus,(xe,F)=>(openBlock(),createBlock(e,{ref_for:!0,ref:"topmenu",key:F},{activator:withCtx(({props:_})=>[createVNode(u,mergeProps({ref_for:!0},_,{variant:"outlined",class:"mx-1 menu-button",text:xe.label,"data-test":Q.formatDT(`${p.title} ${xe.label}`)}),{append:withCtx(()=>[createVNode(l,{class:"menu-button-icon"},{default:withCtx(()=>b[0]||(b[0]=[createTextVNode(" mdi-menu-down ")])),_:1})]),_:2},1040,["text","data-test"])]),default:withCtx(()=>[createVNode(t,null,{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(xe.items,(_,S)=>(openBlock(),createElementBlock(Fragment,null,[_.divider?(openBlock(),createBlock(o,{key:S+"-divider"})):_.subMenu&&_.subMenu.length>0?(openBlock(),createElementBlock("div",{key:S+"-submenu"},[(openBlock(),createBlock(e,{"open-on-hover":"",location:"right",key:S},{activator:withCtx(({props:Ae})=>[(openBlock(),createBlock(r,mergeProps({ref_for:!0},Ae,{disabled:_.disabled,key:S}),createSlots({append:withCtx(()=>[createVNode(l,null,{default:withCtx(()=>b[1]||(b[1]=[createTextVNode(" mdi-chevron-right ")])),_:1})]),default:withCtx(()=>[!_.radio&&!_.checkbox?(openBlock(),createBlock(i,{key:0,style:normalizeStyle("cursor: pointer;"+(_.disabled?"opacity: 0.2":""))},{default:withCtx(()=>[createTextVNode(toDisplayString(_.label),1)]),_:2},1032,["style"])):createCommentVNode("",!0)]),_:2},[_.icon?{name:"prepend",fn:withCtx(()=>[createVNode(l,{disabled:_.disabled},{default:withCtx(()=>[createTextVNode(toDisplayString(_.icon),1)]),_:2},1032,["disabled"])]),key:"0"}:void 0]),1040,["disabled"]))]),default:withCtx(()=>[createVNode(t,null,{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(_.subMenu,(Ae,Vn)=>(openBlock(),createBlock(r,{key:Vn,"prepend-icon":Ae.icon,onClick:Me=>Q.subMenuClick(Ae)},{default:withCtx(()=>[createVNode(i,null,{default:withCtx(()=>[createTextVNode(toDisplayString(Ae.label),1)]),_:2},1024)]),_:2},1032,["prepend-icon","onClick"]))),128))]),_:2},1024)]),_:2},1024))])):_.radioGroup?(openBlock(),createBlock(d,{"model-value":_.value,"onUpdate:modelValue":_.command,key:S+"-radio-group","hide-details":"",density:"compact",class:"ma-0 pa-0"},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(_.choices,(Ae,Vn)=>(openBlock(),createBlock(r,{key:Vn+"-choice"},{default:withCtx(()=>[createVNode(a,{class:"list-action"},{default:withCtx(()=>[createVNode(n,{color:"secondary",label:Ae.label,value:Ae.value,density:"compact","hide-details":""},null,8,["label","value"])]),_:2},1024)]),_:2},1024))),128))]),_:2},1032,["model-value","onUpdate:modelValue"])):(openBlock(),createBlock(r,{onClick:Ae=>_.command(_),disabled:_.disabled,"data-test":Q.formatDT(`${p.title} ${xe.label} ${_.label}`),key:S+"-list"},createSlots({default:withCtx(()=>[_.checkbox?(openBlock(),createBlock(a,{key:0,class:"list-action"},{default:withCtx(()=>[createVNode(f,{modelValue:_.checked,"onUpdate:modelValue":Ae=>_.checked=Ae,label:_.label,color:"secondary",density:"compact","hide-details":""},null,8,["modelValue","onUpdate:modelValue","label"])]),_:2},1024)):createCommentVNode("",!0),!_.radio&&!_.checkbox?(openBlock(),createBlock(i,{key:1,style:normalizeStyle("cursor: pointer;"+(_.disabled?"opacity: 0.2":""))},{default:withCtx(()=>[createTextVNode(toDisplayString(_.label),1)]),_:2},1032,["style"])):createCommentVNode("",!0)]),_:2},[_.icon?{name:"prepend",fn:withCtx(()=>[createVNode(l,{icon:_.icon,disabled:_.disabled},null,8,["icon","disabled"])]),key:"0"}:void 0]),1032,["onClick","disabled","data-test"]))],64))),256))]),_:2},1024)]),_:2},1024))),128))]),_:1})])}const W=s(I$1,[["render",q$1],["__scopeId","data-v-4d454b93"]]);var sprintf$1={},hasRequiredSprintf;function requireSprintf(){return hasRequiredSprintf||(hasRequiredSprintf=1,function(x){(function(){var b={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 p(M){return Gn(R(M),arguments)}function m(M,l){return p.apply(null,[M].concat(l||[]))}function Gn(M,l){var u=1,o=M.length,i,r="",t,e,n,a,d,f,xe,F;for(t=0;t<o;t++)if(typeof M[t]=="string")r+=M[t];else if(typeof M[t]=="object"){if(n=M[t],n.keys)for(i=l[u],e=0;e<n.keys.length;e++){if(i==null)throw new Error(p('[sprintf] Cannot access property "%s" of undefined value "%s"',n.keys[e],n.keys[e-1]));i=i[n.keys[e]]}else n.param_no?i=l[n.param_no]:i=l[u++];if(b.not_type.test(n.type)&&b.not_primitive.test(n.type)&&i instanceof Function&&(i=i()),b.numeric_arg.test(n.type)&&typeof i!="number"&&isNaN(i))throw new TypeError(p("[sprintf] expecting number but found %T",i));switch(b.number.test(n.type)&&(xe=i>=0),n.type){case"b":i=parseInt(i,10).toString(2);break;case"c":i=String.fromCharCode(parseInt(i,10));break;case"d":case"i":i=parseInt(i,10);break;case"j":i=JSON.stringify(i,null,n.width?parseInt(n.width):0);break;case"e":i=n.precision?parseFloat(i).toExponential(n.precision):parseFloat(i).toExponential();break;case"f":i=n.precision?parseFloat(i).toFixed(n.precision):parseFloat(i);break;case"g":i=n.precision?String(Number(i.toPrecision(n.precision))):parseFloat(i);break;case"o":i=(parseInt(i,10)>>>0).toString(8);break;case"s":i=String(i),i=n.precision?i.substring(0,n.precision):i;break;case"t":i=String(!!i),i=n.precision?i.substring(0,n.precision):i;break;case"T":i=Object.prototype.toString.call(i).slice(8,-1).toLowerCase(),i=n.precision?i.substring(0,n.precision):i;break;case"u":i=parseInt(i,10)>>>0;break;case"v":i=i.valueOf(),i=n.precision?i.substring(0,n.precision):i;break;case"x":i=(parseInt(i,10)>>>0).toString(16);break;case"X":i=(parseInt(i,10)>>>0).toString(16).toUpperCase();break}b.json.test(n.type)?r+=i:(b.number.test(n.type)&&(!xe||n.sign)?(F=xe?"+":"-",i=i.toString().replace(b.sign,"")):F="",d=n.pad_char?n.pad_char==="0"?"0":n.pad_char.charAt(1):" ",f=n.width-(F+i).length,a=n.width&&f>0?d.repeat(f):"",r+=n.align?F+i+a:d==="0"?F+a+i:a+F+i)}return r}var Q=Object.create(null);function R(M){if(Q[M])return Q[M];for(var l=M,u,o=[],i=0;l;){if((u=b.text.exec(l))!==null)o.push(u[0]);else if((u=b.modulo.exec(l))!==null)o.push("%");else if((u=b.placeholder.exec(l))!==null){if(u[2]){i|=1;var r=[],t=u[2],e=[];if((e=b.key.exec(t))!==null)for(r.push(e[1]);(t=t.substring(e[0].length))!=="";)if((e=b.key_access.exec(t))!==null)r.push(e[1]);else if((e=b.index_access.exec(t))!==null)r.push(e[1]);else throw new SyntaxError("[sprintf] failed to parse named argument key");else throw new SyntaxError("[sprintf] failed to parse named argument key");u[2]=r}else i|=2;if(i===3)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");o.push({placeholder:u[0],param_no:u[1],keys:u[2],sign:u[3],pad_char:u[4],align:u[5],width:u[6],precision:u[7],type:u[8]})}else throw new SyntaxError("[sprintf] unexpected placeholder");l=l.substring(u[0].length)}return Q[M]=o}x.sprintf=p,x.vsprintf=m,typeof window<"u"&&(window.sprintf=p,window.vsprintf=m)})()}(sprintf$1)),sprintf$1}requireSprintf();var ace$1={exports:{}},hasRequiredAce;function requireAce(){return hasRequiredAce||(hasRequiredAce=1,function(x,b){(function(){var p="ace",m=function(){return this}();!m&&typeof window<"u"&&(m=window);var Gn=function(o,i,r){if(typeof o!="string"){Gn.original?Gn.original.apply(this,arguments):(console.error("dropping module because define wasn't a string."),console.trace());return}arguments.length==2&&(r=i),Gn.modules[o]||(Gn.payloads[o]=r,Gn.modules[o]=null)};Gn.modules={},Gn.payloads={};var Q=function(o,i,r){if(typeof i=="string"){var t=l(o,i);if(t!=null)return r&&r(),t}else if(Object.prototype.toString.call(i)==="[object Array]"){for(var e=[],n=0,a=i.length;n<a;++n){var d=l(o,i[n]);if(d==null&&R.original)return;e.push(d)}return r&&r.apply(null,e)||!0}},R=function(o,i){var r=Q("",o,i);return r==null&&R.original?R.original.apply(this,arguments):r},M=function(o,i){if(i.indexOf("!")!==-1){var r=i.split("!");return M(o,r[0])+"!"+M(o,r[1])}if(i.charAt(0)=="."){var t=o.split("/").slice(0,-1).join("/");for(i=t+"/"+i;i.indexOf(".")!==-1&&e!=i;){var e=i;i=i.replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}}return i},l=function(o,i){i=M(o,i);var r=Gn.modules[i];if(!r){if(r=Gn.payloads[i],typeof r=="function"){var t={},e={id:i,uri:"",exports:t,packaged:!0},n=function(d,f){return Q(i,d,f)},a=r(n,t,e);t=a||e.exports,Gn.modules[i]=t,delete Gn.payloads[i]}r=Gn.modules[i]=t||r}return r};function u(o){var i=m;m[o]||(m[o]={}),i=m[o],(!i.define||!i.define.packaged)&&(Gn.original=i.define,i.define=Gn,i.define.packaged=!0),(!i.require||!i.require.packaged)&&(R.original=i.require,i.require=R,i.require.packaged=!0)}u(p)})(),ace.define("ace/lib/es6-shim",["require","exports","module"],function(p,m,Gn){function Q(R,M,l){Object.defineProperty(R,M,{value:l,enumerable:!1,writable:!0,configurable:!0})}String.prototype.startsWith||Q(String.prototype,"startsWith",function(R,M){return M=M||0,this.lastIndexOf(R,M)===M}),String.prototype.endsWith||Q(String.prototype,"endsWith",function(R,M){var l=this;(M===void 0||M>l.length)&&(M=l.length),M-=R.length;var u=l.indexOf(R,M);return u!==-1&&u===M}),String.prototype.repeat||Q(String.prototype,"repeat",function(R){for(var M="",l=this;R>0;)R&1&&(M+=l),(R>>=1)&&(l+=l);return M}),String.prototype.includes||Q(String.prototype,"includes",function(R,M){return this.indexOf(R,M)!=-1}),Object.assign||(Object.assign=function(R){if(R==null)throw new TypeError("Cannot convert undefined or null to object");for(var M=Object(R),l=1;l<arguments.length;l++){var u=arguments[l];u!=null&&Object.keys(u).forEach(function(o){M[o]=u[o]})}return M}),Object.values||(Object.values=function(R){return Object.keys(R).map(function(M){return R[M]})}),Array.prototype.find||Q(Array.prototype,"find",function(R){for(var M=this.length,l=arguments[1],u=0;u<M;u++){var o=this[u];if(R.call(l,o,u,this))return o}}),Array.prototype.findIndex||Q(Array.prototype,"findIndex",function(R){for(var M=this.length,l=arguments[1],u=0;u<M;u++){var o=this[u];if(R.call(l,o,u,this))return u}}),Array.prototype.includes||Q(Array.prototype,"includes",function(R,M){return this.indexOf(R,M)!=-1}),Array.prototype.fill||Q(Array.prototype,"fill",function(R){for(var M=this,l=M.length>>>0,u=arguments[1],o=u>>0,i=o<0?Math.max(l+o,0):Math.min(o,l),r=arguments[2],t=r===void 0?l:r>>0,e=t<0?Math.max(l+t,0):Math.min(t,l);i<e;)M[i]=R,i++;return M}),Array.of||Q(Array,"of",function(){return Array.prototype.slice.call(arguments)})}),ace.define("ace/lib/fixoldbrowsers",["require","exports","module","ace/lib/es6-shim"],function(p,m,Gn){p("./es6-shim")}),ace.define("ace/lib/deep_copy",["require","exports","module"],function(p,m,Gn){m.deepCopy=function Q(R){if(typeof R!="object"||!R)return R;var M;if(Array.isArray(R)){M=[];for(var l=0;l<R.length;l++)M[l]=Q(R[l]);return M}if(Object.prototype.toString.call(R)!=="[object Object]")return R;M={};for(var l in R)M[l]=Q(R[l]);return M}}),ace.define("ace/lib/lang",["require","exports","module","ace/lib/deep_copy"],function(p,m,Gn){m.last=function(M){return M[M.length-1]},m.stringReverse=function(M){return M.split("").reverse().join("")},m.stringRepeat=function(M,l){for(var u="";l>0;)l&1&&(u+=M),(l>>=1)&&(M+=M);return u};var Q=/^\s\s*/,R=/\s\s*$/;m.stringTrimLeft=function(M){return M.replace(Q,"")},m.stringTrimRight=function(M){return M.replace(R,"")},m.copyObject=function(M){var l={};for(var u in M)l[u]=M[u];return l},m.copyArray=function(M){for(var l=[],u=0,o=M.length;u<o;u++)M[u]&&typeof M[u]=="object"?l[u]=this.copyObject(M[u]):l[u]=M[u];return l},m.deepCopy=p("./deep_copy").deepCopy,m.arrayToMap=function(M){for(var l={},u=0;u<M.length;u++)l[M[u]]=1;return l},m.createMap=function(M){var l=Object.create(null);for(var u in M)l[u]=M[u];return l},m.arrayRemove=function(M,l){for(var u=0;u<=M.length;u++)l===M[u]&&M.splice(u,1)},m.escapeRegExp=function(M){return M.replace(/([.*+?^${}()|[\]\/\\])/g,"\\$1")},m.escapeHTML=function(M){return(""+M).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<")},m.getMatchOffsets=function(M,l){var u=[];return M.replace(l,function(o){u.push({offset:arguments[arguments.length-2],length:o.length})}),u},m.deferredCall=function(M){var l=null,u=function(){l=null,M()},o=function(i){return o.cancel(),l=setTimeout(u,i||0),o};return o.schedule=o,o.call=function(){return this.cancel(),M(),o},o.cancel=function(){return clearTimeout(l),l=null,o},o.isPending=function(){return l},o},m.delayedCall=function(M,l){var u=null,o=function(){u=null,M()},i=function(r){u==null&&(u=setTimeout(o,r||l))};return i.delay=function(r){u&&clearTimeout(u),u=setTimeout(o,r||l)},i.schedule=i,i.call=function(){this.cancel(),M()},i.cancel=function(){u&&clearTimeout(u),u=null},i.isPending=function(){return u},i},m.supportsLookbehind=function(){try{new RegExp("(?<=.)")}catch{return!1}return!0},m.skipEmptyMatch=function(M,l,u){return u&&M.codePointAt(l)>65535?2:1}}),ace.define("ace/lib/useragent",["require","exports","module"],function(p,m,Gn){m.OS={LINUX:"LINUX",MAC:"MAC",WINDOWS:"WINDOWS"},m.getOS=function(){return m.isMac?m.OS.MAC:m.isLinux?m.OS.LINUX:m.OS.WINDOWS};var Q=typeof navigator=="object"?navigator:{},R=(/mac|win|linux/i.exec(Q.platform)||["other"])[0].toLowerCase(),M=Q.userAgent||"",l=Q.appName||"";m.isWin=R=="win",m.isMac=R=="mac",m.isLinux=R=="linux",m.isIE=l=="Microsoft Internet Explorer"||l.indexOf("MSAppHost")>=0?parseFloat((M.match(/(?:MSIE |Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]):parseFloat((M.match(/(?:Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]),m.isOldIE=m.isIE&&m.isIE<9,m.isGecko=m.isMozilla=M.match(/ Gecko\/\d+/),m.isOpera=typeof opera=="object"&&Object.prototype.toString.call(window.opera)=="[object Opera]",m.isWebKit=parseFloat(M.split("WebKit/")[1])||void 0,m.isChrome=parseFloat(M.split(" Chrome/")[1])||void 0,m.isSafari=parseFloat(M.split(" Safari/")[1])&&!m.isChrome||void 0,m.isEdge=parseFloat(M.split(" Edge/")[1])||void 0,m.isAIR=M.indexOf("AdobeAIR")>=0,m.isAndroid=M.indexOf("Android")>=0,m.isChromeOS=M.indexOf(" CrOS ")>=0,m.isIOS=/iPad|iPhone|iPod/.test(M)&&!window.MSStream,m.isIOS&&(m.isMac=!0),m.isMobile=m.isIOS||m.isAndroid}),ace.define("ace/lib/dom",["require","exports","module","ace/lib/useragent"],function(p,m,Gn){var Q=p("./useragent"),R="http://www.w3.org/1999/xhtml";m.buildDom=function r(t,e,n){if(typeof t=="string"&&t){var a=document.createTextNode(t);return e&&e.appendChild(a),a}if(!Array.isArray(t))return t&&t.appendChild&&e&&e.appendChild(t),t;if(typeof t[0]!="string"||!t[0]){for(var d=[],f=0;f<t.length;f++){var xe=r(t[f],e,n);xe&&d.push(xe)}return d}var F=document.createElement(t[0]),_=t[1],S=1;_&&typeof _=="object"&&!Array.isArray(_)&&(S=2);for(var f=S;f<t.length;f++)r(t[f],F,n);return S==2&&Object.keys(_).forEach(function(Ae){var Vn=_[Ae];Ae==="class"?F.className=Array.isArray(Vn)?Vn.join(" "):Vn:typeof Vn=="function"||Ae=="value"||Ae[0]=="$"?F[Ae]=Vn:Ae==="ref"?n&&(n[Vn]=F):Ae==="style"?typeof Vn=="string"&&(F.style.cssText=Vn):Vn!=null&&F.setAttribute(Ae,Vn)}),e&&e.appendChild(F),F},m.getDocumentHead=function(r){return r||(r=document),r.head||r.getElementsByTagName("head")[0]||r.documentElement},m.createElement=function(r,t){return document.createElementNS?document.createElementNS(t||R,r):document.createElement(r)},m.removeChildren=function(r){r.innerHTML=""},m.createTextNode=function(r,t){var e=t?t.ownerDocument:document;return e.createTextNode(r)},m.createFragment=function(r){var t=r?r.ownerDocument:document;return t.createDocumentFragment()},m.hasCssClass=function(r,t){var e=(r.className+"").split(/\s+/g);return e.indexOf(t)!==-1},m.addCssClass=function(r,t){m.hasCssClass(r,t)||(r.className+=" "+t)},m.removeCssClass=function(r,t){for(var e=r.className.split(/\s+/g);;){var n=e.indexOf(t);if(n==-1)break;e.splice(n,1)}r.className=e.join(" ")},m.toggleCssClass=function(r,t){for(var e=r.className.split(/\s+/g),n=!0;;){var a=e.indexOf(t);if(a==-1)break;n=!1,e.splice(a,1)}return n&&e.push(t),r.className=e.join(" "),n},m.setCssClass=function(r,t,e){e?m.addCssClass(r,t):m.removeCssClass(r,t)},m.hasCssString=function(r,t){var e=0,n;if(t=t||document,n=t.querySelectorAll("style")){for(;e<n.length;)if(n[e++].id===r)return!0}},m.removeElementById=function(r,t){t=t||document,t.getElementById(r)&&t.getElementById(r).remove()};var M,l=[];m.useStrictCSP=function(r){M=r,r==!1?u():l||(l=[])};function u(){var r=l;l=null,r&&r.forEach(function(t){o(t[0],t[1])})}function o(r,t,e){if(!(typeof document>"u")){if(l){if(e)u();else if(e===!1)return l.push([r,t])}if(!M){var n=e;!e||!e.getRootNode?n=document:(n=e.getRootNode(),(!n||n==e)&&(n=document));var a=n.ownerDocument||n;if(t&&m.hasCssString(t,n))return null;t&&(r+=`
|
3
3
|
/*# sourceURL=ace/css/`+t+" */");var d=m.createElement("style");d.appendChild(a.createTextNode(r)),t&&(d.id=t),n==a&&(n=m.getDocumentHead(a)),n.insertBefore(d,n.firstChild)}}}if(m.importCssString=o,m.importCssStylsheet=function(r,t){m.buildDom(["link",{rel:"stylesheet",href:r}],m.getDocumentHead(t))},m.scrollbarWidth=function(r){var t=m.createElement("ace_inner");t.style.width="100%",t.style.minWidth="0px",t.style.height="200px",t.style.display="block";var e=m.createElement("ace_outer"),n=e.style;n.position="absolute",n.left="-10000px",n.overflow="hidden",n.width="200px",n.minWidth="0px",n.height="150px",n.display="block",e.appendChild(t);var a=r&&r.documentElement||document&&document.documentElement;if(!a)return 0;a.appendChild(e);var d=t.offsetWidth;n.overflow="scroll";var f=t.offsetWidth;return d===f&&(f=e.clientWidth),a.removeChild(e),d-f},m.computedStyle=function(r,t){return window.getComputedStyle(r,"")||{}},m.setStyle=function(r,t,e){r[t]!==e&&(r[t]=e)},m.HAS_CSS_ANIMATION=!1,m.HAS_CSS_TRANSFORMS=!1,m.HI_DPI=Q.isWin?typeof window<"u"&&window.devicePixelRatio>=1.5:!0,Q.isChromeOS&&(m.HI_DPI=!1),typeof document<"u"){var i=document.createElement("div");m.HI_DPI&&i.style.transform!==void 0&&(m.HAS_CSS_TRANSFORMS=!0),!Q.isEdge&&typeof i.style.animationName<"u"&&(m.HAS_CSS_ANIMATION=!0),i=null}m.HAS_CSS_TRANSFORMS?m.translate=function(r,t,e){r.style.transform="translate("+Math.round(t)+"px, "+Math.round(e)+"px)"}:m.translate=function(r,t,e){r.style.top=Math.round(e)+"px",r.style.left=Math.round(t)+"px"}}),ace.define("ace/lib/net",["require","exports","module","ace/lib/dom"],function(p,m,Gn){/*
|
4
4
|
* based on code from:
|
@@ -1 +1 @@
|
|
1
|
-
System.register(["./main-
|
1
|
+
System.register(["./main-d619649b01078bd926a2.js","vue"],function(b,j){"use strict";var k,u,m,r,f,w,s,t,g,n,h,v,V;return{setters:[a=>{k=a.s,u=a.I,m=a.S},a=>{r=a.resolveComponent,f=a.openBlock,w=a.createBlock,s=a.withCtx,t=a.createVNode,g=a.createElementVNode,n=a.createTextVNode,h=a.toDisplayString,v=a.createCommentVNode,V=a.withModifiers}],execute:function(){const a={props:{uuid:String,cmdUser:String,cmdString:String,persistent:{type:Boolean,default:!1},modelValue:Boolean},data(){return{updater:null,username:null,password:null,canApprove:!1,error:!1,errorText:""}},computed:{show:{get(){return this.modelValue},set(o){this.$emit("update:modelValue",o)}},formValid:function(){return!!this.password&&!!this.username},disableButtons:function(){return!this.formValid&&!this.canApprove}},beforeUnmount(){clearInterval(this.updater),this.updater=null,this.canApprove=!1,this.username=null,this.password=null},watch:{modelValue:function(o,e){o?(u.get("/openc3-api/criticalcmd/canapprove/"+this.uuid).then(i=>{i.data.status==="ok"&&(this.canApprove=!0)}),this.updater=setInterval(()=>{this.uuid?u.get("/openc3-api/criticalcmd/status/"+this.uuid).then(i=>{i.data.status!=="WAITING"&&(this.$emit("status",i.data.status),this.show=!1)}):this.show=!1},1e3)):(clearInterval(this.updater),this.updater=null,this.canApprove=!1,this.username=null,this.password=null)}},methods:{async approve(){if(this.canApprove)await u.post("/openc3-api/criticalcmd/approve/"+this.uuid,{}).then(o=>{o.status==200&&(this.$emit("status","APPROVED"),this.show=!1,this.error=!1)});else{let o=await this.getKeycloakToken();m.post("/openc3-api/criticalcmd/approve/"+this.uuid,{},{headers:{Authorization:o,"Content-Type":"application/json"},params:{scope:window.openc3Scope},timeout:5e3}).then(e=>{this.$emit("status","APPROVED"),this.show=!1,this.error=!1}).catch(e=>{this.error=!0,e.response?this.errorText=e.response.data.message:this.errorText=e.message})}},async reject(){if(this.canApprove)await u.post("/openc3-api/criticalcmd/reject/"+this.uuid,{}).then(o=>{o.status==200&&(this.$emit("status","REJECTED"),this.show=!1,this.error=!1)});else{let o=await this.getKeycloakToken();(await m.post("/openc3-api/criticalcmd/reject/"+this.uuid,{},{headers:{Authorization:o,"Content-Type":"application/json"},params:{scope:window.openc3Scope},timeout:5e3})).status==200&&(this.$emit("status","REJECTED"),this.show=!1,this.error=!1)}},async getKeycloakToken(){return(await m.post(localStorage.keycloakUrl+"/realms/"+localStorage.keycloakRealm+"/protocol/openid-connect/token",{username:this.username,password:this.password,client_id:localStorage.keycloakClientId,grant_type:"password",scope:"openid"},{headers:{"Content-Type":"application/x-www-form-urlencoded"},timeout:5e3})).data.access_token}}};function x(o,e,i,B,l,c){const y=r("v-spacer"),A=r("v-toolbar"),S=r("v-alert"),d=r("v-row"),C=r("v-text-field"),_=r("v-btn"),T=r("v-container"),U=r("v-card-text"),E=r("v-card"),N=r("v-dialog");return f(),w(N,{persistent:i.persistent,modelValue:c.show,"onUpdate:modelValue":e[3]||(e[3]=p=>c.show=p),width:"600"},{default:s(()=>[t(E,null,{default:s(()=>[t(A,{height:"24"},{default:s(()=>[t(y),e[4]||(e[4]=g("span",null," Waiting for Critical Command Approval ",-1)),t(y)]),_:1}),t(U,null,{default:s(()=>[t(T,{fluid:""},{default:s(()=>[t(S,{type:"error",modelValue:l.error,"onUpdate:modelValue":e[0]||(e[0]=p=>l.error=p),dismissible:""},{default:s(()=>[n(h(l.errorText),1)]),_:1},8,["modelValue"]),t(d,{class:"pt-4",style:{color:"white"}},{default:s(()=>[n("User "+h(i.cmdUser)+" is waiting for approval to execute: ",1)]),_:1}),t(d,{class:"pa-4",style:{color:"white"}},{default:s(()=>[n(h(i.cmdString),1)]),_:1}),t(d,{class:"text-subtitle-2"},{default:s(()=>[n("UUID: "+h(i.uuid),1)]),_:1}),l.canApprove?v("",!0):(f(),w(d,{key:0},{default:s(()=>[t(C,{modelValue:l.username,"onUpdate:modelValue":e[1]||(e[1]=p=>l.username=p),label:"Username","data-test":"username"},null,8,["modelValue"])]),_:1})),l.canApprove?v("",!0):(f(),w(d,{key:1},{default:s(()=>[t(C,{modelValue:l.password,"onUpdate:modelValue":e[2]||(e[2]=p=>l.password=p),type:"password",label:"Password","data-test":"password"},null,8,["modelValue"])]),_:1})),t(d,{class:"pt-2"},{default:s(()=>[t(y),t(_,{type:"submit",onClick:V(c.reject,["prevent"]),class:"mx-2",color:"secondary",outlined:"",disabled:c.disableButtons,"data-test":"reject"},{default:s(()=>e[5]||(e[5]=[n(" Reject ")])),_:1},8,["onClick","disabled"]),t(_,{type:"submit",onClick:V(c.approve,["prevent"]),class:"mx-2",color:"primary",disabled:c.disableButtons,"data-test":"approve"},{default:s(()=>e[6]||(e[6]=[n(" Approve ")])),_:1},8,["onClick","disabled"])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["persistent","modelValue"])}const I=b("N",k(a,[["render",x],["__scopeId","data-v-edfbf188"]]))}}});
|
@@ -1 +1 @@
|
|
1
|
-
System.register(["./Widget-
|
1
|
+
System.register(["./Widget-C7ms_xDE-3bcea1febf251efccd7e.js","./main-d619649b01078bd926a2.js","vue","vue-router","single-spa","vuex","vuetify"],function(d,V){"use strict";var l,a,n,s,r,u,o;return{setters:[e=>{l=e.o},e=>{a=e.s,n=e.P},e=>{s=e.resolveComponent,r=e.openBlock,u=e.createBlock,o=e.normalizeStyle},null,null,null,null],execute:function(){const e={mixins:[l,n],data(){return{label:"Date",dateValue:""}},created(){this.parameters[0]&&(this.label=this.parameters[0]),this.dateValue=this.formatDate(new Date,this.screenTimeZone)},methods:{text(){return this.dateValue},date(){return this.dateValue}}};function c(m,i,v,y,t,x){const h=s("v-text-field");return r(),u(h,{modelValue:t.dateValue,"onUpdate:modelValue":i[0]||(i[0]=p=>t.dateValue=p),label:t.label,style:o(m.computedStyle),type:"date","hide-details":""},null,8,["modelValue","label","style"])}const f=d("default",a(e,[["render",c]]))}}});
|
@@ -1 +1 @@
|
|
1
|
-
System.register(["./main-d60a87535d79453f428d.js","vue"],function(C,P){"use strict";var V,L,m,r,o,e,t,k,s,d,h,g,v,w;return{setters:[c=>{V=c.s,L=c.F},c=>{m=c.resolveComponent,r=c.openBlock,o=c.createBlock,e=c.withCtx,t=c.createVNode,k=c.createElementVNode,s=c.createTextVNode,d=c.toDisplayString,h=c.createCommentVNode,g=c.createElementBlock,v=c.Fragment,w=c.renderList}],execute:function(){const c={props:{type:{default:"tlm",validator:function(n){return["cmd","tlm"].indexOf(n)!==-1}},targetName:String,packetName:String,itemName:String,modelValue:Boolean},data(){return{details:Object,updater:null,rawValue:null,convertedValue:null,formattedValue:null,unitsValue:null}},computed:{show:{get(){return this.modelValue},set(n){this.$emit("update:modelValue",n)}}},created(){this.api=new L},beforeUnmount(){clearInterval(this.updater),this.updater=null},watch:{modelValue:function(n,a){n?(this.requestDetails(),this.type==="tlm"&&(this.updater=setInterval(()=>{this.api.get_tlm_values([`${this.targetName}__${this.packetName}__${this.itemName}__RAW`,`${this.targetName}__${this.packetName}__${this.itemName}__CONVERTED`,`${this.targetName}__${this.packetName}__${this.itemName}__FORMATTED`,`${this.targetName}__${this.packetName}__${this.itemName}__WITH_UNITS`]).then(_=>{for(let p of _){let i=null;if(p[0].json_class==="String"&&p[0].raw!==void 0?i=p[0].raw:this.details.data_type==="BLOCK"&&(i=p[0]),i!==null){i=i.slice(0,parseInt(this.details.bit_size)/8);let y=!1;i.length>64&&(y=!0),p[0]=Array.from(i.slice(0,64),function(N){return N===" "?"20":("0"+(N&255).toString(16)).slice(-2)}).join(" ").toUpperCase(),y&&(p[0]+="...")}}this.details.data_type.includes("INT")&&!this.details.array_size?this.rawValue=`${_[0][0]} (0x${_[0][0].toString(16).toUpperCase()})`:this.rawValue=_[0][0],this.convertedValue=_[1][0],this.formattedValue=_[2][0],this.unitsValue=_[3][0]})},1e3))):(clearInterval(this.updater),this.updater=null)}},methods:{hasLimits(n){let a=!1;return n.limits.DEFAULT&&(a=!0),n.states&&Object.getOwnPropertyNames(n.states).forEach(_=>{n.states[_].color&&(a=!0)}),a},async requestDetails(){this.type==="tlm"?await this.api.get_item(this.targetName,this.packetName,this.itemName).then(n=>{this.details=n,this.hasLimits(n)||(this.details.limits=null)}):await this.api.get_parameter(this.targetName,this.packetName,this.itemName).then(n=>{this.details=n})},async changeLimitsEnabled(){this.details.limits.enabled?await this.api.enable_limits(this.targetName,this.packetName,this.itemName):await this.api.disable_limits(this.targetName,this.packetName,this.itemName)},formatLimit(n){return n.hasOwnProperty("green_low")?"RL/"+n.red_low+" YL/"+n.yellow_low+" YH/"+n.yellow_high+" RH/"+n.red_high+" GL/"+n.green_low+" GH/"+n.green_high:n.hasOwnProperty("red_low")?"RL/"+n.red_low+" YL/"+n.yellow_low+" YH/"+n.yellow_high+" RH/"+n.red_high:n}}},S={key:5},$={key:7},E={key:3},x={key:9};function B(n,a,_,p,i,y){const N=m("v-spacer"),D=m("v-toolbar"),T=m("v-card-title"),U=m("v-card-subtitle"),l=m("v-col"),u=m("v-row"),F=m("v-switch"),I=m("v-container"),O=m("v-card-text"),R=m("v-card"),z=m("v-dialog");return r(),o(z,{modelValue:y.show,"onUpdate:modelValue":a[1]||(a[1]=b=>y.show=b),width:"700"},{default:e(()=>[t(R,null,{default:e(()=>[t(D,{height:24},{default:e(()=>[t(N),a[2]||(a[2]=k("span",null," Details ",-1)),t(N)]),_:1}),t(T,null,{default:e(()=>[s(d(_.targetName)+" "+d(_.packetName)+" "+d(_.itemName),1)]),_:1}),t(U,null,{default:e(()=>[s(d(i.details.description),1)]),_:1}),t(O,null,{default:e(()=>[t(I,{fluid:""},{default:e(()=>[_.type==="tlm"?(r(),o(u,{key:0,"no-gutters":""},{default:e(()=>[t(l,{cols:"5",class:"label"},{default:e(()=>a[3]||(a[3]=[s("Item Values")])),_:1}),t(l)]),_:1})):h("",!0),t(u,{"no-gutters":""},{default:e(()=>[t(l,{cols:"1"}),t(l,{cols:"4",class:"label"},{default:e(()=>a[4]||(a[4]=[s("Raw Value")])),_:1}),t(l,null,{default:e(()=>[s(d(i.rawValue),1)]),_:1})]),_:1}),t(u,{"no-gutters":""},{default:e(()=>[t(l,{cols:"1"}),t(l,{cols:"4",class:"label"},{default:e(()=>a[5]||(a[5]=[s("Converted Value")])),_:1}),t(l,null,{default:e(()=>[s(d(i.convertedValue),1)]),_:1})]),_:1}),t(u,{"no-gutters":""},{default:e(()=>[t(l,{cols:"1"}),t(l,{cols:"4",class:"label"},{default:e(()=>a[6]||(a[6]=[s("Formatted Value")])),_:1}),t(l,null,{default:e(()=>[s(d(i.formattedValue),1)]),_:1})]),_:1}),t(u,{"no-gutters":""},{default:e(()=>[t(l,{cols:"1"}),t(l,{cols:"4",class:"label"},{default:e(()=>a[7]||(a[7]=[s("With Units Value")])),_:1}),t(l,null,{default:e(()=>[s(d(i.unitsValue),1)]),_:1})]),_:1}),t(u,{"no-gutters":""},{default:e(()=>[t(l,{cols:"5",class:"label"},{default:e(()=>a[8]||(a[8]=[s("Bit Offset")])),_:1}),t(l,null,{default:e(()=>[s(d(i.details.bit_offset),1)]),_:1})]),_:1}),t(u,{"no-gutters":""},{default:e(()=>[t(l,{cols:"5",class:"label"},{default:e(()=>a[9]||(a[9]=[s("Bit Size")])),_:1}),t(l,null,{default:e(()=>[s(d(i.details.bit_size),1)]),_:1})]),_:1}),i.details.array_size?(r(),o(u,{key:1,"no-gutters":""},{default:e(()=>[t(l,{cols:"5",class:"label"},{default:e(()=>a[10]||(a[10]=[s("Array Size")])),_:1}),t(l,null,{default:e(()=>[s(d(i.details.array_size),1)]),_:1})]),_:1})):h("",!0),t(u,{"no-gutters":""},{default:e(()=>[t(l,{cols:"5",class:"label"},{default:e(()=>a[11]||(a[11]=[s("Data Type")])),_:1}),t(l,null,{default:e(()=>[s(d(i.details.data_type),1)]),_:1})]),_:1}),_.type==="cmd"?(r(),o(u,{key:2,"no-gutters":""},{default:e(()=>[t(l,{cols:"5",class:"label"},{default:e(()=>a[12]||(a[12]=[s("Minimum")])),_:1}),t(l,null,{default:e(()=>[s(d(i.details.minimum),1)]),_:1})]),_:1})):h("",!0),_.type==="cmd"?(r(),o(u,{key:3,"no-gutters":""},{default:e(()=>[t(l,{cols:"5",class:"label"},{default:e(()=>a[13]||(a[13]=[s("Maximum")])),_:1}),t(l,null,{default:e(()=>[s(d(i.details.maximum),1)]),_:1})]),_:1})):h("",!0),_.type==="cmd"?(r(),o(u,{key:4,"no-gutters":""},{default:e(()=>[t(l,{cols:"5",class:"label"},{default:e(()=>a[14]||(a[14]=[s("Default")])),_:1}),t(l,null,{default:e(()=>[s(d(i.details.default),1)]),_:1})]),_:1})):h("",!0),t(u,{"no-gutters":""},{default:e(()=>[t(l,{cols:"5",class:"label"},{default:e(()=>a[15]||(a[15]=[s("Format String")])),_:1}),t(l,null,{default:e(()=>[s(d(i.details.format_string),1)]),_:1})]),_:1}),t(u,{"no-gutters":""},{default:e(()=>[t(l,{cols:"5",class:"label"},{default:e(()=>a[16]||(a[16]=[s("Read Conversion")])),_:1}),i.details.read_conversion?(r(),o(l,{key:0},{default:e(()=>[s(" Class: "+d(i.details.read_conversion.class)+" ",1),a[17]||(a[17]=k("br",null,null,-1)),s(" Params: "+d(i.details.read_conversion.params),1)]),_:1})):(r(),o(l,{key:1}))]),_:1}),t(u,{"no-gutters":""},{default:e(()=>[t(l,{cols:"5",class:"label"},{default:e(()=>a[18]||(a[18]=[s("Write Conversion")])),_:1}),i.details.write_conversion?(r(),o(l,{key:0},{default:e(()=>[s(" Class: "+d(i.details.write_conversion.class)+" ",1),a[19]||(a[19]=k("br",null,null,-1)),s(" Params: "+d(i.details.write_conversion.params),1)]),_:1})):(r(),o(l,{key:1}))]),_:1}),t(u,{"no-gutters":""},{default:e(()=>[t(l,{cols:"5",class:"label"},{default:e(()=>a[20]||(a[20]=[s("Id Value")])),_:1}),t(l,null,{default:e(()=>[s(d(i.details.id_value),1)]),_:1})]),_:1}),t(u,{"no-gutters":""},{default:e(()=>[t(l,{cols:"5",class:"label"},{default:e(()=>a[21]||(a[21]=[s("Units Full")])),_:1}),t(l,null,{default:e(()=>[s(d(i.details.units_full),1)]),_:1})]),_:1}),t(u,{"no-gutters":""},{default:e(()=>[t(l,{cols:"5",class:"label"},{default:e(()=>a[22]||(a[22]=[s("Units Abbr")])),_:1}),t(l,null,{default:e(()=>[s(d(i.details.units),1)]),_:1})]),_:1}),t(u,{"no-gutters":""},{default:e(()=>[t(l,{cols:"5",class:"label"},{default:e(()=>a[23]||(a[23]=[s("Endianness")])),_:1}),t(l,null,{default:e(()=>[s(d(i.details.endianness),1)]),_:1})]),_:1}),i.details.states?(r(),g("div",S,[t(u,{"no-gutters":""},{default:e(()=>[t(l,{cols:"5",class:"label"},{default:e(()=>a[24]||(a[24]=[s("States")])),_:1}),t(l)]),_:1}),(r(!0),g(v,null,w(i.details.states,(b,f)=>(r(),o(u,{"no-gutters":"",key:f},{default:e(()=>[t(l,{cols:"1"}),t(l,{cols:"4",class:"label"},{default:e(()=>[s(d(f),1)]),_:2},1024),t(l,null,{default:e(()=>[s(d(b.value),1)]),_:2},1024)]),_:2},1024))),128))])):(r(),o(u,{key:6,"no-gutters":""},{default:e(()=>[t(l,{cols:"5",class:"label"},{default:e(()=>a[25]||(a[25]=[s("States")])),_:1}),t(l,null,{default:e(()=>a[26]||(a[26]=[s("None")])),_:1})]),_:1})),i.details.limits?(r(),g("div",$,[t(u,{"no-gutters":""},{default:e(()=>[t(l,{cols:"5",class:"label"},{default:e(()=>a[27]||(a[27]=[s("Limits")])),_:1}),t(l)]),_:1}),(r(!0),g(v,null,w(i.details.limits,(b,f)=>(r(),o(u,{"no-gutters":"",key:f},{default:e(()=>[t(l,{cols:"1"}),f==="enabled"?(r(),o(l,{key:0,cols:"4",class:"label"},{default:e(()=>a[28]||(a[28]=[s("Enabled")])),_:1})):h("",!0),f==="enabled"?(r(),o(F,{key:1,modelValue:i.details.limits.enabled,"onUpdate:modelValue":[a[0]||(a[0]=A=>i.details.limits.enabled=A),y.changeLimitsEnabled],density:"compact",color:"primary",class:"compact-switch","hide-details":""},null,8,["modelValue","onUpdate:modelValue"])):h("",!0),f!=="enabled"?(r(),o(l,{key:2,cols:"4",class:"label"},{default:e(()=>[s(d(f),1)]),_:2},1024)):h("",!0),f!=="enabled"?(r(),g("div",E,d(y.formatLimit(b)),1)):h("",!0),t(l)]),_:2},1024))),128))])):(r(),o(u,{key:8,"no-gutters":""},{default:e(()=>[t(l,{cols:"5",class:"label"},{default:e(()=>a[29]||(a[29]=[s("Limits")])),_:1}),t(l,null,{default:e(()=>a[30]||(a[30]=[s("None")])),_:1})]),_:1})),i.details.meta?(r(),g("div",x,[t(u,{"no-gutters":""},{default:e(()=>[t(l,{cols:"5",class:"label"},{default:e(()=>a[31]||(a[31]=[s("Meta")])),_:1}),t(l)]),_:1}),(r(!0),g(v,null,w(i.details.meta,(b,f)=>(r(),o(u,{"no-gutters":"",key:f},{default:e(()=>[t(l,{cols:"1"}),t(l,{cols:"4",class:"label"},{default:e(()=>[s(d(f),1)]),_:2},1024),t(l,null,{default:e(()=>[s(d(b.join(", ")),1)]),_:2},1024)]),_:2},1024))),128))])):(r(),o(u,{key:10,"no-gutters":""},{default:e(()=>[t(l,{cols:"5",class:"label"},{default:e(()=>a[32]||(a[32]=[s("Meta")])),_:1}),t(l,null,{default:e(()=>a[33]||(a[33]=[s("None")])),_:1})]),_:1}))]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])}const j=C("P",V(c,[["render",B],["__scopeId","data-v-785491ee"]]))}}});
|
1
|
+
System.register(["./main-d619649b01078bd926a2.js","vue"],function(C,P){"use strict";var V,L,m,r,o,e,t,k,s,d,h,g,v,w;return{setters:[c=>{V=c.s,L=c.F},c=>{m=c.resolveComponent,r=c.openBlock,o=c.createBlock,e=c.withCtx,t=c.createVNode,k=c.createElementVNode,s=c.createTextVNode,d=c.toDisplayString,h=c.createCommentVNode,g=c.createElementBlock,v=c.Fragment,w=c.renderList}],execute:function(){const c={props:{type:{default:"tlm",validator:function(u){return["cmd","tlm"].indexOf(u)!==-1}},targetName:String,packetName:String,itemName:String,modelValue:Boolean},data(){return{details:Object,updater:null,rawValue:null,convertedValue:null,formattedValue:null,unitsValue:null}},computed:{show:{get(){return this.modelValue},set(u){this.$emit("update:modelValue",u)}}},created(){this.api=new L},beforeUnmount(){clearInterval(this.updater),this.updater=null},watch:{modelValue:function(u,a){u?(this.requestDetails(),this.type==="tlm"&&(this.updater=setInterval(()=>{this.api.get_tlm_values([`${this.targetName}__${this.packetName}__${this.itemName}__RAW`,`${this.targetName}__${this.packetName}__${this.itemName}__CONVERTED`,`${this.targetName}__${this.packetName}__${this.itemName}__FORMATTED`,`${this.targetName}__${this.packetName}__${this.itemName}__WITH_UNITS`]).then(_=>{for(let p of _){let i=null;if(p[0].json_class==="String"&&p[0].raw!==void 0?i=p[0].raw:this.details.data_type==="BLOCK"&&(i=p[0]),i!==null){i=i.slice(0,parseInt(this.details.bit_size)/8);let y=!1;i.length>64&&(y=!0),p[0]=Array.from(i.slice(0,64),function(N){return N===" "?"20":("0"+(N&255).toString(16)).slice(-2)}).join(" ").toUpperCase(),y&&(p[0]+="...")}}this.details.data_type.includes("INT")&&!this.details.array_size?this.rawValue=`${_[0][0]} (0x${_[0][0].toString(16).toUpperCase()})`:this.rawValue=_[0][0],this.convertedValue=_[1][0],this.formattedValue=_[2][0],this.unitsValue=_[3][0]})},1e3))):(clearInterval(this.updater),this.updater=null)}},methods:{hasLimits(u){let a=!1;return u.limits.DEFAULT&&(a=!0),u.states&&Object.getOwnPropertyNames(u.states).forEach(_=>{u.states[_].color&&(a=!0)}),a},async requestDetails(){this.type==="tlm"?await this.api.get_item(this.targetName,this.packetName,this.itemName).then(u=>{this.details=u,this.hasLimits(u)||(this.details.limits=null)}):await this.api.get_parameter(this.targetName,this.packetName,this.itemName).then(u=>{this.details=u})},async changeLimitsEnabled(){this.details.limits.enabled?await this.api.enable_limits(this.targetName,this.packetName,this.itemName):await this.api.disable_limits(this.targetName,this.packetName,this.itemName)},formatLimit(u){return u.hasOwnProperty("green_low")?"RL/"+u.red_low+" YL/"+u.yellow_low+" YH/"+u.yellow_high+" RH/"+u.red_high+" GL/"+u.green_low+" GH/"+u.green_high:u.hasOwnProperty("red_low")?"RL/"+u.red_low+" YL/"+u.yellow_low+" YH/"+u.yellow_high+" RH/"+u.red_high:u}}},S={key:5},$={key:7},E={key:3},x={key:9};function B(u,a,_,p,i,y){const N=m("v-spacer"),D=m("v-toolbar"),T=m("v-card-title"),U=m("v-card-subtitle"),l=m("v-col"),n=m("v-row"),F=m("v-switch"),I=m("v-container"),O=m("v-card-text"),R=m("v-card"),z=m("v-dialog");return r(),o(z,{modelValue:y.show,"onUpdate:modelValue":a[1]||(a[1]=b=>y.show=b),width:"700"},{default:e(()=>[t(R,null,{default:e(()=>[t(D,{height:24},{default:e(()=>[t(N),a[2]||(a[2]=k("span",null," Details ",-1)),t(N)]),_:1}),t(T,null,{default:e(()=>[s(d(_.targetName)+" "+d(_.packetName)+" "+d(_.itemName),1)]),_:1}),t(U,null,{default:e(()=>[s(d(i.details.description),1)]),_:1}),t(O,null,{default:e(()=>[t(I,{fluid:""},{default:e(()=>[_.type==="tlm"?(r(),o(n,{key:0,"no-gutters":""},{default:e(()=>[t(l,{cols:"5",class:"label"},{default:e(()=>a[3]||(a[3]=[s("Item Values")])),_:1}),t(l)]),_:1})):h("",!0),t(n,{"no-gutters":""},{default:e(()=>[t(l,{cols:"1"}),t(l,{cols:"4",class:"label"},{default:e(()=>a[4]||(a[4]=[s("Raw Value")])),_:1}),t(l,null,{default:e(()=>[s(d(i.rawValue),1)]),_:1})]),_:1}),t(n,{"no-gutters":""},{default:e(()=>[t(l,{cols:"1"}),t(l,{cols:"4",class:"label"},{default:e(()=>a[5]||(a[5]=[s("Converted Value")])),_:1}),t(l,null,{default:e(()=>[s(d(i.convertedValue),1)]),_:1})]),_:1}),t(n,{"no-gutters":""},{default:e(()=>[t(l,{cols:"1"}),t(l,{cols:"4",class:"label"},{default:e(()=>a[6]||(a[6]=[s("Formatted Value")])),_:1}),t(l,null,{default:e(()=>[s(d(i.formattedValue),1)]),_:1})]),_:1}),t(n,{"no-gutters":""},{default:e(()=>[t(l,{cols:"1"}),t(l,{cols:"4",class:"label"},{default:e(()=>a[7]||(a[7]=[s("With Units Value")])),_:1}),t(l,null,{default:e(()=>[s(d(i.unitsValue),1)]),_:1})]),_:1}),t(n,{"no-gutters":""},{default:e(()=>[t(l,{cols:"5",class:"label"},{default:e(()=>a[8]||(a[8]=[s("Bit Offset")])),_:1}),t(l,null,{default:e(()=>[s(d(i.details.bit_offset),1)]),_:1})]),_:1}),t(n,{"no-gutters":""},{default:e(()=>[t(l,{cols:"5",class:"label"},{default:e(()=>a[9]||(a[9]=[s("Bit Size")])),_:1}),t(l,null,{default:e(()=>[s(d(i.details.bit_size),1)]),_:1})]),_:1}),i.details.array_size?(r(),o(n,{key:1,"no-gutters":""},{default:e(()=>[t(l,{cols:"5",class:"label"},{default:e(()=>a[10]||(a[10]=[s("Array Size")])),_:1}),t(l,null,{default:e(()=>[s(d(i.details.array_size),1)]),_:1})]),_:1})):h("",!0),t(n,{"no-gutters":""},{default:e(()=>[t(l,{cols:"5",class:"label"},{default:e(()=>a[11]||(a[11]=[s("Data Type")])),_:1}),t(l,null,{default:e(()=>[s(d(i.details.data_type),1)]),_:1})]),_:1}),_.type==="cmd"?(r(),o(n,{key:2,"no-gutters":""},{default:e(()=>[t(l,{cols:"5",class:"label"},{default:e(()=>a[12]||(a[12]=[s("Minimum")])),_:1}),t(l,null,{default:e(()=>[s(d(i.details.minimum),1)]),_:1})]),_:1})):h("",!0),_.type==="cmd"?(r(),o(n,{key:3,"no-gutters":""},{default:e(()=>[t(l,{cols:"5",class:"label"},{default:e(()=>a[13]||(a[13]=[s("Maximum")])),_:1}),t(l,null,{default:e(()=>[s(d(i.details.maximum),1)]),_:1})]),_:1})):h("",!0),_.type==="cmd"?(r(),o(n,{key:4,"no-gutters":""},{default:e(()=>[t(l,{cols:"5",class:"label"},{default:e(()=>a[14]||(a[14]=[s("Default")])),_:1}),t(l,null,{default:e(()=>[s(d(i.details.default),1)]),_:1})]),_:1})):h("",!0),t(n,{"no-gutters":""},{default:e(()=>[t(l,{cols:"5",class:"label"},{default:e(()=>a[15]||(a[15]=[s("Format String")])),_:1}),t(l,null,{default:e(()=>[s(d(i.details.format_string),1)]),_:1})]),_:1}),t(n,{"no-gutters":""},{default:e(()=>[t(l,{cols:"5",class:"label"},{default:e(()=>a[16]||(a[16]=[s("Read Conversion")])),_:1}),i.details.read_conversion?(r(),o(l,{key:0},{default:e(()=>[s(" Class: "+d(i.details.read_conversion.class)+" ",1),a[17]||(a[17]=k("br",null,null,-1)),s(" Params: "+d(i.details.read_conversion.params),1)]),_:1})):(r(),o(l,{key:1}))]),_:1}),t(n,{"no-gutters":""},{default:e(()=>[t(l,{cols:"5",class:"label"},{default:e(()=>a[18]||(a[18]=[s("Write Conversion")])),_:1}),i.details.write_conversion?(r(),o(l,{key:0},{default:e(()=>[s(" Class: "+d(i.details.write_conversion.class)+" ",1),a[19]||(a[19]=k("br",null,null,-1)),s(" Params: "+d(i.details.write_conversion.params),1)]),_:1})):(r(),o(l,{key:1}))]),_:1}),t(n,{"no-gutters":""},{default:e(()=>[t(l,{cols:"5",class:"label"},{default:e(()=>a[20]||(a[20]=[s("Id Value")])),_:1}),t(l,null,{default:e(()=>[s(d(i.details.id_value),1)]),_:1})]),_:1}),t(n,{"no-gutters":""},{default:e(()=>[t(l,{cols:"5",class:"label"},{default:e(()=>a[21]||(a[21]=[s("Units Full")])),_:1}),t(l,null,{default:e(()=>[s(d(i.details.units_full),1)]),_:1})]),_:1}),t(n,{"no-gutters":""},{default:e(()=>[t(l,{cols:"5",class:"label"},{default:e(()=>a[22]||(a[22]=[s("Units Abbr")])),_:1}),t(l,null,{default:e(()=>[s(d(i.details.units),1)]),_:1})]),_:1}),t(n,{"no-gutters":""},{default:e(()=>[t(l,{cols:"5",class:"label"},{default:e(()=>a[23]||(a[23]=[s("Endianness")])),_:1}),t(l,null,{default:e(()=>[s(d(i.details.endianness),1)]),_:1})]),_:1}),i.details.states?(r(),g("div",S,[t(n,{"no-gutters":""},{default:e(()=>[t(l,{cols:"5",class:"label"},{default:e(()=>a[24]||(a[24]=[s("States")])),_:1}),t(l)]),_:1}),(r(!0),g(v,null,w(i.details.states,(b,f)=>(r(),o(n,{"no-gutters":"",key:f},{default:e(()=>[t(l,{cols:"1"}),t(l,{cols:"4",class:"label"},{default:e(()=>[s(d(f),1)]),_:2},1024),t(l,null,{default:e(()=>[s(d(b.value),1)]),_:2},1024)]),_:2},1024))),128))])):(r(),o(n,{key:6,"no-gutters":""},{default:e(()=>[t(l,{cols:"5",class:"label"},{default:e(()=>a[25]||(a[25]=[s("States")])),_:1}),t(l,null,{default:e(()=>a[26]||(a[26]=[s("None")])),_:1})]),_:1})),i.details.limits?(r(),g("div",$,[t(n,{"no-gutters":""},{default:e(()=>[t(l,{cols:"5",class:"label"},{default:e(()=>a[27]||(a[27]=[s("Limits")])),_:1}),t(l)]),_:1}),(r(!0),g(v,null,w(i.details.limits,(b,f)=>(r(),o(n,{"no-gutters":"",key:f},{default:e(()=>[t(l,{cols:"1"}),f==="enabled"?(r(),o(l,{key:0,cols:"4",class:"label"},{default:e(()=>a[28]||(a[28]=[s("Enabled")])),_:1})):h("",!0),f==="enabled"?(r(),o(F,{key:1,modelValue:i.details.limits.enabled,"onUpdate:modelValue":[a[0]||(a[0]=A=>i.details.limits.enabled=A),y.changeLimitsEnabled],density:"compact",color:"primary",class:"compact-switch","hide-details":""},null,8,["modelValue","onUpdate:modelValue"])):h("",!0),f!=="enabled"?(r(),o(l,{key:2,cols:"4",class:"label"},{default:e(()=>[s(d(f),1)]),_:2},1024)):h("",!0),f!=="enabled"?(r(),g("div",E,d(y.formatLimit(b)),1)):h("",!0),t(l)]),_:2},1024))),128))])):(r(),o(n,{key:8,"no-gutters":""},{default:e(()=>[t(l,{cols:"5",class:"label"},{default:e(()=>a[29]||(a[29]=[s("Limits")])),_:1}),t(l,null,{default:e(()=>a[30]||(a[30]=[s("None")])),_:1})]),_:1})),i.details.meta?(r(),g("div",x,[t(n,{"no-gutters":""},{default:e(()=>[t(l,{cols:"5",class:"label"},{default:e(()=>a[31]||(a[31]=[s("Meta")])),_:1}),t(l)]),_:1}),(r(!0),g(v,null,w(i.details.meta,(b,f)=>(r(),o(n,{"no-gutters":"",key:f},{default:e(()=>[t(l,{cols:"1"}),t(l,{cols:"4",class:"label"},{default:e(()=>[s(d(f),1)]),_:2},1024),t(l,null,{default:e(()=>[s(d(b.join(", ")),1)]),_:2},1024)]),_:2},1024))),128))])):(r(),o(n,{key:10,"no-gutters":""},{default:e(()=>[t(l,{cols:"5",class:"label"},{default:e(()=>a[32]||(a[32]=[s("Meta")])),_:1}),t(l,null,{default:e(()=>a[33]||(a[33]=[s("None")])),_:1})]),_:1}))]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])}const j=C("P",V(c,[["render",B],["__scopeId","data-v-785491ee"]]))}}});
|
@@ -1 +1 @@
|
|
1
|
-
System.register(["vue","./main-
|
1
|
+
System.register(["vue","./main-d619649b01078bd926a2.js","vue-router","single-spa","vuex","vuetify"],function(a,p){"use strict";var t,n,r,o,i,s;return{setters:[e=>{t=e.openBlock,n=e.createBlock,r=e.resolveDynamicComponent,o=e.normalizeProps,i=e.guardReactiveProps},e=>{s=e.s},null,null,null,null],execute:function(){const e={data(){return{widgetType:null}},props:{name:{default:null}},computed:{url:function(){return`${window.location.origin}/tools/widgets/${this.name}/${this.name}.umd.min.js`}},async mounted(){try{this.widgetType=await System.import(this.url)}catch{throw new Error(`Unknown widget: ${this.name}`)}}};function l(u,d,w,g,c,y){return t(),n(r(c.widgetType),o(i({...u.$props,...u.$attrs})),null,16)}const m=a("default",s(e,[["render",l]]))}}});
|
@@ -0,0 +1 @@
|
|
1
|
+
System.register(["./Widget-C7ms_xDE-3bcea1febf251efccd7e.js","./ValueWidget-h3905woQ-dfd435618aad43031119.js","vue","./main-d619649b01078bd926a2.js","./DetailsDialog-DiVcC3Fg-b8c5672df1c2b2428051.js","single-spa","./VWidget-CGdM4sTw-f5881252e6f5adbafc7e.js","vue-router","vuex","vuetify"],function(m,f){"use strict";var s,r,n,a,l,i,o,c,u;return{setters:[e=>{s=e.o},e=>{r=e.default},e=>{n=e.resolveComponent,a=e.openBlock,l=e.createElementBlock,i=e.normalizeStyle,o=e.createVNode,c=e.mergeProps},e=>{u=e.s},null,null,null,null,null,null],execute:function(){const e={mixins:[s],components:{ValueWidget:r},computed:{getParameters(){return[this.parameters[0],this.parameters[1],this.parameters[2],this.parameters[4]]}},created(){this.setWidth(this.parameters[5],"ch",12)}};function p(t,h,y,V,x,g){const d=n("value-widget");return a(),l("div",{ref:"container",class:"d-flex flex-row",style:i(t.computedStyle)},[o(d,c(t.$attrs,{parameters:g.getParameters,settings:t.appliedSettings,"screen-values":t.screenValues,"screen-time-zone":t.screenTimeZone,"format-string":t.parameters[3]}),null,16,["parameters","settings","screen-values","screen-time-zone","format-string"])],4)}const v=m("default",u(e,[["render",p]]))}}});
|