openc3-cosmos-tool-dataextractor 7.4.0 → 7.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/tools/dataextractor/{ArrayWidget-CIDdZjk3-a365d6ff2b67a493871c.js → ArrayWidget-_X_afgHR-848339cb62d72b1922f4.js} +2 -2
- data/tools/dataextractor/{ArrayplotWidget-BfO1atvG-6a08522672acf412ee31.js → ArrayplotWidget-BUH82FI4-cec7293efcfa38573113.js} +1 -1
- data/tools/dataextractor/{BarColumn-CHX_3ye3-efbf3df88e1db66e93b7.js → BarColumn-B_V83WMV-d2b59608da15a07ed307.js} +1 -1
- data/tools/dataextractor/{BlockWidget-DSbunlY_-22efee4c2014dc1373a7.js → BlockWidget-DKedrbWf-cfd62a492728ec2a59c7.js} +2 -2
- data/tools/dataextractor/{ButtonWidget-BB4ZOCI8-942359ad22d6846f2adc.js → ButtonWidget-DB3HWmyA-a451c9555921470b0ee7.js} +1 -1
- data/tools/dataextractor/CanvasWidget-D9EH5pzn-62c155f458b5c1bbfc0c.js +1 -0
- data/tools/dataextractor/CanvasdotWidget-BlE7J1N4-316f6c4f803268f7c3b1.js +1 -0
- data/tools/dataextractor/{CanvasimageWidget-DY1DDf0a-376e192da5d8c3579651.js → CanvasimageWidget-BlIBXSax-21e60190f0442f975c6d.js} +1 -1
- data/tools/dataextractor/{CanvasimagevalueWidget-0lc2cCPV-9d3edd16eee4a4f28dfe.js → CanvasimagevalueWidget-DXxbcD-Q-a9defc3d592afed39000.js} +1 -1
- data/tools/dataextractor/{CanvaslabelWidget-C6TDW9WO-06ba64b610cfcbd8690a.js → CanvaslabelWidget-3GsIsHNJ-a503a642efe204299165.js} +1 -1
- data/tools/dataextractor/{CanvaslabelvalueWidget-Cf_dcDW2-d4abd338766f66d68193.js → CanvaslabelvalueWidget-Cccis43F-375b317ca23584a67a6e.js} +1 -1
- data/tools/dataextractor/CanvaslineWidget-w07GyddB-ce1c98d68c1e88d66b6c.js +1 -0
- data/tools/dataextractor/{CanvaslinevalueWidget-CKpjqlKA-ba1fffbf8bf143563f2f.js → CanvaslinevalueWidget-CuTyiORB-6ffaf4f72d20768ae767.js} +1 -1
- data/tools/dataextractor/{CheckbuttonWidget-BWXinMaT-06aa9f5b43e6ef7ee36b.js → CheckbuttonWidget-7b-uK9Tk-66fe79c6d25ac981c471.js} +1 -1
- data/tools/dataextractor/ComboboxWidget-CdmrG6UT-58d9aefe0cf7828d0cfa.js +1 -0
- data/tools/dataextractor/{DataExtractor-2088fe0995e64bab5096.js → DataExtractor-e07fb38dc7183d41b098.js} +8 -8
- data/tools/dataextractor/{DateWidget-qUbLzQsX-fa054ed3b5c152e3ad52.js → DateWidget-D1pxOAks-8b2ce628388f535a975f.js} +1 -1
- data/tools/dataextractor/{DetailsDialog-CLPj0nP0-4bf5ea98e5ff56a47f05.js → DetailsDialog-CrP3epOv-5d7ec90aec185b3b7bb4.js} +1 -1
- data/tools/dataextractor/{DynamicWidget-yna_ejyc-41f93b7bf1514ee52ac0.js → DynamicWidget-yna_ejyc-4ec8a9e4b43555e0e9be.js} +1 -1
- data/tools/dataextractor/{FilechecksumWidget-DqNThsOX-c679ca6bff3a875eb9c4.js → FilechecksumWidget-eMy16t1i-41eb08ca3b045a8155c6.js} +1 -1
- data/tools/dataextractor/{FiledisplayWidget-BRhhiVEs-316e90e38c4eca99bd0b.js → FiledisplayWidget-B-hR67mo-c2bc42f3d0691f2bb792.js} +1 -1
- data/tools/dataextractor/{FormatvalueWidget-pEjAh0h2-06f06dc0a5a1827cdf25.js → FormatvalueWidget-lUNlLWlR-8c67ab633d4e5a99afa5.js} +1 -1
- data/tools/dataextractor/Graph--wiWQKh0-db7a194b09e2c6199203.js +1 -0
- data/tools/dataextractor/{GraphWidget-BZjBkefj-152c6140396136b6e842.js → GraphWidget-BvyRvV66-d9aa42efd0159537deb9.js} +1 -1
- data/tools/dataextractor/{HorizontalWidget-Brag6E4y-a9141bd384f055413c6f.js → HorizontalWidget-DKjAFowf-70aa3a393d2dc2eb43bb.js} +1 -1
- data/tools/dataextractor/HorizontalboxWidget-ge9b4747-9dd04301b8452b717ea9.js +1 -0
- data/tools/dataextractor/HorizontallineWidget-BX8YItd_-36a82f99582b3fbeda90.js +1 -0
- data/tools/dataextractor/{IframeWidget-Ciu5u58E-0a7070640afefb67e88e.js → IframeWidget-B6WC_SMn-a6ac85fb63784e70ad32.js} +1 -1
- data/tools/dataextractor/ImageLoader-QC6TN_Tu-c7c598257cade2eb7b88.js +1 -0
- data/tools/dataextractor/{ImageviewerWidget-vWMGPveb-805995e452eeb9c96950.js → ImageviewerWidget-CLcPtNkW-8cac26c9baa92c91d4d6.js} +1 -1
- data/tools/dataextractor/{LabelWidget-DVp0CmFH-ad94520313e6050c0342.js → LabelWidget-BMxEJEgT-618ee6d2a0a3e468e0a4.js} +1 -1
- data/tools/dataextractor/{LabelledWidget-1DeE1-6G-37c387bb59733698156e.js → LabelledWidget-DyLep7BJ-14e03fffb70a0bd6954d.js} +1 -1
- data/tools/dataextractor/LabelprogressbarWidget-CQVg9bpz-6cc87ec260b4bf8131a5.js +1 -0
- data/tools/dataextractor/LabelsparklineWidget-Dq4ZFHs0-11ea61f1777a5a5f6c19.js +1 -0
- data/tools/dataextractor/LabelvalueWidget-17PcoD2V-17171583a9a2b660fe34.js +1 -0
- data/tools/dataextractor/{LabelvaluedescWidget-c5BUCRxB-bb4bc7800b9fcb8834ff.js → LabelvaluedescWidget-zpeZoPGi-78d98f7a3107c4dedd59.js} +1 -1
- data/tools/dataextractor/LabelvaluelimitsbarWidget-CAX0dGi5-48375d083f8f9fed38db.js +1 -0
- data/tools/dataextractor/LabelvaluelimitscolumnWidget-Bi-ROV2g-5171e84949f449eaf187.js +1 -0
- data/tools/dataextractor/LabelvaluerangebarWidget-D8zuio3--83b671d86158a2742e4d.js +1 -0
- data/tools/dataextractor/{Layout-Df-lJgpB-3443a03561b770b828ae.js → Layout-740AmQLZ-f6e9a63a6c62fe9db2ae.js} +1 -1
- data/tools/dataextractor/{LedWidget-C97EJXBo-7c9b12b76be262fb0539.js → LedWidget-Bg65XQ0l-1c13ee5f7951b66fa287.js} +1 -1
- data/tools/dataextractor/{LimitsBar-DNV39okL-42e6976651a1fe948f8e.js → LimitsBar-DoRwFPYW-bb3cc6ba5b3d7d020e4f.js} +1 -1
- data/tools/dataextractor/{LimitsbarWidget-BIO6xztx-bc1a02229036f0dd4023.js → LimitsbarWidget-BJcc_1qa-74d09adcc8caed529d74.js} +1 -1
- data/tools/dataextractor/{LimitscolorWidget-BGrNA65J-f459bdc35b6389c77718.js → LimitscolorWidget-Dzz0Qxet-5d82fa05b34e5d13603e.js} +1 -1
- data/tools/dataextractor/{LimitscolumnWidget-Bw6EXJs9-aea5bb3bcbfd9ded4639.js → LimitscolumnWidget-CwzHaKP4-936d95682f604485397f.js} +1 -1
- data/tools/dataextractor/LinegraphWidget-C6tb4yDb-480caa9da0b31cc68c55.js +1 -0
- data/tools/dataextractor/{MatrixbycolumnsWidget-C33-g7kK-2243491e9688c4485a52.js → MatrixbycolumnsWidget-B18dc43U-48a91a930e7459e82bec.js} +1 -1
- data/tools/dataextractor/{OpenC3TimePicker-cOr0aOVn-25acc4b1827c96c6823a.js → OpenC3TimePicker-CM2VG1mS-76b626662e43cfd8ce5c.js} +1 -1
- data/tools/dataextractor/{ProgressbarWidget-DqfSMI10-435b3abb259019c8dd67.js → ProgressbarWidget-DXMt6dar-5b71b7ede0b52a551fd9.js} +1 -1
- data/tools/dataextractor/{RadiobuttonWidget-CSQeEacF-bf748e1aa8fa763e632c.js → RadiobuttonWidget-zxv884Z8-a45c917097a8f42e64fc.js} +1 -1
- data/tools/dataextractor/RadiogroupWidget-BVE6wpmw-11b38f696995bcec6206.js +1 -0
- data/tools/dataextractor/{RangebarWidget-CJSUof1--661a6e4b51cab637183e.js → RangebarWidget-B43rOEnA-7edc938b7579ddbc0a1c.js} +1 -1
- data/tools/dataextractor/{RollupWidget-C977Lkcx-3ae75d3c4a2c4fd3048c.js → RollupWidget-BEEjvyua-1cb0045b8391e40b092b.js} +1 -1
- data/tools/dataextractor/{ScrollwindowWidget-BFxz61oW-11083dcc92493b36f51b.js → ScrollwindowWidget-CUUtkAh4-b88476be8393325bcee9.js} +1 -1
- data/tools/dataextractor/{SignalWidget-BT6AcbBx-87df19489741e9c87fa5.js → SignalWidget-CbvidVbl-47cc56cf6111509642cc.js} +1 -1
- data/tools/dataextractor/{SpacerWidget-B_f09KAi-e7a9e18824431e35eb57.js → SpacerWidget-BukDoKlv-0fb5874f5c51902b2d74.js} +1 -1
- data/tools/dataextractor/SparklineWidget-BjSNHLGS-d3018ea40cbc91c909cd.js +1 -0
- data/tools/dataextractor/TabbookWidget-5Dz5n4sQ-a8fd98b2e9aff142b1f5.js +1 -0
- data/tools/dataextractor/TargetPacketItemChooser-CVGMtU04-ec3cf60712a2f39fa0da.js +1 -0
- data/tools/dataextractor/TextboxWidget-QzrrHB9s-a948fd62757acc1fb16c.js +1 -0
- data/tools/dataextractor/TextfieldWidget-BpDBnDUq-9a03432e1a4a19c48d99.js +1 -0
- data/tools/dataextractor/TimeWidget-CjZInJFT-faab2e9938442fb0b771.js +1 -0
- data/tools/dataextractor/TitleWidget-C9VC8OUI-bc587be955b9030990a2.js +1 -0
- data/tools/dataextractor/{VWidget-C4VLQ7-b-1126b116a416d121c008.js → VWidget-D8HzcrTo-46c5080712362c20af55.js} +1 -1
- data/tools/dataextractor/ValueWidget-CGOhPtMG-ac9aae952352e742f8c6.js +1 -0
- data/tools/dataextractor/ValuelimitsbarWidget-Lfq0cbnZ-9216a8334490268d31d1.js +1 -0
- data/tools/dataextractor/ValuelimitscolumnWidget-BH333HsT-3200ce225ae476394598.js +1 -0
- data/tools/dataextractor/ValuerangebarWidget-95AG0gex-6a904cf5b709dd7689f6.js +1 -0
- data/tools/dataextractor/VerticalWidget-fxittOB1-3e56d72a028304a9b0ea.js +1 -0
- data/tools/dataextractor/{VerticalboxWidget-BD5Eq3BH-904a6e5160ae7db4a651.js → VerticalboxWidget-CKnoHa-u-27d8704631035739b0ca.js} +1 -1
- data/tools/dataextractor/{Widget-ClRi417b-ca09328deaed4efe3ede.js → Widget-lYL8eSaS-184685bb2dd5a2a947c1.js} +1 -1
- data/tools/dataextractor/{main-58ef2ae57480aa824e7d.js → main-13c824ef27be48800fd9.js} +2 -2
- data/tools/dataextractor/main.js +1 -1
- metadata +73 -73
- data/tools/dataextractor/CanvasWidget-DsyMt7xW-bd39bce7dccaf632c4fc.js +0 -1
- data/tools/dataextractor/CanvasdotWidget-BZpkCAoH-4e5ef4f101d1c45c58ef.js +0 -1
- data/tools/dataextractor/CanvaslineWidget-jg2ozQ0N-af40156bc5036e8afe1a.js +0 -1
- data/tools/dataextractor/ComboboxWidget-BzKkyRDT-54a91389040556de2534.js +0 -1
- data/tools/dataextractor/Graph-GVQZltap-a899a85c24f92402cd6b.js +0 -1
- data/tools/dataextractor/HorizontalboxWidget-BnkH4cVq-13270435a51ec5890b03.js +0 -1
- data/tools/dataextractor/HorizontallineWidget-k7fL4EPN-e6835950fab23e268e2f.js +0 -1
- data/tools/dataextractor/ImageLoader-DH5e4lg8-ab7bd82e4b6c97a1d343.js +0 -1
- data/tools/dataextractor/LabelprogressbarWidget-DME-BrZe-c080e3f10caa92cab91a.js +0 -1
- data/tools/dataextractor/LabelsparklineWidget-4iDHGnPL-a4b3c7297887ce897715.js +0 -1
- data/tools/dataextractor/LabelvalueWidget-C6NQSHTb-c5d0fe4cae5fcd4bbf4d.js +0 -1
- data/tools/dataextractor/LabelvaluelimitsbarWidget-DBKZLpXJ-1145ebe0da314afb3b31.js +0 -1
- data/tools/dataextractor/LabelvaluelimitscolumnWidget-NdEu06go-05b4cb5c6acba5f7cb0b.js +0 -1
- data/tools/dataextractor/LabelvaluerangebarWidget-CL5HLK0t-10272441ee3df15c0c2d.js +0 -1
- data/tools/dataextractor/LinegraphWidget-Drf9tTPN-6ef8c7ff76dc3dd45a89.js +0 -1
- data/tools/dataextractor/RadiogroupWidget-DlQN9z-Z-737a18df0967dcab93a0.js +0 -1
- data/tools/dataextractor/SparklineWidget-Bji9DILO-cffcd58ebba764704623.js +0 -1
- data/tools/dataextractor/TabbookWidget-B74U8t2i-4ec2d216f654b67378fc.js +0 -1
- data/tools/dataextractor/TargetPacketItemChooser-XyyCP_cB-6fdc892d26307a74d591.js +0 -1
- data/tools/dataextractor/TextboxWidget-CbKE9aSW-61d80b11342c80f46880.js +0 -1
- data/tools/dataextractor/TextfieldWidget-CpdmfNk5-ba0b072fd637b2dbd9a0.js +0 -1
- data/tools/dataextractor/TimeWidget-BTaXBxVm-f4a9bc93fa17dbee8c11.js +0 -1
- data/tools/dataextractor/TitleWidget-ulO_gdVY-3aa67ccbdf5e87b899f5.js +0 -1
- data/tools/dataextractor/ValueWidget-B3-Jjoux-e8c93f5f6dc1f642c0b2.js +0 -1
- data/tools/dataextractor/ValuelimitsbarWidget-CqRkPwWS-3718efa59bfa32b811f9.js +0 -1
- data/tools/dataextractor/ValuelimitscolumnWidget-CF4CN14a-6108b13eebe9aa97b31d.js +0 -1
- data/tools/dataextractor/ValuerangebarWidget-DJtrknKH-fa7968c1ee5f4d2361f7.js +0 -1
- data/tools/dataextractor/VerticalWidget-CoJiy2TT-d8e0025943059c8b8699.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: 56f447e2da346f8fadaa8c9de2c495f423613ebd93865fe17b357f4e772a206d
|
|
4
|
+
data.tar.gz: 44db5a00788b4db7c2f7670b6fc187eb9eb406a8879e94be10df1b88ef4ed77c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 682f323b1b629577c24f8cd0fefbd01d50a15a3a404f87be009847f67d152deeb38540b993f42213376bc70f95347f6cabb46835296741b7aef056ae5a16f80a
|
|
7
|
+
data.tar.gz: b4e4950adfe061218f40ff8aed120a6987e5a0a61547a41a48c0cff5e10ecd99fd90bc4a674bd6d6be1ef7e45b8fbf75f6c2ed5989a8dc38dada5026ff82b614
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
System.register(["./main-
|
|
2
|
-
`,o=0;if(Array.isArray(e)){for(const m of e)this.formatter&&this.formatter?.toLowerCase()!=="nil"?a+=sprintf(this.formatter,m):a+=m,o+=1,o%this.itemsPerRow===0?(o=0,a+=k):a+=V;return a.trim()}else return e}}},
|
|
1
|
+
System.register(["./main-13c824ef27be48800fd9.js","vue","./DetailsDialog-CrP3epOv-5d7ec90aec185b3b7bb4.js","single-spa","./VWidget-D8HzcrTo-46c5080712362c20af55.js","vue-router","pinia","vuetify","./LimitsBar-DoRwFPYW-bb3cc6ba5b3d7d020e4f.js","./LimitsColor-CBcpB-la-3bd861951380f642016e.js","./Widget-lYL8eSaS-184685bb2dd5a2a947c1.js"],(function(D,R){"use strict";var c,r,l,u,i,h,d,s,p,g,f,v,w,y,C,x;return{setters:[t=>{c=t.g},t=>{r=t.resolveComponent,l=t.openBlock,u=t.createElementBlock,i=t.createVNode,h=t.normalizeStyle,d=t.normalizeClass,s=t.withCtx,p=t.Fragment,g=t.renderList,f=t.createBlock,v=t.withModifiers,w=t.createTextVNode,y=t.toDisplayString},t=>{C=t.Z},null,t=>{x=t.T},null,null,null,null,null,null],execute:(function(){const t={components:{DetailsDialog:C},mixins:[x],data:function(){return{width:200,height:100,itemsPerRow:4,formatter:null}},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=Number.parseInt(this.parameters[6]))},methods:{getType:function(){let e="CONVERTED";return this.parameters[7]&&(e=this.parameters[7]),e},formatValue:function(e){let a="",V=" ",k=`
|
|
2
|
+
`,o=0;if(Array.isArray(e)){for(const m of e)this.formatter&&this.formatter?.toLowerCase()!=="nil"?a+=sprintf(this.formatter,m):a+=m,o+=1,o%this.itemsPerRow===0?(o=0,a+=k):a+=V;return a.trim()}else return e}}},S={class:"array-widget-container"};function B(e,a,V,k,o,m){const z=r("v-textarea"),L=r("v-list-item-title"),T=r("v-list-item"),_=r("v-list"),j=r("v-menu"),M=r("details-dialog");return l(),u("div",S,[i(z,{variant:"solo",density:"compact",readonly:"","no-resize":"","auto-grow":"",rows:"2","hide-details":"","model-value":e._value,class:d(e.valueClass),style:h([e.computedStyle,m.aging]),"data-test":"array-widget",onContextmenu:e.showContextMenu},null,8,["model-value","class","style","onContextmenu"]),i(j,{modelValue:e.contextMenuShown,"onUpdate:modelValue":a[0]||(a[0]=n=>e.contextMenuShown=n),target:[e.x,e.y]},{default:s(()=>[i(_,null,{default:s(()=>[(l(!0),u(p,null,g(e.contextMenuOptions,(n,N)=>(l(),f(T,{key:N,onClick:v(n.action,["stop"])},{default:s(()=>[i(L,null,{default:s(()=>[w(y(n.title),1)]),_:2},1024)]),_:2},1032,["onClick"]))),128))]),_:1})]),_:1},8,["modelValue","target"]),i(M,{modelValue:e.viewDetails,"onUpdate:modelValue":a[1]||(a[1]=n=>e.viewDetails=n),"target-name":e.parameters[0],"packet-name":e.parameters[1],"item-name":e.parameters[2]},null,8,["modelValue","target-name","packet-name","item-name"])])}const P=D("default",c(t,[["render",B],["__scopeId","data-v-9da1fd5e"]]))})}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./main-
|
|
1
|
+
System.register(["./main-13c824ef27be48800fd9.js","./GraphWidget-BvyRvV66-d9aa42efd0159537deb9.js","vue","vue-router","pinia","single-spa","vuetify","./Widget-lYL8eSaS-184685bb2dd5a2a947c1.js"],(function(f,y){"use strict";var o,l,h,d,u,p,m;return{setters:[s=>{o=s.g,l=s.N,h=s.o,d=s.p},s=>{u=s.M},s=>{p=s.openBlock,m=s.createElementBlock},null,null,null,null,null],execute:(function(){const s={mixins:[u],data:function(){return{items:[],indexes:{},data:[[]],cable:new d,subscription:null,graph:null,xAxis:null,title:"Array Plot",colorIndex:0,colors:["#00c7cb","#938bdb","#4dacff","lime","darkorange","red","gold","hotpink","tan","cyan","maroon","blue","teal","purple","green","brown","lightblue","white","black"]}},computed:{dataOnly(){return this.data[1]}},watch:{dataOnly:function(){this.graph&&this.graph.setData(this.data)}},created(){for(const[e,t]of this.items.entries())this.data.push([]),this.indexes[this.subscriptionKey(t)]=e+1,t.color=this.colors[this.colorIndex],this.colorIndex++;this.appliedSettings.forEach(e=>{switch(e[0]){case"TITLE":this.title=e[1];break;case"X_AXIS":this.xAxis={start:Number.parseFloat(e[1]),step:Number.parseFloat(e[2])};break}})},mounted(){let e=[];this.items.forEach(n=>{e.push({label:this.itemName(n),stroke:n.color,width:2,value:(r,i)=>typeof i=="string"||Number.isNaN(i)?"NaN":i==null?"--":i.toFixed(3)})});let t={title:this.title,width:this.size.width,height:this.size.height,scales:{x:{time:!1},y:{time:!1,range:(n,r,i)=>[r,i]}},axes:[{stroke:"white",grid:{show:!0,stroke:"rgba(255, 255, 255, .1)",width:2}},{stroke:"white",grid:{show:!0,stroke:"rgba(255, 255, 255, .1)",width:2}}],series:[{label:"X Value"},...e]};this.graph=new h(t,this.data,document.getElementById(`chart${this.id}`)),this.subscribe()},beforeUnmount:function(){this.cable.disconnect()},methods:{subscribe:function(){this.cable.createSubscription("StreamingChannel",window.openc3Scope,{received:e=>this.received(e),connected:()=>{this.clearScreenErrors(),this.addItemsToSubscription(this.items)},disconnected:e=>{e.allowReconnect&&this.emitScreenError("OpenC3 backend connection disconnected",{type:"disconnected",transient:!0})},rejected:()=>{this.emitScreenError("OpenC3 backend connection rejected",{type:"rejected"})}}).then(e=>{this.subscription=e})},received:function(e){for(let t of e){let n=[];for(const[r,i]of Object.entries(t)){if(r==="__time"){const b=this.data[1]?.length||0;this.xAxis?n=Array.from({length:b},(x,c)=>this.xAxis.start+c*this.xAxis.step):n.length===0&&(n=Array.from({length:b},(x,c)=>c)),this.data[0]=n}let a=this.indexes[r];a&&(Array.isArray(i[0])?(this.data[a]=i[1],n=i[0]):this.data[a]=i)}}},addItemsToSubscription:function(e=this.items){this.subscription&&OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity).then(t=>{t&&OpenC3Auth.setTokens(),this.subscription?.perform("add",{scope:window.openc3Scope,token:localStorage.openc3Token,items:e.map(this.subscriptionKey),start_time:null,end_time:null})}).catch(l)},itemName:function(e){return`${e.targetName} ${e.packetName} ${e.itemName}`},subscriptionKey:function(e){let t=`${e.reduced}__TLM__${e.targetName}__${e.packetName}__${e.itemName}__${e.valueType}`;return(e.reduced==="REDUCED_MINUTE"||e.reduced==="REDUCED_HOUR"||e.reduced==="REDUCED_DAY")&&(t+=`__${e.reducedType}`),t}}},g=["id"];function k(e,t,n,r,i,a){return p(),m("div",{id:`chart${e.id}`,class:"pa-1"},null,8,g)}const w=f("default",o(s,[["render",k]]))})}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./Widget-
|
|
1
|
+
System.register(["./Widget-lYL8eSaS-184685bb2dd5a2a947c1.js","./main-13c824ef27be48800fd9.js"],(function(a,n){"use strict";var h,r;return{setters:[e=>{h=e.f},e=>{r=e.O}],execute:(function(){const e=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(){if(!this.screenValues[this.valueId])return{};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 r;const t=this.parseItemName(this.parameters[2]);this.parameters[2]=t.name,this.api.get_limits(this.parameters[0],this.parameters[1],t.name).then(i=>{this.limitsSettings=i}),this.getCurrentLimitsSet(),this.currentSetRefreshInterval=setInterval(this.getCurrentLimitsSet,6e4),this.appliedSettings.forEach(i=>{i[0]==="MIN_VALUE"&&(this.minValue=Number.parseInt(i[1])),i[0]==="MAX_VALUE"&&(this.maxValue=Number.parseInt(i[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==null||!i)return;let l=i[0]-10*this.scale;if(this.minValue&&this.minValue==i[0]&&(l=i[0]),t.raw)return t.raw==="-Infinity"?0:100;if(t<this.min)return 0;if(t>this.max)return 100;{const s=Number.parseInt((t-l)/this.scale);return s>100?100:s<0?0:s}},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})}}})})}}));
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
System.register(["./main-
|
|
2
|
-
`,i=0,l=0;const m=this.bytesPerWord*this.wordsPerRow;for(const c of t.raw)this.addrFormat&&i===0&&(r+=sprintf(this.addrFormat,l),l+=m),r+=sprintf(this.formatter,c),i+=1,i%m===0?(i=0,r+=
|
|
1
|
+
System.register(["./main-13c824ef27be48800fd9.js","vue","./DetailsDialog-CrP3epOv-5d7ec90aec185b3b7bb4.js","single-spa","./VWidget-D8HzcrTo-46c5080712362c20af55.js","vue-router","pinia","vuetify","./LimitsBar-DoRwFPYW-bb3cc6ba5b3d7d020e4f.js","./LimitsColor-CBcpB-la-3bd861951380f642016e.js","./Widget-lYL8eSaS-184685bb2dd5a2a947c1.js"],(function(B,j){"use strict";var u,a,h,d,s,p,g,o,w,f,v,y,x,C,k,V;return{setters:[e=>{u=e.g},e=>{a=e.resolveComponent,h=e.openBlock,d=e.createElementBlock,s=e.createVNode,p=e.normalizeStyle,g=e.normalizeClass,o=e.withCtx,w=e.Fragment,f=e.renderList,v=e.createBlock,y=e.withModifiers,x=e.createTextVNode,C=e.toDisplayString},e=>{k=e.Z},null,e=>{V=e.T},null,null,null,null,null,null],execute:(function(){const e={components:{DetailsDialog:k},mixins:[V],data:function(){return{width:400,height:400,bytesPerWord:4,wordsPerRow:4,addrFormat:null,formatter:"%02X"}},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=Number.parseInt(this.parameters[6])),this.parameters[7]&&(this.wordsPerRow=Number.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 S=" ",D=`
|
|
2
|
+
`,i=0,l=0;const m=this.bytesPerWord*this.wordsPerRow;for(const c of t.raw)this.addrFormat&&i===0&&(r+=sprintf(this.addrFormat,l),l+=m),r+=sprintf(this.formatter,c),i+=1,i%m===0?(i=0,r+=D):i%this.bytesPerWord===0&&(r+=S)}else r=t;return r}}},P={class:"block-widget-container"};function W(t,r,S,D,i,l){const m=a("v-textarea"),c=a("v-list-item-title"),b=a("v-list-item"),F=a("v-list"),M=a("v-menu"),T=a("details-dialog");return h(),d("div",P,[s(m,{variant:"solo",density:"compact",readonly:"","no-resize":"","hide-details":"",rows:l.rows,width:t.width,"model-value":t._value,class:g(t.valueClass),style:p([t.computedStyle,l.aging]),"data-test":"valueText",onContextmenu:t.showContextMenu},null,8,["rows","width","model-value","class","style","onContextmenu"]),s(M,{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),d(w,null,f(t.contextMenuOptions,(n,_)=>(h(),v(b,{key:_,onClick:y(n.action,["stop"])},{default:o(()=>[s(c,null,{default:o(()=>[x(C(n.title),1)]),_:2},1024)]),_:2},1032,["onClick"]))),128))]),_:1})]),_:1},8,["modelValue","target"]),s(T,{modelValue:t.viewDetails,"onUpdate:modelValue":r[1]||(r[1]=n=>t.viewDetails=n),"target-name":t.parameters[0],"packet-name":t.parameters[1],"item-name":t.parameters[2]},null,8,["modelValue","target-name","packet-name","item-name"])])}const z=B("default",u(e,[["render",W],["__scopeId","data-v-fc296592"]]))})}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./main-58ef2ae57480aa824e7d.js","vue","single-spa","./Widget-ClRi417b-ca09328deaed4efe3ede.js","vue-router","pinia","vuetify"],(function(Y,pe){"use strict";var B,T,C,M,n,z,H,r,a,R,h,b,N,W,Z,K,q;return{setters:[o=>{B=o.g,T=o.A,C=o.q,M=o.O},o=>{n=o.resolveComponent,z=o.openBlock,H=o.createBlock,r=o.withCtx,a=o.createVNode,R=o.createElementVNode,h=o.createTextVNode,b=o.toDisplayString,N=o.createCommentVNode,W=o.withModifiers,Z=o.createElementBlock,K=o.normalizeStyle},null,o=>{q=o.f},null,null,null],execute:(function(){const o={props:{uuid:{type:String,default:null},cmdUser:{type:String,default:null},cmdString:{type:String,default:null},persistent:{type:Boolean,default:!1},modelValue:Boolean},emits:["update:modelValue","status"],data(){return{updater:null,username:null,password:null,canApprove:!1,error:!1,errorText:""}},computed:{show:{get(){return this.modelValue},set(t){this.$emit("update:modelValue",t)}},formValid:function(){return!!this.password&&!!this.username},disableButtons:function(){return!this.formValid&&!this.canApprove}},watch:{modelValue:function(t,e){t?(C.get("/openc3-api/criticalcmd/canapprove/"+this.uuid).then(i=>{i.data.status==="ok"&&(this.canApprove=!0)}).catch(console.error),this.updater=setInterval(()=>{this.uuid?C.get("/openc3-api/criticalcmd/status/"+this.uuid).then(i=>{i.data.status!=="WAITING"&&(this.$emit("status",i.data.status,this.uuid),this.show=!1)}).catch(console.error):this.show=!1},1e3)):(clearInterval(this.updater),this.updater=null,this.canApprove=!1,this.username=null,this.password=null)}},beforeUnmount(){clearInterval(this.updater),this.updater=null,this.canApprove=!1,this.username=null,this.password=null},methods:{async approve(){if(this.canApprove)await C.post("/openc3-api/criticalcmd/approve/"+this.uuid,{}).then(t=>{t.status==200&&(this.$emit("status","APPROVED",this.uuid),this.show=!1,this.error=!1)});else{let t=await this.getKeycloakToken();T.post("/openc3-api/criticalcmd/approve/"+this.uuid,{},{headers:{Authorization:t,"Content-Type":"application/json"},params:{scope:window.openc3Scope},timeout:5e3}).then(e=>{this.$emit("status","APPROVED",this.uuid),this.show=!1,this.error=!1}).catch(e=>{this.error=!0,e.response?this.errorText=e.response.data.message:this.errorText=e.message})}},async reject(){if(this.canApprove)await C.post("/openc3-api/criticalcmd/reject/"+this.uuid,{}).then(t=>{t.status==200&&(this.$emit("status","REJECTED",this.uuid),this.show=!1,this.error=!1)});else{let t=await this.getKeycloakToken();(await T.post("/openc3-api/criticalcmd/reject/"+this.uuid,{},{headers:{Authorization:t,"Content-Type":"application/json"},params:{scope:window.openc3Scope},timeout:5e3})).status==200&&(this.$emit("status","REJECTED",this.uuid),this.show=!1,this.error=!1)}},async getKeycloakToken(){return(await T.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 ee(t,e,i,k,s,u){const w=n("v-spacer"),x=n("v-toolbar"),_=n("v-alert"),f=n("v-row"),V=n("v-text-field"),S=n("v-btn"),v=n("v-container"),A=n("v-card-text"),y=n("v-card"),E=n("v-dialog");return z(),H(E,{modelValue:u.show,"onUpdate:modelValue":e[3]||(e[3]=l=>u.show=l),persistent:i.persistent,width:"600"},{default:r(()=>[a(y,null,{default:r(()=>[a(x,{height:"24"},{default:r(()=>[a(w),e[4]||(e[4]=R("span",null," Waiting for Critical Command Approval ",-1)),a(w)]),_:1}),a(A,null,{default:r(()=>[a(v,{fluid:""},{default:r(()=>[a(_,{modelValue:s.error,"onUpdate:modelValue":e[0]||(e[0]=l=>s.error=l),type:"error",closable:""},{default:r(()=>[h(b(s.errorText),1)]),_:1},8,["modelValue"]),a(f,{class:"pt-4",style:{color:"white"}},{default:r(()=>[h("User "+b(i.cmdUser)+" is waiting for approval to execute: ",1)]),_:1}),a(f,{class:"pa-4",style:{color:"white"}},{default:r(()=>[h(b(i.cmdString),1)]),_:1}),a(f,{class:"text-subtitle-2"},{default:r(()=>[h("UUID: "+b(i.uuid),1)]),_:1}),s.canApprove?N("",!0):(z(),H(f,{key:0},{default:r(()=>[a(V,{modelValue:s.username,"onUpdate:modelValue":e[1]||(e[1]=l=>s.username=l),label:"Username","data-test":"username"},null,8,["modelValue"])]),_:1})),s.canApprove?N("",!0):(z(),H(f,{key:1},{default:r(()=>[a(V,{modelValue:s.password,"onUpdate:modelValue":e[2]||(e[2]=l=>s.password=l),type:"password",label:"Password","data-test":"password"},null,8,["modelValue"])]),_:1})),a(f,{class:"pt-2"},{default:r(()=>[a(w),a(S,{type:"submit",class:"mx-2",color:"secondary",variant:"outlined",disabled:u.disableButtons,"data-test":"reject",onClick:W(u.reject,["prevent"])},{default:r(()=>[...e[5]||(e[5]=[h(" Reject ",-1)])]),_:1},8,["disabled","onClick"]),a(S,{type:"submit",class:"mx-2",color:"primary",disabled:u.disableButtons,"data-test":"approve",onClick:W(u.approve,["prevent"])},{default:r(()=>[...e[6]||(e[6]=[h(" Approve ",-1)])]),_:1},8,["disabled","onClick"])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue","persistent"])}const te=B(o,[["render",ee],["__scopeId","data-v-f5e2fd67"]]),ae="/sandbox.html",J=new Set(["constructor","__proto__","prototype"]),se=new Set(["open","close","closeAll"]),G={cmd:"cmd_no_hazardous_check",cmd_raw:"cmd_raw_no_hazardous_check"};function D(t){try{return structuredClone(t),t}catch{return}}function re(t){const{code:e,api:i,screen:k,runScript:s,setNamedWidgetValue:u,snapshot:w={},screenValues:x={},screenTimeZone:_="local",onHazardous:f,onCritical:V,timeout:S=12e4,signal:v}=t;return new Promise((A,y)=>{const E=()=>{O(y,new DOMException("Button script aborted","AbortError"))},l=document.createElement("iframe");l.setAttribute("sandbox","allow-scripts"),l.setAttribute("aria-hidden","true"),l.style.display="none",l.src=ae;let F=!1,j=null;const P=()=>{j&&(clearTimeout(j),j=null)},I=()=>{P(),j=setTimeout(()=>{O(y,new Error("Button script timed out"))},S)},le=()=>{window.removeEventListener("message",Q),v?.removeEventListener("abort",E),P(),l.remove()},O=(d,p)=>{F||(F=!0,le(),d(p))},L=d=>{l.contentWindow?.postMessage(d,"*")},de=async(d,p)=>{try{return await i[d](...p)}catch(g){const m=g?.message||"";if(m.includes("CriticalCmdError"))throw V?.(g),g;if(m.includes("is Hazardous")&&G[d]){P();const U=await f?.(g);return I(),U?await i[G[d]](...p):void 0}throw g}},ce=async d=>{const{id:p,target:g,method:m,name:U,op:X,args:$=[],value:ue}=d;try{let c;switch(g){case"api":if(typeof m!="string"||J.has(m)||typeof i[m]!="function")throw new Error(`Unknown api method: ${m}`);c=await de(m,$);break;case"screen":if(!se.has(m))throw new Error(`Unknown screen method: ${m}`);c=k[m](...$),c instanceof Promise&&(c=await c);break;case"runScript":c=s(...$),c instanceof Promise&&(c=await c);break;case"alert":c=window.alert(...$);break;case"namedWidget":if(X==="setValue"&&typeof U=="string"&&!J.has(U))u(U,ue);else throw new Error(`Unknown namedWidget op: ${X}`);break;default:throw new Error(`Unknown bridge target: ${g}`)}L({type:"result",id:p,ok:!0,value:D(c)})}catch(c){L({type:"result",id:p,ok:!1,error:{name:c?.name,message:c?.message}})}},Q=d=>{if(d.origin!=="null"&&d.origin!==""||d.source!==l.contentWindow)return;const p=d.data;if(!(!p||typeof p!="object"))switch(I(),p.type){case"ready":L({type:"init",code:e,snapshot:D(w)??{},screenValues:D(x)??{},screenTimeZone:_});break;case"call":ce(p).catch(console.error);break;case"done":O(A,void 0);break}};if(v){if(v.aborted){E();return}v.addEventListener("abort",E,{once:!0})}window.addEventListener("message",Q),I(),document.body.appendChild(l)})}const oe={components:{CriticalCmdDialog:te},mixins:[q],data(){return{api:null,running:!1,displaySendHazardous:!1,hazardousResolve:null,criticalCmdUuid:null,criticalCmdString:null,criticalCmdUser:null,displayCriticalCmd:!1,abortController:null}},computed:{buttonText(){return this.parameters[0]}},created(){this.api=new M},beforeUnmount(){this.abortController?.abort()},methods:{async onClick(){if(!this.running){this.running=!0,this.abortController=new AbortController;try{await re({code:this.parameters[1],api:this.api,screen:this.screen,runScript:this.runScript,setNamedWidgetValue:(t,e)=>this.setNamedWidgetValue(t,e),snapshot:this.namedWidgetsSnapshot(),screenValues:this.screenValues,screenTimeZone:this.screenTimeZone,onHazardous:this.onHazardous,onCritical:this.onCritical,signal:this.abortController.signal})}catch(t){t?.name!=="AbortError"&&console.error(t)}finally{this.running=!1,this.abortController=null,this.displaySendHazardous=!1,this.hazardousResolve=null}}},onHazardous(){return new Promise(t=>{this.hazardousResolve=t,this.displaySendHazardous=!0})},onCritical(t){this.criticalCmdUuid=t.object.data.instance_variables["@uuid"],this.criticalCmdString=t.object.data.instance_variables["@cmd_string"],this.criticalCmdUser=t.object.data.instance_variables["@username"],this.displayCriticalCmd=!0},sendHazardousCmd(){this.displaySendHazardous=!1;const t=this.hazardousResolve;this.hazardousResolve=null,t?.(!0)},cancelHazardousCmd(){this.displaySendHazardous=!1;const t=this.hazardousResolve;this.hazardousResolve=null,t?.(!1)},runScript(t,e=!0,i={}){let k=[];for(const s in i)k.push({key:s,value:i[s],readonly:!1});C.post(`/script-api/scripts/${t}/run`,{data:{environment:k}}).then(s=>{e&&window.open(`/tools/scriptrunner/${s.data}`,"_blank")}).catch(console.error)}}},ne={class:"mx-1"};function ie(t,e,i,k,s,u){const w=n("v-btn"),x=n("v-card-title"),_=n("v-row"),f=n("v-spacer"),V=n("v-card-text"),S=n("v-card"),v=n("v-dialog"),A=n("critical-cmd-dialog");return z(),Z("div",null,[a(w,{class:"ma-1",color:"primary",style:K(t.computedStyle),loading:s.running,onClick:u.onClick},{default:r(()=>[h(b(u.buttonText),1)]),_:1},8,["style","loading","onClick"]),a(v,{modelValue:s.displaySendHazardous,"onUpdate:modelValue":e[0]||(e[0]=y=>s.displaySendHazardous=y),"max-width":"300"},{default:r(()=>[a(S,null,{default:r(()=>[a(x,null,{default:r(()=>[...e[2]||(e[2]=[h("Hazardous",-1)])]),_:1}),a(V,null,{default:r(()=>[R("div",ne,[a(_,{class:"my-2"},{default:r(()=>[...e[3]||(e[3]=[R("span",null," Warning: Command is Hazardous. Send? ",-1)])]),_:1}),a(_,null,{default:r(()=>[a(f),a(w,{variant:"outlined",onClick:u.cancelHazardousCmd},{default:r(()=>[...e[4]||(e[4]=[h(" Cancel ",-1)])]),_:1},8,["onClick"]),a(w,{class:"bg-primary mx-1",onClick:u.sendHazardousCmd},{default:r(()=>[...e[5]||(e[5]=[h(" Send ",-1)])]),_:1},8,["onClick"])]),_:1})])]),_:1})]),_:1})]),_:1},8,["modelValue"]),a(A,{modelValue:s.displayCriticalCmd,"onUpdate:modelValue":e[1]||(e[1]=y=>s.displayCriticalCmd=y),uuid:s.criticalCmdUuid,"cmd-string":s.criticalCmdString,"cmd-user":s.criticalCmdUser},null,8,["modelValue","uuid","cmd-string","cmd-user"])])}const he=Y("default",B(oe,[["render",ie]]))})}}));
|
|
1
|
+
System.register(["./main-13c824ef27be48800fd9.js","vue","single-spa","./Widget-lYL8eSaS-184685bb2dd5a2a947c1.js","vue-router","pinia","vuetify"],(function(X,pe){"use strict";var B,T,C,M,n,z,H,r,a,j,h,b,N,W,Z,K,q;return{setters:[o=>{B=o.g,T=o.A,C=o.q,M=o.O},o=>{n=o.resolveComponent,z=o.openBlock,H=o.createBlock,r=o.withCtx,a=o.createVNode,j=o.createElementVNode,h=o.createTextVNode,b=o.toDisplayString,N=o.createCommentVNode,W=o.withModifiers,Z=o.createElementBlock,K=o.normalizeStyle},null,o=>{q=o.f},null,null,null],execute:(function(){const o={props:{uuid:{type:String,default:null},cmdUser:{type:String,default:null},cmdString:{type:String,default:null},persistent:{type:Boolean,default:!1},modelValue:Boolean},emits:["update:modelValue","status"],data(){return{updater:null,username:null,password:null,canApprove:!1,error:!1,errorText:""}},computed:{show:{get(){return this.modelValue},set(t){this.$emit("update:modelValue",t)}},formValid:function(){return!!this.password&&!!this.username},disableButtons:function(){return!this.formValid&&!this.canApprove}},watch:{modelValue:function(t,e){t?(C.get("/openc3-api/criticalcmd/canapprove/"+this.uuid).then(i=>{i.data.status==="ok"&&(this.canApprove=!0)}).catch(console.error),this.updater=setInterval(()=>{this.uuid?C.get("/openc3-api/criticalcmd/status/"+this.uuid).then(i=>{i.data.status!=="WAITING"&&(this.$emit("status",i.data.status,this.uuid),this.show=!1)}).catch(console.error):this.show=!1},1e3)):(clearInterval(this.updater),this.updater=null,this.canApprove=!1,this.username=null,this.password=null)}},beforeUnmount(){clearInterval(this.updater),this.updater=null,this.canApprove=!1,this.username=null,this.password=null},methods:{async approve(){if(this.canApprove)await C.post("/openc3-api/criticalcmd/approve/"+this.uuid,{}).then(t=>{t.status==200&&(this.$emit("status","APPROVED",this.uuid),this.show=!1,this.error=!1)});else{let t=await this.getKeycloakToken();T.post("/openc3-api/criticalcmd/approve/"+this.uuid,{},{headers:{Authorization:t,"Content-Type":"application/json"},params:{scope:window.openc3Scope},timeout:5e3}).then(e=>{this.$emit("status","APPROVED",this.uuid),this.show=!1,this.error=!1}).catch(e=>{this.error=!0,e.response?this.errorText=e.response.data.message:this.errorText=e.message})}},async reject(){if(this.canApprove)await C.post("/openc3-api/criticalcmd/reject/"+this.uuid,{}).then(t=>{t.status==200&&(this.$emit("status","REJECTED",this.uuid),this.show=!1,this.error=!1)});else{let t=await this.getKeycloakToken();(await T.post("/openc3-api/criticalcmd/reject/"+this.uuid,{},{headers:{Authorization:t,"Content-Type":"application/json"},params:{scope:window.openc3Scope},timeout:5e3})).status==200&&(this.$emit("status","REJECTED",this.uuid),this.show=!1,this.error=!1)}},async getKeycloakToken(){return(await T.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 ee(t,e,i,k,s,u){const w=n("v-spacer"),x=n("v-toolbar"),_=n("v-alert"),f=n("v-row"),V=n("v-text-field"),S=n("v-btn"),v=n("v-container"),A=n("v-card-text"),y=n("v-card"),E=n("v-dialog");return z(),H(E,{modelValue:u.show,"onUpdate:modelValue":e[3]||(e[3]=l=>u.show=l),persistent:i.persistent,width:"600"},{default:r(()=>[a(y,null,{default:r(()=>[a(x,{height:"24"},{default:r(()=>[a(w),e[4]||(e[4]=j("span",null," Waiting for Critical Command Approval ",-1)),a(w)]),_:1}),a(A,null,{default:r(()=>[a(v,{fluid:""},{default:r(()=>[a(_,{modelValue:s.error,"onUpdate:modelValue":e[0]||(e[0]=l=>s.error=l),type:"error",closable:""},{default:r(()=>[h(b(s.errorText),1)]),_:1},8,["modelValue"]),a(f,{class:"pt-4",style:{color:"white"}},{default:r(()=>[h("User "+b(i.cmdUser)+" is waiting for approval to execute: ",1)]),_:1}),a(f,{class:"pa-4",style:{color:"white"}},{default:r(()=>[h(b(i.cmdString),1)]),_:1}),a(f,{class:"text-subtitle-2"},{default:r(()=>[h("UUID: "+b(i.uuid),1)]),_:1}),s.canApprove?N("",!0):(z(),H(f,{key:0},{default:r(()=>[a(V,{modelValue:s.username,"onUpdate:modelValue":e[1]||(e[1]=l=>s.username=l),label:"Username","data-test":"username"},null,8,["modelValue"])]),_:1})),s.canApprove?N("",!0):(z(),H(f,{key:1},{default:r(()=>[a(V,{modelValue:s.password,"onUpdate:modelValue":e[2]||(e[2]=l=>s.password=l),type:"password",label:"Password","data-test":"password"},null,8,["modelValue"])]),_:1})),a(f,{class:"pt-2"},{default:r(()=>[a(w),a(S,{type:"submit",class:"mx-2",color:"secondary",variant:"outlined",disabled:u.disableButtons,"data-test":"reject",onClick:W(u.reject,["prevent"])},{default:r(()=>[...e[5]||(e[5]=[h(" Reject ",-1)])]),_:1},8,["disabled","onClick"]),a(S,{type:"submit",class:"mx-2",color:"primary",disabled:u.disableButtons,"data-test":"approve",onClick:W(u.approve,["prevent"])},{default:r(()=>[...e[6]||(e[6]=[h(" Approve ",-1)])]),_:1},8,["disabled","onClick"])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue","persistent"])}const te=B(o,[["render",ee],["__scopeId","data-v-f5e2fd67"]]),ae="/sandbox.html",J=new Set(["constructor","__proto__","prototype"]),se=new Set(["open","close","closeAll"]),G={cmd:"cmd_no_hazardous_check",cmd_raw:"cmd_raw_no_hazardous_check"};function D(t){try{return structuredClone(t),t}catch{return}}function re(t){const{code:e,api:i,screen:k,runScript:s,setNamedWidgetValue:u,snapshot:w={},screenValues:x={},screenTimeZone:_="local",onHazardous:f,onCritical:V,timeout:S=12e4,signal:v}=t;return new Promise((A,y)=>{const E=()=>{L(y,new DOMException("Button script aborted","AbortError"))},l=document.createElement("iframe");l.setAttribute("sandbox","allow-scripts"),l.setAttribute("aria-hidden","true"),l.style.display="none",l.src=ae;let Y=!1,R=null;const P=()=>{R&&(clearTimeout(R),R=null)},I=()=>{P(),R=setTimeout(()=>{L(y,new Error("Button script timed out"))},S)},le=()=>{window.removeEventListener("message",F),v?.removeEventListener("abort",E),P(),l.remove()},L=(d,p)=>{Y||(Y=!0,le(),d(p))},O=d=>{l.contentWindow?.postMessage(d,"*")},de=async(d,p)=>{try{return await i[d](...p)}catch(g){const m=g?.message||"";if(m.includes("CriticalCmdError"))throw V?.(g),g;if(m.includes("is Hazardous")&&G[d]){P();const U=await f?.(g);return I(),U?await i[G[d]](...p):void 0}throw g}},ce=async d=>{const{id:p,target:g,method:m,name:U,op:Q,args:$=[],value:ue}=d;try{let c;switch(g){case"api":if(typeof m!="string"||J.has(m)||typeof i[m]!="function")throw new Error(`Unknown api method: ${m}`);c=await de(m,$);break;case"screen":if(!se.has(m))throw new Error(`Unknown screen method: ${m}`);c=k[m](...$),c instanceof Promise&&(c=await c);break;case"runScript":c=s(...$),c instanceof Promise&&(c=await c);break;case"alert":c=window.alert(...$);break;case"namedWidget":if(Q==="setValue"&&typeof U=="string"&&!J.has(U))u(U,ue);else throw new Error(`Unknown namedWidget op: ${Q}`);break;default:throw new Error(`Unknown bridge target: ${g}`)}O({type:"result",id:p,ok:!0,value:D(c)})}catch(c){O({type:"result",id:p,ok:!1,error:{name:c?.name,message:c?.message}})}},F=d=>{if(d.origin!=="null"&&d.origin!==""||d.source!==l.contentWindow)return;const p=d.data;if(!(!p||typeof p!="object"))switch(I(),p.type){case"ready":O({type:"init",code:e,snapshot:D(w)??{},screenValues:D(x)??{},screenTimeZone:_});break;case"call":ce(p).catch(console.error);break;case"done":L(A,void 0);break}};if(v){if(v.aborted){E();return}v.addEventListener("abort",E,{once:!0})}window.addEventListener("message",F),I(),document.body.appendChild(l)})}const oe={components:{CriticalCmdDialog:te},mixins:[q],data(){return{api:null,running:!1,displaySendHazardous:!1,hazardousResolve:null,criticalCmdUuid:null,criticalCmdString:null,criticalCmdUser:null,displayCriticalCmd:!1,abortController:null}},computed:{buttonText(){return this.parameters[0]}},created(){this.api=new M},beforeUnmount(){this.abortController?.abort()},methods:{async onClick(){if(!this.running){this.running=!0,this.abortController=new AbortController;try{await re({code:this.parameters[1],api:this.api,screen:this.screen,runScript:this.runScript,setNamedWidgetValue:(t,e)=>this.setNamedWidgetValue(t,e),snapshot:this.namedWidgetsSnapshot(),screenValues:this.screenValues,screenTimeZone:this.screenTimeZone,onHazardous:this.onHazardous,onCritical:this.onCritical,signal:this.abortController.signal})}catch(t){t?.name!=="AbortError"&&console.error(t)}finally{this.running=!1,this.abortController=null,this.displaySendHazardous=!1,this.hazardousResolve=null}}},onHazardous(){return new Promise(t=>{this.hazardousResolve=t,this.displaySendHazardous=!0})},onCritical(t){this.criticalCmdUuid=t.object.data.instance_variables["@uuid"],this.criticalCmdString=t.object.data.instance_variables["@cmd_string"],this.criticalCmdUser=t.object.data.instance_variables["@username"],this.displayCriticalCmd=!0},sendHazardousCmd(){this.displaySendHazardous=!1;const t=this.hazardousResolve;this.hazardousResolve=null,t?.(!0)},cancelHazardousCmd(){this.displaySendHazardous=!1;const t=this.hazardousResolve;this.hazardousResolve=null,t?.(!1)},runScript(t,e=!0,i={}){let k=[];for(const s in i)k.push({key:s,value:i[s],readonly:!1});C.post(`/script-api/scripts/${t}/run`,{data:{environment:k}}).then(s=>{e&&window.open(`/tools/scriptrunner/${s.data}`,"_blank")}).catch(console.error)}}},ne={class:"mx-1"};function ie(t,e,i,k,s,u){const w=n("v-btn"),x=n("v-card-title"),_=n("v-row"),f=n("v-spacer"),V=n("v-card-text"),S=n("v-card"),v=n("v-dialog"),A=n("critical-cmd-dialog");return z(),Z("div",null,[a(w,{class:"ma-1",color:"primary",style:K(t.computedStyle),loading:s.running,onClick:u.onClick},{default:r(()=>[h(b(u.buttonText),1)]),_:1},8,["style","loading","onClick"]),a(v,{modelValue:s.displaySendHazardous,"onUpdate:modelValue":e[0]||(e[0]=y=>s.displaySendHazardous=y),"max-width":"300"},{default:r(()=>[a(S,null,{default:r(()=>[a(x,null,{default:r(()=>[...e[2]||(e[2]=[h("Hazardous",-1)])]),_:1}),a(V,null,{default:r(()=>[j("div",ne,[a(_,{class:"my-2"},{default:r(()=>[...e[3]||(e[3]=[j("span",null," Warning: Command is Hazardous. Send? ",-1)])]),_:1}),a(_,null,{default:r(()=>[a(f),a(w,{variant:"outlined",onClick:u.cancelHazardousCmd},{default:r(()=>[...e[4]||(e[4]=[h(" Cancel ",-1)])]),_:1},8,["onClick"]),a(w,{class:"bg-primary mx-1",onClick:u.sendHazardousCmd},{default:r(()=>[...e[5]||(e[5]=[h(" Send ",-1)])]),_:1},8,["onClick"])]),_:1})])]),_:1})]),_:1})]),_:1},8,["modelValue"]),a(A,{modelValue:s.displayCriticalCmd,"onUpdate:modelValue":e[1]||(e[1]=y=>s.displayCriticalCmd=y),uuid:s.criticalCmdUuid,"cmd-string":s.criticalCmdString,"cmd-user":s.criticalCmdUser},null,8,["modelValue","uuid","cmd-string","cmd-user"])])}const he=X("default",B(oe,[["render",ie]]))})}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
System.register(["./Layout-740AmQLZ-f6e9a63a6c62fe9db2ae.js","vue","./main-13c824ef27be48800fd9.js","./Widget-lYL8eSaS-184685bb2dd5a2a947c1.js","vue-router","pinia","single-spa","vuetify"],(function(d,f){"use strict";var i,r,s,a,l,c,m,o,u,g;return{setters:[e=>{i=e.r},e=>{r=e.openBlock,s=e.createElementBlock,a=e.normalizeStyle,l=e.Fragment,c=e.renderList,m=e.createBlock,o=e.resolveDynamicComponent,u=e.mergeProps},e=>{g=e.g},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 v(n,w,B,L,S,p){return r(),s("svg",{id:"canvas",width:p.width,height:p.height,style:a(n.computedStyle)},[(r(!0),s(l,null,c(n.widgets,(t,y)=>(r(),m(o(t.type),u({ref_for:!0},n.listeners,{key:y,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))],12,h)}const k=d("default",g(e,[["render",v],["__scopeId","data-v-aeda4a44"]]))})}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
System.register(["./Widget-lYL8eSaS-184685bb2dd5a2a947c1.js","vue","./main-13c824ef27be48800fd9.js","vue-router","pinia","single-spa","vuetify"],(function(s,a){"use strict";var t,l,n,c;return{setters:[e=>{t=e.f},e=>{l=e.openBlock,n=e.createElementBlock},e=>{c=e.g},null,null,null,null],execute:(function(){const e={mixins:[t]},i=["cx","cy","r","fill"];function u(r,f,m,p,d,g){return l(),n("circle",{cx:r.parameters[0],cy:r.parameters[1],r:r.parameters[3],fill:r.parameters[2]},null,8,i)}const o=s("default",c(e,[["render",u]]))})}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./Widget-
|
|
1
|
+
System.register(["./Widget-lYL8eSaS-184685bb2dd5a2a947c1.js","./ImageLoader-QC6TN_Tu-c7c598257cade2eb7b88.js","vue","./main-13c824ef27be48800fd9.js","vue-router","pinia","single-spa","vuetify"],(function(o,d){"use strict";var i,n,s,a,l,c,h;return{setters:[e=>{i=e.f},e=>{n=e.p},e=>{s=e.openBlock,a=e.createElementBlock,l=e.normalizeStyle,c=e.createCommentVNode},e=>{h=e.g},null,null,null,null],execute:(function(){const e={mixins:[i,n],emits:["open"],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 p(t,m,y,S,k,r){return t.imageUrl?(s(),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]=(...g)=>r.clickHandler&&r.clickHandler(...g))},null,12,u)):c("",!0)}const f=o("default",h(e,[["render",p]]))})}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./Widget-
|
|
1
|
+
System.register(["./Widget-lYL8eSaS-184685bb2dd5a2a947c1.js","./ImageLoader-QC6TN_Tu-c7c598257cade2eb7b88.js","vue","./main-13c824ef27be48800fd9.js","vue-router","pinia","single-spa","vuetify"],(function(I,x){"use strict";var m,d,l,n,o,g,h,u,c,p,f;return{setters:[t=>{m=t.f},t=>{d=t.p},t=>{l=t.openBlock,n=t.createElementBlock,o=t.Fragment,g=t.renderList,h=t.withDirectives,u=t.normalizeStyle,c=t.vShow,p=t.createCommentVNode},t=>{f=t.g},null,null,null,null],execute:(function(){const t={mixins:[m,d],emits:["addItem","deleteItem","open"],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}).catch(console.error),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)}}},v=["href","x","y","width","height"],w=["href","x","y","width","height"];function k(r,e,i,y,$,s){return l(),n("g",null,[(l(!0),n(o,null,g(r.images,a=>h((l(),n("image",{key:a.value,href:a.url,x:a.x,y:a.y,width:a.width,height:a.height,style:u(s.pointerStyle),onClick:e[0]||(e[0]=(...S)=>s.clickHandler&&s.clickHandler(...S))},null,12,v)),[[c,a.value==s.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(s.pointerStyle),onClick:e[1]||(e[1]=(...a)=>s.clickHandler&&s.clickHandler(...a))},null,12,w)),[[c,s.showDefault]]):p("",!0)])}const N=I("default",f(t,[["render",k]]))})}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./Widget-
|
|
1
|
+
System.register(["./Widget-lYL8eSaS-184685bb2dd5a2a947c1.js","vue","./main-13c824ef27be48800fd9.js","vue-router","pinia","single-spa","vuetify"],(function(u,f){"use strict";var r,l,n,i,s,a;return{setters:[e=>{r=e.f},e=>{l=e.openBlock,n=e.createElementBlock,i=e.normalizeStyle,s=e.toDisplayString},e=>{a=e.g},null,null,null,null],execute:(function(){const e={mixins:[r],computed:{fontSize(){return this.parameters[3]?this.parameters[3]+"px":"12px"},fillColor(){return this.parameters[4]?this.parameters[4]:"black"}}},p=["x","y","font-size","fill"];function c(t,y,S,x,g,o){return l(),n("text",{x:t.parameters[0],y:t.parameters[1],"font-size":o.fontSize,fill:o.fillColor,style:i(t.computedStyle)},s(t.parameters[2]),13,p)}const m=u("default",a(e,[["render",c]]))})}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./Widget-
|
|
1
|
+
System.register(["./Widget-lYL8eSaS-184685bb2dd5a2a947c1.js","vue","./main-13c824ef27be48800fd9.js","vue-router","pinia","single-spa","vuetify"],(function(m,d){"use strict";var s,a,l,i,n,u;return{setters:[e=>{s=e.f},e=>{a=e.openBlock,l=e.createElementBlock,i=e.normalizeStyle,n=e.toDisplayString},e=>{u=e.g},null,null,null,null],execute:(function(){const e={mixins:[s],emits:["addItem","deleteItem"],data(){return{valueId:null}},computed:{_value(){return this.screenValues[this.valueId]?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 p(t,h,f,v,I,r){return a(),l("text",{x:t.parameters[3],y:t.parameters[4],"font-size":r.fontSize,fill:r.fillColor,style:i(t.computedStyle)},n(r._value),13,o)}const c=m("default",u(e,[["render",p]]))})}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
System.register(["./Widget-lYL8eSaS-184685bb2dd5a2a947c1.js","vue","./main-13c824ef27be48800fd9.js","vue-router","pinia","single-spa","vuetify"],(function(c,p){"use strict";var l,a,n,s,i;return{setters:[e=>{l=e.f},e=>{a=e.openBlock,n=e.createElementBlock,s=e.normalizeStyle},e=>{i=e.g},null,null,null,null],execute:(function(){const e={mixins:[l],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 m(t,r,f,k,S,o){return a(),n("line",{x1:t.parameters[0],y1:t.parameters[1],x2:t.parameters[2],y2:t.parameters[3],style:s(o.calcStyle)},null,12,u)}const y=c("default",i(e,[["render",m]]))})}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./Widget-
|
|
1
|
+
System.register(["./Widget-lYL8eSaS-184685bb2dd5a2a947c1.js","vue","./main-13c824ef27be48800fd9.js","vue-router","pinia","single-spa","vuetify"],(function(u,h){"use strict";var s,r,l,i,n;return{setters:[t=>{s=t.f},t=>{r=t.openBlock,l=t.createElementBlock,i=t.normalizeStyle},t=>{n=t.g},null,null,null,null],execute:(function(){const t={mixins:[s],emits:["addItem","deleteItem"],data(){return{valueId:0,valueMap:{}}},computed:{calcStyle(){let e="black";this.screenValues[this.valueId]&&(e=this.valueMap[this.screenValues[this.valueId][0]]);let a=1;return this.parameters[7]&&(a=this.parameters[7]),"stroke:"+e+";stroke-width:"+a}},created(){this.appliedSettings.forEach(a=>{a[0]==="VALUE_EQ"&&(this.valueMap[a[1]]=a[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,a,o,v,y,d){return r(),l("line",{x1:e.parameters[3],y1:e.parameters[4],x2:e.parameters[5],y2:e.parameters[6],style:i(d.calcStyle)},null,12,m)}const p=u("default",n(t,[["render",c]]))})}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./Widget-
|
|
1
|
+
System.register(["./Widget-lYL8eSaS-184685bb2dd5a2a947c1.js","vue","./main-13c824ef27be48800fd9.js","vue-router","pinia","single-spa","vuetify"],(function(i,v){"use strict";var t,a,n,s,r,o;return{setters:[e=>{t=e.f},e=>{a=e.resolveComponent,n=e.openBlock,s=e.createBlock,r=e.normalizeStyle},e=>{o=e.g},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 c(d,u,f,k,l,y){const m=a("v-checkbox");return n(),s(m,{modelValue:l.value,"onUpdate:modelValue":u[0]||(u[0]=p=>l.value=p),"hide-details":"",density:"compact",label:l.label,style:r(d.computedStyle)},null,8,["modelValue","label","style"])}const h=i("default",o(e,[["render",c]]))})}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
System.register(["./Widget-lYL8eSaS-184685bb2dd5a2a947c1.js","vue","./main-13c824ef27be48800fd9.js","vue-router","pinia","single-spa","vuetify"],(function(o,p){"use strict";var l,n,s,a,i,r;return{setters:[e=>{l=e.f},e=>{n=e.resolveComponent,s=e.openBlock,a=e.createBlock,i=e.normalizeStyle},e=>{r=e.g},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,u,f,h,t,S){const d=n("v-select");return s(),a(d,{modelValue:t.value,"onUpdate:modelValue":u[0]||(u[0]=v=>t.value=v),"hide-details":"",density:"compact",variant:"outlined",items:t.items,style:i(m.computedStyle)},null,8,["modelValue","items","style"])}const y=o("default",r(e,[["render",c]]))})}}));
|