openc3-cosmos-tool-packetviewer 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/packetviewer/{ArrayWidget-BTxChSds-3f0aee8bcb79f9bc80b4.js → ArrayWidget-DBpEoQ1y-aca98c0b4c27736b32b7.js} +2 -2
- data/tools/packetviewer/{BarColumn-Cdu3OoMa-19ea6a13e54097ebd063.js → BarColumn-B6tCmNJm-e22bac804a17b3dc1b1b.js} +1 -1
- data/tools/packetviewer/BlockWidget-Bmi0UcUW-ec8ec68e285b2e2fee4c.js +2 -0
- data/tools/packetviewer/{ButtonWidget-nwDlOBJT-25306020af8e2490a708.js → ButtonWidget-CHrHS_Bw-1d004ec78a6735aec46e.js} +2 -2
- data/tools/packetviewer/CanvasWidget-BqdyLbQz-1947d0d5808128900795.js +1 -0
- data/tools/packetviewer/CanvasdotWidget-YYwca104-45f3b96762e0faad4ad7.js +1 -0
- data/tools/packetviewer/{CanvasimageWidget-BIw7Wbf2-9994342f735cb8296dc3.js → CanvasimageWidget-BrYlPQCf-4466ac790e9c0ad921e0.js} +1 -1
- data/tools/packetviewer/CanvasimagevalueWidget-HnEOXmZy-cb843c4ff821e140d765.js +1 -0
- data/tools/packetviewer/{CanvaslabelWidget-DWmb356h-ac43a194e7901b64ab9f.js → CanvaslabelWidget-BfMHNei--860f78104eb3d64f1a80.js} +1 -1
- data/tools/packetviewer/{CanvaslabelvalueWidget-CI3yYwFs-5049d78f9993b16ead67.js → CanvaslabelvalueWidget-0zRDJav3-d9fb4339e2a2ed011785.js} +1 -1
- data/tools/packetviewer/CanvaslineWidget-BmOwJP_G-dd5420d1cfbdcb57fc4e.js +1 -0
- data/tools/packetviewer/CanvaslinevalueWidget-H3L1aUKM-ba0627b664a3d3468d7e.js +1 -0
- data/tools/packetviewer/CheckbuttonWidget-BnT9X7wE-e2dff3311e6683ed4f16.js +1 -0
- data/tools/packetviewer/{ComboboxWidget-BzsbOv54-b8ff193ae126b48859bc.js → ComboboxWidget-BykAAoxH-8e13e18ac6c006d95f24.js} +1 -1
- data/tools/packetviewer/{DateWidget-B5R_9rA8-8e2fc2d88477baaf1369.js → DateWidget-FtYD86xW-34aa72fa0523438ee186.js} +1 -1
- data/tools/packetviewer/{DetailsDialog-DLRMqetn-f9042e1e97e72d216671.js → DetailsDialog-DiVcC3Fg-204a8a4ba77bb2730653.js} +1 -1
- data/tools/packetviewer/{DynamicWidget-m9EliUR2-b5ea3ef0c15637574d5d.js → DynamicWidget-m9EliUR2-8a4a40849e2da4cee5fa.js} +1 -1
- data/tools/packetviewer/FormatvalueWidget-OykwwCrw-9436593f132afedb1d93.js +1 -0
- data/tools/packetviewer/{GraphWidget-amwxyH1r-bb344220668f812f7753.js → GraphWidget-BohHW-97-29484481ebd9c0fe3b2e.js} +1 -1
- data/tools/packetviewer/{HorizontalWidget-CirtfuL8-581df8c617022849404f.js → HorizontalWidget-B7YdcFVN-50f64d98579216a20e84.js} +1 -1
- data/tools/packetviewer/HorizontalboxWidget-D-kCNwI3-d3e1e876caf5094eb021.js +1 -0
- data/tools/packetviewer/{HorizontallineWidget-BdlNB951-abddf7ade61efa6afd1f.js → HorizontallineWidget-BdlNB951-65df1bdbe0cf8e8c725d.js} +1 -1
- data/tools/packetviewer/IframeWidget-0C7GYEVc-4cf35efc914af8c524bb.js +1 -0
- data/tools/packetviewer/{ImageLoader-CpcR6tPi-443530d2492266a18fde.js → ImageLoader-y6fAZe9P-5b38d6f8cbc49995f75b.js} +1 -1
- data/tools/packetviewer/{ImageviewerWidget-DIkmb_C9-98ce7460e2809dd7eed3.js → ImageviewerWidget-B4HbUIfR-f1f26e5bfc2a24e23f08.js} +1 -1
- data/tools/packetviewer/{LabelWidget-BDsypYho-29234ed42723f071f5ae.js → LabelWidget-D1JhQAzR-f24d69bafbf6716d3e10.js} +1 -1
- data/tools/packetviewer/{LabelledWidget-DjturGl5-e5c80c06f954de2cbd2c.js → LabelledWidget-C2VGJ5OJ-82f4992b68d2932098e8.js} +1 -1
- data/tools/packetviewer/LabelprogressbarWidget-DN0cAeLK-9c22622ac7145d71b4b6.js +1 -0
- data/tools/packetviewer/LabelsparklineWidget--sxBENxs-24706f145063878e76da.js +1 -0
- data/tools/packetviewer/LabelvalueWidget-BWpP5KX6-203491b0a66d442f1a62.js +1 -0
- data/tools/packetviewer/{LabelvaluedescWidget-CsUP7J4U-f0d02924f2b2e8f8cee0.js → LabelvaluedescWidget-DtJwggDu-63707e7912b9a3281014.js} +1 -1
- data/tools/packetviewer/{LabelvaluelimitsbarWidget-Blj1QXV8-2a5dd0d37e28db35f259.js → LabelvaluelimitsbarWidget-Bj6UVK-5-f44a2cef8e4e457017b3.js} +1 -1
- data/tools/packetviewer/LabelvaluelimitscolumnWidget-BVcEEcUx-8c61f1b7990567de6da0.js +1 -0
- data/tools/packetviewer/{LabelvaluerangebarWidget-DpcXhlfF-ff91ab70dcfda1f92705.js → LabelvaluerangebarWidget-DCJ42bmf-5d1ed9d89c380be07df3.js} +1 -1
- data/tools/packetviewer/{Layout-C1HoM4Kl-1c1f7aa2c3629121b7fb.js → Layout-D4YBjuWs-da1b76597c5f6c1ba1e5.js} +1 -1
- data/tools/packetviewer/{LedWidget-B_K2e5tq-e26a5c785c5c84a31b7c.js → LedWidget-hN9JHxjr-17b93b153ab6f419021a.js} +1 -1
- data/tools/packetviewer/{LimitsbarWidget-DXbqsi4J-8d60ec9702a7086444c4.js → LimitsbarWidget-D-wfz_St-8a08e362391309832fa6.js} +1 -1
- data/tools/packetviewer/{LimitscolorWidget-Ckmuw0YX-2fbf48513cc7c8598a52.js → LimitscolorWidget-B0AVGdkz-20824798a0f23c335f28.js} +1 -1
- data/tools/packetviewer/{LimitscolumnWidget-BfY4su5U-c83964510ddb7e3cf182.js → LimitscolumnWidget-Dt5ce4hN-99a0b05a358a71901311.js} +1 -1
- data/tools/packetviewer/{LinegraphWidget-y-Qy9P0R-a62c88a598a3a7eba75d.js → LinegraphWidget-CTjtvtPd-fa62fe47370e01f904a2.js} +1 -1
- data/tools/packetviewer/MatrixbycolumnsWidget-wLx4NvXV-215ba09d6eb18f7214c4.js +1 -0
- data/tools/packetviewer/{PacketViewer-352f4a26e0d25e44097f.js → PacketViewer-3443a71085b1d1a8e79c.js} +6 -6
- data/tools/packetviewer/{ProgressbarWidget-DpA_-vy9-16f3b8d0a5dac99ac690.js → ProgressbarWidget-B7l0BBiX-1c8eca9dba7b7d13553f.js} +1 -1
- data/tools/packetviewer/RadiobuttonWidget-B032jKIw-b3531306e29efb41fee9.js +1 -0
- data/tools/packetviewer/RadiogroupWidget-Busjqikr-63c49652daf58dd071d3.js +1 -0
- data/tools/packetviewer/{RangebarWidget-DHS7S3vI-c174dc1017c2e38c4993.js → RangebarWidget-DbYrwEfC-80b47a8a96802c5b8d4b.js} +1 -1
- data/tools/packetviewer/{RollupWidget-CTk9Kjwr-26f41fabb85ca61b56b3.js → RollupWidget-rKxLXuCv-2d73b9b866b2fa7afc9e.js} +1 -1
- data/tools/packetviewer/{ScrollwindowWidget-DD0TOW6s-65e97cecb6f7c09fc3ea.js → ScrollwindowWidget-D4NKIzQO-5aa5f9f4b9bcbbd828ad.js} +1 -1
- data/tools/packetviewer/{SignalWidget-CC33KMTW-41858e2f8ccf3111542a.js → SignalWidget-h-oivReC-bf207132b1ede2645405.js} +1 -1
- data/tools/packetviewer/SpacerWidget-BSy9eOlB-f616a3617c52cec29ab9.js +1 -0
- data/tools/packetviewer/{SparklineWidget-DMvMQCPm-a63af54970e556a921b1.js → SparklineWidget-C9vdxar--d65d2b08452703e780d5.js} +1 -1
- data/tools/packetviewer/TabbookWidget-DTFTKURm-b7a2ad9e594e77ec1ec2.js +1 -0
- data/tools/packetviewer/TextboxWidget-BZyYHmBq-28b2cccafd0470de2d6b.js +1 -0
- data/tools/packetviewer/{TextfieldWidget-DXSdgqVP-90206accd3829a6a5896.js → TextfieldWidget-aVRdXRsT-93dfba156e366b30d68b.js} +1 -1
- data/tools/packetviewer/TimeWidget-BE2rtMxg-f0d952e429626fa4b16e.js +1 -0
- data/tools/packetviewer/{TitleWidget-DqViFQl--47990fb20f1c54860ccb.js → TitleWidget-BB29MZb2-3245fd08517f399fa5ab.js} +1 -1
- data/tools/packetviewer/{VWidget-02CG-3Av-fccf918186b515aaa165.js → VWidget-CGdM4sTw-952cc460ebcfa5ab9ec3.js} +1 -1
- data/tools/packetviewer/ValueWidget-h3905woQ-64ce3f53c2dc2328d8d8.js +1 -0
- data/tools/packetviewer/{ValuelimitsbarWidget-SR8XNZFB-c03828162c3de924f00c.js → ValuelimitsbarWidget-LMXYjWtS-a97f38eea96c21d4ccb9.js} +1 -1
- data/tools/packetviewer/{ValuelimitscolumnWidget-xYZSp6YZ-83e157bbf6eab4b053fb.js → ValuelimitscolumnWidget-gA3ZcfAT-f9c0d2f6b17d2d7f60b3.js} +1 -1
- data/tools/packetviewer/ValuerangebarWidget-DwZ9KQ0O-80cdb7bad4057c389905.js +1 -0
- data/tools/packetviewer/VerticalWidget-DziyURNu-b0d00f3a3f92f2cc8142.js +1 -0
- data/tools/packetviewer/VerticalboxWidget-OcoZBsFU-1be4c67d59907eddfaf2.js +1 -0
- data/tools/packetviewer/{Widget-C4QVI4IH-b8a1dd6961c1d0bf746f.js → Widget-C7ms_xDE-6fb7a198384f1576657e.js} +1 -1
- data/tools/packetviewer/{main-6fb660bf2784167e6249.js → main-6f6a469796b00bf7bc2e.js} +72 -72
- data/tools/packetviewer/main.js +1 -1
- metadata +67 -67
- data/tools/packetviewer/BlockWidget-PmjzrkXF-2887c74bb7451a1fb8f3.js +0 -2
- data/tools/packetviewer/CanvasWidget-BL8930eT-d7c1599b2356e19a717f.js +0 -1
- data/tools/packetviewer/CanvasdotWidget-VCf1fL-G-d6a95dff65d73bb04447.js +0 -1
- data/tools/packetviewer/CanvasimagevalueWidget-CE3Dj5bH-2d34425ad081347c2092.js +0 -1
- data/tools/packetviewer/CanvaslineWidget-COeapH3P-84f823b31bc9b646851d.js +0 -1
- data/tools/packetviewer/CanvaslinevalueWidget-CI-Bbzfi-4c36dd8078b735173eaf.js +0 -1
- data/tools/packetviewer/CheckbuttonWidget-BQhggcZ2-b6d870027e2e004c7db5.js +0 -1
- data/tools/packetviewer/FormatvalueWidget-DZkRJce8-ff9fc4d35a906b2254d2.js +0 -1
- data/tools/packetviewer/HorizontalboxWidget-CyTDt2nl-108caa509f164c01b955.js +0 -1
- data/tools/packetviewer/IframeWidget-DnJmCrCA-5b4b197d6dcf53e4e324.js +0 -1
- data/tools/packetviewer/LabelprogressbarWidget-RADJGLj3-3f27e3f9b1709d3fb0a7.js +0 -1
- data/tools/packetviewer/LabelsparklineWidget-BlJoICxu-477c5c2d98211f373b3b.js +0 -1
- data/tools/packetviewer/LabelvalueWidget-DVWJqnlY-9f138eb46b7dd2d16510.js +0 -1
- data/tools/packetviewer/LabelvaluelimitscolumnWidget-CvCo-uCe-30228d737da01c8913cc.js +0 -1
- data/tools/packetviewer/MatrixbycolumnsWidget-BTBColrs-dbd68611ed7a9bf37c07.js +0 -1
- data/tools/packetviewer/RadiobuttonWidget-BO8zpgwW-f58c459f07e8859991bb.js +0 -1
- data/tools/packetviewer/RadiogroupWidget-Oy7V4S-V-3148e07cb6c83e297e67.js +0 -1
- data/tools/packetviewer/SpacerWidget-BnJe_Hq6-969e2245be6b2d9dacfc.js +0 -1
- data/tools/packetviewer/TabbookWidget-B3w0JtWe-ae941376adbfd5be8bca.js +0 -1
- data/tools/packetviewer/TextboxWidget-D2f0-eol-f0a8ce4f0a8d29663f86.js +0 -1
- data/tools/packetviewer/TimeWidget-DvrRaEMz-7c40283ca7be4007c889.js +0 -1
- data/tools/packetviewer/ValueWidget-KLYY8L8U-b6ef5b42954a3e765cb9.js +0 -1
- data/tools/packetviewer/ValuerangebarWidget-B6M02a9d-ccf00cf77b478e8be881.js +0 -1
- data/tools/packetviewer/VerticalWidget-z6xUM-ql-c18497a058cef15407f8.js +0 -1
- data/tools/packetviewer/VerticalboxWidget-3a9cVsW--ff51e9d1f912ab4bc9a7.js +0 -1
@@ -0,0 +1 @@
|
|
1
|
+
System.register(["./Widget-C7ms_xDE-6fb7a198384f1576657e.js","vue","./main-6f6a469796b00bf7bc2e.js","vue-router","single-spa","vuex","vuetify"],function(i,o){"use strict";var t,s,n,l,r;return{setters:[e=>{t=e.o},e=>{s=e.openBlock,n=e.createElementBlock,l=e.normalizeStyle},e=>{r=e.s},null,null,null,null],execute:function(){const e={mixins:[t],created(){this.settings.push(["WIDTH",this.parameters[0]]),this.settings.push(["HEIGHT",this.parameters[1]])}};function u(c,m,p,h,d,v){return s(),n("div",{style:l(c.computedStyle)},null,4)}const a=i("default",r(e,[["render",u]]))}}});
|
@@ -1 +1 @@
|
|
1
|
-
System.register(["./GraphWidget-
|
1
|
+
System.register(["./GraphWidget-BohHW-97-29484481ebd9c0fe3b2e.js","./main-6f6a469796b00bf7bc2e.js","vue","single-spa","./Widget-C7ms_xDE-6fb7a198384f1576657e.js","vue-router","vuex","vuetify"],function(l,c){"use strict";var s,i,n,r,a,o,d;return{setters:[t=>{s=t.S,i=t._},t=>{n=t.s},t=>{r=t.resolveComponent,a=t.openBlock,o=t.createBlock,d=t.normalizeStyle},null,null,null,null,null],execute:function(){const t={components:{Graph:s},mixins:[i],data:function(){return{secondsGraphed:300,pointsSaved:300,pointsGraphed:300,size:{height:30,width:130}}}};function p(e,g,m,v,f,y){const h=r("graph");return a(),o(h,{ref:"graph"+e.id,id:e.id,state:e.state,"selected-graph-id":e.id,startTime:e.startTime,"seconds-graphed":e.secondsGraphed,"points-saved":e.pointsSaved,"points-graphed":e.pointsGraphed,"initial-items":e.items,height:e.size.height,width:e.size.width,style:d(e.computedStyle),sparkline:""},null,8,["id","state","selected-graph-id","startTime","seconds-graphed","points-saved","points-graphed","initial-items","height","width","style"])}const u=l("default",n(t,[["render",p]]))}}});
|
@@ -0,0 +1 @@
|
|
1
|
+
System.register(["./Layout-D4YBjuWs-da1b76597c5f6c1ba1e5.js","vue","./main-6f6a469796b00bf7bc2e.js","./Widget-C7ms_xDE-6fb7a198384f1576657e.js","vue-router","single-spa","vuex","vuetify"],function(k,D){"use strict";var p,s,r,l,g,v,i,u,c,o,y,f,w,b,V;return{setters:[e=>{p=e.r},e=>{s=e.resolveComponent,r=e.openBlock,l=e.createElementBlock,g=e.createVNode,v=e.normalizeStyle,i=e.withCtx,u=e.Fragment,c=e.renderList,o=e.createBlock,y=e.createTextVNode,f=e.toDisplayString,w=e.resolveDynamicComponent,b=e.mergeProps},e=>{V=e.s},null,null,null,null,null],execute:function(){const e={mixins:[p],data:function(){return{curTab:null}},watch:{curTab:function(){this.$emit("min-max-screen")}}};function x(t,m,z,h,j,L){const T=s("v-tab"),B=s("v-tabs"),C=s("v-window-item"),S=s("v-window");return r(),l("div",null,[g(B,{modelValue:t.curTab,"onUpdate:modelValue":m[0]||(m[0]=a=>t.curTab=a),style:v(t.computedStyle)},{default:i(()=>[(r(!0),l(u,null,c(t.widgets,(a,d)=>(r(),o(T,{key:d},{default:i(()=>[y(f(a.parameters[0]),1)]),_:2},1024))),128))]),_:1},8,["modelValue","style"]),g(S,{modelValue:t.curTab,"onUpdate:modelValue":m[1]||(m[1]=a=>t.curTab=a)},{default:i(()=>[(r(!0),l(u,null,c(t.widgets,(a,d)=>(r(),o(C,{key:d},{default:i(()=>[(r(!0),l(u,null,c(a.widgets,(n,_)=>(r(),o(w(n.type),b({ref_for:!0},t.listeners,{key:`${d}-${_}`,target:n.target,parameters:n.parameters,settings:n.settings,"screen-values":t.screenValues,"screen-time-zone":t.screenTimeZone,widgets:n.widgets,name:n.name,line:n.line,"line-number":n.lineNumber}),null,16,["target","parameters","settings","screen-values","screen-time-zone","widgets","name","line","line-number"]))),128))]),_:2},1024))),128))]),_:1},8,["modelValue"])])}const N=k("default",V(e,[["render",x]]))}}});
|
@@ -0,0 +1 @@
|
|
1
|
+
System.register(["./main-6f6a469796b00bf7bc2e.js","vue","./DetailsDialog-DiVcC3Fg-204a8a4ba77bb2730653.js","single-spa","./VWidget-CGdM4sTw-952cc460ebcfa5ab9ec3.js","vue-router","vuex","vuetify","./Widget-C7ms_xDE-6fb7a198384f1576657e.js"],function(f,E){"use strict";var c,a,l,o,n,u,d,s,m,h,g,p,v,x,w,C;return{setters:[e=>{c=e.s},e=>{a=e.resolveComponent,l=e.openBlock,o=e.createElementBlock,n=e.createVNode,u=e.normalizeClass,d=e.normalizeStyle,s=e.withCtx,m=e.Fragment,h=e.renderList,g=e.createBlock,p=e.withModifiers,v=e.createTextVNode,x=e.toDisplayString},e=>{w=e.P},null,e=>{C=e.L},null,null,null,null],execute:function(){const e={components:{DetailsDialog:w},data:function(){return{width:200,height:200}},mixins:[C],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)},methods:{getType:function(){let t="CONVERTED";return this.parameters[5]&&(t=this.parameters[5]),t}}},y={class:"textbox-widget-container"};function V(t,r,L,j,F,k){const D=a("v-textarea"),S=a("v-list-item-title"),_=a("v-list-item"),B=a("v-list"),M=a("v-menu"),T=a("details-dialog");return l(),o("div",y,[n(D,{variant:"solo",density:"compact",readonly:"","no-resize":"","auto-grow":"",rows:"2","hide-details":"","model-value":t._value,class:u(t.valueClass),style:d([t.computedStyle,k.aging]),"data-test":"valueText",onContextmenu:t.showContextMenu},null,8,["model-value","class","style","onContextmenu"]),n(M,{modelValue:t.contextMenuShown,"onUpdate:modelValue":r[0]||(r[0]=i=>t.contextMenuShown=i),target:[t.x,t.y]},{default:s(()=>[n(B,null,{default:s(()=>[(l(!0),o(m,null,h(t.contextMenuOptions,(i,z)=>(l(),g(_,{key:z,onClick:p(i.action,["stop"])},{default:s(()=>[n(S,null,{default:s(()=>[v(x(i.title),1)]),_:2},1024)]),_:2},1032,["onClick"]))),128))]),_:1})]),_:1},8,["modelValue","target"]),n(T,{"target-name":t.parameters[0],"packet-name":t.parameters[1],"item-name":t.parameters[2],modelValue:t.viewDetails,"onUpdate:modelValue":r[1]||(r[1]=i=>t.viewDetails=i)},null,8,["target-name","packet-name","item-name","modelValue"])])}const N=f("default",c(e,[["render",V],["__scopeId","data-v-10f560aa"]]))}}});
|
@@ -1 +1 @@
|
|
1
|
-
System.register(["./Widget-
|
1
|
+
System.register(["./Widget-C7ms_xDE-6fb7a198384f1576657e.js","vue","./main-6f6a469796b00bf7bc2e.js","vue-router","single-spa","vuex","vuetify"],function(i,h){"use strict";var t,l,n,s,a,o;return{setters:[e=>{t=e.o},e=>{l=e.resolveComponent,n=e.openBlock,s=e.createBlock,a=e.normalizeStyle},e=>{o=e.s},null,null,null,null],execute:function(){const e={mixins:[t],data(){return{value:null}},created(){this.setWidth(this.parameters[0],"ch",12),this.parameters[1]&&(this.value=this.parameters[1])},methods:{text(){return this.value}}};function c(d,r,y,f,u,x){const m=l("v-text-field");return n(),s(m,{variant:"solo",density:"compact","single-line":"","hide-no-data":"","hide-details":"",modelValue:u.value,"onUpdate:modelValue":r[0]||(r[0]=v=>u.value=v),style:a(d.computedStyle)},null,8,["modelValue","style"])}const p=i("default",o(e,[["render",c]]))}}});
|
@@ -0,0 +1 @@
|
|
1
|
+
System.register(["./Widget-C7ms_xDE-6fb7a198384f1576657e.js","./main-6f6a469796b00bf7bc2e.js","vue","vue-router","single-spa","vuex","vuetify"],function(m,y){"use strict";var l,i,n,s,a,r,o;return{setters:[e=>{l=e.o},e=>{i=e.s,n=e.P},e=>{s=e.resolveComponent,a=e.openBlock,r=e.createBlock,o=e.normalizeStyle},null,null,null,null],execute:function(){const e={mixins:[l,n],data(){return{label:"Time",timeValue:""}},created(){this.parameters[0]&&(this.label=this.parameters[0]),this.timeValue=this.formatTimeHMS(new Date,this.screenTimeZone)},methods:{text(){return this.timeValue},time(){return this.timeValue}}};function c(d,u,f,v,t,x){const h=s("v-text-field");return a(),r(h,{modelValue:t.timeValue,"onUpdate:modelValue":u[0]||(u[0]=p=>t.timeValue=p),label:t.label,style:o(d.computedStyle),type:"time","hide-details":""},null,8,["modelValue","label","style"])}const V=m("default",i(e,[["render",c]]))}}});
|
@@ -1 +1 @@
|
|
1
|
-
System.register(["./Widget-
|
1
|
+
System.register(["./Widget-C7ms_xDE-6fb7a198384f1576657e.js","vue","./main-6f6a469796b00bf7bc2e.js","vue-router","single-spa","vuex","vuetify"],function(o,m){"use strict";var t,r,n,l,s,a;return{setters:[e=>{t=e.o},e=>{r=e.openBlock,n=e.createElementBlock,l=e.normalizeStyle,s=e.toDisplayString},e=>{a=e.s},null,null,null,null],execute:function(){const e={mixins:[t],computed:{labelText(){return this.parameters[0]}},created(){if(this.parameters.length<1)throw new Error("Not enough parameters for TITLE.")}};function i(c,x,f,y,g,u){return r(),n("span",{class:"text-h5 text-center pa-1 mt-1 label",style:l(c.computedStyle)},s(u.labelText),5)}const p=o("default",a(e,[["render",i]]))}}});
|
@@ -1 +1 @@
|
|
1
|
-
System.register(["./main-
|
1
|
+
System.register(["./main-6f6a469796b00bf7bc2e.js","./Widget-C7ms_xDE-6fb7a198384f1576657e.js"],function(S,T){"use strict";var v,w;return{setters:[h=>{v=h.P},h=>{w=h.o}],execute:function(){var h={},b;function x(){return b||(b=1,function(t){(function(){var s={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function c(n){return E(V(n),arguments)}function I(n,u){return c.apply(null,[n].concat(u||[]))}function E(n,u){var i=1,p=n.length,e,o="",l,a,r,m,g,y,_,d;for(l=0;l<p;l++)if(typeof n[l]=="string")o+=n[l];else if(typeof n[l]=="object"){if(r=n[l],r.keys)for(e=u[i],a=0;a<r.keys.length;a++){if(e==null)throw new Error(c('[sprintf] Cannot access property "%s" of undefined value "%s"',r.keys[a],r.keys[a-1]));e=e[r.keys[a]]}else r.param_no?e=u[r.param_no]:e=u[i++];if(s.not_type.test(r.type)&&s.not_primitive.test(r.type)&&e instanceof Function&&(e=e()),s.numeric_arg.test(r.type)&&typeof e!="number"&&isNaN(e))throw new TypeError(c("[sprintf] expecting number but found %T",e));switch(s.number.test(r.type)&&(_=e>=0),r.type){case"b":e=parseInt(e,10).toString(2);break;case"c":e=String.fromCharCode(parseInt(e,10));break;case"d":case"i":e=parseInt(e,10);break;case"j":e=JSON.stringify(e,null,r.width?parseInt(r.width):0);break;case"e":e=r.precision?parseFloat(e).toExponential(r.precision):parseFloat(e).toExponential();break;case"f":e=r.precision?parseFloat(e).toFixed(r.precision):parseFloat(e);break;case"g":e=r.precision?String(Number(e.toPrecision(r.precision))):parseFloat(e);break;case"o":e=(parseInt(e,10)>>>0).toString(8);break;case"s":e=String(e),e=r.precision?e.substring(0,r.precision):e;break;case"t":e=String(!!e),e=r.precision?e.substring(0,r.precision):e;break;case"T":e=Object.prototype.toString.call(e).slice(8,-1).toLowerCase(),e=r.precision?e.substring(0,r.precision):e;break;case"u":e=parseInt(e,10)>>>0;break;case"v":e=e.valueOf(),e=r.precision?e.substring(0,r.precision):e;break;case"x":e=(parseInt(e,10)>>>0).toString(16);break;case"X":e=(parseInt(e,10)>>>0).toString(16).toUpperCase();break}s.json.test(r.type)?o+=e:(s.number.test(r.type)&&(!_||r.sign)?(d=_?"+":"-",e=e.toString().replace(s.sign,"")):d="",g=r.pad_char?r.pad_char==="0"?"0":r.pad_char.charAt(1):" ",y=r.width-(d+e).length,m=r.width&&y>0?g.repeat(y):"",o+=r.align?d+e+m:g==="0"?d+m+e:m+d+e)}return o}var f=Object.create(null);function V(n){if(f[n])return f[n];for(var u=n,i,p=[],e=0;u;){if((i=s.text.exec(u))!==null)p.push(i[0]);else if((i=s.modulo.exec(u))!==null)p.push("%");else if((i=s.placeholder.exec(u))!==null){if(i[2]){e|=1;var o=[],l=i[2],a=[];if((a=s.key.exec(l))!==null)for(o.push(a[1]);(l=l.substring(a[0].length))!=="";)if((a=s.key_access.exec(l))!==null)o.push(a[1]);else if((a=s.index_access.exec(l))!==null)o.push(a[1]);else throw new SyntaxError("[sprintf] failed to parse named argument key");else throw new SyntaxError("[sprintf] failed to parse named argument key");i[2]=o}else e|=2;if(e===3)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");p.push({placeholder:i[0],param_no:i[1],keys:i[2],sign:i[3],pad_char:i[4],align:i[5],width:i[6],precision:i[7],type:i[8]})}else throw new SyntaxError("[sprintf] unexpected placeholder");u=u.substring(i[0].length)}return f[n]=p}t.sprintf=c,t.vsprintf=I,typeof window<"u"&&(window.sprintf=c,window.vsprintf=I)})()}(h)),h}x();const k={methods:{formatValueBase(t,s){return this.isJsonString(t)?this.formatJsonString(t):Array.isArray(t)?this.formatArray(t):this.isObject(t)?"":s&&t?sprintf(s,t):String(t)},isJsonString(t){return t&&t.json_class==="String"&&t.raw!==void 0},formatJsonString(t){let s=Array.from(t.raw.slice(0,32),c=>("0"+(c&255).toString(16)).slice(-2)).join(" ").toUpperCase();return t.raw.length>32&&(s+="..."),s},formatArray(t){return"["+t.map(s=>typeof s=="string"?`"${s}"`:s).join(", ")+"]"},isObject(t){return Object.prototype.toString.call(t).slice(8,-1)==="Object"}}},L=S("L",{mixins:[w,v,k],props:{value:{default:null},limitsState:{type:String,default:null},counter:{default:null},formatString:null,timeZone:{type:String,default:"local"}},emits:["addItem","deleteItem","open"],data(){return{appliedTimeZone:"local",curValue:null,prevValue:null,grayLevel:80,grayRate:5,valueId:null,arrayIndex:null,viewDetails:!1,contextMenuShown:!1,x:0,y:0,contextMenuOptions:[{title:"Details",action:()=>{this.contextMenuShown=!1,this.viewDetails=!0}},{title:"Graph",action:()=>{window.open("/tools/tlmgrapher/"+encodeURIComponent(this.parameters[0])+"/"+encodeURIComponent(this.parameters[1])+"/"+encodeURIComponent(this.parameters[2]),"_blank")}}]}},watch:{_counter:function(t,s){this.curValue!==this.prevValue?this.grayLevel=80:(this.grayLevel-=this.grayRate,this.grayLevel<30&&(this.grayLevel=30)),this.prevValue=this.curValue}},computed:{_value:function(){return this.curValue=this.value,this.curValue===null&&(this.screenValues?this.screenValues[this.valueId]&&(this.arrayIndex!==null&&this.screenValues[this.valueId][0]?this.curValue=this.screenValues[this.valueId][0][this.arrayIndex]:this.curValue=this.screenValues[this.valueId][0]):this.curValue=null),this.curValue=this.formatValue(this.curValue),this.curValue},_limitsState:function(){let t=this.limitsState;return t===null&&(this.screenValues?this.screenValues[this.valueId]&&(t=this.screenValues[this.valueId][1]):t=null),t},_counter:function(){let t=this.counter;return t===null&&(this.screenValues?this.screenValues[this.valueId]&&(t=this.screenValues[this.valueId][2]):t=null),t},valueClass:function(){return"value shrink pa-1 openc3-"+this.limitsColor},astroStatus(){switch(this.limitsColor){case"green":return"normal";case"yellow":return"caution";case"red":return"critical";case"blue":return"standby";default:return null}},limitsColor(){let t=this._limitsState;if(t!=null)switch(t){case"GREEN":case"GREEN_HIGH":case"GREEN_LOW":return"green";case"YELLOW":case"YELLOW_HIGH":case"YELLOW_LOW":return"yellow";case"RED":case"RED_HIGH":case"RED_LOW":return"red";case"BLUE":return"blue";case"STALE":return"purple";default:return"white"}return""},limitsLetter(){let t=this._limitsState;if(t!=null){let s=t.charAt(0);return t.endsWith("_LOW")&&(s=s.toLowerCase()),s}return""}},created(){if(this.value===null||this.limitsState===null){if(this.parameters[2].includes("[["))this.parameters[2]=this.parameters[2].replace("[[","[").replace("]]","]");else if(this.parameters[2].includes("[")){let t=this.parameters[2].match(/\[(\d+)\]/);this.arrayIndex=parseInt(t[1]),this.parameters[2]=this.parameters[2].replace(t[0],"")}this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__${this.getType()}`,this.$emit("addItem",this.valueId),this.screenTimeZone?this.appliedTimeZone=this.screenTimeZone:this.appliedTimeZone=this.timeZone}},destroyed(){(this.value===null||this.limitsState===null)&&this.$emit("deleteItem",this.valueId)},methods:{getType(){let t="WITH_UNITS";return this.parameters[3]&&(t=this.parameters[3]),t},formatValue(t){return t&&this.valueId&&(this.valueId.includes("PACKET_TIMEFORMATTED")||this.valueId.includes("RECEIVED_TIMEFORMATTED"))?(t=t.replaceAll("/","-"),this.formatUtcToLocal(new Date(t),this.appliedTimeZone)):this.formatValueBase(t,this.formatString)},showContextMenu(t){t.preventDefault(),this.contextMenuShown=!1,this.x=t.clientX,this.y=t.clientY,this.$nextTick(()=>{this.contextMenuShown=!0})}}})}}});
|
@@ -0,0 +1 @@
|
|
1
|
+
System.register(["./main-6f6a469796b00bf7bc2e.js","vue","./DetailsDialog-DiVcC3Fg-204a8a4ba77bb2730653.js","single-spa","./VWidget-CGdM4sTw-952cc460ebcfa5ab9ec3.js","vue-router","vuex","vuetify","./Widget-C7ms_xDE-6fb7a198384f1576657e.js"],function(k,U){"use strict";var c,a,r,o,d,n,s,m,p,v,u,g,f,h,x,y,V,C;return{setters:[e=>{c=e.s},e=>{a=e.resolveComponent,r=e.openBlock,o=e.createElementBlock,d=e.normalizeStyle,n=e.createVNode,s=e.withCtx,m=e.mergeProps,p=e.createSlots,v=e.createElementVNode,u=e.toDisplayString,g=e.Fragment,f=e.renderList,h=e.createBlock,x=e.withModifiers,y=e.createTextVNode},e=>{V=e.P},null,e=>{C=e.L},null,null,null,null],execute:function(){const S={components:{DetailsDialog:V},mixins:[C],data:function(){return{width:16}},computed:{fullName(){return this.parameters[0]+" "+this.parameters[1]+" "+this.parameters[2]},aging(){return{"--aging":this.grayLevel}}},created(){this.verifyNumParams("VALUE",3,5,"VALUE <TARGET> <PACKET> <ITEM> <TYPE> <WIDTH>"),this.setWidth(parseInt(this.parameters[4])+4,"ch",this.width)}};function D(t,i,j,I,z,w){const E=a("rux-status"),_=a("v-text-field"),N=a("v-tooltip"),T=a("v-list-item-title"),L=a("v-list-item"),M=a("v-list"),B=a("v-menu"),P=a("details-dialog");return r(),o("div",{class:"value-widget-container",style:d([t.computedStyle,w.aging])},[n(N,{location:"top"},{activator:s(({props:l})=>[n(_,m({variant:"solo",density:"compact",flat:"",readonly:"","hide-details":"","model-value":t._value,class:t.valueClass,"data-test":"value",onContextmenu:t.showContextMenu},l),p({_:2},[t.astroStatus?{name:"prepend-inner",fn:s(()=>[n(E,{status:t.astroStatus},null,8,["status"])]),key:"0"}:void 0]),1040,["model-value","class","onContextmenu"])]),default:s(()=>[v("span",null,u(w.fullName),1)]),_:1}),n(B,{modelValue:t.contextMenuShown,"onUpdate:modelValue":i[0]||(i[0]=l=>t.contextMenuShown=l),target:[t.x,t.y],style:{"z-index":"3000"}},{default:s(()=>[n(M,null,{default:s(()=>[(r(!0),o(g,null,f(t.contextMenuOptions,(l,A)=>(r(),h(L,{key:A,onClick:x(l.action,["stop"])},{default:s(()=>[n(T,null,{default:s(()=>[y(u(l.title),1)]),_:2},1024)]),_:2},1032,["onClick"]))),128))]),_:1})]),_:1},8,["modelValue","target"]),n(P,{"target-name":t.parameters[0],"packet-name":t.parameters[1],"item-name":t.parameters[2],modelValue:t.viewDetails,"onUpdate:modelValue":i[1]||(i[1]=l=>t.viewDetails=l)},null,8,["target-name","packet-name","item-name","modelValue"])],4)}const W=k("default",c(S,[["render",D],["__scopeId","data-v-c21e4dde"]]))}}});
|
@@ -1 +1 @@
|
|
1
|
-
System.register(["./ValueWidget-
|
1
|
+
System.register(["./ValueWidget-h3905woQ-64ce3f53c2dc2328d8d8.js","./LimitsbarWidget-D-wfz_St-8a08e362391309832fa6.js","./Widget-C7ms_xDE-6fb7a198384f1576657e.js","vue","./main-6f6a469796b00bf7bc2e.js","./DetailsDialog-DiVcC3Fg-204a8a4ba77bb2730653.js","single-spa","./VWidget-CGdM4sTw-952cc460ebcfa5ab9ec3.js","vue-router","vuex","vuetify","./BarColumn-B6tCmNJm-e22bac804a17b3dc1b1b.js"],function(g,f){"use strict";var l,i,a,s,o,u,c,n,r,m;return{setters:[e=>{l=e.default},e=>{i=e.default},e=>{a=e.o},e=>{s=e.resolveComponent,o=e.openBlock,u=e.createElementBlock,c=e.normalizeStyle,n=e.createVNode,r=e.mergeProps},e=>{m=e.s},null,null,null,null,null,null,null],execute:function(){const e={mixins:[a],components:{ValueWidget:l,LimitsbarWidget:i}};function d(t,x,V,b,j,C){const p=s("value-widget"),v=s("limitsbar-widget");return o(),u("div",{ref:"container",class:"d-flex flex-row",style:c(t.computedStyle)},[n(p,r(t.$attrs,{parameters:t.parameters,settings:[...t.appliedSettings],"screen-values":t.screenValues,"screen-time-zone":t.screenTimeZone,"widget-index":0}),null,16,["parameters","settings","screen-values","screen-time-zone"]),n(v,r(t.$attrs,{parameters:t.parameters.slice(0,3),settings:[...t.appliedSettings],"screen-values":t.screenValues,"widget-index":1,line:t.line,lineNumber:t.lineNumber}),null,16,["parameters","settings","screen-values","line","lineNumber"])],4)}const w=g("default",m(e,[["render",d]]))}}});
|
@@ -1 +1 @@
|
|
1
|
-
System.register(["./ValueWidget-
|
1
|
+
System.register(["./ValueWidget-h3905woQ-64ce3f53c2dc2328d8d8.js","./LimitscolumnWidget-Dt5ce4hN-99a0b05a358a71901311.js","./Widget-C7ms_xDE-6fb7a198384f1576657e.js","vue","./main-6f6a469796b00bf7bc2e.js","./DetailsDialog-DiVcC3Fg-204a8a4ba77bb2730653.js","single-spa","./VWidget-CGdM4sTw-952cc460ebcfa5ab9ec3.js","vue-router","vuex","vuetify","./BarColumn-B6tCmNJm-e22bac804a17b3dc1b1b.js"],function(g,f){"use strict";var r,i,a,n,u,o,c,s,l,m;return{setters:[e=>{r=e.default},e=>{i=e.default},e=>{a=e.o},e=>{n=e.resolveComponent,u=e.openBlock,o=e.createElementBlock,c=e.normalizeStyle,s=e.createVNode,l=e.mergeProps},e=>{m=e.s},null,null,null,null,null,null,null],execute:function(){const e={mixins:[a],components:{ValueWidget:r,LimitscolumnWidget:i}};function d(t,w,j,C,N,x){const p=n("limitscolumn-widget"),v=n("value-widget");return u(),o("div",{ref:"container",style:c(t.computedStyle)},[s(p,l(t.$attrs,{parameters:t.parameters,settings:[...t.appliedSettings],"screen-values":t.screenValues,"widget-index":1,line:t.line,lineNumber:t.lineNumber}),null,16,["parameters","settings","screen-values","line","lineNumber"]),s(v,l(t.$attrs,{parameters:t.parameters,settings:[...t.appliedSettings],"screen-values":t.screenValues,"screen-time-zone":t.screenTimeZone,"widget-index":0}),null,16,["parameters","settings","screen-values","screen-time-zone"])],4)}const V=g("default",m(e,[["render",d]]))}}});
|
@@ -0,0 +1 @@
|
|
1
|
+
System.register(["./ValueWidget-h3905woQ-64ce3f53c2dc2328d8d8.js","./RangebarWidget-DbYrwEfC-80b47a8a96802c5b8d4b.js","./Widget-C7ms_xDE-6fb7a198384f1576657e.js","vue","./main-6f6a469796b00bf7bc2e.js","./DetailsDialog-DiVcC3Fg-204a8a4ba77bb2730653.js","single-spa","./VWidget-CGdM4sTw-952cc460ebcfa5ab9ec3.js","vue-router","vuex","vuetify"],function(g,f){"use strict";var n,i,l,r,m,u,o,s,a,c;return{setters:[e=>{n=e.default},e=>{i=e.default},e=>{l=e.o},e=>{r=e.resolveComponent,m=e.openBlock,u=e.createElementBlock,o=e.normalizeStyle,s=e.createVNode,a=e.mergeProps},e=>{c=e.s},null,null,null,null,null,null],execute:function(){const e={mixins:[l],components:{ValueWidget:n,RangebarWidget:i},computed:{valueParameters(){return[this.parameters[0],this.parameters[1],this.parameters[2],this.parameters[5],this.parameters[6]]},rangeBarParameters(){return[this.parameters[0],this.parameters[1],this.parameters[2],this.parameters[3],this.parameters[4],this.parameters[5],this.parameters[7],this.parameters[8]]}}};function d(t,x,V,S,j,p){const v=r("value-widget"),h=r("rangebar-widget");return m(),u("div",{ref:"container",class:"d-flex flex-row",style:o(t.computedStyle)},[s(v,a(t.$attrs,{parameters:p.valueParameters,settings:[...t.appliedSettings],"screen-values":t.screenValues,"screen-time-zone":t.screenTimeZone,"widget-index":0}),null,16,["parameters","settings","screen-values","screen-time-zone"]),s(h,a(t.$attrs,{parameters:p.rangeBarParameters,settings:[...t.appliedSettings],"screen-values":t.screenValues,"widget-index":1}),null,16,["parameters","settings","screen-values"])],4)}const w=g("default",c(e,[["render",d]]))}}});
|
@@ -0,0 +1 @@
|
|
1
|
+
System.register(["./Layout-D4YBjuWs-da1b76597c5f6c1ba1e5.js","vue","./main-6f6a469796b00bf7bc2e.js","./Widget-C7ms_xDE-6fb7a198384f1576657e.js","vue-router","single-spa","vuex","vuetify"],function(y,k){"use strict";var l,r,i,c,o,u,m,g,p,f;return{setters:[e=>{l=e.r},e=>{r=e.openBlock,i=e.createElementBlock,c=e.normalizeStyle,o=e.Fragment,u=e.renderList,m=e.createBlock,g=e.resolveDynamicComponent,p=e.mergeProps},e=>{f=e.s},null,null,null,null,null],execute:function(){const e={mixins:[l],created:function(){if(this.parameters[0]){let n=this.parameters[0];this.widgets.forEach(a=>{a.settings.find(s=>s[0]==="MARGIN"||s[0]==="RAW"&&s[1].toUpperCase().includes("MARGIN"))===void 0&&a.settings.push(["MARGIN",n])})}}};function d(n,a,s,h,w,R){return r(),i("div",{ref:"container",style:c(n.computedStyle)},[(r(!0),i(o,null,u(n.widgets,(t,v)=>(r(),m(g(t.type),p({ref_for:!0},n.listeners,{key:v,target:t.target,parameters:t.parameters,settings:t.settings,"screen-values":n.screenValues,"screen-time-zone":n.screenTimeZone,widgets:t.widgets,name:t.name,line:t.line,"line-number":t.lineNumber}),null,16,["target","parameters","settings","screen-values","screen-time-zone","widgets","name","line","line-number"]))),128))],4)}const B=y("default",f(e,[["render",d]]))}}});
|
@@ -0,0 +1 @@
|
|
1
|
+
System.register(["./VerticalWidget-DziyURNu-b0d00f3a3f92f2cc8142.js","./Layout-D4YBjuWs-da1b76597c5f6c1ba1e5.js","vue","./main-6f6a469796b00bf7bc2e.js","./Widget-C7ms_xDE-6fb7a198384f1576657e.js","vue-router","single-spa","vuex","vuetify"],function(v,f){"use strict";var r,i,s,l,a,n,c,o,u,g,p,m;return{setters:[e=>{r=e.default},e=>{i=e.r},e=>{s=e.resolveComponent,l=e.openBlock,a=e.createElementBlock,n=e.createVNode,c=e.normalizeStyle,o=e.withCtx,u=e.createTextVNode,g=e.toDisplayString,p=e.mergeProps},e=>{m=e.s},null,null,null,null,null],execute:function(){const e={mixins:[i],components:{VerticalWidget:r}};function d(t,w,S,_,j,k){const y=s("v-banner"),x=s("vertical-widget");return l(),a("div",null,[n(y,{class:"boxbanner",style:c(t.computedStyle),"single-line":""},{default:o(()=>[u(g(t.parameters[0]),1)]),_:1},8,["style"]),n(x,p(t.listeners,{parameters:t.parameters.slice(1),settings:t.settings,widgets:t.widgets,"screen-values":t.screenValues,"screen-time-zone":t.screenTimeZone}),null,16,["parameters","settings","widgets","screen-values","screen-time-zone"])])}const V=v("default",m(e,[["render",d],["__scopeId","data-v-832aa5cd"]]))}}});
|
@@ -1 +1 @@
|
|
1
|
-
System.register(["./main-
|
1
|
+
System.register(["./main-6f6a469796b00bf7bc2e.js"],function(d,o){"use strict";var p,r;return{setters:[n=>{p=n.B,r=n.a}],execute:function(){const n=d("o",{mixins:[p],props:{widgetIndex:{type:Number,default:null},parameters:{type:Array,default:()=>[]},settings:{type:Array,default:()=>[]},screenValues:{type:Object,default:()=>{}},screenTimeZone:{type:String,default:"local"},namedWidgets:{type:Object,default:{}},line:{type:String,default:""},lineNumber:{type:Number,default:0}},data(){return{appliedSettings:[],appliedStyle:{},widgetName:null,screenId:"NO_SCREEN"}},computed:{computedStyle:function(){return this.appliedSettings.forEach(t=>{this.applyStyleSetting(t)}),this.appliedStyle.width===void 0&&this.appliedStyle.height===void 0&&(this.appliedStyle.flex="0 10 100%"),this.appliedStyle},screen:function(){const t=this;return{getNamedWidget:function(e){return t.$store.getters.namedWidget(t.toQualifiedWidgetName(e))},open:function(e,i){t.$emit("open",e,i)},close:function(e,i){t.$emit("close",e,i)},closeAll:function(){t.$emit("closeAll")}}},listeners:function(){return Object.entries(this.$attrs).reduce((t,e)=>e[0].startsWith("on")?{...t,[e[0]]:e[1]}:t,{})}},watch:{widgetName:function(t,e){this.$store.commit("clearNamedWidget",this.toQualifiedWidgetName(e)),this.$store.commit("setNamedWidget",{[this.toQualifiedWidgetName(t)]:this})}},created(){var t,e;this.screenId=(t=this.settings.find(i=>i[0]==="__SCREEN_ID__"))==null?void 0:t.at(1),this.widgetName=(e=this.settings.find(i=>i[0]==="NAMED_WIDGET"))==null?void 0:e.at(1),this.appliedSettings=this.settings.map(i=>{const s=parseInt(i[0]);if(isNaN(s)||this.widgetIndex===null)return i;if(this.widgetIndex===s)return i.slice(1)}).filter(i=>i!==void 0)},beforeUnmount(){this.widgetName&&this.$store.commit("clearNamedWidget",this.toQualifiedWidgetName(this.widgetName))},methods:{applyStyleSetting(t){switch(t[0]){case"TEXTALIGN":this.appliedStyle["text-align"]=t[1].toLowerCase()+" !important",this.appliedStyle["--text-align"]=t[1].toLowerCase();break;case"PADDING":isNaN(Number(t[1]))||(t[1]+="px"),this.appliedStyle.padding=t[1]+" !important";break;case"MARGIN":isNaN(Number(t[1]))||(t[1]+="px"),this.appliedStyle.margin=t[1]+" !important";break;case"BACKCOLOR":this.appliedStyle["background-color"]=this.getColor(t.slice(1))+" !important";break;case"TEXTCOLOR":this.appliedStyle.color=this.getColor(t.slice(1))+" !important";break;case"BORDERCOLOR":this.appliedStyle["border-width"]="1px!important",this.appliedStyle["border-style"]="solid!important",this.appliedStyle["border-color"]=this.getColor(t.slice(1))+" !important";break;case"WIDTH":isNaN(Number(t[1]))||(t[1]+="px"),this.appliedStyle.width=t[1]+" !important";break;case"HEIGHT":isNaN(Number(t[1]))||(t[1]+="px"),this.appliedStyle.height=t[1]+" !important";break;case"RAW":this.appliedStyle[t[1].toLowerCase()]=t[2]+" !important";break}},verifyNumParams(t,e,i,s=""){let a={line:this.line,lineNumber:this.lineNumber,keyword:t,parameters:this.parameters};for(let l=1;l<=e;l++)if(this.parameters[l-1]===void 0)throw new r(a,`Not enough parameters for ${t}.`,s,"https://docs.openc3.com/docs/configuration");if(i!==null&&this.parameters.length>i)throw new r(a,`Too many parameters for ${t}.`,s,"https://docs.openc3.com/docs/configuration")},setWidth(t,e="px",i="120"){let s=this.appliedSettings.find(a=>a[0]==="WIDTH");return s?s.WIDTH:t?(this.appliedSettings.push(["WIDTH",`${t}${e}`]),parseInt(t)):(this.appliedSettings.push(["WIDTH",`${i}${e}`]),parseInt(i))},setHeight(t,e="px",i="20"){let s=null;return s=this.appliedSettings.find(a=>a[0]==="HEIGHT"),s?s.HEIGHT:t?(this.appliedSettings.push(["HEIGHT",`${t}${e}`]),parseInt(t)):(this.appliedSettings.push(["HEIGHT",`${i}${e}`]),parseInt(i))},getColor(t){switch(t.length){case 1:return t[0].toLowerCase();case 3:return`rgb(${t[0]},${t[1]},${t[2]})`}},toQualifiedWidgetName(t){return`${this.screenId}:${t}`}}})}}});
|