openc3-cosmos-tool-tlmgrapher 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/tlmgrapher/{ArrayWidget-BTxChSds-7d068b5c2b720116fd92.js → ArrayWidget-DBpEoQ1y-68f8b1a99bf6e7511047.js} +2 -2
- data/tools/tlmgrapher/{BarColumn-Cdu3OoMa-27adc7fa05dc3dc52da3.js → BarColumn-B6tCmNJm-97c7f7251227a5f93d49.js} +1 -1
- data/tools/tlmgrapher/BlockWidget-Bmi0UcUW-3790965d51249d51c04a.js +2 -0
- data/tools/tlmgrapher/{ButtonWidget-nwDlOBJT-d231afabdc4d10262e84.js → ButtonWidget-CHrHS_Bw-44613b1d96708d9b29b0.js} +2 -2
- data/tools/tlmgrapher/CanvasWidget-BqdyLbQz-8523369ab18561d1c7af.js +1 -0
- data/tools/tlmgrapher/CanvasdotWidget-YYwca104-f9118dabb0fd599e9d12.js +1 -0
- data/tools/tlmgrapher/{CanvasimageWidget-BIw7Wbf2-66bde813f1d33136f694.js → CanvasimageWidget-BrYlPQCf-47a0d44ddee2b6dca64e.js} +1 -1
- data/tools/tlmgrapher/CanvasimagevalueWidget-HnEOXmZy-ac1b023ba3c406b34b68.js +1 -0
- data/tools/tlmgrapher/{CanvaslabelWidget-DWmb356h-392821079c1c83789270.js → CanvaslabelWidget-BfMHNei--a3e6e2c9566e982b2d42.js} +1 -1
- data/tools/tlmgrapher/{CanvaslabelvalueWidget-CI3yYwFs-46d4c5835d5571b24386.js → CanvaslabelvalueWidget-0zRDJav3-d6ac0e298ab8137aa38c.js} +1 -1
- data/tools/tlmgrapher/CanvaslineWidget-BmOwJP_G-4f230f74a378c3b53962.js +1 -0
- data/tools/tlmgrapher/CanvaslinevalueWidget-H3L1aUKM-65f6ec553d0fb884d1d0.js +1 -0
- data/tools/tlmgrapher/CheckbuttonWidget-BnT9X7wE-2ca152eaebe602429b14.js +1 -0
- data/tools/tlmgrapher/{ComboboxWidget-BzsbOv54-4b1cb1044c96e37e643a.js → ComboboxWidget-BykAAoxH-7f08e32696eababff371.js} +1 -1
- data/tools/tlmgrapher/{DateWidget-B5R_9rA8-c132fe0e879e51d570f4.js → DateWidget-FtYD86xW-7b2d2023e2573bd7432e.js} +1 -1
- data/tools/tlmgrapher/{DetailsDialog-DLRMqetn-f1ab96e56e03786c7824.js → DetailsDialog-DiVcC3Fg-ccc062aa24dc2f9d814e.js} +1 -1
- data/tools/tlmgrapher/{DynamicWidget-m9EliUR2-0c3cb3409aa1f1a91edc.js → DynamicWidget-m9EliUR2-119a012d7cfa81d85a7f.js} +1 -1
- data/tools/tlmgrapher/FormatvalueWidget-OykwwCrw-ab98364806439d5d405d.js +1 -0
- data/tools/tlmgrapher/{Graph-CIt1FxGd-83ed27305df47a0093dd.js → Graph-DmQUnB9T-e7bc77c7933155414e1d.js} +1 -1
- data/tools/tlmgrapher/{GraphWidget-amwxyH1r-e2da3bcefaa6cbf5e8b4.js → GraphWidget-BohHW-97-8b77acdc009d19461d60.js} +1 -1
- data/tools/tlmgrapher/{HorizontalWidget-CirtfuL8-aedc3b986a354a86e14b.js → HorizontalWidget-B7YdcFVN-b405e2b0bfa5dd8ba3ca.js} +1 -1
- data/tools/tlmgrapher/HorizontalboxWidget-D-kCNwI3-fb6b9a4685342438db46.js +1 -0
- data/tools/tlmgrapher/{HorizontallineWidget-BdlNB951-61273f74fb7c77566e8f.js → HorizontallineWidget-BdlNB951-1670b4c568e8d0b755b5.js} +1 -1
- data/tools/tlmgrapher/IframeWidget-0C7GYEVc-57eba8066290112d4a00.js +1 -0
- data/tools/tlmgrapher/{ImageLoader-CpcR6tPi-4687105c3f6c01128bb7.js → ImageLoader-y6fAZe9P-ca2582b959bb1ec0eb9f.js} +1 -1
- data/tools/tlmgrapher/{ImageviewerWidget-DIkmb_C9-21036380d6526df5be98.js → ImageviewerWidget-B4HbUIfR-ee4ac56548b6287e6dcd.js} +1 -1
- data/tools/tlmgrapher/{LabelWidget-BDsypYho-bdf8c2852e69158f808f.js → LabelWidget-D1JhQAzR-984a048a2c9fc5d46bbf.js} +1 -1
- data/tools/tlmgrapher/{LabelledWidget-DjturGl5-84cb9eb06cd06eb76c25.js → LabelledWidget-C2VGJ5OJ-30f0bcc85dbf7cca3208.js} +1 -1
- data/tools/tlmgrapher/LabelprogressbarWidget-DN0cAeLK-a3cb23ccf0f6348442db.js +1 -0
- data/tools/tlmgrapher/{LabelsparklineWidget-BlJoICxu-e0f20c7da77421fe56fd.js → LabelsparklineWidget--sxBENxs-a9a0a68bf6a008ac09da.js} +1 -1
- data/tools/tlmgrapher/LabelvalueWidget-BWpP5KX6-b2457b9dd8ed9b36e504.js +1 -0
- data/tools/tlmgrapher/{LabelvaluedescWidget-CsUP7J4U-550a16d8ff3e3652ccbf.js → LabelvaluedescWidget-DtJwggDu-dec0322e5ba52e831c00.js} +1 -1
- data/tools/tlmgrapher/{LabelvaluelimitsbarWidget-Blj1QXV8-429f6124c64612049ba3.js → LabelvaluelimitsbarWidget-Bj6UVK-5-f463918125339de3cb6a.js} +1 -1
- data/tools/tlmgrapher/LabelvaluelimitscolumnWidget-BVcEEcUx-d5459349b14e574aba36.js +1 -0
- data/tools/tlmgrapher/{LabelvaluerangebarWidget-DpcXhlfF-e6457fffbed0da0d4824.js → LabelvaluerangebarWidget-DCJ42bmf-5a69950907592875d803.js} +1 -1
- data/tools/tlmgrapher/{Layout-C1HoM4Kl-f9953acdbcebcea97b68.js → Layout-D4YBjuWs-11ba6de9fe6f8ed30e9f.js} +1 -1
- data/tools/tlmgrapher/{LedWidget-B_K2e5tq-e52a0e1a0a19fa060367.js → LedWidget-hN9JHxjr-67fbad25a38ecf265535.js} +1 -1
- data/tools/tlmgrapher/{LimitsbarWidget-DXbqsi4J-3431a0645c2838a3e34c.js → LimitsbarWidget-D-wfz_St-b919b9c4e472f6927f59.js} +1 -1
- data/tools/tlmgrapher/{LimitscolorWidget-Ckmuw0YX-86a835239e91e6acce34.js → LimitscolorWidget-B0AVGdkz-7c63305145a760b8e976.js} +1 -1
- data/tools/tlmgrapher/{LimitscolumnWidget-BfY4su5U-2ca6bf18660d04266ff6.js → LimitscolumnWidget-Dt5ce4hN-c7872d59d7fd358a1e67.js} +1 -1
- data/tools/tlmgrapher/LinegraphWidget-CTjtvtPd-ec90f25af28038471f36.js +1 -0
- data/tools/tlmgrapher/MatrixbycolumnsWidget-wLx4NvXV-e2855700b605e9a3af0a.js +1 -0
- data/tools/tlmgrapher/{ProgressbarWidget-DpA_-vy9-1ab594b8a1b9fff9bcf0.js → ProgressbarWidget-B7l0BBiX-b4fe59715b19aef08d47.js} +1 -1
- data/tools/tlmgrapher/RadiobuttonWidget-B032jKIw-7a420b95edfcc72d2b53.js +1 -0
- data/tools/tlmgrapher/RadiogroupWidget-Busjqikr-57983a021f6604dd2833.js +1 -0
- data/tools/tlmgrapher/{RangebarWidget-DHS7S3vI-6d303dcc57838be1b146.js → RangebarWidget-DbYrwEfC-8e06af9a8d6f56a0972a.js} +1 -1
- data/tools/tlmgrapher/{RollupWidget-CTk9Kjwr-0f5acd15cf23d041ed73.js → RollupWidget-rKxLXuCv-fba38a11eb2178936283.js} +1 -1
- data/tools/tlmgrapher/{ScrollwindowWidget-DD0TOW6s-bf3b33ad63629d24ea9e.js → ScrollwindowWidget-D4NKIzQO-d0abd9d85cb8d65f4fe6.js} +1 -1
- data/tools/tlmgrapher/{SignalWidget-CC33KMTW-a236bc41aa92dbd9436a.js → SignalWidget-h-oivReC-4cd64c8abcce31df102b.js} +1 -1
- data/tools/tlmgrapher/SpacerWidget-BSy9eOlB-9eb20c8bcec73a7aeceb.js +1 -0
- data/tools/tlmgrapher/SparklineWidget-C9vdxar--33e5573559743fd777cd.js +1 -0
- data/tools/tlmgrapher/TabbookWidget-DTFTKURm-abc0729977778c618386.js +1 -0
- data/tools/tlmgrapher/TextboxWidget-BZyYHmBq-a9a8864dc588f44d5ecb.js +1 -0
- data/tools/tlmgrapher/{TextfieldWidget-DXSdgqVP-120f404abbd38a251cf0.js → TextfieldWidget-aVRdXRsT-213364d5732dcee8d036.js} +1 -1
- data/tools/tlmgrapher/TimeWidget-BE2rtMxg-e21567e53d673465c836.js +1 -0
- data/tools/tlmgrapher/{TitleWidget-DqViFQl--a9ce854539d034f46c77.js → TitleWidget-BB29MZb2-e0d478ebf3b07842da29.js} +1 -1
- data/tools/tlmgrapher/{TlmGrapher-43f84418a2138827f7fe.js → TlmGrapher-c18bb4590202825cad3b.js} +7 -7
- data/tools/tlmgrapher/{VWidget-02CG-3Av-e4e7b9dc6e9d84d28f93.js → VWidget-CGdM4sTw-a0bd40c69bd1f93ae37f.js} +1 -1
- data/tools/tlmgrapher/ValueWidget-h3905woQ-c74bf706028d58d02dea.js +1 -0
- data/tools/tlmgrapher/{ValuelimitsbarWidget-SR8XNZFB-551cc4ade88f47622e0b.js → ValuelimitsbarWidget-LMXYjWtS-a5070a20f41347c32630.js} +1 -1
- data/tools/tlmgrapher/{ValuelimitscolumnWidget-xYZSp6YZ-91f8ba73b54cfcc875e4.js → ValuelimitscolumnWidget-gA3ZcfAT-b47ffa82bd34ac742c39.js} +1 -1
- data/tools/tlmgrapher/ValuerangebarWidget-DwZ9KQ0O-2b0802318ccba039ac3f.js +1 -0
- data/tools/tlmgrapher/VerticalWidget-DziyURNu-d29b1d3d742daad693a6.js +1 -0
- data/tools/tlmgrapher/VerticalboxWidget-OcoZBsFU-44186f28fff1258a01ed.js +1 -0
- data/tools/tlmgrapher/{Widget-C4QVI4IH-64483f16db448e0159ef.js → Widget-C7ms_xDE-d975507fdbf3ad763a90.js} +1 -1
- data/tools/tlmgrapher/{main-ee372b26dafe4f55356c.js → main-9ef5c77cc7eed63a6d1a.js} +72 -72
- data/tools/tlmgrapher/main.js +1 -1
- metadata +68 -68
- data/tools/tlmgrapher/BlockWidget-PmjzrkXF-a8d229f72134adfe9034.js +0 -2
- data/tools/tlmgrapher/CanvasWidget-BL8930eT-f621f6e56fa48c2f605b.js +0 -1
- data/tools/tlmgrapher/CanvasdotWidget-VCf1fL-G-367ccf35972ef5369aba.js +0 -1
- data/tools/tlmgrapher/CanvasimagevalueWidget-CE3Dj5bH-dfc3da5297d9184f0efc.js +0 -1
- data/tools/tlmgrapher/CanvaslineWidget-COeapH3P-ce371538fa428a01add0.js +0 -1
- data/tools/tlmgrapher/CanvaslinevalueWidget-CI-Bbzfi-433ee3be9a447ba54345.js +0 -1
- data/tools/tlmgrapher/CheckbuttonWidget-BQhggcZ2-5edf3d8993d5661231d6.js +0 -1
- data/tools/tlmgrapher/FormatvalueWidget-DZkRJce8-165eeff563b80c5013f2.js +0 -1
- data/tools/tlmgrapher/HorizontalboxWidget-CyTDt2nl-351323fc073f8a3fe8ef.js +0 -1
- data/tools/tlmgrapher/IframeWidget-DnJmCrCA-ab22b92513b25e7d972f.js +0 -1
- data/tools/tlmgrapher/LabelprogressbarWidget-RADJGLj3-c1e969d3c40de87dfa32.js +0 -1
- data/tools/tlmgrapher/LabelvalueWidget-DVWJqnlY-b5d6c96eb7e65ab227ce.js +0 -1
- data/tools/tlmgrapher/LabelvaluelimitscolumnWidget-CvCo-uCe-3e63fc2f670bed6a5659.js +0 -1
- data/tools/tlmgrapher/LinegraphWidget-y-Qy9P0R-1e7c9c56d46b9e4060df.js +0 -1
- data/tools/tlmgrapher/MatrixbycolumnsWidget-BTBColrs-b996a5a41aa0b7a86db4.js +0 -1
- data/tools/tlmgrapher/RadiobuttonWidget-BO8zpgwW-720937eac358ef5caca3.js +0 -1
- data/tools/tlmgrapher/RadiogroupWidget-Oy7V4S-V-df62ebb2d93e397f66f9.js +0 -1
- data/tools/tlmgrapher/SpacerWidget-BnJe_Hq6-ad8ec76b80d55ed96566.js +0 -1
- data/tools/tlmgrapher/SparklineWidget-DMvMQCPm-6762beef39a1f4c45b5f.js +0 -1
- data/tools/tlmgrapher/TabbookWidget-B3w0JtWe-3d4cbedba09cad07012b.js +0 -1
- data/tools/tlmgrapher/TextboxWidget-D2f0-eol-824e74db8e6ac18d78b9.js +0 -1
- data/tools/tlmgrapher/TimeWidget-DvrRaEMz-dc3f0f91733f306614ad.js +0 -1
- data/tools/tlmgrapher/ValueWidget-KLYY8L8U-182dea68c6dd9abde721.js +0 -1
- data/tools/tlmgrapher/ValuerangebarWidget-B6M02a9d-1c1d1d63845d0e0895cf.js +0 -1
- data/tools/tlmgrapher/VerticalWidget-z6xUM-ql-38efa918ea4fa620f17f.js +0 -1
- data/tools/tlmgrapher/VerticalboxWidget-3a9cVsW--1ec68946ce6edb016f36.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: 4c8ee88577cbf33a07a4db78fb5ab55d751c94c2bc355dadd012547aca0482b4
|
4
|
+
data.tar.gz: b7d3f90a8123bc830e47cbc25b76fe0550ad2b4d1d8d34e5a810885cb63af9d8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9aff2cef3fa28f81952b23304a82e1b3bb6673613c71643737a6d0d6737c36d49d17ad30cbb54b947d007dc2aaab02f7b0694be8d1b5486b2e3c0fdde9745e3e
|
7
|
+
data.tar.gz: 79542f604836e2c426bad83fb8e8f9cb0c3a76f5cbd89ecbe0340c553e0203c4821720b3d315e74e945420bbd326d607a0cd813be9cd288d6c96a661ae226e5e
|
@@ -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-9ef5c77cc7eed63a6d1a.js","vue","./DetailsDialog-DiVcC3Fg-ccc062aa24dc2f9d814e.js","single-spa","./VWidget-CGdM4sTw-a0bd40c69bd1f93ae37f.js","vue-router","vuex","vuetify","./Widget-C7ms_xDE-d975507fdbf3ad763a90.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-d975507fdbf3ad763a90.js","./main-9ef5c77cc7eed63a6d1a.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-9ef5c77cc7eed63a6d1a.js","vue","./DetailsDialog-DiVcC3Fg-ccc062aa24dc2f9d814e.js","single-spa","./VWidget-CGdM4sTw-a0bd40c69bd1f93ae37f.js","vue-router","vuex","vuetify","./Widget-C7ms_xDE-d975507fdbf3ad763a90.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,r={}){let p=[];for(const a in r)p.push({key:a,value:r[a],readonly:!1});Ik.post(`/script-api/scripts/${e}/run`,{data:{environment:p}}).then(a=>{t&&window.open(`/tools/scriptrunner/${a.data}`,"_blank")})}}},_hoisted_1={class:"mx-1"};function _sfc_render(e,t,r,p,a,
|
1
|
+
System.register(["./main-9ef5c77cc7eed63a6d1a.js","vue","single-spa","./Widget-C7ms_xDE-d975507fdbf3ad763a90.js","vue-router","vuex","vuetify"],function(exports,module){"use strict";var s,Ik,S$1,Fk,resolveComponent,openBlock,createBlock,withCtx,createVNode,createElementVNode,createTextVNode,toDisplayString,createCommentVNode,withModifiers,createElementBlock,normalizeStyle,o;return{setters:[e=>{s=e.s,Ik=e.I,S$1=e.S,Fk=e.F},e=>{resolveComponent=e.resolveComponent,openBlock=e.openBlock,createBlock=e.createBlock,withCtx=e.withCtx,createVNode=e.createVNode,createElementVNode=e.createElementVNode,createTextVNode=e.createTextVNode,toDisplayString=e.toDisplayString,createCommentVNode=e.createCommentVNode,withModifiers=e.withModifiers,createElementBlock=e.createElementBlock,normalizeStyle=e.normalizeStyle},null,e=>{o=e.o},null,null,null],execute:function(){const S={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(e){this.$emit("update:modelValue",e)}},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(e,t){e?(Ik.get("/openc3-api/criticalcmd/canapprove/"+this.uuid).then(r=>{r.data.status==="ok"&&(this.canApprove=!0)}),this.updater=setInterval(()=>{this.uuid?Ik.get("/openc3-api/criticalcmd/status/"+this.uuid).then(r=>{r.data.status!=="WAITING"&&(this.$emit("status",r.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 Ik.post("/openc3-api/criticalcmd/approve/"+this.uuid,{}).then(e=>{e.status==200&&(this.$emit("status","APPROVED"),this.show=!1,this.error=!1)});else{let e=await this.getKeycloakToken();S$1.post("/openc3-api/criticalcmd/approve/"+this.uuid,{},{headers:{Authorization:e,"Content-Type":"application/json"},params:{scope:window.openc3Scope},timeout:5e3}).then(t=>{this.$emit("status","APPROVED"),this.show=!1,this.error=!1}).catch(t=>{this.error=!0,t.response?this.errorText=t.response.data.message:this.errorText=t.message})}},async reject(){if(this.canApprove)await Ik.post("/openc3-api/criticalcmd/reject/"+this.uuid,{}).then(e=>{e.status==200&&(this.$emit("status","REJECTED"),this.show=!1,this.error=!1)});else{let e=await this.getKeycloakToken();(await S$1.post("/openc3-api/criticalcmd/reject/"+this.uuid,{},{headers:{Authorization:e,"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 S$1.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 E(e,t,r,p,a,l){const c=resolveComponent("v-spacer"),V=resolveComponent("v-toolbar"),m=resolveComponent("v-alert"),n=resolveComponent("v-row"),h=resolveComponent("v-text-field"),C=resolveComponent("v-btn"),f=resolveComponent("v-container"),v=resolveComponent("v-card-text"),u=resolveComponent("v-card"),w=resolveComponent("v-dialog");return openBlock(),createBlock(w,{persistent:r.persistent,modelValue:l.show,"onUpdate:modelValue":t[3]||(t[3]=d=>l.show=d),width:"600"},{default:withCtx(()=>[createVNode(u,null,{default:withCtx(()=>[createVNode(V,{height:"24"},{default:withCtx(()=>[createVNode(c),t[4]||(t[4]=createElementVNode("span",null," Waiting for Critical Command Approval ",-1)),createVNode(c)]),_:1}),createVNode(v,null,{default:withCtx(()=>[createVNode(f,{fluid:""},{default:withCtx(()=>[createVNode(m,{type:"error",modelValue:a.error,"onUpdate:modelValue":t[0]||(t[0]=d=>a.error=d),dismissible:""},{default:withCtx(()=>[createTextVNode(toDisplayString(a.errorText),1)]),_:1},8,["modelValue"]),createVNode(n,{class:"pt-4",style:{color:"white"}},{default:withCtx(()=>[createTextVNode("User "+toDisplayString(r.cmdUser)+" is waiting for approval to execute: ",1)]),_:1}),createVNode(n,{class:"pa-4",style:{color:"white"}},{default:withCtx(()=>[createTextVNode(toDisplayString(r.cmdString),1)]),_:1}),createVNode(n,{class:"text-subtitle-2"},{default:withCtx(()=>[createTextVNode("UUID: "+toDisplayString(r.uuid),1)]),_:1}),a.canApprove?createCommentVNode("",!0):(openBlock(),createBlock(n,{key:0},{default:withCtx(()=>[createVNode(h,{modelValue:a.username,"onUpdate:modelValue":t[1]||(t[1]=d=>a.username=d),label:"Username","data-test":"username"},null,8,["modelValue"])]),_:1})),a.canApprove?createCommentVNode("",!0):(openBlock(),createBlock(n,{key:1},{default:withCtx(()=>[createVNode(h,{modelValue:a.password,"onUpdate:modelValue":t[2]||(t[2]=d=>a.password=d),type:"password",label:"Password","data-test":"password"},null,8,["modelValue"])]),_:1})),createVNode(n,{class:"pt-2"},{default:withCtx(()=>[createVNode(c),createVNode(C,{type:"submit",onClick:withModifiers(l.reject,["prevent"]),class:"mx-2",color:"secondary",outlined:"",disabled:l.disableButtons,"data-test":"reject"},{default:withCtx(()=>t[5]||(t[5]=[createTextVNode(" Reject ")])),_:1},8,["onClick","disabled"]),createVNode(C,{type:"submit",onClick:withModifiers(l.approve,["prevent"]),class:"mx-2",color:"primary",disabled:l.disableButtons,"data-test":"approve"},{default:withCtx(()=>t[6]||(t[6]=[createTextVNode(" Approve ")])),_:1},8,["onClick","disabled"])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["persistent","modelValue"])}const N=s(S,[["render",E],["__scopeId","data-v-edfbf188"]]),_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,r={}){let p=[];for(const a in r)p.push({key:a,value:r[a],readonly:!1});Ik.post(`/script-api/scripts/${e}/run`,{data:{environment:p}}).then(a=>{t&&window.open(`/tools/scriptrunner/${a.data}`,"_blank")})}}},_hoisted_1={class:"mx-1"};function _sfc_render(e,t,r,p,a,l){const c=resolveComponent("v-btn"),V=resolveComponent("v-card-title"),m=resolveComponent("v-row"),n=resolveComponent("v-spacer"),h=resolveComponent("v-card-text"),C=resolveComponent("v-card"),f=resolveComponent("v-dialog"),v=resolveComponent("critical-cmd-dialog");return openBlock(),createElementBlock("div",null,[createVNode(c,{class:"ma-1",color:"primary",style:normalizeStyle(e.computedStyle),onClick:l.onClick},{default:withCtx(()=>[createTextVNode(toDisplayString(l.buttonText),1)]),_:1},8,["style","onClick"]),createVNode(f,{modelValue:a.displaySendHazardous,"onUpdate:modelValue":t[0]||(t[0]=u=>a.displaySendHazardous=u),"max-width":"300"},{default:withCtx(()=>[createVNode(C,null,{default:withCtx(()=>[createVNode(V,null,{default:withCtx(()=>t[2]||(t[2]=[createTextVNode("Hazardous")])),_:1}),createVNode(h,null,{default:withCtx(()=>[createElementVNode("div",_hoisted_1,[createVNode(m,{class:"my-2"},{default:withCtx(()=>t[3]||(t[3]=[createElementVNode("span",null," Warning: Command is Hazardous. Send? ",-1)])),_:1}),createVNode(m,null,{default:withCtx(()=>[createVNode(n),createVNode(c,{onClick:l.cancelHazardousCmd,variant:"outlined"},{default:withCtx(()=>t[4]||(t[4]=[createTextVNode(" Cancel ")])),_:1},8,["onClick"]),createVNode(c,{onClick:l.sendHazardousCmd,class:"bg-primary mx-1"},{default:withCtx(()=>t[5]||(t[5]=[createTextVNode(" Send ")])),_:1},8,["onClick"])]),_:1})])]),_:1})]),_:1})]),_:1},8,["modelValue"]),createVNode(v,{uuid:a.criticalCmdUuid,cmdString:a.criticalCmdString,cmdUser:a.criticalCmdUser,modelValue:a.displayCriticalCmd,"onUpdate:modelValue":t[1]||(t[1]=u=>a.displayCriticalCmd=u)},null,8,["uuid","cmdString","cmdUser","modelValue"])])}const ButtonWidget=exports("default",s(_sfc_main,[["render",_sfc_render]]))}}});
|
@@ -0,0 +1 @@
|
|
1
|
+
System.register(["./Layout-D4YBjuWs-11ba6de9fe6f8ed30e9f.js","vue","./main-9ef5c77cc7eed63a6d1a.js","./Widget-C7ms_xDE-d975507fdbf3ad763a90.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-d975507fdbf3ad763a90.js","vue","./main-9ef5c77cc7eed63a6d1a.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-d975507fdbf3ad763a90.js","./ImageLoader-y6fAZe9P-ca2582b959bb1ec0eb9f.js","vue","./main-9ef5c77cc7eed63a6d1a.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-d975507fdbf3ad763a90.js","./ImageLoader-y6fAZe9P-ca2582b959bb1ec0eb9f.js","vue","./main-9ef5c77cc7eed63a6d1a.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-d975507fdbf3ad763a90.js","vue","./main-9ef5c77cc7eed63a6d1a.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-d975507fdbf3ad763a90.js","vue","./main-9ef5c77cc7eed63a6d1a.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-d975507fdbf3ad763a90.js","vue","./main-9ef5c77cc7eed63a6d1a.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-d975507fdbf3ad763a90.js","vue","./main-9ef5c77cc7eed63a6d1a.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-d975507fdbf3ad763a90.js","vue","./main-9ef5c77cc7eed63a6d1a.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-d975507fdbf3ad763a90.js","vue","./main-9ef5c77cc7eed63a6d1a.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]]))}}});
|
@@ -1 +1 @@
|
|
1
|
-
System.register(["./Widget-
|
1
|
+
System.register(["./Widget-C7ms_xDE-d975507fdbf3ad763a90.js","./main-9ef5c77cc7eed63a6d1a.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-ee372b26dafe4f55356c.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-9ef5c77cc7eed63a6d1a.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-9ef5c77cc7eed63a6d1a.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-d975507fdbf3ad763a90.js","./ValueWidget-h3905woQ-c74bf706028d58d02dea.js","vue","./main-9ef5c77cc7eed63a6d1a.js","./DetailsDialog-DiVcC3Fg-ccc062aa24dc2f9d814e.js","single-spa","./VWidget-CGdM4sTw-a0bd40c69bd1f93ae37f.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]]))}}});
|
@@ -1 +1 @@
|
|
1
|
-
System.register(["./main-ee372b26dafe4f55356c.js","vue"],function(le,De){"use strict";var $,H,X,M,j,A,W,B,J,h,w,Y,Q,i,s,I,ee,x,T,m,S,E,b,N,te,ie,q,ae,se;return{setters:[p=>{$=p.s,H=p.P,X=p.O,M=p.$,j=p.a,A=p.b,W=p.c,B=p.l,J=p.F},p=>{h=p.resolveComponent,w=p.openBlock,Y=p.createElementBlock,Q=p.withModifiers,i=p.createVNode,s=p.withCtx,I=p.withDirectives,ee=p.normalizeClass,x=p.createElementVNode,T=p.mergeProps,m=p.createTextVNode,S=p.vShow,E=p.toDisplayString,b=p.createBlock,N=p.createCommentVNode,te=p.normalizeProps,ie=p.guardReactiveProps,q=p.withKeys,ae=p.Fragment,se=p.renderList}],execute:function(){const p={props:{modelValue:Boolean,title:{type:String,required:!0},legendPosition:{type:String,required:!0},items:{type:Array,required:!0},graphMinY:{type:Number},graphMaxY:{type:Number},lines:{type:Array,required:!0},colors:{type:Array,required:!0},startDateTime:{type:Number},endDateTime:{type:Number},timeZone:{type:String,required:!0}},mixins:[H],data:function(){return{tab:0,graph:{},legendPositions:["top","bottom","left","right"],startDate:null,startTime:null,endDate:null,endTime:null,lineHeaders:[{title:"Y Value",value:"yValue"},{title:"Color",value:"color"},{title:"Actions",value:"actions",sortable:!1}],itemHeaders:[{title:"Target Name",value:"targetName"},{title:"Packet Name",value:"packetName"},{title:"Item Name",value:"itemName"},{title:"Actions",value:"actions",sortable:!1}],rules:{date:t=>{if(!t)return!0;try{return A(W(t,"yyyy-MM-dd",new Date))||"Invalid date (YYYY-MM-DD)"}catch{return"Invalid date (YYYY-MM-DD)"}},time:t=>{if(!t)return!0;try{return A(W(t,"HH:mm:ss",new Date))||"Invalid time (HH:MM:SS)"}catch{return"Invalid time (HH:MM:SS)"}}}}},computed:{show:{get(){return this.modelValue},set(t){this.$emit("update:modelValue",t)}},editItems:function(){if(!this.items)return[];let t=0;return this.items.map(e=>(t+=1,{...e,itemId:t}))}},created(){if(this.graph={title:this.title,legendPosition:this.legendPosition,items:this.items,graphMinY:this.graphMinY,graphMaxY:this.graphMaxY,lines:[...this.lines]},this.startDateTime){let t=B(this.startDateTime/1e6);this.startDate=this.formatDate(t,this.timeZone),this.startTime=this.formatTimeHMS(t,this.timeZone)}else{let t=new Date-36e5;this.startDate=this.formatDate(t,this.timeZone),this.startTime=this.formatTimeHMS(t,this.timeZone)}if(this.endDateTime){let t=B(this.endDateTime/1e6);this.endDate=this.formatDate(t,this.timeZone),this.endTime=this.formatTimeHMS(t,this.timeZone)}},methods:{closeOk(){this.startDate&&this.startTime?this.graph.startDateTime=this.startDate+" "+this.startTime:this.graph.startDateTime=null,this.endDate&&this.endTime?this.graph.endDateTime=this.endDate+" "+this.endTime:this.graph.endDateTime=null,this.$emit("ok",this.graph)},addLine(){this.graph.lines.push({yValue:0,color:"white"})},removeLine(t){let e=this.graph.lines.indexOf(t);this.graph.lines.splice(e,1)}}},oe={class:"edit-box"},re={class:"edit-box"},ne={class:"edit-box"},de={class:"edit-box"};function he(t,e,a,u,l,o){const n=h("v-spacer"),r=h("v-toolbar"),v=h("v-tab"),g=h("v-tabs"),y=h("v-text-field"),D=h("v-card-text"),_=h("v-col"),V=h("v-select"),f=h("v-row"),z=h("v-tabs-window-item"),U=h("v-btn"),P=h("v-list-item"),k=h("v-icon"),C=h("v-tooltip"),G=h("v-list"),L=h("v-data-table"),Z=h("v-tabs-window"),K=h("v-card-actions"),d=h("v-card"),R=h("v-dialog");return w(),b(R,{modelValue:o.show,"onUpdate:modelValue":e[12]||(e[12]=c=>o.show=c),onKeydown:e[13]||(e[13]=q(c=>t.$emit("cancel"),["esc"])),"max-width":"700"},{default:s(()=>[i(r,{height:"24"},{default:s(()=>[i(n),e[14]||(e[14]=x("span",null," Edit Graph ",-1)),i(n)]),_:1}),i(d,{class:"pa-3"},{default:s(()=>[i(g,{modelValue:t.tab,"onUpdate:modelValue":e[0]||(e[0]=c=>t.tab=c),class:"ml-3"},{default:s(()=>[i(v,{value:"0"},{default:s(()=>e[15]||(e[15]=[m(" Settings ")])),_:1}),i(v,{value:"1"},{default:s(()=>e[16]||(e[16]=[m(" Scale / Lines ")])),_:1}),i(v,{value:"2"},{default:s(()=>e[17]||(e[17]=[m(" Items ")])),_:1})]),_:1},8,["modelValue"]),i(Z,{modelValue:t.tab,"onUpdate:modelValue":e[10]||(e[10]=c=>t.tab=c)},{default:s(()=>[i(z,{value:"0",eager:""},{default:s(()=>[x("div",oe,[i(f,null,{default:s(()=>[i(_,null,{default:s(()=>[i(D,{class:"pa-0"},{default:s(()=>[i(y,{class:"pb-2",label:"Title",modelValue:t.graph.title,"onUpdate:modelValue":e[1]||(e[1]=c=>t.graph.title=c),"hide-details":""},null,8,["modelValue"])]),_:1})]),_:1}),i(_,null,{default:s(()=>[i(V,{label:"Legend Position","hide-details":"",items:t.legendPositions,modelValue:t.graph.legendPosition,"onUpdate:modelValue":e[2]||(e[2]=c=>t.graph.legendPosition=c),style:{"max-width":"280px"}},null,8,["items","modelValue"])]),_:1})]),_:1})]),x("div",re,[i(D,{class:"pa-0"},{default:s(()=>e[18]||(e[18]=[m(" Select a start date/time for the graph. Leave blank for start now. ")])),_:1}),i(f,null,{default:s(()=>[i(_,null,{default:s(()=>[i(y,{label:"Start Date",name:`date${Date.now()}`,rules:[t.rules.date],modelValue:t.startDate,"onUpdate:modelValue":e[3]||(e[3]=c=>t.startDate=c),type:"date"},null,8,["name","rules","modelValue"])]),_:1}),i(_,null,{default:s(()=>[i(y,{label:"Start Time",name:`time${Date.now()}`,rules:[t.rules.time],modelValue:t.startTime,"onUpdate:modelValue":e[4]||(e[4]=c=>t.startTime=c),type:"time",step:"1"},null,8,["name","rules","modelValue"])]),_:1})]),_:1}),i(D,{class:"pa-0"},{default:s(()=>e[19]||(e[19]=[m(" Select a end date/time for the graph. Leave blank for continuous real-time graphing. ")])),_:1}),i(f,null,{default:s(()=>[i(_,null,{default:s(()=>[i(y,{label:"End Date",name:`date${Date.now()}`,rules:[t.rules.date],modelValue:t.endDate,"onUpdate:modelValue":e[5]||(e[5]=c=>t.endDate=c),type:"date"},null,8,["name","rules","modelValue"])]),_:1}),i(_,null,{default:s(()=>[i(y,{label:"End Time",name:`time${Date.now()}`,rules:[t.rules.time],modelValue:t.endTime,"onUpdate:modelValue":e[6]||(e[6]=c=>t.endTime=c),type:"time",step:"1"},null,8,["name","rules","modelValue"])]),_:1})]),_:1})])]),_:1}),i(z,{value:"1",eager:""},{default:s(()=>[x("div",ne,[i(D,{class:"pa-0"},{default:s(()=>e[20]||(e[20]=[m(" Set a min or max Y value to override automatic scaling ")])),_:1}),i(f,{dense:""},{default:s(()=>[i(_,{class:"px-2"},{default:s(()=>[i(y,{"hide-details":"",label:"Min Y Axis (Optional)",modelValue:t.graph.graphMinY,"onUpdate:modelValue":e[7]||(e[7]=c=>t.graph.graphMinY=c),type:"number"},null,8,["modelValue"])]),_:1}),i(_,{class:"px-2"},{default:s(()=>[i(y,{"hide-details":"",label:"Max Y Axis (Optional)",modelValue:t.graph.graphMaxY,"onUpdate:modelValue":e[8]||(e[8]=c=>t.graph.graphMaxY=c),type:"number"},null,8,["modelValue"])]),_:1})]),_:1})]),x("div",de,[i(G,{density:"compact",class:"horizontal-lines"},{default:s(()=>[i(P,null,{default:s(()=>[e[22]||(e[22]=x("span",{style:{"padding-top":"5px"}}," Add horizontal lines to the graph ",-1)),i(n),i(U,{onClick:e[9]||(e[9]=c=>o.addLine())},{default:s(()=>e[21]||(e[21]=[m(" New Line ")])),_:1})]),_:1}),(w(!0),Y(ae,null,se(t.graph.lines,(c,F)=>(w(),b(P,{key:F,value:c,color:"primary"},{default:s(()=>[i(f,null,{default:s(()=>[i(_,null,{default:s(()=>[i(y,{label:"Y Value",modelValue:c.yValue,"onUpdate:modelValue":O=>c.yValue=O},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),i(_,null,{default:s(()=>[i(V,{label:"Color","hide-details":"",items:a.colors,modelValue:c.color,"onUpdate:modelValue":O=>c.color=O},null,8,["items","modelValue","onUpdate:modelValue"])]),_:2},1024),i(_,null,{default:s(()=>[i(C,{text:"Remove",location:"top"},{activator:s(({props:O})=>[i(k,T({ref_for:!0},O,{style:{padding:"30px"},onClick:ke=>o.removeLine(c)}),{default:s(()=>e[23]||(e[23]=[m("mdi-delete")])),_:2},1040,["onClick"])]),_:2},1024)]),_:2},1024)]),_:2},1024)]),_:2},1032,["value"]))),128))]),_:1})])]),_:1}),i(z,{value:"2",eager:""},{default:s(()=>[i(L,{"item-key":"itemId",class:"elevation-1 my-2","data-test":"edit-graph-items",headers:t.itemHeaders,items:o.editItems,"items-per-page":5,"footer-props":{"items-per-page-options":[5]}},{"item.actions":s(({item:c})=>[i(C,{text:"Remove",location:"top"},{activator:s(({props:F})=>[i(k,T(F,{onClick:O=>t.$emit("remove",c)}),{default:s(()=>e[24]||(e[24]=[m(" mdi-delete ")])),_:2},1040,["onClick"])]),_:2},1024)]),"no-data":s(()=>e[25]||(e[25]=[x("span",null," Currently no items on this graph ",-1)])),_:1},8,["headers","items"])]),_:1})]),_:1},8,["modelValue"]),i(K,{class:"px-2"},{default:s(()=>[i(n),i(U,{variant:"outlined",onClick:e[11]||(e[11]=c=>t.$emit("cancel"))},{default:s(()=>e[26]||(e[26]=[m(" Cancel ")])),_:1}),i(U,{variant:"flat",onClick:o.closeOk},{default:s(()=>e[27]||(e[27]=[m(" Ok ")])),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue"])}const ue=$(p,[["render",he]]),me={props:{modelValue:Boolean,item:{type:Object,required:!0},colors:{type:Array,required:!0}},data:function(){return{editItem:null,limitsName:"NONE",limits:{NONE:[]},valueTypes:["CONVERTED","RAW"],reduction:[{title:"NONE",value:"DECOM"},{title:"REDUCED_MINUTE",value:"REDUCED_MINUTE"},{title:"REDUCED_HOUR",value:"REDUCED_HOUR"},{title:"REDUCED_DAY",value:"REDUCED_DAY"}],reducedTypes:["MIN","MAX","AVG","STDDEV"]}},computed:{show:{get(){return this.modelValue},set(t){this.$emit("update:modelValue",t)}},limitsNames(){return Object.keys(this.limits)}},async created(){this.editItem={...this.item},new J().get_item(this.item.targetName,this.item.packetName,this.item.itemName).then(t=>{for(const[e,a]of Object.entries(t.limits))Object.keys(a).includes("red_low")&&(this.limits[e]=Object.values(a));this.limitsName=Object.keys(this.limits).find(e=>this.limits[e]+""==this.editItem.limits+"")})}},ce={key:0},pe={class:"pa-3"};function ge(t,e,a,u,l,o){const n=h("v-card-title"),r=h("v-select"),v=h("v-card-text"),g=h("v-spacer"),y=h("v-btn"),D=h("v-card-actions"),_=h("v-card"),V=h("v-dialog");return w(),b(V,{modelValue:o.show,"onUpdate:modelValue":e[9]||(e[9]=f=>o.show=f),width:"400",onKeydown:e[10]||(e[10]=q(f=>t.success(),["enter"]))},{default:s(()=>[i(_,null,{default:s(()=>[i(n,{class:"mb-2"},{default:s(()=>e[11]||(e[11]=[m("Edit Item")])),_:1}),i(v,null,{default:s(()=>[i(r,{variant:"outlined","hide-details":"",label:"Value Type",items:t.valueTypes,modelValue:t.editItem.valueType,"onUpdate:modelValue":e[0]||(e[0]=f=>t.editItem.valueType=f),class:"mb-2"},null,8,["items","modelValue"]),i(r,{variant:"outlined","hide-details":"",label:"Reduction",items:t.reduction,modelValue:t.editItem.reduced,"onUpdate:modelValue":e[1]||(e[1]=f=>t.editItem.reduced=f),class:"mb-2"},null,8,["items","modelValue"]),i(r,{variant:"outlined","hide-details":"",label:"Reduced Type",items:t.reducedTypes,disabled:t.editItem.reduced==="DECOM",modelValue:t.editItem.reducedType,"onUpdate:modelValue":e[2]||(e[2]=f=>t.editItem.reducedType=f),class:"mb-2"},null,8,["items","disabled","modelValue"]),i(r,{variant:"outlined","hide-details":"",label:"Color",items:a.colors,modelValue:t.editItem.color,"onUpdate:modelValue":[e[3]||(e[3]=f=>t.editItem.color=f),e[4]||(e[4]=f=>t.$emit("changeColor",f))],class:"mb-2"},null,8,["items","modelValue"]),o.limitsNames.length>1?(w(),Y("div",ce,[i(r,{variant:"outlined","hide-details":"",label:"Display Limits",items:o.limitsNames,modelValue:t.limitsName,"onUpdate:modelValue":[e[5]||(e[5]=f=>t.limitsName=f),e[6]||(e[6]=f=>t.$emit("changeLimits",t.limits[t.limitsName]))]},null,8,["items","modelValue"]),x("div",pe,E(t.limitsName)+": "+E(t.limits[t.limitsName]),1)])):N("",!0)]),_:1}),i(D,{class:"px-2"},{default:s(()=>[i(g),i(y,{variant:"outlined",onClick:e[7]||(e[7]=f=>t.$emit("cancel"))},{default:s(()=>e[12]||(e[12]=[m(" Cancel ")])),_:1}),i(y,{variant:"flat",onClick:e[8]||(e[8]=f=>t.$emit("close",t.editItem))},{default:s(()=>e[13]||(e[13]=[m(" Ok ")])),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])}const fe=$(me,[["render",ge]]),ve={components:{GraphEditDialog:ue,GraphEditItemDialog:fe},props:{id:{type:Number,required:!0},selectedGraphId:{type:Number},state:{type:String,required:!0},startTime:{type:Number},secondsGraphed:{type:Number,required:!0},pointsSaved:{type:Number,required:!0},pointsGraphed:{type:Number,required:!0},refreshIntervalMs:{type:Number,default:200},hideToolbar:{type:Boolean,default:!1},hideOverview:{type:Boolean,default:!1},sparkline:{type:Boolean,default:!1},initialItems:{type:Array},height:{type:Number},width:{type:Number},timeZone:{type:String,default:"local"}},mixins:[H],data(){return{lines:[],active:!0,expand:!0,fullWidth:!0,fullHeight:!0,graph:null,editGraph:!1,editGraphMenu:!1,editGraphMenuX:0,editGraphMenuY:0,editItem:!1,itemMenu:!1,itemMenuX:0,itemMenuY:0,legendMenu:!1,legendMenuX:0,legendMenuY:0,legendPosition:"bottom",selectedItem:null,hideToolbarData:this.hideToolbar,showOverview:!this.hideOverview,hideOverviewData:this.hideOverview,title:"",overview:null,data:[[]],dataChanged:!1,timeout:null,graphMinY:null,graphMaxY:null,graphStartDateTime:null,graphEndDateTime:null,indexes:{},items:this.initialItems||[],limitsValues:[],drawInterval:null,zoomChart:!1,zoomOverview:!1,cable:new X,subscription:null,needToUpdate:!1,errorDialog:!1,errors:[],colorIndex:0,colors:["#00c7cb","#938bdb","#4dacff","lime","darkorange","red","gold","hotpink","tan","cyan","maroon","blue","teal","purple","green","brown","lightblue","white","black"]}},computed:{calcFullSize:function(){return this.fullWidth||this.fullHeight},error:function(){return this.errorDialog&&this.errors.length>0?JSON.stringify(this.errors,null,4):null}},created(){this.title=`Graph ${this.id}`;for(const[t,e]of this.items.entries())this.data.push([]),this.indexes[this.subscriptionKey(e)]=t+1,e.color===void 0&&(e.color=this.colors[this.colorIndex]),this.colorIndex++,this.colorIndex===this.colors.length&&(this.colorIndex=0)},mounted(){const{chartSeries:t,overviewSeries:e}=this.items.reduce((u,l)=>{const o={spanGaps:!0};return u.chartSeries.push({...o,item:l,label:this.formatLabel(l),stroke:(n,r)=>this.items[r-1].color,width:2,value:(n,r)=>typeof r=="string"||isNaN(r)?"NaN":r==null?"--":r.toFixed(3)}),u.overviewSeries.push({...o}),u},{chartSeries:[],overviewSeries:[]});let a={};if(this.sparkline)this.hideToolbarData=!0,this.hideOverviewData=!0,this.showOverview=!1,a={width:this.width,height:this.height,pxAlign:!1,cursor:{show:!1},select:{show:!1},legend:{show:!1},scales:{x:{time:!1}},axes:[{show:!1},{show:!1}],series:[{},{stroke:"white"}]},this.graph=new M(a,this.data,document.getElementById(`chart${this.id}`));else{let u=Intl.DateTimeFormat().resolvedOptions().timeZone;this.timeZone&&this.timeZone!=="local"&&(u=this.timeZone),a={...this.getSize("chart"),...this.getScales(),...this.getAxes("chart"),plugins:[this.linesPlugin()],tzDate:o=>M.tzDate(new Date(o*1e3),u),series:[{label:"Time",value:(o,n)=>n==null?"--":this.formatSeconds(n,this.timeZone)},...t],cursor:{drag:{x:!0,y:!1},sync:{key:"openc3"},bind:{mouseup:(o,n,r)=>v=>{this.state==="pause"&&o.select.width===0&&this.$emit("start"),r(v)}}},hooks:{setScale:[(o,n)=>{if(n==="x"&&!this.zoomOverview&&this.overview){this.zoomChart=!0;let r=Math.round(this.overview.valToPos(o.scales.x.min,"x")),v=Math.round(this.overview.valToPos(o.scales.x.max,"x"));this.overview.setSelect({left:r,width:v-r}),this.zoomChart=!1}}],setSelect:[o=>{this.state==="start"&&o.select.width>0&&this.$emit("pause")}],ready:[o=>{o.root.querySelector(".u-over").addEventListener("contextmenu",r=>{r.preventDefault(),this.itemMenu=!1,this.legendMenu=!1,this.editGraphMenuX=r.clientX,this.editGraphMenuY=r.clientY,this.editGraphMenu=!0});let n=o.root.querySelector(".u-legend");n.addEventListener("contextmenu",r=>{r.preventDefault(),this.editGraphMenu=!1,this.legendMenu=!1,this.itemMenuX=r.clientX,this.itemMenuY=r.clientY;let v=r.target.closest(".u-series"),g=Array.prototype.slice.call(n.childNodes[0].childNodes).indexOf(v),y=o.series[g];y.item?(this.selectedItem=y.item,this.itemMenu=!0):(this.itemMenu=!1,this.legendMenuX=r.clientX,this.legendMenuY=r.clientY,this.legendMenu=!0)}),n.querySelector("tbody").appendChild(this.$refs.info)}]}},this.graph=new M(a,this.data,document.getElementById(`chart${this.id}`));const l={...this.getSize("overview"),...this.getScales(),...this.getAxes("overview"),tzDate:o=>M.tzDate(new Date(o*1e3),u),series:[...e],cursor:{y:!1,drag:{setScale:!1,x:!0,y:!1}},legend:{show:!1},hooks:{setSelect:[o=>{if(!this.zoomChart){this.state==="start"&&o.select.width>0&&this.$emit("pause"),this.zoomOverview=!0;let n=o.posToVal(o.select.left,"x"),r=o.posToVal(o.select.left+o.select.width,"x");this.graph.setScale("x",{min:n,max:r}),this.zoomOverview=!1}}]}};this.overview=new M(l,this.data,document.getElementById(`overview${this.id}`)),this.moveLegend(this.legendPosition),window.addEventListener("resize",this.resize)}this.state!=="stop"&&this.startGraph()},beforeUnmount:function(){this.stopGraph(),this.cable.disconnect(),window.removeEventListener("resize",this.resize)},watch:{state:function(t,e){switch(t){case"start":e==="stop"&&this.startGraph();break;case"stop":this.stopGraph();break}},data:function(t,e){this.dataChanged=!0},graphMinY:function(t,e){let a=parseFloat(t);isNaN(a)||(this.graphMinY=a),this.setGraphRange()},graphMaxY:function(t,e){let a=parseFloat(t);isNaN(a)||(this.graphMaxY=a),this.setGraphRange()},graphStartDateTime:function(t,e){t&&typeof t=="string"?(this.graphStartDateTime=this.parseDateTime(this.graphStartDateTime,this.timeZone)*1e6,this.graphStartDateTime!==e&&(this.needToUpdate=!0)):t===null&&e&&(this.graphStartDateTime=null,this.needToUpdate=!0)},graphEndDateTime:function(t,e){t&&typeof t=="string"?(this.graphEndDateTime=this.parseDateTime(this.graphEndDateTime,this.timeZone)*1e6,this.graphEndDateTime!==e&&(this.needToUpdate=!0)):t===null&&e&&(this.graphEndDateTime=null,this.needToUpdate=!0)}},methods:{startGraph:function(){this.subscribe(),this.timeout=setTimeout(()=>{this.updateTimeout()},this.refreshIntervalMs)},stopGraph:function(){this.subscription&&(this.subscription.unsubscribe(),this.subscription=null),this.timeout&&(clearTimeout(this.timeout),this.timeout=null)},updateTimeout:function(){this.updateGraphData(),this.timeout=setTimeout(()=>{this.updateTimeout()},this.refreshIntervalMs)},updateGraphData:function(){if(this.state==="pause"||!this.dataChanged)return;this.graph.setData(this.data),this.overview&&this.overview.setData(this.data);let t=this.data[0][this.data[0].length-1],e=this.data[0][this.data[0].length-this.pointsGraphed],a=this.data[0][0];a<t-this.secondsGraphed&&(a=t-this.secondsGraphed),e>a&&(a=e),this.graph.setScale("x",{min:a,max:t}),this.dataChanged=!1},formatLabel(t){if(t.valueType==="CONVERTED"&&t.reduced==="DECOM")return t.itemName;{let e="";return t.valueType!=="CONVERTED"&&(e+=t.valueType),t.reduced!=="DECOM"&&(e!==""&&(e+=" "),e+=`${t.reduced.split("_")[1]} ${t.reducedType}`),`${t.itemName} (${e})`}},moveLegend:function(t){switch(t){case"bottom":this.graph.root.classList.remove("side-legend"),this.graph.root.classList.remove("left-legend"),this.graph.root.classList.remove("top-legend");break;case"top":this.graph.root.classList.remove("side-legend"),this.graph.root.classList.remove("left-legend"),this.graph.root.classList.add("top-legend");break;case"left":this.graph.root.classList.remove("top-legend"),this.graph.root.classList.add("side-legend"),this.graph.root.classList.add("left-legend");break;case"right":this.graph.root.classList.remove("top-legend"),this.graph.root.classList.remove("left-legend"),this.graph.root.classList.add("side-legend");break}this.legendPosition=t,this.resize()},clearErrors:function(){this.errors=[]},editGraphClose:function(t){this.editGraph=!1,this.title=t.title,this.legendPosition=t.legendPosition,this.graphMinY=t.graphMinY,this.graphMaxY=t.graphMaxY,this.lines=[...t.lines],this.graphStartDateTime=t.startDateTime,this.graphEndDateTime=t.endDateTime,this.$nextTick(()=>{if(this.needToUpdate){if(this.subscription==null)this.startGraph();else{let e=JSON.parse(JSON.stringify(this.items));this.removeItems(e),setTimeout(()=>{this.addItems(e)},0)}this.needToUpdate=!1}}),this.moveLegend(this.legendPosition),this.$emit("edit")},resize:function(){this.graph.setSize(this.getSize("chart")),this.overview&&this.overview.setSize(this.getSize("overview")),this.$emit("resize",this.id)},expandAll:function(){this.fullWidth=!0,this.fullHeight=!0,this.resize()},collapseAll:function(){this.fullWidth=!1,this.fullHeight=!1,this.resize()},expandWidth:function(){this.fullWidth=!0,this.resize()},collapseWidth:function(){this.fullWidth=!1,this.resize()},expandHeight:function(){this.fullHeight=!0,this.resize()},collapseHeight:function(){this.fullHeight=!1,this.resize()},minMaxTransition:function(){this.expand=!this.expand,this.$emit("min-max-graph",this.id)},setGraphRange:function(){let t=.1;(this.graphMinY||this.graphMinY===0||this.graphMaxY||this.graphMaxY===0)&&(t=0),this.graph.scales.y.range=(e,a,u)=>{let l=a;(this.graphMinY||this.graphMinY===0)&&(l=this.graphMinY);let o=u;return(this.graphMaxY||this.graphMaxY===0)&&(o=this.graphMaxY),M.rangeNum(l,o,t,!0)}},subscribe:function(){this.cable.createSubscription("StreamingChannel",window.openc3Scope,{received:t=>this.received(t),connected:()=>{this.addItemsToSubscription(this.items)},disconnected:()=>{this.errors.push({type:"disconnected",message:"OpenC3 backend connection disconnected",time:new Date().getTime()})},rejected:()=>{this.errors.push({type:"rejected",message:"OpenC3 backend connection rejected",time:new Date().getTime()})}}).then(t=>{this.subscription=t})},getSize:function(t){let e=0;const a=document.getElementById("openc3-nav-drawer");a&&(e=a.classList.contains("v-navigation-drawer--active")?a.clientWidth:0);let u=0;(this.legendPosition==="right"||this.legendPosition==="left")&&(u=document.getElementsByClassName("u-legend")[0].clientWidth);const l=Math.max(document.documentElement.clientWidth,window.innerWidth||0)-e-u,o=Math.max(document.documentElement.clientHeight,window.innerHeight||0),n=document.getElementsByClassName("v-expansion-panel")[0];let r=100;t==="overview"?this.fullHeight&&!this.hideOverviewData?this.showOverview=!0:this.showOverview=!1:(r=o-n.clientHeight-r-250,this.fullHeight||(r=r/2+10));let v=l-68;return this.fullWidth||(v=v/2-10),{width:this.width||v,height:this.height||r}},getScales:function(){return{scales:{x:{range(t,e,a){return e==null?[1566453600,1566497660]:[e,a]}},y:{range(t,e,a){return e==null?[-100,100]:M.rangeNum(e,a,.1,!0)}}}}},getAxes:function(t){let e="rgba(255, 255, 255, .1)",a="white";return{axes:[{stroke:a,grid:{show:!0,stroke:e,width:2}},{size:80,stroke:a,grid:{show:t!=="overview",stroke:e,width:2},values(u,l){return(l.some(o=>o>=1e7)||l.every(o=>o<.01))&&(l=l.map(o=>o.toExponential(3))),l}}]}},closeEditItem:function(t){this.editItem=!1,(this.graphEndDateTime!==null&&this.selectedItem!==t||this.selectedItem.valueType!==t.valueType||this.selectedItem.reduced!==t.reduced||this.selectedItem.reducedType!==t.reducedType)&&this.changeItem(t)},changeColor:function(t){let e=this.subscriptionKey(this.selectedItem),a=this.indexes[e];this.items[a-1].color=t,this.selectedItem.color=t,this.graph.root.querySelectorAll(".u-marker")[a].style.borderColor=t},changeLimits:function(t){let e=this.subscriptionKey(this.selectedItem),a=this.indexes[e];this.items[a-1].limits=t,this.selectedItem.limits=t,this.limitsValues=t},linesPlugin:function(){return{hooks:{draw:t=>{const{ctx:e,bbox:a}=t,u=t.valToPos(t.scales.y.min,"y",!0),l=t.valToPos(t.scales.y.max,"y",!0),o=t.valToPos(this.limitsValues[0],"y",!0),n=t.valToPos(this.limitsValues[1],"y",!0),r=t.valToPos(this.limitsValues[2],"y",!0),v=t.valToPos(this.limitsValues[3],"y",!0);if(this.lines.forEach(g=>{t.scales.y.min<=g.yValue&&g.yValue<=t.scales.y.max&&(e.save(),e.beginPath(),e.strokeStyle=g.color,e.lineWidth=2,e.moveTo(a.left,t.valToPos(g.yValue,"y",!0)),e.lineTo(a.left+a.width,t.valToPos(g.yValue,"y",!0)),e.stroke(),e.restore())}),e.save(),e.beginPath(),e.fillStyle="rgba(255,0,0,0.15)",t.scales.y.min<this.limitsValues[0]){let g=o<l?l:o;e.fillRect(a.left,o,a.width,u-g)}if(t.scales.y.max>this.limitsValues[3]){let g=u<v?u:v;e.fillRect(a.left,l,a.width,g-l)}if(e.fillStyle="rgba(255,255,0,0.15)",t.scales.y.min<this.limitsValues[1]&&t.scales.y.max>this.limitsValues[0]){let g=n<l?l:n;e.fillRect(a.left,g,a.width,o-g)}if(t.scales.y.max>this.limitsValues[2]&&t.scales.y.min<this.limitsValues[3]){let g=u<v?u:v,y=u<r?u:r;e.fillRect(a.left,g,a.width,y-g)}if(e.fillStyle="rgba(0,255,0,0.15)",this.limitsValues.length===4){if(t.scales.y.min<this.limitsValues[2]&&t.scales.y.max>this.limitsValues[1]){let g=r<l?l:r,y=u<n?u:n;e.fillRect(a.left,g,a.width,y-g)}}else{const g=t.valToPos(this.limitsValues[4],"y",!0),y=t.valToPos(this.limitsValues[5],"y",!0);if(t.scales.y.min<this.limitsValues[4]&&t.scales.y.max>this.limitsValues[1]){let V=g<l?l:g;e.fillRect(a.left,V,a.width,n-V)}if(t.scales.y.max>this.limitsValues[5]&&t.scales.y.min<this.limitsValues[2]){let V=u<r?u:r,f=u<y?u:y;e.fillRect(a.left,V,a.width,f-V)}e.fillStyle="rgba(0,0,255,0.15)";let D=y<l?l:y,_=u<g?u:g;e.fillRect(a.left,D,a.width,_-D)}e.stroke(),e.restore()}}}},changeItem:function(t){this.removeItems([this.selectedItem]),this.selectedItem.valueType=t.valueType,this.selectedItem.reduced=t.reduced,this.selectedItem.reducedType=t.reducedType,setTimeout(()=>{this.addItems([this.selectedItem])},0)},addItems:function(t,e="CONVERTED"){t.forEach(a=>{a.valueType||(a.valueType=e),a.color||(a.color=this.colors[this.colorIndex]),a.limits||(a.limits=[]),a.limits.length>0&&(this.limitsValues=a.limits),this.colorIndex=(this.colorIndex+1)%this.colors.length,this.items.push(a);const u=this.data.length;this.graph.addSeries(this.createSeriesConfig(a),u),this.overview&&this.overview.addSeries(this.createOverviewSeriesConfig(),u),this.data.splice(u,0,Array(this.data[0].length)),this.indexes[this.subscriptionKey(a)]=u}),this.updateColorIndex(t),this.addItemsToSubscription(t),this.$emit("resize"),this.$emit("edit")},createSeriesConfig:function(t){return{spanGaps:!0,item:t,label:this.formatLabel(t),stroke:(e,a)=>this.items[a-1].color,width:2,value:(e,a)=>typeof a=="string"||isNaN(a)?"NaN":a==null?"--":Math.abs(a)<.01&&a!==0||Math.abs(a)>=1e7?a.toExponential(6):a.toFixed(6)}},createOverviewSeriesConfig:function(){return{spanGaps:!0,stroke:(t,e)=>this.items[e-1].color}},updateColorIndex:function(t){const e=t[t.length-1];if(e){const a=this.colors.indexOf(e.color);a!==-1&&(this.colorIndex=(a+1)%this.colors.length)}},addItemsToSubscription:function(t=this.items){let e=this.startTime;this.graphStartDateTime&&(e=this.graphStartDateTime),this.subscription&&OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity).then(a=>{a&&OpenC3Auth.setTokens(),this.subscription.perform("add",{scope:window.openc3Scope,token:localStorage.openc3Token,items:t.map(this.subscriptionKey),start_time:e,end_time:this.graphEndDateTime})})},clearAllData:function(){this.data[0]=[],this.clearData(this.items)},clearData:function(t){for(const e of t.map(this.subscriptionKey)){let a=this.indexes[e];this.data[a]=Array(this.data[0].length).fill(null),this.graph.setData(this.data),this.overview&&this.overview.setData(this.data)}this.data.length===2&&(this.data[0]=[],this.graph.setData(this.data),this.overview.setData(this.data))},removeItems:function(t){this.removeItemsFromSubscription(t);for(const e of t.map(this.subscriptionKey)){const a=this.reorderIndexes(e);this.items.splice(a-1,1),this.data.splice(a,1),this.graph.delSeries(a),this.graph.setData(this.data),this.overview&&(this.overview.delSeries(a),this.overview.setData(this.data))}this.data.length===1&&(this.data[0]=[],this.graph.setData(this.data),this.overview.setData(this.data)),this.$emit("resize"),this.$emit("edit")},removeItemsFromSubscription:function(t=this.items){this.subscription&&this.subscription.perform("remove",{scope:window.openc3Scope,token:localStorage.openc3Token,items:t.map(this.subscriptionKey)})},reorderIndexes:function(t){let e=this.indexes[t];delete this.indexes[t];for(let a in this.indexes)this.indexes[a]>e&&(this.indexes[a]-=1);return e},received:function(t){this.cable.recordPing();for(let e=0;e<t.length;e++){let a=t[e].__time/1e9,u=t[0].length;if(u===0||a>t[0][u-1]){for(let l=0;l<this.data.length;l++)this.data[l].push(null);this.set_data_at_index(this.data[0].length-1,a,t[e])}else{let l=j(this.data[0],a,this.bs_comparator);if(l>=0)this.set_data_at_index(l,a,t[e]);else{let o=-l-1;for(let n=0;n<this.data.length;n++)this.data[n].splice(o,0,null);this.set_data_at_index(o,a,t[e])}}}if(this.startTime==null&&this.data[0][0]){let e=this.data[0][0]*1e9;this.$emit("started",e)}this.dataChanged=!0},bs_comparator:function(t,e){return t-e},set_data_at_index:function(t,e,a){this.data[0][t]=e;for(const[u,l]of Object.entries(a)){if(u==="time")continue;let o=this.indexes[u];if(o){let n=this.data[o];if(l!=null&&l.raw)n[t]=null;else if(typeof l=="string"){if(n[t]=null,!u.includes("__RAW")){for(let r of this.items)if(this.subscriptionKey(r)===u){this.selectedItem=r;break}this.changeItem({valueType:"RAW",reduced:this.selectedItem.reduced,reducedType:this.selectedItem.reducedType})}}else n[t]=l}}},subscriptionKey:function(t){let e=`${t.reduced}__TLM__${t.targetName}__${t.packetName}__${t.itemName}__${t.valueType}`;return(t.reduced==="REDUCED_MINUTE"||t.reduced==="REDUCED_HOUR"||t.reduced==="REDUCED_DAY")&&(e+=`__${t.reducedType}`),e}}},ye={class:"mx-2"},we={class:"pa-1",id:"chart",ref:"chart"},xe=["id"],be=["id"],_e={key:5,class:"u-series",ref:"info"};function Te(t,e,a,u,l,o){const n=h("v-icon"),r=h("v-tooltip"),v=h("v-spacer"),g=h("v-toolbar"),y=h("v-expand-transition"),D=h("v-card"),_=h("graph-edit-dialog"),V=h("v-text-field"),f=h("v-row"),z=h("v-textarea"),U=h("v-btn"),P=h("v-dialog"),k=h("v-list-item-title"),C=h("v-list-item"),G=h("v-list"),L=h("v-menu"),Z=h("graph-edit-item-dialog"),K=h("v-list-subheader");return w(),Y("div",{onClick:e[21]||(e[21]=Q(d=>t.$emit("click"),["prevent"]))},[i(D,null,{default:s(()=>[I(i(g,{height:"24",class:ee(["pl-2 pr-2",a.selectedGraphId===a.id?"active":""])},{default:s(()=>[I(x("div",ye,[i(r,{text:"Errors",location:"top"},{activator:s(({props:d})=>[i(n,T(d,{onClick:e[0]||(e[0]=R=>l.errorDialog=!0)}),{default:s(()=>e[22]||(e[22]=[m(" mdi-alert ")])),_:2},1040)]),_:1})],512),[[S,l.errors.length!==0]]),i(r,{text:"Edit",location:"top"},{activator:s(({props:d})=>[i(n,T(d,{onClick:e[1]||(e[1]=R=>l.editGraph=!0),"data-test":"edit-graph-icon"}),{default:s(()=>e[23]||(e[23]=[m(" mdi-pencil ")])),_:2},1040)]),_:1}),i(v),x("span",null,E(l.title),1),i(v),I(x("div",null,[o.calcFullSize?(w(),b(r,{key:0,text:"Collapse",location:"top"},{activator:s(({props:d})=>[i(n,T(d,{onClick:o.collapseAll,"data-test":"collapse-all"}),{default:s(()=>e[24]||(e[24]=[m(" mdi-arrow-collapse ")])),_:2},1040,["onClick"])]),_:1})):(w(),b(r,{key:1,text:"Expand",location:"top"},{activator:s(({props:d})=>[i(n,T(d,{onClick:o.expandAll,"data-test":"expand-all"}),{default:s(()=>e[25]||(e[25]=[m(" mdi-arrow-expand ")])),_:2},1040,["onClick"])]),_:1}))],512),[[S,l.expand]]),I(x("div",null,[l.fullWidth?(w(),b(r,{key:0,text:"Collapse Width",location:"top"},{activator:s(({props:d})=>[i(n,T(d,{onClick:o.collapseWidth,"data-test":"collapse-width"}),{default:s(()=>e[26]||(e[26]=[m(" mdi-arrow-collapse-horizontal ")])),_:2},1040,["onClick"])]),_:1})):(w(),b(r,{key:1,text:"Expand Width",location:"top"},{activator:s(({props:d})=>[i(n,T(d,{onClick:o.expandWidth,"data-test":"expand-width"}),{default:s(()=>e[27]||(e[27]=[m(" mdi-arrow-expand-horizontal ")])),_:2},1040,["onClick"])]),_:1}))],512),[[S,l.expand]]),I(x("div",null,[l.fullHeight?(w(),b(r,{key:0,text:"Collapse Height",location:"top"},{activator:s(({props:d})=>[i(n,T(d,{onClick:o.collapseHeight,"data-test":"collapse-height"}),{default:s(()=>e[28]||(e[28]=[m(" mdi-arrow-collapse-vertical ")])),_:2},1040,["onClick"])]),_:1})):(w(),b(r,{key:1,text:"Expand Height",location:"top"},{activator:s(({props:d})=>[i(n,T(d,{onClick:o.expandHeight,"data-test":"expand-height"}),{default:s(()=>e[29]||(e[29]=[m(" mdi-arrow-expand-vertical ")])),_:2},1040,["onClick"])]),_:1}))],512),[[S,l.expand]]),l.expand?(w(),b(r,{key:0,text:"Minimize",location:"top"},{activator:s(({props:d})=>[i(n,T(d,{onClick:o.minMaxTransition,"data-test":"minimize-screen-icon"}),{default:s(()=>e[30]||(e[30]=[m(" mdi-window-minimize ")])),_:2},1040,["onClick"])]),_:1})):(w(),b(r,{key:1,text:"Maximize",location:"top"},{activator:s(({props:d})=>[i(n,T(d,{onClick:o.minMaxTransition,"data-test":"maximize-screen-icon"}),{default:s(()=>e[31]||(e[31]=[m(" mdi-window-maximize ")])),_:2},1040,["onClick"])]),_:1})),i(r,{text:"Close",location:"top"},{activator:s(({props:d})=>[i(n,T(d,{onClick:e[2]||(e[2]=R=>t.$emit("close-graph")),"data-test":"close-graph-icon"}),{default:s(()=>e[32]||(e[32]=[m(" mdi-close-box ")])),_:2},1040)]),_:1})]),_:1},8,["class"]),[[S,!l.hideToolbarData]]),i(y,null,{default:s(()=>[I(x("div",we,[x("div",{id:`chart${a.id}`},null,8,xe),e[33]||(e[33]=x("div",{id:"betweenCharts"},null,-1)),I(x("div",{id:`overview${a.id}`},null,8,be),[[S,l.showOverview]])],512),[[S,l.expand]])]),_:1})]),_:1}),l.editGraph?(w(),b(_,{key:0,modelValue:l.editGraph,"onUpdate:modelValue":e[3]||(e[3]=d=>l.editGraph=d),title:l.title,"legend-position":l.legendPosition,items:l.items,"graph-min-y":l.graphMinY,"graph-max-y":l.graphMaxY,lines:l.lines,colors:l.colors,"start-date-time":l.graphStartDateTime,"end-date-time":l.graphEndDateTime,"time-zone":a.timeZone,onRemove:e[4]||(e[4]=d=>o.removeItems([d])),onOk:o.editGraphClose,onCancel:e[5]||(e[5]=d=>l.editGraph=!1)},null,8,["modelValue","title","legend-position","items","graph-min-y","graph-max-y","lines","colors","start-date-time","end-date-time","time-zone","onOk"])):N("",!0),i(P,{modelValue:l.errorDialog,"onUpdate:modelValue":e[7]||(e[7]=d=>l.errorDialog=d),"max-width":"600"},{default:s(()=>[i(g,{height:"24"},{default:s(()=>[i(v),e[34]||(e[34]=x("span",null," Errors ",-1)),i(v)]),_:1}),i(D,{class:"pa-3"},{default:s(()=>[i(f,{dense:""},{default:s(()=>[i(V,{readonly:"","hide-details":"",modelValue:l.title,"onUpdate:modelValue":e[6]||(e[6]=d=>l.title=d),class:"pb-2",label:"Graph Title"},null,8,["modelValue"])]),_:1}),i(f,{class:"my-3"},{default:s(()=>[i(z,{readonly:"",rows:"8",value:o.error},null,8,["value"])]),_:1}),i(f,null,{default:s(()=>[i(U,{block:"",onClick:o.clearErrors},{default:s(()=>e[35]||(e[35]=[m(" Clear ")])),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue"]),l.editGraphMenu?(w(),b(L,{key:1,modelValue:l.editGraphMenu,"onUpdate:modelValue":e[9]||(e[9]=d=>l.editGraphMenu=d),target:[l.editGraphMenuX,l.editGraphMenuY],absolute:"","offset-y":""},{default:s(()=>[i(G,null,{default:s(()=>[i(C,{onClick:e[8]||(e[8]=d=>l.editGraph=!0)},{default:s(()=>[i(k,{style:{cursor:"pointer"}},{default:s(()=>[m(" Edit "+E(l.title),1)]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue","target"])):N("",!0),l.editItem?(w(),b(Z,{key:2,modelValue:l.editItem,"onUpdate:modelValue":e[10]||(e[10]=d=>l.editItem=d),colors:l.colors,item:l.selectedItem,onChangeColor:o.changeColor,onChangeLimits:o.changeLimits,onCancel:e[11]||(e[11]=d=>l.editItem=!1),onClose:o.closeEditItem},null,8,["modelValue","colors","item","onChangeColor","onChangeLimits","onClose"])):N("",!0),l.itemMenu?(w(),b(L,{key:3,modelValue:l.itemMenu,"onUpdate:modelValue":e[15]||(e[15]=d=>l.itemMenu=d),target:[l.itemMenuX,l.itemMenuY],absolute:"","offset-y":""},{default:s(()=>[i(G,{nav:"",density:"compact"},{default:s(()=>[i(K,null,{default:s(()=>[m(E(l.selectedItem.targetName)+" "+E(l.selectedItem.packetName)+" "+E(l.selectedItem.itemName),1)]),_:1}),i(C,{onClick:e[12]||(e[12]=d=>l.editItem=!0)},{prepend:s(()=>[i(n,{icon:"mdi-pencil"})]),default:s(()=>[i(k,null,{default:s(()=>e[36]||(e[36]=[m(" Edit ")])),_:1})]),_:1}),i(C,{onClick:e[13]||(e[13]=d=>o.clearData([l.selectedItem]))},{prepend:s(()=>[i(n,{icon:"mdi-eraser"})]),default:s(()=>[i(k,null,{default:s(()=>e[37]||(e[37]=[m(" Clear ")])),_:1})]),_:1}),i(C,{onClick:e[14]||(e[14]=d=>o.removeItems([l.selectedItem]))},{prepend:s(()=>[i(n,{icon:"mdi-delete"})]),default:s(()=>[i(k,null,{default:s(()=>e[38]||(e[38]=[m(" Delete ")])),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue","target"])):N("",!0),l.legendMenu?(w(),b(L,{key:4,modelValue:l.legendMenu,"onUpdate:modelValue":e[20]||(e[20]=d=>l.legendMenu=d),target:[l.legendMenuX,l.legendMenuY],absolute:"","offset-y":""},{default:s(()=>[i(G,null,{default:s(()=>[i(C,{onClick:e[16]||(e[16]=d=>o.moveLegend("top"))},{default:s(()=>[i(k,{style:{cursor:"pointer"}},{default:s(()=>e[39]||(e[39]=[m(" Legend Top ")])),_:1})]),_:1}),i(C,{onClick:e[17]||(e[17]=d=>o.moveLegend("bottom"))},{default:s(()=>[i(k,{style:{cursor:"pointer"}},{default:s(()=>e[40]||(e[40]=[m(" Legend Bottom ")])),_:1})]),_:1}),i(C,{onClick:e[18]||(e[18]=d=>o.moveLegend("left"))},{default:s(()=>[i(k,{style:{cursor:"pointer"}},{default:s(()=>e[41]||(e[41]=[m(" Legend Left ")])),_:1})]),_:1}),i(C,{onClick:e[19]||(e[19]=d=>o.moveLegend("right"))},{default:s(()=>[i(k,{style:{cursor:"pointer"}},{default:s(()=>e[42]||(e[42]=[m(" Legend RIght ")])),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue","target"])):N("",!0),a.sparkline?N("",!0):(w(),Y("div",_e,[i(r,{text:"Click item to toggle, Right click to edit",location:"top"},{activator:s(({props:d})=>[i(n,te(ie(d)),{default:s(()=>e[43]||(e[43]=[m(" mdi-information-variant-circle ")])),_:2},1040)]),_:1})],512))])}const Ve=le("S",$(ve,[["render",Te],["__scopeId","data-v-485a5da2"]]))}}});
|
1
|
+
System.register(["./main-9ef5c77cc7eed63a6d1a.js","vue"],function(le,De){"use strict";var $,H,X,M,j,A,W,B,J,h,w,Y,Q,i,s,I,ee,x,T,m,S,E,b,N,te,ie,q,ae,se;return{setters:[p=>{$=p.s,H=p.P,X=p.O,M=p.$,j=p.a,A=p.b,W=p.c,B=p.l,J=p.F},p=>{h=p.resolveComponent,w=p.openBlock,Y=p.createElementBlock,Q=p.withModifiers,i=p.createVNode,s=p.withCtx,I=p.withDirectives,ee=p.normalizeClass,x=p.createElementVNode,T=p.mergeProps,m=p.createTextVNode,S=p.vShow,E=p.toDisplayString,b=p.createBlock,N=p.createCommentVNode,te=p.normalizeProps,ie=p.guardReactiveProps,q=p.withKeys,ae=p.Fragment,se=p.renderList}],execute:function(){const p={props:{modelValue:Boolean,title:{type:String,required:!0},legendPosition:{type:String,required:!0},items:{type:Array,required:!0},graphMinY:{type:Number},graphMaxY:{type:Number},lines:{type:Array,required:!0},colors:{type:Array,required:!0},startDateTime:{type:Number},endDateTime:{type:Number},timeZone:{type:String,required:!0}},mixins:[H],data:function(){return{tab:0,graph:{},legendPositions:["top","bottom","left","right"],startDate:null,startTime:null,endDate:null,endTime:null,lineHeaders:[{title:"Y Value",value:"yValue"},{title:"Color",value:"color"},{title:"Actions",value:"actions",sortable:!1}],itemHeaders:[{title:"Target Name",value:"targetName"},{title:"Packet Name",value:"packetName"},{title:"Item Name",value:"itemName"},{title:"Actions",value:"actions",sortable:!1}],rules:{date:t=>{if(!t)return!0;try{return A(W(t,"yyyy-MM-dd",new Date))||"Invalid date (YYYY-MM-DD)"}catch{return"Invalid date (YYYY-MM-DD)"}},time:t=>{if(!t)return!0;try{return A(W(t,"HH:mm:ss",new Date))||"Invalid time (HH:MM:SS)"}catch{return"Invalid time (HH:MM:SS)"}}}}},computed:{show:{get(){return this.modelValue},set(t){this.$emit("update:modelValue",t)}},editItems:function(){if(!this.items)return[];let t=0;return this.items.map(e=>(t+=1,{...e,itemId:t}))}},created(){if(this.graph={title:this.title,legendPosition:this.legendPosition,items:this.items,graphMinY:this.graphMinY,graphMaxY:this.graphMaxY,lines:[...this.lines]},this.startDateTime){let t=B(this.startDateTime/1e6);this.startDate=this.formatDate(t,this.timeZone),this.startTime=this.formatTimeHMS(t,this.timeZone)}else{let t=new Date-36e5;this.startDate=this.formatDate(t,this.timeZone),this.startTime=this.formatTimeHMS(t,this.timeZone)}if(this.endDateTime){let t=B(this.endDateTime/1e6);this.endDate=this.formatDate(t,this.timeZone),this.endTime=this.formatTimeHMS(t,this.timeZone)}},methods:{closeOk(){this.startDate&&this.startTime?this.graph.startDateTime=this.startDate+" "+this.startTime:this.graph.startDateTime=null,this.endDate&&this.endTime?this.graph.endDateTime=this.endDate+" "+this.endTime:this.graph.endDateTime=null,this.$emit("ok",this.graph)},addLine(){this.graph.lines.push({yValue:0,color:"white"})},removeLine(t){let e=this.graph.lines.indexOf(t);this.graph.lines.splice(e,1)}}},re={class:"edit-box"},oe={class:"edit-box"},ne={class:"edit-box"},de={class:"edit-box"};function he(t,e,a,u,l,r){const n=h("v-spacer"),o=h("v-toolbar"),v=h("v-tab"),g=h("v-tabs"),y=h("v-text-field"),D=h("v-card-text"),_=h("v-col"),V=h("v-select"),f=h("v-row"),z=h("v-tabs-window-item"),U=h("v-btn"),P=h("v-list-item"),k=h("v-icon"),C=h("v-tooltip"),G=h("v-list"),L=h("v-data-table"),Z=h("v-tabs-window"),K=h("v-card-actions"),d=h("v-card"),R=h("v-dialog");return w(),b(R,{modelValue:r.show,"onUpdate:modelValue":e[12]||(e[12]=c=>r.show=c),onKeydown:e[13]||(e[13]=q(c=>t.$emit("cancel"),["esc"])),"max-width":"700"},{default:s(()=>[i(o,{height:"24"},{default:s(()=>[i(n),e[14]||(e[14]=x("span",null," Edit Graph ",-1)),i(n)]),_:1}),i(d,{class:"pa-3"},{default:s(()=>[i(g,{modelValue:t.tab,"onUpdate:modelValue":e[0]||(e[0]=c=>t.tab=c),class:"ml-3"},{default:s(()=>[i(v,{value:"0"},{default:s(()=>e[15]||(e[15]=[m(" Settings ")])),_:1}),i(v,{value:"1"},{default:s(()=>e[16]||(e[16]=[m(" Scale / Lines ")])),_:1}),i(v,{value:"2"},{default:s(()=>e[17]||(e[17]=[m(" Items ")])),_:1})]),_:1},8,["modelValue"]),i(Z,{modelValue:t.tab,"onUpdate:modelValue":e[10]||(e[10]=c=>t.tab=c)},{default:s(()=>[i(z,{value:"0",eager:""},{default:s(()=>[x("div",re,[i(f,null,{default:s(()=>[i(_,null,{default:s(()=>[i(D,{class:"pa-0"},{default:s(()=>[i(y,{class:"pb-2",label:"Title",modelValue:t.graph.title,"onUpdate:modelValue":e[1]||(e[1]=c=>t.graph.title=c),"hide-details":""},null,8,["modelValue"])]),_:1})]),_:1}),i(_,null,{default:s(()=>[i(V,{label:"Legend Position","hide-details":"",items:t.legendPositions,modelValue:t.graph.legendPosition,"onUpdate:modelValue":e[2]||(e[2]=c=>t.graph.legendPosition=c),style:{"max-width":"280px"}},null,8,["items","modelValue"])]),_:1})]),_:1})]),x("div",oe,[i(D,{class:"pa-0"},{default:s(()=>e[18]||(e[18]=[m(" Select a start date/time for the graph. Leave blank for start now. ")])),_:1}),i(f,null,{default:s(()=>[i(_,null,{default:s(()=>[i(y,{label:"Start Date",name:`date${Date.now()}`,rules:[t.rules.date],modelValue:t.startDate,"onUpdate:modelValue":e[3]||(e[3]=c=>t.startDate=c),type:"date"},null,8,["name","rules","modelValue"])]),_:1}),i(_,null,{default:s(()=>[i(y,{label:"Start Time",name:`time${Date.now()}`,rules:[t.rules.time],modelValue:t.startTime,"onUpdate:modelValue":e[4]||(e[4]=c=>t.startTime=c),type:"time",step:"1"},null,8,["name","rules","modelValue"])]),_:1})]),_:1}),i(D,{class:"pa-0"},{default:s(()=>e[19]||(e[19]=[m(" Select a end date/time for the graph. Leave blank for continuous real-time graphing. ")])),_:1}),i(f,null,{default:s(()=>[i(_,null,{default:s(()=>[i(y,{label:"End Date",name:`date${Date.now()}`,rules:[t.rules.date],modelValue:t.endDate,"onUpdate:modelValue":e[5]||(e[5]=c=>t.endDate=c),type:"date"},null,8,["name","rules","modelValue"])]),_:1}),i(_,null,{default:s(()=>[i(y,{label:"End Time",name:`time${Date.now()}`,rules:[t.rules.time],modelValue:t.endTime,"onUpdate:modelValue":e[6]||(e[6]=c=>t.endTime=c),type:"time",step:"1"},null,8,["name","rules","modelValue"])]),_:1})]),_:1})])]),_:1}),i(z,{value:"1",eager:""},{default:s(()=>[x("div",ne,[i(D,{class:"pa-0"},{default:s(()=>e[20]||(e[20]=[m(" Set a min or max Y value to override automatic scaling ")])),_:1}),i(f,{dense:""},{default:s(()=>[i(_,{class:"px-2"},{default:s(()=>[i(y,{"hide-details":"",label:"Min Y Axis (Optional)",modelValue:t.graph.graphMinY,"onUpdate:modelValue":e[7]||(e[7]=c=>t.graph.graphMinY=c),type:"number"},null,8,["modelValue"])]),_:1}),i(_,{class:"px-2"},{default:s(()=>[i(y,{"hide-details":"",label:"Max Y Axis (Optional)",modelValue:t.graph.graphMaxY,"onUpdate:modelValue":e[8]||(e[8]=c=>t.graph.graphMaxY=c),type:"number"},null,8,["modelValue"])]),_:1})]),_:1})]),x("div",de,[i(G,{density:"compact",class:"horizontal-lines"},{default:s(()=>[i(P,null,{default:s(()=>[e[22]||(e[22]=x("span",{style:{"padding-top":"5px"}}," Add horizontal lines to the graph ",-1)),i(n),i(U,{onClick:e[9]||(e[9]=c=>r.addLine())},{default:s(()=>e[21]||(e[21]=[m(" New Line ")])),_:1})]),_:1}),(w(!0),Y(ae,null,se(t.graph.lines,(c,F)=>(w(),b(P,{key:F,value:c,color:"primary"},{default:s(()=>[i(f,null,{default:s(()=>[i(_,null,{default:s(()=>[i(y,{label:"Y Value",modelValue:c.yValue,"onUpdate:modelValue":O=>c.yValue=O},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),i(_,null,{default:s(()=>[i(V,{label:"Color","hide-details":"",items:a.colors,modelValue:c.color,"onUpdate:modelValue":O=>c.color=O},null,8,["items","modelValue","onUpdate:modelValue"])]),_:2},1024),i(_,null,{default:s(()=>[i(C,{text:"Remove",location:"top"},{activator:s(({props:O})=>[i(k,T({ref_for:!0},O,{style:{padding:"30px"},onClick:ke=>r.removeLine(c)}),{default:s(()=>e[23]||(e[23]=[m("mdi-delete")])),_:2},1040,["onClick"])]),_:2},1024)]),_:2},1024)]),_:2},1024)]),_:2},1032,["value"]))),128))]),_:1})])]),_:1}),i(z,{value:"2",eager:""},{default:s(()=>[i(L,{"item-key":"itemId",class:"elevation-1 my-2","data-test":"edit-graph-items",headers:t.itemHeaders,items:r.editItems,"items-per-page":5,"footer-props":{"items-per-page-options":[5]}},{"item.actions":s(({item:c})=>[i(C,{text:"Remove",location:"top"},{activator:s(({props:F})=>[i(k,T(F,{onClick:O=>t.$emit("remove",c)}),{default:s(()=>e[24]||(e[24]=[m(" mdi-delete ")])),_:2},1040,["onClick"])]),_:2},1024)]),"no-data":s(()=>e[25]||(e[25]=[x("span",null," Currently no items on this graph ",-1)])),_:1},8,["headers","items"])]),_:1})]),_:1},8,["modelValue"]),i(K,{class:"px-2"},{default:s(()=>[i(n),i(U,{variant:"outlined",onClick:e[11]||(e[11]=c=>t.$emit("cancel"))},{default:s(()=>e[26]||(e[26]=[m(" Cancel ")])),_:1}),i(U,{variant:"flat",onClick:r.closeOk},{default:s(()=>e[27]||(e[27]=[m(" Ok ")])),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue"])}const ue=$(p,[["render",he]]),me={props:{modelValue:Boolean,item:{type:Object,required:!0},colors:{type:Array,required:!0}},data:function(){return{editItem:null,limitsName:"NONE",limits:{NONE:[]},valueTypes:["CONVERTED","RAW"],reduction:[{title:"NONE",value:"DECOM"},{title:"REDUCED_MINUTE",value:"REDUCED_MINUTE"},{title:"REDUCED_HOUR",value:"REDUCED_HOUR"},{title:"REDUCED_DAY",value:"REDUCED_DAY"}],reducedTypes:["MIN","MAX","AVG","STDDEV"]}},computed:{show:{get(){return this.modelValue},set(t){this.$emit("update:modelValue",t)}},limitsNames(){return Object.keys(this.limits)}},async created(){this.editItem={...this.item},new J().get_item(this.item.targetName,this.item.packetName,this.item.itemName).then(t=>{for(const[e,a]of Object.entries(t.limits))Object.keys(a).includes("red_low")&&(this.limits[e]=Object.values(a));this.limitsName=Object.keys(this.limits).find(e=>this.limits[e]+""==this.editItem.limits+"")})}},ce={key:0},pe={class:"pa-3"};function ge(t,e,a,u,l,r){const n=h("v-card-title"),o=h("v-select"),v=h("v-card-text"),g=h("v-spacer"),y=h("v-btn"),D=h("v-card-actions"),_=h("v-card"),V=h("v-dialog");return w(),b(V,{modelValue:r.show,"onUpdate:modelValue":e[9]||(e[9]=f=>r.show=f),width:"400",onKeydown:e[10]||(e[10]=q(f=>t.success(),["enter"]))},{default:s(()=>[i(_,null,{default:s(()=>[i(n,{class:"mb-2"},{default:s(()=>e[11]||(e[11]=[m("Edit Item")])),_:1}),i(v,null,{default:s(()=>[i(o,{variant:"outlined","hide-details":"",label:"Value Type",items:t.valueTypes,modelValue:t.editItem.valueType,"onUpdate:modelValue":e[0]||(e[0]=f=>t.editItem.valueType=f),class:"mb-2"},null,8,["items","modelValue"]),i(o,{variant:"outlined","hide-details":"",label:"Reduction",items:t.reduction,modelValue:t.editItem.reduced,"onUpdate:modelValue":e[1]||(e[1]=f=>t.editItem.reduced=f),class:"mb-2"},null,8,["items","modelValue"]),i(o,{variant:"outlined","hide-details":"",label:"Reduced Type",items:t.reducedTypes,disabled:t.editItem.reduced==="DECOM",modelValue:t.editItem.reducedType,"onUpdate:modelValue":e[2]||(e[2]=f=>t.editItem.reducedType=f),class:"mb-2"},null,8,["items","disabled","modelValue"]),i(o,{variant:"outlined","hide-details":"",label:"Color",items:a.colors,modelValue:t.editItem.color,"onUpdate:modelValue":[e[3]||(e[3]=f=>t.editItem.color=f),e[4]||(e[4]=f=>t.$emit("changeColor",f))],class:"mb-2"},null,8,["items","modelValue"]),r.limitsNames.length>1?(w(),Y("div",ce,[i(o,{variant:"outlined","hide-details":"",label:"Display Limits",items:r.limitsNames,modelValue:t.limitsName,"onUpdate:modelValue":[e[5]||(e[5]=f=>t.limitsName=f),e[6]||(e[6]=f=>t.$emit("changeLimits",t.limits[t.limitsName]))]},null,8,["items","modelValue"]),x("div",pe,E(t.limitsName)+": "+E(t.limits[t.limitsName]),1)])):N("",!0)]),_:1}),i(D,{class:"px-2"},{default:s(()=>[i(g),i(y,{variant:"outlined",onClick:e[7]||(e[7]=f=>t.$emit("cancel"))},{default:s(()=>e[12]||(e[12]=[m(" Cancel ")])),_:1}),i(y,{variant:"flat",onClick:e[8]||(e[8]=f=>t.$emit("close",t.editItem))},{default:s(()=>e[13]||(e[13]=[m(" Ok ")])),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])}const fe=$(me,[["render",ge]]),ve={components:{GraphEditDialog:ue,GraphEditItemDialog:fe},props:{id:{type:Number,required:!0},selectedGraphId:{type:Number},state:{type:String,required:!0},startTime:{type:Number},secondsGraphed:{type:Number,required:!0},pointsSaved:{type:Number,required:!0},pointsGraphed:{type:Number,required:!0},refreshIntervalMs:{type:Number,default:200},hideToolbar:{type:Boolean,default:!1},hideOverview:{type:Boolean,default:!1},sparkline:{type:Boolean,default:!1},initialItems:{type:Array},height:{type:Number},width:{type:Number},timeZone:{type:String,default:"local"}},mixins:[H],data(){return{lines:[],active:!0,expand:!0,fullWidth:!0,fullHeight:!0,graph:null,editGraph:!1,editGraphMenu:!1,editGraphMenuX:0,editGraphMenuY:0,editItem:!1,itemMenu:!1,itemMenuX:0,itemMenuY:0,legendMenu:!1,legendMenuX:0,legendMenuY:0,legendPosition:"bottom",selectedItem:null,hideToolbarData:this.hideToolbar,showOverview:!this.hideOverview,hideOverviewData:this.hideOverview,title:"",overview:null,data:[[]],dataChanged:!1,timeout:null,graphMinY:null,graphMaxY:null,graphStartDateTime:null,graphEndDateTime:null,indexes:{},items:this.initialItems||[],limitsValues:[],drawInterval:null,zoomChart:!1,zoomOverview:!1,cable:new X,subscription:null,needToUpdate:!1,errorDialog:!1,errors:[],colorIndex:0,colors:["#00c7cb","#938bdb","#4dacff","lime","darkorange","red","gold","hotpink","tan","cyan","maroon","blue","teal","purple","green","brown","lightblue","white","black"]}},computed:{calcFullSize:function(){return this.fullWidth||this.fullHeight},error:function(){return this.errorDialog&&this.errors.length>0?JSON.stringify(this.errors,null,4):null}},created(){this.title=`Graph ${this.id}`;for(const[t,e]of this.items.entries())this.data.push([]),this.indexes[this.subscriptionKey(e)]=t+1,e.color===void 0&&(e.color=this.colors[this.colorIndex]),this.colorIndex++,this.colorIndex===this.colors.length&&(this.colorIndex=0)},mounted(){const{chartSeries:t,overviewSeries:e}=this.items.reduce((u,l)=>{const r={spanGaps:!0};return u.chartSeries.push({...r,item:l,label:this.formatLabel(l),stroke:(n,o)=>this.items[o-1].color,width:2,value:(n,o)=>typeof o=="string"||isNaN(o)?"NaN":o==null?"--":o.toFixed(3)}),u.overviewSeries.push({...r}),u},{chartSeries:[],overviewSeries:[]});let a={};if(this.sparkline)this.hideToolbarData=!0,this.hideOverviewData=!0,this.showOverview=!1,a={width:this.width,height:this.height,pxAlign:!1,cursor:{show:!1},select:{show:!1},legend:{show:!1},scales:{x:{time:!1}},axes:[{show:!1},{show:!1}],series:[{},{stroke:"white"}]},this.graph=new M(a,this.data,document.getElementById(`chart${this.id}`));else{let u=Intl.DateTimeFormat().resolvedOptions().timeZone;this.timeZone&&this.timeZone!=="local"&&(u=this.timeZone),a={...this.getSize("chart"),...this.getScales(),...this.getAxes("chart"),plugins:[this.linesPlugin()],tzDate:r=>M.tzDate(new Date(r*1e3),u),series:[{label:"Time",value:(r,n)=>n==null?"--":this.formatSeconds(n,this.timeZone)},...t],cursor:{drag:{x:!0,y:!1},sync:{key:"openc3"},bind:{mouseup:(r,n,o)=>v=>{this.state==="pause"&&r.select.width===0&&this.$emit("start"),o(v)}}},hooks:{setScale:[(r,n)=>{if(n==="x"&&!this.zoomOverview&&this.overview){this.zoomChart=!0;let o=Math.round(this.overview.valToPos(r.scales.x.min,"x")),v=Math.round(this.overview.valToPos(r.scales.x.max,"x"));this.overview.setSelect({left:o,width:v-o}),this.zoomChart=!1}}],setSelect:[r=>{this.state==="start"&&r.select.width>0&&this.$emit("pause")}],ready:[r=>{r.root.querySelector(".u-over").addEventListener("contextmenu",o=>{o.preventDefault(),this.itemMenu=!1,this.legendMenu=!1,this.editGraphMenuX=o.clientX,this.editGraphMenuY=o.clientY,this.editGraphMenu=!0});let n=r.root.querySelector(".u-legend");n.addEventListener("contextmenu",o=>{o.preventDefault(),this.editGraphMenu=!1,this.legendMenu=!1,this.itemMenuX=o.clientX,this.itemMenuY=o.clientY;let v=o.target.closest(".u-series"),g=Array.prototype.slice.call(n.childNodes[0].childNodes).indexOf(v),y=r.series[g];y.item?(this.selectedItem=y.item,this.itemMenu=!0):(this.itemMenu=!1,this.legendMenuX=o.clientX,this.legendMenuY=o.clientY,this.legendMenu=!0)}),n.querySelector("tbody").appendChild(this.$refs.info)}]}},this.graph=new M(a,this.data,document.getElementById(`chart${this.id}`));const l={...this.getSize("overview"),...this.getScales(),...this.getAxes("overview"),tzDate:r=>M.tzDate(new Date(r*1e3),u),series:[...e],cursor:{y:!1,drag:{setScale:!1,x:!0,y:!1}},legend:{show:!1},hooks:{setSelect:[r=>{if(!this.zoomChart){this.state==="start"&&r.select.width>0&&this.$emit("pause"),this.zoomOverview=!0;let n=r.posToVal(r.select.left,"x"),o=r.posToVal(r.select.left+r.select.width,"x");this.graph.setScale("x",{min:n,max:o}),this.zoomOverview=!1}}]}};this.overview=new M(l,this.data,document.getElementById(`overview${this.id}`)),this.moveLegend(this.legendPosition),window.addEventListener("resize",this.resize)}this.state!=="stop"&&this.startGraph()},beforeUnmount:function(){this.stopGraph(),this.cable.disconnect(),window.removeEventListener("resize",this.resize)},watch:{state:function(t,e){switch(t){case"start":e==="stop"&&this.startGraph();break;case"stop":this.stopGraph();break}},data:function(t,e){this.dataChanged=!0},graphMinY:function(t,e){let a=parseFloat(t);isNaN(a)||(this.graphMinY=a),this.setGraphRange()},graphMaxY:function(t,e){let a=parseFloat(t);isNaN(a)||(this.graphMaxY=a),this.setGraphRange()},graphStartDateTime:function(t,e){t&&typeof t=="string"?(this.graphStartDateTime=this.parseDateTime(this.graphStartDateTime,this.timeZone)*1e6,this.graphStartDateTime!==e&&(this.needToUpdate=!0)):t===null&&e&&(this.graphStartDateTime=null,this.needToUpdate=!0)},graphEndDateTime:function(t,e){t&&typeof t=="string"?(this.graphEndDateTime=this.parseDateTime(this.graphEndDateTime,this.timeZone)*1e6,this.graphEndDateTime!==e&&(this.needToUpdate=!0)):t===null&&e&&(this.graphEndDateTime=null,this.needToUpdate=!0)}},methods:{startGraph:function(){this.subscribe(),this.timeout=setTimeout(()=>{this.updateTimeout()},this.refreshIntervalMs)},stopGraph:function(){this.subscription&&(this.subscription.unsubscribe(),this.subscription=null),this.timeout&&(clearTimeout(this.timeout),this.timeout=null)},updateTimeout:function(){this.updateGraphData(),this.timeout=setTimeout(()=>{this.updateTimeout()},this.refreshIntervalMs)},updateGraphData:function(){if(this.state==="pause"||!this.dataChanged)return;this.graph.setData(this.data),this.overview&&this.overview.setData(this.data);let t=this.data[0][this.data[0].length-1],e=this.data[0][this.data[0].length-this.pointsGraphed],a=this.data[0][0];a<t-this.secondsGraphed&&(a=t-this.secondsGraphed),e>a&&(a=e),this.graph.setScale("x",{min:a,max:t}),this.dataChanged=!1},formatLabel(t){if(t.valueType==="CONVERTED"&&t.reduced==="DECOM")return t.itemName;{let e="";return t.valueType!=="CONVERTED"&&(e+=t.valueType),t.reduced!=="DECOM"&&(e!==""&&(e+=" "),e+=`${t.reduced.split("_")[1]} ${t.reducedType}`),`${t.itemName} (${e})`}},moveLegend:function(t){switch(t){case"bottom":this.graph.root.classList.remove("side-legend"),this.graph.root.classList.remove("left-legend"),this.graph.root.classList.remove("top-legend");break;case"top":this.graph.root.classList.remove("side-legend"),this.graph.root.classList.remove("left-legend"),this.graph.root.classList.add("top-legend");break;case"left":this.graph.root.classList.remove("top-legend"),this.graph.root.classList.add("side-legend"),this.graph.root.classList.add("left-legend");break;case"right":this.graph.root.classList.remove("top-legend"),this.graph.root.classList.remove("left-legend"),this.graph.root.classList.add("side-legend");break}this.legendPosition=t,this.resize()},clearErrors:function(){this.errors=[]},editGraphClose:function(t){this.editGraph=!1,this.title=t.title,this.legendPosition=t.legendPosition,this.graphMinY=t.graphMinY,this.graphMaxY=t.graphMaxY,this.lines=[...t.lines],this.graphStartDateTime=t.startDateTime,this.graphEndDateTime=t.endDateTime,this.$nextTick(()=>{if(this.needToUpdate){if(this.subscription==null)this.startGraph();else{let e=JSON.parse(JSON.stringify(this.items));this.removeItems(e),setTimeout(()=>{this.addItems(e)},0)}this.needToUpdate=!1}}),this.moveLegend(this.legendPosition),this.$emit("edit")},resize:function(){this.graph.setSize(this.getSize("chart")),this.overview&&this.overview.setSize(this.getSize("overview")),this.$emit("resize",this.id)},expandAll:function(){this.fullWidth=!0,this.fullHeight=!0,this.resize()},collapseAll:function(){this.fullWidth=!1,this.fullHeight=!1,this.resize()},expandWidth:function(){this.fullWidth=!0,this.resize()},collapseWidth:function(){this.fullWidth=!1,this.resize()},expandHeight:function(){this.fullHeight=!0,this.resize()},collapseHeight:function(){this.fullHeight=!1,this.resize()},minMaxTransition:function(){this.expand=!this.expand,this.$emit("min-max-graph",this.id)},setGraphRange:function(){let t=.1;(this.graphMinY||this.graphMinY===0||this.graphMaxY||this.graphMaxY===0)&&(t=0),this.graph.scales.y.range=(e,a,u)=>{let l=a;(this.graphMinY||this.graphMinY===0)&&(l=this.graphMinY);let r=u;return(this.graphMaxY||this.graphMaxY===0)&&(r=this.graphMaxY),M.rangeNum(l,r,t,!0)}},subscribe:function(){this.cable.createSubscription("StreamingChannel",window.openc3Scope,{received:t=>this.received(t),connected:()=>{this.addItemsToSubscription(this.items)},disconnected:()=>{this.errors.push({type:"disconnected",message:"OpenC3 backend connection disconnected",time:new Date().getTime()})},rejected:()=>{this.errors.push({type:"rejected",message:"OpenC3 backend connection rejected",time:new Date().getTime()})}}).then(t=>{this.subscription=t})},getSize:function(t){let e=0;const a=document.getElementById("openc3-nav-drawer");a&&(e=a.classList.contains("v-navigation-drawer--active")?a.clientWidth:0);let u=0;(this.legendPosition==="right"||this.legendPosition==="left")&&(u=document.getElementsByClassName("u-legend")[0].clientWidth);const l=Math.max(document.documentElement.clientWidth,window.innerWidth||0)-e-u,r=Math.max(document.documentElement.clientHeight,window.innerHeight||0),n=document.getElementsByClassName("v-expansion-panel")[0];let o=100;t==="overview"?this.fullHeight&&!this.hideOverviewData?this.showOverview=!0:this.showOverview=!1:(o=r-n.clientHeight-o-250,this.fullHeight||(o=o/2+10));let v=l-68;return this.fullWidth||(v=v/2-10),{width:this.width||v,height:this.height||o}},getScales:function(){return{scales:{x:{range(t,e,a){return e==null?[1566453600,1566497660]:[e,a]}},y:{range(t,e,a){return e==null?[-100,100]:M.rangeNum(e,a,.1,!0)}}}}},getAxes:function(t){let e="rgba(255, 255, 255, .1)",a="white";return{axes:[{stroke:a,grid:{show:!0,stroke:e,width:2}},{size:80,stroke:a,grid:{show:t!=="overview",stroke:e,width:2},values(u,l){return(l.some(r=>r>=1e7)||l.every(r=>r<.01))&&(l=l.map(r=>r.toExponential(3))),l}}]}},closeEditItem:function(t){this.editItem=!1,(this.graphEndDateTime!==null&&this.selectedItem!==t||this.selectedItem.valueType!==t.valueType||this.selectedItem.reduced!==t.reduced||this.selectedItem.reducedType!==t.reducedType)&&this.changeItem(t)},changeColor:function(t){let e=this.subscriptionKey(this.selectedItem),a=this.indexes[e];this.items[a-1].color=t,this.selectedItem.color=t,this.graph.root.querySelectorAll(".u-marker")[a].style.borderColor=t},changeLimits:function(t){let e=this.subscriptionKey(this.selectedItem),a=this.indexes[e];this.items[a-1].limits=t,this.selectedItem.limits=t,this.limitsValues=t},linesPlugin:function(){return{hooks:{draw:t=>{const{ctx:e,bbox:a}=t,u=t.valToPos(t.scales.y.min,"y",!0),l=t.valToPos(t.scales.y.max,"y",!0),r=t.valToPos(this.limitsValues[0],"y",!0),n=t.valToPos(this.limitsValues[1],"y",!0),o=t.valToPos(this.limitsValues[2],"y",!0),v=t.valToPos(this.limitsValues[3],"y",!0);if(this.lines.forEach(g=>{t.scales.y.min<=g.yValue&&g.yValue<=t.scales.y.max&&(e.save(),e.beginPath(),e.strokeStyle=g.color,e.lineWidth=2,e.moveTo(a.left,t.valToPos(g.yValue,"y",!0)),e.lineTo(a.left+a.width,t.valToPos(g.yValue,"y",!0)),e.stroke(),e.restore())}),e.save(),e.beginPath(),e.fillStyle="rgba(255,0,0,0.15)",t.scales.y.min<this.limitsValues[0]){let g=r<l?l:r;e.fillRect(a.left,r,a.width,u-g)}if(t.scales.y.max>this.limitsValues[3]){let g=u<v?u:v;e.fillRect(a.left,l,a.width,g-l)}if(e.fillStyle="rgba(255,255,0,0.15)",t.scales.y.min<this.limitsValues[1]&&t.scales.y.max>this.limitsValues[0]){let g=n<l?l:n;e.fillRect(a.left,g,a.width,r-g)}if(t.scales.y.max>this.limitsValues[2]&&t.scales.y.min<this.limitsValues[3]){let g=u<v?u:v,y=u<o?u:o;e.fillRect(a.left,g,a.width,y-g)}if(e.fillStyle="rgba(0,255,0,0.15)",this.limitsValues.length===4){if(t.scales.y.min<this.limitsValues[2]&&t.scales.y.max>this.limitsValues[1]){let g=o<l?l:o,y=u<n?u:n;e.fillRect(a.left,g,a.width,y-g)}}else{const g=t.valToPos(this.limitsValues[4],"y",!0),y=t.valToPos(this.limitsValues[5],"y",!0);if(t.scales.y.min<this.limitsValues[4]&&t.scales.y.max>this.limitsValues[1]){let V=g<l?l:g;e.fillRect(a.left,V,a.width,n-V)}if(t.scales.y.max>this.limitsValues[5]&&t.scales.y.min<this.limitsValues[2]){let V=u<o?u:o,f=u<y?u:y;e.fillRect(a.left,V,a.width,f-V)}e.fillStyle="rgba(0,0,255,0.15)";let D=y<l?l:y,_=u<g?u:g;e.fillRect(a.left,D,a.width,_-D)}e.stroke(),e.restore()}}}},changeItem:function(t){this.removeItems([this.selectedItem]),this.selectedItem.valueType=t.valueType,this.selectedItem.reduced=t.reduced,this.selectedItem.reducedType=t.reducedType,setTimeout(()=>{this.addItems([this.selectedItem])},0)},addItems:function(t,e="CONVERTED"){t.forEach(a=>{a.valueType||(a.valueType=e),a.color||(a.color=this.colors[this.colorIndex]),a.limits||(a.limits=[]),a.limits.length>0&&(this.limitsValues=a.limits),this.colorIndex=(this.colorIndex+1)%this.colors.length,this.items.push(a);const u=this.data.length;this.graph.addSeries(this.createSeriesConfig(a),u),this.overview&&this.overview.addSeries(this.createOverviewSeriesConfig(),u),this.data.splice(u,0,Array(this.data[0].length)),this.indexes[this.subscriptionKey(a)]=u}),this.updateColorIndex(t),this.addItemsToSubscription(t),this.$emit("resize"),this.$emit("edit")},createSeriesConfig:function(t){return{spanGaps:!0,item:t,label:this.formatLabel(t),stroke:(e,a)=>this.items[a-1].color,width:2,value:(e,a)=>typeof a=="string"||isNaN(a)?"NaN":a==null?"--":Math.abs(a)<.01&&a!==0||Math.abs(a)>=1e7?a.toExponential(6):a.toFixed(6)}},createOverviewSeriesConfig:function(){return{spanGaps:!0,stroke:(t,e)=>this.items[e-1].color}},updateColorIndex:function(t){const e=t[t.length-1];if(e){const a=this.colors.indexOf(e.color);a!==-1&&(this.colorIndex=(a+1)%this.colors.length)}},addItemsToSubscription:function(t=this.items){let e=this.startTime;this.graphStartDateTime&&(e=this.graphStartDateTime),this.subscription&&OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity).then(a=>{a&&OpenC3Auth.setTokens(),this.subscription.perform("add",{scope:window.openc3Scope,token:localStorage.openc3Token,items:t.map(this.subscriptionKey),start_time:e,end_time:this.graphEndDateTime})})},clearAllData:function(){this.data[0]=[],this.clearData(this.items)},clearData:function(t){for(const e of t.map(this.subscriptionKey)){let a=this.indexes[e];this.data[a]=Array(this.data[0].length).fill(null),this.graph.setData(this.data),this.overview&&this.overview.setData(this.data)}this.data.length===2&&(this.data[0]=[],this.graph.setData(this.data),this.overview.setData(this.data))},removeItems:function(t){this.removeItemsFromSubscription(t);for(const e of t.map(this.subscriptionKey)){const a=this.reorderIndexes(e);this.items.splice(a-1,1),this.data.splice(a,1),this.graph.delSeries(a),this.graph.setData(this.data),this.overview&&(this.overview.delSeries(a),this.overview.setData(this.data))}this.data.length===1&&(this.data[0]=[],this.graph.setData(this.data),this.overview.setData(this.data)),this.$emit("resize"),this.$emit("edit")},removeItemsFromSubscription:function(t=this.items){this.subscription&&this.subscription.perform("remove",{scope:window.openc3Scope,token:localStorage.openc3Token,items:t.map(this.subscriptionKey)})},reorderIndexes:function(t){let e=this.indexes[t];delete this.indexes[t];for(let a in this.indexes)this.indexes[a]>e&&(this.indexes[a]-=1);return e},received:function(t){this.cable.recordPing();for(let e=0;e<t.length;e++){let a=t[e].__time/1e9,u=t[0].length;if(u===0||a>t[0][u-1]){for(let l=0;l<this.data.length;l++)this.data[l].push(null);this.set_data_at_index(this.data[0].length-1,a,t[e])}else{let l=j(this.data[0],a,this.bs_comparator);if(l>=0)this.set_data_at_index(l,a,t[e]);else{let r=-l-1;for(let n=0;n<this.data.length;n++)this.data[n].splice(r,0,null);this.set_data_at_index(r,a,t[e])}}}if(this.startTime==null&&this.data[0][0]){let e=this.data[0][0]*1e9;this.$emit("started",e)}this.dataChanged=!0},bs_comparator:function(t,e){return t-e},set_data_at_index:function(t,e,a){this.data[0][t]=e;for(const[u,l]of Object.entries(a)){if(u==="time")continue;let r=this.indexes[u];if(r){let n=this.data[r];if(l!=null&&l.raw)n[t]=null;else if(typeof l=="string"){if(n[t]=null,!u.includes("__RAW")){for(let o of this.items)if(this.subscriptionKey(o)===u){this.selectedItem=o;break}this.changeItem({valueType:"RAW",reduced:this.selectedItem.reduced,reducedType:this.selectedItem.reducedType})}}else n[t]=l}}},subscriptionKey:function(t){let e=`${t.reduced}__TLM__${t.targetName}__${t.packetName}__${t.itemName}__${t.valueType}`;return(t.reduced==="REDUCED_MINUTE"||t.reduced==="REDUCED_HOUR"||t.reduced==="REDUCED_DAY")&&(e+=`__${t.reducedType}`),e}}},ye={class:"mx-2"},we={class:"pa-1",id:"chart",ref:"chart"},xe=["id"],be=["id"],_e={key:5,class:"u-series",ref:"info"};function Te(t,e,a,u,l,r){const n=h("v-icon"),o=h("v-tooltip"),v=h("v-spacer"),g=h("v-toolbar"),y=h("v-expand-transition"),D=h("v-card"),_=h("graph-edit-dialog"),V=h("v-text-field"),f=h("v-row"),z=h("v-textarea"),U=h("v-btn"),P=h("v-dialog"),k=h("v-list-item-title"),C=h("v-list-item"),G=h("v-list"),L=h("v-menu"),Z=h("graph-edit-item-dialog"),K=h("v-list-subheader");return w(),Y("div",{onClick:e[21]||(e[21]=Q(d=>t.$emit("click"),["prevent"]))},[i(D,null,{default:s(()=>[I(i(g,{height:"24",class:ee(["pl-2 pr-2",a.selectedGraphId===a.id?"active":""])},{default:s(()=>[I(x("div",ye,[i(o,{text:"Errors",location:"top"},{activator:s(({props:d})=>[i(n,T(d,{onClick:e[0]||(e[0]=R=>l.errorDialog=!0)}),{default:s(()=>e[22]||(e[22]=[m(" mdi-alert ")])),_:2},1040)]),_:1})],512),[[S,l.errors.length!==0]]),i(o,{text:"Edit",location:"top"},{activator:s(({props:d})=>[i(n,T(d,{onClick:e[1]||(e[1]=R=>l.editGraph=!0),"data-test":"edit-graph-icon"}),{default:s(()=>e[23]||(e[23]=[m(" mdi-pencil ")])),_:2},1040)]),_:1}),i(v),x("span",null,E(l.title),1),i(v),I(x("div",null,[r.calcFullSize?(w(),b(o,{key:0,text:"Collapse",location:"top"},{activator:s(({props:d})=>[i(n,T(d,{onClick:r.collapseAll,"data-test":"collapse-all"}),{default:s(()=>e[24]||(e[24]=[m(" mdi-arrow-collapse ")])),_:2},1040,["onClick"])]),_:1})):(w(),b(o,{key:1,text:"Expand",location:"top"},{activator:s(({props:d})=>[i(n,T(d,{onClick:r.expandAll,"data-test":"expand-all"}),{default:s(()=>e[25]||(e[25]=[m(" mdi-arrow-expand ")])),_:2},1040,["onClick"])]),_:1}))],512),[[S,l.expand]]),I(x("div",null,[l.fullWidth?(w(),b(o,{key:0,text:"Collapse Width",location:"top"},{activator:s(({props:d})=>[i(n,T(d,{onClick:r.collapseWidth,"data-test":"collapse-width"}),{default:s(()=>e[26]||(e[26]=[m(" mdi-arrow-collapse-horizontal ")])),_:2},1040,["onClick"])]),_:1})):(w(),b(o,{key:1,text:"Expand Width",location:"top"},{activator:s(({props:d})=>[i(n,T(d,{onClick:r.expandWidth,"data-test":"expand-width"}),{default:s(()=>e[27]||(e[27]=[m(" mdi-arrow-expand-horizontal ")])),_:2},1040,["onClick"])]),_:1}))],512),[[S,l.expand]]),I(x("div",null,[l.fullHeight?(w(),b(o,{key:0,text:"Collapse Height",location:"top"},{activator:s(({props:d})=>[i(n,T(d,{onClick:r.collapseHeight,"data-test":"collapse-height"}),{default:s(()=>e[28]||(e[28]=[m(" mdi-arrow-collapse-vertical ")])),_:2},1040,["onClick"])]),_:1})):(w(),b(o,{key:1,text:"Expand Height",location:"top"},{activator:s(({props:d})=>[i(n,T(d,{onClick:r.expandHeight,"data-test":"expand-height"}),{default:s(()=>e[29]||(e[29]=[m(" mdi-arrow-expand-vertical ")])),_:2},1040,["onClick"])]),_:1}))],512),[[S,l.expand]]),l.expand?(w(),b(o,{key:0,text:"Minimize",location:"top"},{activator:s(({props:d})=>[i(n,T(d,{onClick:r.minMaxTransition,"data-test":"minimize-screen-icon"}),{default:s(()=>e[30]||(e[30]=[m(" mdi-window-minimize ")])),_:2},1040,["onClick"])]),_:1})):(w(),b(o,{key:1,text:"Maximize",location:"top"},{activator:s(({props:d})=>[i(n,T(d,{onClick:r.minMaxTransition,"data-test":"maximize-screen-icon"}),{default:s(()=>e[31]||(e[31]=[m(" mdi-window-maximize ")])),_:2},1040,["onClick"])]),_:1})),i(o,{text:"Close",location:"top"},{activator:s(({props:d})=>[i(n,T(d,{onClick:e[2]||(e[2]=R=>t.$emit("close-graph")),"data-test":"close-graph-icon"}),{default:s(()=>e[32]||(e[32]=[m(" mdi-close-box ")])),_:2},1040)]),_:1})]),_:1},8,["class"]),[[S,!l.hideToolbarData]]),i(y,null,{default:s(()=>[I(x("div",we,[x("div",{id:`chart${a.id}`},null,8,xe),e[33]||(e[33]=x("div",{id:"betweenCharts"},null,-1)),I(x("div",{id:`overview${a.id}`},null,8,be),[[S,l.showOverview]])],512),[[S,l.expand]])]),_:1})]),_:1}),l.editGraph?(w(),b(_,{key:0,modelValue:l.editGraph,"onUpdate:modelValue":e[3]||(e[3]=d=>l.editGraph=d),title:l.title,"legend-position":l.legendPosition,items:l.items,"graph-min-y":l.graphMinY,"graph-max-y":l.graphMaxY,lines:l.lines,colors:l.colors,"start-date-time":l.graphStartDateTime,"end-date-time":l.graphEndDateTime,"time-zone":a.timeZone,onRemove:e[4]||(e[4]=d=>r.removeItems([d])),onOk:r.editGraphClose,onCancel:e[5]||(e[5]=d=>l.editGraph=!1)},null,8,["modelValue","title","legend-position","items","graph-min-y","graph-max-y","lines","colors","start-date-time","end-date-time","time-zone","onOk"])):N("",!0),i(P,{modelValue:l.errorDialog,"onUpdate:modelValue":e[7]||(e[7]=d=>l.errorDialog=d),"max-width":"600"},{default:s(()=>[i(g,{height:"24"},{default:s(()=>[i(v),e[34]||(e[34]=x("span",null," Errors ",-1)),i(v)]),_:1}),i(D,{class:"pa-3"},{default:s(()=>[i(f,{dense:""},{default:s(()=>[i(V,{readonly:"","hide-details":"",modelValue:l.title,"onUpdate:modelValue":e[6]||(e[6]=d=>l.title=d),class:"pb-2",label:"Graph Title"},null,8,["modelValue"])]),_:1}),i(f,{class:"my-3"},{default:s(()=>[i(z,{readonly:"",rows:"8",value:r.error},null,8,["value"])]),_:1}),i(f,null,{default:s(()=>[i(U,{block:"",onClick:r.clearErrors},{default:s(()=>e[35]||(e[35]=[m(" Clear ")])),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue"]),l.editGraphMenu?(w(),b(L,{key:1,modelValue:l.editGraphMenu,"onUpdate:modelValue":e[9]||(e[9]=d=>l.editGraphMenu=d),target:[l.editGraphMenuX,l.editGraphMenuY],absolute:"","offset-y":""},{default:s(()=>[i(G,null,{default:s(()=>[i(C,{onClick:e[8]||(e[8]=d=>l.editGraph=!0)},{default:s(()=>[i(k,{style:{cursor:"pointer"}},{default:s(()=>[m(" Edit "+E(l.title),1)]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue","target"])):N("",!0),l.editItem?(w(),b(Z,{key:2,modelValue:l.editItem,"onUpdate:modelValue":e[10]||(e[10]=d=>l.editItem=d),colors:l.colors,item:l.selectedItem,onChangeColor:r.changeColor,onChangeLimits:r.changeLimits,onCancel:e[11]||(e[11]=d=>l.editItem=!1),onClose:r.closeEditItem},null,8,["modelValue","colors","item","onChangeColor","onChangeLimits","onClose"])):N("",!0),l.itemMenu?(w(),b(L,{key:3,modelValue:l.itemMenu,"onUpdate:modelValue":e[15]||(e[15]=d=>l.itemMenu=d),target:[l.itemMenuX,l.itemMenuY],absolute:"","offset-y":""},{default:s(()=>[i(G,{nav:"",density:"compact"},{default:s(()=>[i(K,null,{default:s(()=>[m(E(l.selectedItem.targetName)+" "+E(l.selectedItem.packetName)+" "+E(l.selectedItem.itemName),1)]),_:1}),i(C,{onClick:e[12]||(e[12]=d=>l.editItem=!0)},{prepend:s(()=>[i(n,{icon:"mdi-pencil"})]),default:s(()=>[i(k,null,{default:s(()=>e[36]||(e[36]=[m(" Edit ")])),_:1})]),_:1}),i(C,{onClick:e[13]||(e[13]=d=>r.clearData([l.selectedItem]))},{prepend:s(()=>[i(n,{icon:"mdi-eraser"})]),default:s(()=>[i(k,null,{default:s(()=>e[37]||(e[37]=[m(" Clear ")])),_:1})]),_:1}),i(C,{onClick:e[14]||(e[14]=d=>r.removeItems([l.selectedItem]))},{prepend:s(()=>[i(n,{icon:"mdi-delete"})]),default:s(()=>[i(k,null,{default:s(()=>e[38]||(e[38]=[m(" Delete ")])),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue","target"])):N("",!0),l.legendMenu?(w(),b(L,{key:4,modelValue:l.legendMenu,"onUpdate:modelValue":e[20]||(e[20]=d=>l.legendMenu=d),target:[l.legendMenuX,l.legendMenuY],absolute:"","offset-y":""},{default:s(()=>[i(G,null,{default:s(()=>[i(C,{onClick:e[16]||(e[16]=d=>r.moveLegend("top"))},{default:s(()=>[i(k,{style:{cursor:"pointer"}},{default:s(()=>e[39]||(e[39]=[m(" Legend Top ")])),_:1})]),_:1}),i(C,{onClick:e[17]||(e[17]=d=>r.moveLegend("bottom"))},{default:s(()=>[i(k,{style:{cursor:"pointer"}},{default:s(()=>e[40]||(e[40]=[m(" Legend Bottom ")])),_:1})]),_:1}),i(C,{onClick:e[18]||(e[18]=d=>r.moveLegend("left"))},{default:s(()=>[i(k,{style:{cursor:"pointer"}},{default:s(()=>e[41]||(e[41]=[m(" Legend Left ")])),_:1})]),_:1}),i(C,{onClick:e[19]||(e[19]=d=>r.moveLegend("right"))},{default:s(()=>[i(k,{style:{cursor:"pointer"}},{default:s(()=>e[42]||(e[42]=[m(" Legend RIght ")])),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue","target"])):N("",!0),a.sparkline?N("",!0):(w(),Y("div",_e,[i(o,{text:"Click item to toggle, Right click to edit",location:"top"},{activator:s(({props:d})=>[i(n,te(ie(d)),{default:s(()=>e[43]||(e[43]=[m(" mdi-information-variant-circle ")])),_:2},1040)]),_:1})],512))])}const Ve=le("S",$(ve,[["render",Te],["__scopeId","data-v-485a5da2"]]))}}});
|
@@ -1 +1 @@
|
|
1
|
-
System.register(["./Widget-
|
1
|
+
System.register(["./Widget-C7ms_xDE-d975507fdbf3ad763a90.js","./main-9ef5c77cc7eed63a6d1a.js"],function(u,S){"use strict";var c,d,m,p,o;return{setters:[n=>{c=n.o},n=>{d=n.l,m=n.y,p=n.c,o=n.z}],execute:function(){function n(e,s,t){const a=d(e,void 0);if(isNaN(s))return m(e,NaN);if(!s)return a;const i=a.getDate(),r=m(e,a.getTime());r.setMonth(a.getMonth()+s+1,0);const h=r.getDate();return i>=h?r:(a.setFullYear(r.getFullYear(),r.getMonth(),i),a)}function l(e,s,t){return o(e,-s,t)}function N(e,s,t){return n(e,-s)}function T(e,s,t){const{years:a=0,months:i=0,weeks:r=0,days:h=0,hours:g=0,minutes:f=0,seconds:y=0}=s,k=N(e,i+a*12),E=l(k,h+r*7,t),I=f+g*60,_=(y+I*60)*1e3;return m(e,+E-_)}const D=u("_",{mixins:[c],data:function(){return{id:Math.floor(Math.random()*1e11),state:"start",items:[{targetName:this.parameters[0],packetName:this.parameters[1],itemName:this.parameters[2],valueType:this.parameters[3]||"CONVERTED",reduced:this.parameters[4]||"DECOM",reducedType:this.parameters[5]||null}],startTime:null,secondsGraphed:3600,pointsSaved:3600,pointsGraphed:3600,size:{height:300,width:400}}},created:function(){this.appliedSettings.forEach(e=>{switch(e[0]){case"ITEM":this.items.push({targetName:e[1],packetName:e[2],itemName:e[3],valueType:e[4]||"CONVERTED",reduced:e[5]||"DECOM",reducedType:e[6]||null});case"STARTTIME":let s=p(e[1],"yyyy/MM/dd HH:mm:ss",new Date);this.startTime=s.getTime()*1e6;break;case"HISTORY":let t=parseInt(e[1].slice(0,e[1].length-1)),a=null,i=1;switch(e[1][e[1].length-1]){case"d":a="days",i=3600*24;break;case"h":a="hours",i=3600;break;case"m":a="minutes",i=60;break;case"s":a="seconds";break;default:throw new Error(`Unknown time suffix: ${e[1]}!`)}let r={};r[a]=t,this.startTime=T(new Date,r).getTime()*1e6,t*i>this.secondsGraphed&&(this.secondsGraphed=t*i),t*i>this.pointsSaved&&(this.pointsSaved=t*i),t*i>this.pointsGraphed&&(this.pointsGraphed=t*i);break;case"SECONDSGRAPHED":this.secondsGraphed=parseInt(e[1]);break;case"POINTSSAVED":this.pointsSaved=parseInt(e[1]);break;case"POINTSGRAPHED":this.pointsGraphed=parseInt(e[1]);break;case"SIZE":this.size.width=parseInt(e[1]),this.size.height=parseInt(e[2]);break}}),this.items=this.items.map(e=>{let s=e.itemName;if(e.itemName.includes("[["))e.itemName=e.itemName.replace("[[","[").replace("]]","]"),s=e.itemName;else if(e.itemName.includes("[")){let t=e.itemName.match(/\[(\d+)\]/);this.arrayIndex=parseInt(t[1]),s=e.itemName.replace(t[0],"")}return this.$emit("addItem",`${e.targetName}__${e.packetName}__${s}__${e.valueType}`,!0),e})},destroyed(){this.items.map(e=>this.$emit("deleteItem",`${e.targetName}__${e.packetName}__${e.itemName}__${e.valueType}`))}})}}});
|
@@ -1 +1 @@
|
|
1
|
-
System.register(["./Layout-
|
1
|
+
System.register(["./Layout-D4YBjuWs-11ba6de9fe6f8ed30e9f.js","vue","./main-9ef5c77cc7eed63a6d1a.js","./Widget-C7ms_xDE-d975507fdbf3ad763a90.js","vue-router","single-spa","vuex","vuetify"],function(d,k){"use strict";var a,s,i,c,o,u,m,g,p,f;return{setters:[e=>{a=e.r},e=>{s=e.openBlock,i=e.createElementBlock,c=e.normalizeStyle,o=e.Fragment,u=e.renderList,m=e.createBlock,g=e.resolveDynamicComponent,p=e.mergeProps},e=>{f=e.s},null,null,null,null,null],execute:function(){const e={mixins:[a],created:function(){if(this.parameters[0]){let n=this.parameters[0];this.widgets.forEach(l=>{l.settings.find(r=>r[0]==="MARGIN"||r[0]==="RAW"&&r[1].toUpperCase().includes("MARGIN"))===void 0&&l.settings.push(["MARGIN",n])})}}};function y(n,l,r,h,w,x){return s(),i("div",{ref:"container",class:"d-flex flex-row",style:c(n.computedStyle)},[(s(!0),i(o,null,u(n.widgets,(t,v)=>(s(),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 B=d("default",f(e,[["render",y]]))}}});
|
@@ -0,0 +1 @@
|
|
1
|
+
System.register(["./HorizontalWidget-B7YdcFVN-b405e2b0bfa5dd8ba3ca.js","./Layout-D4YBjuWs-11ba6de9fe6f8ed30e9f.js","vue","./main-9ef5c77cc7eed63a6d1a.js","./Widget-C7ms_xDE-d975507fdbf3ad763a90.js","vue-router","single-spa","vuex","vuetify"],function(m,f){"use strict";var r,i,n,l,o,s,a,c,u,p,d,g;return{setters:[e=>{r=e.default},e=>{i=e.r},e=>{n=e.resolveComponent,l=e.openBlock,o=e.createElementBlock,s=e.createVNode,a=e.normalizeStyle,c=e.withCtx,u=e.createTextVNode,p=e.toDisplayString,d=e.mergeProps},e=>{g=e.s},null,null,null,null,null],execute:function(){const e={mixins:[i],components:{HorizontalWidget:r}};function v(t,w,S,B,N,V){const y=n("v-banner"),x=n("horizontal-widget");return l(),o("div",null,[s(y,{class:"boxbanner",style:a(t.computedStyle),"single-line":""},{default:c(()=>[u(p(t.parameters[0]),1)]),_:1},8,["style"]),s(x,d(t.listeners,{parameters:t.parameters.slice(1),settings:t.appliedSettings,widgets:t.widgets,"screen-values":t.screenValues,"screen-time-zone":t.screenTimeZone,"screen-id":t.screenId}),null,16,["parameters","settings","widgets","screen-values","screen-time-zone","screen-id"])])}const z=m("default",g(e,[["render",v],["__scopeId","data-v-e9e6c14b"]]))}}});
|
@@ -1 +1 @@
|
|
1
|
-
System.register(["vue","./main-
|
1
|
+
System.register(["vue","./main-9ef5c77cc7eed63a6d1a.js","vue-router","single-spa","vuex","vuetify"],function(l,c){"use strict";var n,t,u;return{setters:[e=>{n=e.openBlock,t=e.createElementBlock},e=>{u=e.s},null,null,null,null],execute:function(){const e={};function r(o,i){return n(),t("hr")}const s=l("default",u(e,[["render",r]]))}}});
|
@@ -0,0 +1 @@
|
|
1
|
+
System.register(["./Widget-C7ms_xDE-d975507fdbf3ad763a90.js","vue","./main-9ef5c77cc7eed63a6d1a.js","vue-router","single-spa","vuex","vuetify"],function(y,b){"use strict";var o,g,m,p,R;return{setters:[r=>{o=r.o},r=>{g=r.openBlock,m=r.createElementBlock,p=r.normalizeStyle},r=>{R=r.s},null,null,null,null],execute:function(){var r={},t={},d;function _(){return d||(d=1,Object.defineProperty(t,"__esModule",{value:!0}),t.BLANK_URL=t.relativeFirstCharacters=t.whitespaceEscapeCharsRegex=t.urlSchemeRegex=t.ctrlCharactersRegex=t.htmlCtrlEntityRegex=t.htmlEntitiesRegex=t.invalidProtocolRegex=void 0,t.invalidProtocolRegex=/^([^\w]*)(javascript|data|vbscript)/im,t.htmlEntitiesRegex=/&#(\w+)(^\w|;)?/g,t.htmlCtrlEntityRegex=/&(newline|tab);/gi,t.ctrlCharactersRegex=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,t.urlSchemeRegex=/^.+(:|:)/gim,t.whitespaceEscapeCharsRegex=/(\\|%5[cC])((%(6[eE]|72|74))|[nrt])/g,t.relativeFirstCharacters=[".","/"],t.BLANK_URL="about:blank"),t}var f;function U(){if(f)return r;f=1,Object.defineProperty(r,"__esModule",{value:!0}),r.sanitizeUrl=void 0;var e=_();function x(i){return e.relativeFirstCharacters.indexOf(i[0])>-1}function v(i){var l=i.replace(e.ctrlCharactersRegex,"");return l.replace(e.htmlEntitiesRegex,function(n,a){return String.fromCharCode(a)})}function C(i){return URL.canParse(i)}function h(i){try{return decodeURIComponent(i)}catch{return i}}function w(i){if(!i)return e.BLANK_URL;var l,n=h(i.trim());do n=v(n).replace(e.htmlCtrlEntityRegex,"").replace(e.ctrlCharactersRegex,"").replace(e.whitespaceEscapeCharsRegex,"").trim(),n=h(n),l=n.match(e.ctrlCharactersRegex)||n.match(e.htmlEntitiesRegex)||n.match(e.htmlCtrlEntityRegex)||n.match(e.whitespaceEscapeCharsRegex);while(l&&l.length>0);var a=n;if(!a)return e.BLANK_URL;if(x(a))return a;var E=a.trimStart(),L=E.match(e.urlSchemeRegex);if(!L)return a;var s=L[0].toLowerCase().trim();if(e.invalidProtocolRegex.test(s))return e.BLANK_URL;var u=E.replace(/\\/g,"/");if(s==="mailto:"||s.includes("://"))return u;if(s==="http:"||s==="https:"){if(!C(u))return e.BLANK_URL;var c=new URL(u);return c.protocol=c.protocol.toLowerCase(),c.hostname=c.hostname.toLowerCase(),c.toString()}return u}return r.sanitizeUrl=w,r}var B=U();const F={mixins:[o],data:function(){return{width:800,height:600,url:B.sanitizeUrl(this.parameters[0])}},created:function(){this.setWidth(this.parameters[1],"px",this.width),this.setHeight(this.parameters[2],"px",this.height)}},S=["src","width","height"];function N(e,x,v,C,h,w){return g(),m("iframe",{title:"IFrameWidget",src:e.url,width:e.width,height:e.height,style:p(e.computedStyle)},null,12,S)}const A=y("default",R(F,[["render",N]]))}}});
|
@@ -1 +1 @@
|
|
1
|
-
System.register(["./main-
|
1
|
+
System.register(["./main-9ef5c77cc7eed63a6d1a.js"],function(r,s){"use strict";var e;return{setters:[n=>{e=n.I}],execute:function(){const n=r("s",{props:{target:{type:String,require:!0}},methods:{getPresignedUrl:async function(o){let t="targets_modified";return await e.get(`/openc3-api/storage/exists/${encodeURIComponent(`${window.openc3Scope}/${t}/${this.target}/public/${o}`)}?bucket=OPENC3_CONFIG_BUCKET`,{headers:{Accept:"application/json","Ignore-Errors":"404"}}).catch(c=>{t="targets"}),(await e.get(`/openc3-api/storage/download/${encodeURIComponent(`${window.openc3Scope}/${t}/${this.target}/public/${o}`)}?bucket=OPENC3_CONFIG_BUCKET`)).data.url}}})}}});
|
@@ -1 +1 @@
|
|
1
|
-
System.register(["./Widget-
|
1
|
+
System.register(["./Widget-C7ms_xDE-d975507fdbf3ad763a90.js","vue","./main-9ef5c77cc7eed63a6d1a.js","vue-router","single-spa","vuex","vuetify"],function(l,o){"use strict";var s,a,n,r,i;return{setters:[e=>{s=e.o},e=>{a=e.openBlock,n=e.createElementBlock,r=e.normalizeStyle},e=>{i=e.s},null,null,null,null],execute:function(){const e={mixins:[s],data:function(){return{valueId:null,imageData:""}},computed:{src:function(){return`data:image/${this.parameters[3]};base64, ${this.screenValues[this.valueId][0]}`}},created:function(){this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__CONVERTED`,this.$emit("addItem",this.valueId)},unmounted:function(){this.$emit("deleteItem",this.valueId)}},u=["src","alt","width","height"];function c(t,h,p,v,f,m){return a(),n("img",{src:m.src,alt:t.valueId,width:t.parameters[4],height:t.parameters[5],style:r(t.computedStyle)},null,12,u)}const d=l("default",i(e,[["render",c]]))}}});
|