@openc3/vue-common 6.2.0 → 6.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (417) hide show
  1. package/dist/ArrayWidget-BbsN1dzF.js +106 -0
  2. package/dist/ArrayWidget-BbsN1dzF.js.map +1 -0
  3. package/dist/ArrayWidget-DkjHrXsu.cjs +3 -0
  4. package/dist/ArrayWidget-DkjHrXsu.cjs.map +1 -0
  5. package/dist/ArrayplotWidget-CCKEyYIx.js +199 -0
  6. package/dist/ArrayplotWidget-CCKEyYIx.js.map +1 -0
  7. package/dist/ArrayplotWidget-COeaK_Lz.cjs +2 -0
  8. package/dist/ArrayplotWidget-COeaK_Lz.cjs.map +1 -0
  9. package/dist/AstroStatus-CILMWL6F.cjs +2 -0
  10. package/dist/AstroStatus-CILMWL6F.cjs.map +1 -0
  11. package/dist/AstroStatus-CY9VkeTN.js +40 -0
  12. package/dist/AstroStatus-CY9VkeTN.js.map +1 -0
  13. package/dist/BarColumn-C6p07yWK.js +108 -0
  14. package/dist/BarColumn-C6p07yWK.js.map +1 -0
  15. package/dist/BarColumn-CJLW1nXy.cjs +2 -0
  16. package/dist/BarColumn-CJLW1nXy.cjs.map +1 -0
  17. package/dist/BlockWidget-BFVYgbd_.cjs +3 -0
  18. package/dist/BlockWidget-BFVYgbd_.cjs.map +1 -0
  19. package/dist/BlockWidget-DlCHbqZX.js +112 -0
  20. package/dist/BlockWidget-DlCHbqZX.js.map +1 -0
  21. package/dist/ButtonWidget-CtfJzCBR.js +166 -0
  22. package/dist/ButtonWidget-CtfJzCBR.js.map +1 -0
  23. package/dist/ButtonWidget-HN8UHsme.cjs +3 -0
  24. package/dist/ButtonWidget-HN8UHsme.cjs.map +1 -0
  25. package/dist/CanvasWidget-CHmkxxMO.cjs +2 -0
  26. package/dist/CanvasWidget-CHmkxxMO.cjs.map +1 -0
  27. package/dist/CanvasWidget-CqRlXc4r.js +39 -0
  28. package/dist/CanvasWidget-CqRlXc4r.js.map +1 -0
  29. package/dist/CanvasdotWidget--Xr_KsZs.js +19 -0
  30. package/dist/CanvasdotWidget--Xr_KsZs.js.map +1 -0
  31. package/dist/CanvasdotWidget-B4bUcKRc.cjs +2 -0
  32. package/dist/CanvasdotWidget-B4bUcKRc.cjs.map +1 -0
  33. package/dist/CanvasimageWidget-B5YozXoI.cjs +2 -0
  34. package/dist/CanvasimageWidget-B5YozXoI.cjs.map +1 -0
  35. package/dist/CanvasimageWidget-BPlj5QYK.js +58 -0
  36. package/dist/CanvasimageWidget-BPlj5QYK.js.map +1 -0
  37. package/dist/CanvasimagevalueWidget-DVFGLt8f.js +107 -0
  38. package/dist/CanvasimagevalueWidget-DVFGLt8f.js.map +1 -0
  39. package/dist/CanvasimagevalueWidget-Dx1HnbEw.cjs +2 -0
  40. package/dist/CanvasimagevalueWidget-Dx1HnbEw.cjs.map +1 -0
  41. package/dist/CanvaslabelWidget-CYNqmyP0.js +23 -0
  42. package/dist/CanvaslabelWidget-CYNqmyP0.js.map +1 -0
  43. package/dist/CanvaslabelWidget-DgadQD-D.cjs +2 -0
  44. package/dist/CanvaslabelWidget-DgadQD-D.cjs.map +1 -0
  45. package/dist/CanvaslabelvalueWidget-B7yIDmsn.js +42 -0
  46. package/dist/CanvaslabelvalueWidget-B7yIDmsn.js.map +1 -0
  47. package/dist/CanvaslabelvalueWidget-C3k5gx5c.cjs +2 -0
  48. package/dist/CanvaslabelvalueWidget-C3k5gx5c.cjs.map +1 -0
  49. package/dist/CanvaslineWidget-BICdxX0Q.js +28 -0
  50. package/dist/CanvaslineWidget-BICdxX0Q.js.map +1 -0
  51. package/dist/CanvaslineWidget-CYHkes0a.cjs +2 -0
  52. package/dist/CanvaslineWidget-CYHkes0a.cjs.map +1 -0
  53. package/dist/CanvaslinevalueWidget-5DzhZ22p.cjs +2 -0
  54. package/dist/CanvaslinevalueWidget-5DzhZ22p.cjs.map +1 -0
  55. package/dist/CanvaslinevalueWidget-Cq-Ddh0P.js +44 -0
  56. package/dist/CanvaslinevalueWidget-Cq-Ddh0P.js.map +1 -0
  57. package/dist/CheckbuttonWidget-B74AWeaW.js +37 -0
  58. package/dist/CheckbuttonWidget-B74AWeaW.js.map +1 -0
  59. package/dist/CheckbuttonWidget-BCzsXnIF.cjs +2 -0
  60. package/dist/CheckbuttonWidget-BCzsXnIF.cjs.map +1 -0
  61. package/dist/ComboboxWidget-CtyKbEWb.js +37 -0
  62. package/dist/ComboboxWidget-CtyKbEWb.js.map +1 -0
  63. package/dist/ComboboxWidget-DQgDyDAC.cjs +2 -0
  64. package/dist/ComboboxWidget-DQgDyDAC.cjs.map +1 -0
  65. package/dist/CriticalCmdDialog-BnxZlt7W.cjs +2 -0
  66. package/dist/CriticalCmdDialog-BnxZlt7W.cjs.map +1 -0
  67. package/dist/CriticalCmdDialog-DPIZOBeP.js +270 -0
  68. package/dist/CriticalCmdDialog-DPIZOBeP.js.map +1 -0
  69. package/dist/CustomIcon-Bop2mEnu.cjs +2 -0
  70. package/dist/CustomIcon-Bop2mEnu.cjs.map +1 -0
  71. package/dist/CustomIcon-h5X7369N.js +50 -0
  72. package/dist/CustomIcon-h5X7369N.js.map +1 -0
  73. package/dist/DateWidget-BB4cIuUS.cjs +2 -0
  74. package/dist/DateWidget-BB4cIuUS.cjs.map +1 -0
  75. package/dist/DateWidget-BEVSczU8.js +40 -0
  76. package/dist/DateWidget-BEVSczU8.js.map +1 -0
  77. package/dist/DetailsDialog-DmEC5BTs.js +767 -0
  78. package/dist/DetailsDialog-DmEC5BTs.js.map +1 -0
  79. package/dist/DetailsDialog-mvxMFmgV.cjs +2 -0
  80. package/dist/DetailsDialog-mvxMFmgV.cjs.map +1 -0
  81. package/dist/DynamicWidget-BWEVCUfd.cjs +2 -0
  82. package/dist/DynamicWidget-BWEVCUfd.cjs.map +1 -0
  83. package/dist/DynamicWidget-CfMtj7H8.js +35 -0
  84. package/dist/DynamicWidget-CfMtj7H8.js.map +1 -0
  85. package/dist/EventListDialog-BHZLl28V.cjs +2 -0
  86. package/dist/EventListDialog-BHZLl28V.cjs.map +1 -0
  87. package/dist/EventListDialog-CSMSmCIT.js +1586 -0
  88. package/dist/EventListDialog-CSMSmCIT.js.map +1 -0
  89. package/dist/FormatvalueWidget-CdjCEAI7.cjs +2 -0
  90. package/dist/FormatvalueWidget-CdjCEAI7.cjs.map +1 -0
  91. package/dist/FormatvalueWidget-DN12xymS.js +44 -0
  92. package/dist/FormatvalueWidget-DN12xymS.js.map +1 -0
  93. package/dist/Graph-Bgo0cjl3.js +1988 -0
  94. package/dist/Graph-Bgo0cjl3.js.map +1 -0
  95. package/dist/Graph-Ujd2yaeI.cjs +2 -0
  96. package/dist/Graph-Ujd2yaeI.cjs.map +1 -0
  97. package/dist/GraphWidget-DurWDmpg.js +130 -0
  98. package/dist/GraphWidget-DurWDmpg.js.map +1 -0
  99. package/dist/GraphWidget-sid4Ws9H.cjs +2 -0
  100. package/dist/GraphWidget-sid4Ws9H.cjs.map +1 -0
  101. package/dist/HorizontalWidget-Cd_wl1b3.js +41 -0
  102. package/dist/HorizontalWidget-Cd_wl1b3.js.map +1 -0
  103. package/dist/HorizontalWidget-_6IR0cR8.cjs +2 -0
  104. package/dist/HorizontalWidget-_6IR0cR8.cjs.map +1 -0
  105. package/dist/HorizontalboxWidget-BcMTFBU-.js +47 -0
  106. package/dist/HorizontalboxWidget-BcMTFBU-.js.map +1 -0
  107. package/dist/HorizontalboxWidget-zmnurtv1.cjs +2 -0
  108. package/dist/HorizontalboxWidget-zmnurtv1.cjs.map +1 -0
  109. package/dist/HorizontallineWidget-CM-6WqCj.cjs +2 -0
  110. package/dist/HorizontallineWidget-CM-6WqCj.cjs.map +1 -0
  111. package/dist/HorizontallineWidget-CXFqHclf.js +16 -0
  112. package/dist/HorizontallineWidget-CXFqHclf.js.map +1 -0
  113. package/dist/IframeWidget-BPerHCCa.js +90 -0
  114. package/dist/IframeWidget-BPerHCCa.js.map +1 -0
  115. package/dist/IframeWidget-EhncMob0.cjs +2 -0
  116. package/dist/IframeWidget-EhncMob0.cjs.map +1 -0
  117. package/dist/ImageLoader-4N-7Gj61.js +36 -0
  118. package/dist/ImageLoader-4N-7Gj61.js.map +1 -0
  119. package/dist/ImageLoader-cRmBcpU9.cjs +2 -0
  120. package/dist/ImageLoader-cRmBcpU9.cjs.map +1 -0
  121. package/dist/ImageviewerWidget-Bv3CreXd.cjs +2 -0
  122. package/dist/ImageviewerWidget-Bv3CreXd.cjs.map +1 -0
  123. package/dist/ImageviewerWidget-Cw_H_HmZ.js +37 -0
  124. package/dist/ImageviewerWidget-Cw_H_HmZ.js.map +1 -0
  125. package/dist/InterfacesTab-B4glsR9Z.js +93 -0
  126. package/dist/InterfacesTab-B4glsR9Z.js.map +1 -0
  127. package/dist/InterfacesTab-Co1Kd6Fa.cjs +2 -0
  128. package/dist/InterfacesTab-Co1Kd6Fa.cjs.map +1 -0
  129. package/dist/LabelWidget-mMcf5S8K.cjs +2 -0
  130. package/dist/LabelWidget-mMcf5S8K.cjs.map +1 -0
  131. package/dist/LabelWidget-xrmcVeq8.js +48 -0
  132. package/dist/LabelWidget-xrmcVeq8.js.map +1 -0
  133. package/dist/LabelledWidget-BoYCuDaH.cjs +2 -0
  134. package/dist/LabelledWidget-BoYCuDaH.cjs.map +1 -0
  135. package/dist/LabelledWidget-D48QoyMk.js +42 -0
  136. package/dist/LabelledWidget-D48QoyMk.js.map +1 -0
  137. package/dist/LabelprogressbarWidget-C_950t6g.js +43 -0
  138. package/dist/LabelprogressbarWidget-C_950t6g.js.map +1 -0
  139. package/dist/LabelprogressbarWidget-DiucKsT2.cjs +2 -0
  140. package/dist/LabelprogressbarWidget-DiucKsT2.cjs.map +1 -0
  141. package/dist/LabelsparklineWidget-0KXQyPoU.js +44 -0
  142. package/dist/LabelsparklineWidget-0KXQyPoU.js.map +1 -0
  143. package/dist/LabelsparklineWidget-A3MTEhQc.cjs +2 -0
  144. package/dist/LabelsparklineWidget-A3MTEhQc.cjs.map +1 -0
  145. package/dist/LabelvalueWidget-CQ06wWDK.js +58 -0
  146. package/dist/LabelvalueWidget-CQ06wWDK.js.map +1 -0
  147. package/dist/LabelvalueWidget-DnKoz0-N.cjs +2 -0
  148. package/dist/LabelvalueWidget-DnKoz0-N.cjs.map +1 -0
  149. package/dist/LabelvaluedescWidget-Bo8zT01X.js +59 -0
  150. package/dist/LabelvaluedescWidget-Bo8zT01X.js.map +1 -0
  151. package/dist/LabelvaluedescWidget-I6ljK--Y.cjs +2 -0
  152. package/dist/LabelvaluedescWidget-I6ljK--Y.cjs.map +1 -0
  153. package/dist/LabelvaluelimitsbarWidget-BucTw8Yk.js +57 -0
  154. package/dist/LabelvaluelimitsbarWidget-BucTw8Yk.js.map +1 -0
  155. package/dist/LabelvaluelimitsbarWidget-Cb6i_Ixc.cjs +2 -0
  156. package/dist/LabelvaluelimitsbarWidget-Cb6i_Ixc.cjs.map +1 -0
  157. package/dist/LabelvaluelimitscolumnWidget-ClY5OxUC.cjs +2 -0
  158. package/dist/LabelvaluelimitscolumnWidget-ClY5OxUC.cjs.map +1 -0
  159. package/dist/LabelvaluelimitscolumnWidget-Dflb1hNd.js +47 -0
  160. package/dist/LabelvaluelimitscolumnWidget-Dflb1hNd.js.map +1 -0
  161. package/dist/LabelvaluerangebarWidget-9S5rVZaS.cjs +2 -0
  162. package/dist/LabelvaluerangebarWidget-9S5rVZaS.cjs.map +1 -0
  163. package/dist/LabelvaluerangebarWidget-D8cbfXFM.js +79 -0
  164. package/dist/LabelvaluerangebarWidget-D8cbfXFM.js.map +1 -0
  165. package/dist/Layout-DuCYyOw4.cjs +2 -0
  166. package/dist/Layout-DuCYyOw4.cjs.map +1 -0
  167. package/dist/Layout-Tf--nruw.js +14 -0
  168. package/dist/Layout-Tf--nruw.js.map +1 -0
  169. package/dist/LedWidget-B2BcwiYF.cjs +2 -0
  170. package/dist/LedWidget-B2BcwiYF.cjs.map +1 -0
  171. package/dist/LedWidget-qH_FthkK.js +145 -0
  172. package/dist/LedWidget-qH_FthkK.js.map +1 -0
  173. package/dist/LimitsbarWidget-B9lAB2RD.js +69 -0
  174. package/dist/LimitsbarWidget-B9lAB2RD.js.map +1 -0
  175. package/dist/LimitsbarWidget-CVCLFIhG.cjs +2 -0
  176. package/dist/LimitsbarWidget-CVCLFIhG.cjs.map +1 -0
  177. package/dist/LimitscolorWidget-DORhDxRo.cjs +2 -0
  178. package/dist/LimitscolorWidget-DORhDxRo.cjs.map +1 -0
  179. package/dist/LimitscolorWidget-c6Qa6su7.js +63 -0
  180. package/dist/LimitscolorWidget-c6Qa6su7.js.map +1 -0
  181. package/dist/LimitscolumnWidget-C9Uyg7Fh.cjs +2 -0
  182. package/dist/LimitscolumnWidget-C9Uyg7Fh.cjs.map +1 -0
  183. package/dist/LimitscolumnWidget-CcLs_443.js +66 -0
  184. package/dist/LimitscolumnWidget-CcLs_443.js.map +1 -0
  185. package/dist/LinegraphWidget-BSVYLFo1.js +39 -0
  186. package/dist/LinegraphWidget-BSVYLFo1.js.map +1 -0
  187. package/dist/LinegraphWidget-Bf8DIwEn.cjs +2 -0
  188. package/dist/LinegraphWidget-Bf8DIwEn.cjs.map +1 -0
  189. package/dist/MatrixbycolumnsWidget-DXFpZTre.js +56 -0
  190. package/dist/MatrixbycolumnsWidget-DXFpZTre.js.map +1 -0
  191. package/dist/MatrixbycolumnsWidget-DpdFzNeP.cjs +2 -0
  192. package/dist/MatrixbycolumnsWidget-DpdFzNeP.cjs.map +1 -0
  193. package/dist/MicroservicesTab-B5n-mN8G.cjs +2 -0
  194. package/dist/MicroservicesTab-B5n-mN8G.cjs.map +1 -0
  195. package/dist/MicroservicesTab-mCdS0v39.js +264 -0
  196. package/dist/MicroservicesTab-mCdS0v39.js.map +1 -0
  197. package/dist/Openc3Screen-BYhHaH_I.cjs +5 -0
  198. package/dist/Openc3Screen-BYhHaH_I.cjs.map +1 -0
  199. package/dist/Openc3Screen-Cud0OCFu.js +1789 -0
  200. package/dist/Openc3Screen-Cud0OCFu.js.map +1 -0
  201. package/dist/OutputDialog-DXoL9VPw.cjs +2 -0
  202. package/dist/OutputDialog-DXoL9VPw.cjs.map +1 -0
  203. package/dist/OutputDialog-zVPZiZay.js +242 -0
  204. package/dist/OutputDialog-zVPZiZay.js.map +1 -0
  205. package/dist/PackagesTab-CvT2JyMA.cjs +2 -0
  206. package/dist/PackagesTab-CvT2JyMA.cjs.map +1 -0
  207. package/dist/PackagesTab-SWcXumpK.js +332 -0
  208. package/dist/PackagesTab-SWcXumpK.js.map +1 -0
  209. package/dist/PluginsTab-B64OvayB.js +599 -0
  210. package/dist/PluginsTab-B64OvayB.js.map +1 -0
  211. package/dist/PluginsTab-CfpwWsqv.cjs +6 -0
  212. package/dist/PluginsTab-CfpwWsqv.cjs.map +1 -0
  213. package/dist/ProgressbarWidget-fGWa6ipm.cjs +2 -0
  214. package/dist/ProgressbarWidget-fGWa6ipm.cjs.map +1 -0
  215. package/dist/ProgressbarWidget-iYGw8-Dc.js +46 -0
  216. package/dist/ProgressbarWidget-iYGw8-Dc.js.map +1 -0
  217. package/dist/RadiobuttonWidget-ZEPJbOp_.cjs +2 -0
  218. package/dist/RadiobuttonWidget-ZEPJbOp_.cjs.map +1 -0
  219. package/dist/RadiobuttonWidget-ytmoVZ3u.js +34 -0
  220. package/dist/RadiobuttonWidget-ytmoVZ3u.js.map +1 -0
  221. package/dist/RadiogroupWidget-CusMBhKH.js +48 -0
  222. package/dist/RadiogroupWidget-CusMBhKH.js.map +1 -0
  223. package/dist/RadiogroupWidget-EK4rEGUC.cjs +2 -0
  224. package/dist/RadiogroupWidget-EK4rEGUC.cjs.map +1 -0
  225. package/dist/RangebarWidget-D_zGTtCa.js +67 -0
  226. package/dist/RangebarWidget-D_zGTtCa.js.map +1 -0
  227. package/dist/RangebarWidget-DwIs-L5k.cjs +2 -0
  228. package/dist/RangebarWidget-DwIs-L5k.cjs.map +1 -0
  229. package/dist/RedisTab-67UcKoPf.cjs +2 -0
  230. package/dist/RedisTab-67UcKoPf.cjs.map +1 -0
  231. package/dist/RedisTab-CyPo6ADN.js +135 -0
  232. package/dist/RedisTab-CyPo6ADN.js.map +1 -0
  233. package/dist/RollupWidget-DC3OIP6G.cjs +2 -0
  234. package/dist/RollupWidget-DC3OIP6G.cjs.map +1 -0
  235. package/dist/RollupWidget-Dolsixyt.js +83 -0
  236. package/dist/RollupWidget-Dolsixyt.js.map +1 -0
  237. package/dist/RoutersTab-BBPlFi_z.cjs +2 -0
  238. package/dist/RoutersTab-BBPlFi_z.cjs.map +1 -0
  239. package/dist/RoutersTab-Cs2dFVNA.js +95 -0
  240. package/dist/RoutersTab-Cs2dFVNA.js.map +1 -0
  241. package/dist/ScriptChooser-EV65rbWx.js +199 -0
  242. package/dist/ScriptChooser-EV65rbWx.js.map +1 -0
  243. package/dist/ScriptChooser-vyZwngrz.cjs +2 -0
  244. package/dist/ScriptChooser-vyZwngrz.cjs.map +1 -0
  245. package/dist/ScrollwindowWidget-BWeqSUPc.cjs +2 -0
  246. package/dist/ScrollwindowWidget-BWeqSUPc.cjs.map +1 -0
  247. package/dist/ScrollwindowWidget-DV2nZuNi.js +45 -0
  248. package/dist/ScrollwindowWidget-DV2nZuNi.js.map +1 -0
  249. package/dist/SecretsTab-0IFqUxNJ.cjs +2 -0
  250. package/dist/SecretsTab-0IFqUxNJ.cjs.map +1 -0
  251. package/dist/SecretsTab-DVyyyGlG.js +202 -0
  252. package/dist/SecretsTab-DVyyyGlG.js.map +1 -0
  253. package/dist/SettingsTab-B1LvOLG2.cjs +3 -0
  254. package/dist/SettingsTab-B1LvOLG2.cjs.map +1 -0
  255. package/dist/SettingsTab-g29K6FyC.js +1445 -0
  256. package/dist/SettingsTab-g29K6FyC.js.map +1 -0
  257. package/dist/SignalWidget-RvRwpE8T.cjs +2 -0
  258. package/dist/SignalWidget-RvRwpE8T.cjs.map +1 -0
  259. package/dist/SignalWidget-d9-6h85k.js +66 -0
  260. package/dist/SignalWidget-d9-6h85k.js.map +1 -0
  261. package/dist/SimpleTextDialog-Cpbt7Q-8.cjs +2 -0
  262. package/dist/SimpleTextDialog-Cpbt7Q-8.cjs.map +1 -0
  263. package/dist/SimpleTextDialog-pwN8oRy1.js +107 -0
  264. package/dist/SimpleTextDialog-pwN8oRy1.js.map +1 -0
  265. package/dist/SpacerWidget-7_8bpLCb.cjs +2 -0
  266. package/dist/SpacerWidget-7_8bpLCb.cjs.map +1 -0
  267. package/dist/SpacerWidget-BH0p2OLi.js +19 -0
  268. package/dist/SpacerWidget-BH0p2OLi.js.map +1 -0
  269. package/dist/SparklineWidget-60jVlbHA.cjs +2 -0
  270. package/dist/SparklineWidget-60jVlbHA.cjs.map +1 -0
  271. package/dist/SparklineWidget-coxi9r2g.js +48 -0
  272. package/dist/SparklineWidget-coxi9r2g.js.map +1 -0
  273. package/dist/TabbookWidget-B1XKplGH.js +66 -0
  274. package/dist/TabbookWidget-B1XKplGH.js.map +1 -0
  275. package/dist/TabbookWidget-D1CVT9IK.cjs +2 -0
  276. package/dist/TabbookWidget-D1CVT9IK.cjs.map +1 -0
  277. package/dist/TargetsTab-BkBkXn9A.js +129 -0
  278. package/dist/TargetsTab-BkBkXn9A.js.map +1 -0
  279. package/dist/TargetsTab-C-m26Eqq.cjs +2 -0
  280. package/dist/TargetsTab-C-m26Eqq.cjs.map +1 -0
  281. package/dist/TextBoxDialog-DOJ5d2RM.js +110 -0
  282. package/dist/TextBoxDialog-DOJ5d2RM.js.map +1 -0
  283. package/dist/TextBoxDialog-DfMXg_5C.cjs +2 -0
  284. package/dist/TextBoxDialog-DfMXg_5C.cjs.map +1 -0
  285. package/dist/TextboxWidget-BDG4NxRw.cjs +2 -0
  286. package/dist/TextboxWidget-BDG4NxRw.cjs.map +1 -0
  287. package/dist/TextboxWidget-C-_M2M4l.js +93 -0
  288. package/dist/TextboxWidget-C-_M2M4l.js.map +1 -0
  289. package/dist/TextfieldWidget-BGJv9Lox.cjs +2 -0
  290. package/dist/TextfieldWidget-BGJv9Lox.cjs.map +1 -0
  291. package/dist/TextfieldWidget-C08N4JE8.js +37 -0
  292. package/dist/TextfieldWidget-C08N4JE8.js.map +1 -0
  293. package/dist/TimeWidget-CGCOIouj.cjs +2 -0
  294. package/dist/TimeWidget-CGCOIouj.cjs.map +1 -0
  295. package/dist/TimeWidget-DtwdEcFg.js +40 -0
  296. package/dist/TimeWidget-DtwdEcFg.js.map +1 -0
  297. package/dist/TitleWidget-BljFH9RB.cjs +2 -0
  298. package/dist/TitleWidget-BljFH9RB.cjs.map +1 -0
  299. package/dist/TitleWidget-CT-aLcNb.js +26 -0
  300. package/dist/TitleWidget-CT-aLcNb.js.map +1 -0
  301. package/dist/ToolsTab-NveeVXz2.js +1521 -0
  302. package/dist/ToolsTab-NveeVXz2.js.map +1 -0
  303. package/dist/ToolsTab-RMTst_Sy.cjs +7 -0
  304. package/dist/ToolsTab-RMTst_Sy.cjs.map +1 -0
  305. package/dist/TopBar-CnJNNJlV.js +278 -0
  306. package/dist/TopBar-CnJNNJlV.js.map +1 -0
  307. package/dist/TopBar-Cnmb6DyC.cjs +2 -0
  308. package/dist/TopBar-Cnmb6DyC.cjs.map +1 -0
  309. package/dist/UpgradeToEnterpriseDialog-BvfgoNB1.js +94 -0
  310. package/dist/UpgradeToEnterpriseDialog-BvfgoNB1.js.map +1 -0
  311. package/dist/UpgradeToEnterpriseDialog-sUipOVpB.cjs +2 -0
  312. package/dist/UpgradeToEnterpriseDialog-sUipOVpB.cjs.map +1 -0
  313. package/dist/VWidget-2N2cOosI.cjs +2 -0
  314. package/dist/VWidget-2N2cOosI.cjs.map +1 -0
  315. package/dist/VWidget-DQqb7NVW.js +323 -0
  316. package/dist/VWidget-DQqb7NVW.js.map +1 -0
  317. package/dist/ValueWidget-C6RanBj3.js +116 -0
  318. package/dist/ValueWidget-C6RanBj3.js.map +1 -0
  319. package/dist/ValueWidget-Cu7hgKja.cjs +2 -0
  320. package/dist/ValueWidget-Cu7hgKja.cjs.map +1 -0
  321. package/dist/ValuelimitsbarWidget-B3bvjfxc.js +41 -0
  322. package/dist/ValuelimitsbarWidget-B3bvjfxc.js.map +1 -0
  323. package/dist/ValuelimitsbarWidget-C0HROxrb.cjs +2 -0
  324. package/dist/ValuelimitsbarWidget-C0HROxrb.cjs.map +1 -0
  325. package/dist/ValuelimitscolumnWidget-CWvLfg8u.cjs +2 -0
  326. package/dist/ValuelimitscolumnWidget-CWvLfg8u.cjs.map +1 -0
  327. package/dist/ValuelimitscolumnWidget-QvhI6EcE.js +40 -0
  328. package/dist/ValuelimitscolumnWidget-QvhI6EcE.js.map +1 -0
  329. package/dist/ValuerangebarWidget-Dt3K9BnC.js +65 -0
  330. package/dist/ValuerangebarWidget-Dt3K9BnC.js.map +1 -0
  331. package/dist/ValuerangebarWidget-DyN78cQl.cjs +2 -0
  332. package/dist/ValuerangebarWidget-DyN78cQl.cjs.map +1 -0
  333. package/dist/VerticalWidget-BIIViZgI.js +40 -0
  334. package/dist/VerticalWidget-BIIViZgI.js.map +1 -0
  335. package/dist/VerticalWidget-CFTOu4H8.cjs +2 -0
  336. package/dist/VerticalWidget-CFTOu4H8.cjs.map +1 -0
  337. package/dist/VerticalboxWidget-DY72fLHW.js +46 -0
  338. package/dist/VerticalboxWidget-DY72fLHW.js.map +1 -0
  339. package/dist/VerticalboxWidget-Z8-DWI8t.cjs +2 -0
  340. package/dist/VerticalboxWidget-Z8-DWI8t.cjs.map +1 -0
  341. package/dist/Widget-ChoIB2dd.cjs +2 -0
  342. package/dist/Widget-ChoIB2dd.cjs.map +1 -0
  343. package/dist/Widget-oyqWpFXJ.js +197 -0
  344. package/dist/Widget-oyqWpFXJ.js.map +1 -0
  345. package/dist/WidgetComponents-C1lSLZ0I.js +30205 -0
  346. package/dist/WidgetComponents-C1lSLZ0I.js.map +1 -0
  347. package/dist/WidgetComponents-utpQ592X.cjs +1493 -0
  348. package/dist/WidgetComponents-utpQ592X.cjs.map +1 -0
  349. package/dist/addMonths-BtG7uZLJ.js +19 -0
  350. package/dist/addMonths-BtG7uZLJ.js.map +1 -0
  351. package/dist/addMonths-n1tnl3ab.cjs +2 -0
  352. package/dist/addMonths-n1tnl3ab.cjs.map +1 -0
  353. package/dist/components.cjs +4 -0
  354. package/dist/components.cjs.map +1 -0
  355. package/dist/components.js +1379 -0
  356. package/dist/components.js.map +1 -0
  357. package/dist/fileIcon-BduOQcTc.cjs +2 -0
  358. package/dist/fileIcon-BduOQcTc.cjs.map +1 -0
  359. package/dist/fileIcon-DqRHb1_Z.js +22 -0
  360. package/dist/fileIcon-DqRHb1_Z.js.map +1 -0
  361. package/dist/format-B22VpiOS.cjs +2 -0
  362. package/dist/format-B22VpiOS.cjs.map +1 -0
  363. package/dist/format-CVeawcIv.js +1295 -0
  364. package/dist/format-CVeawcIv.js.map +1 -0
  365. package/dist/getDefaultOptions-Batab9o8.cjs +2 -0
  366. package/dist/getDefaultOptions-Batab9o8.cjs.map +1 -0
  367. package/dist/getDefaultOptions-BhSDk-Jo.js +8 -0
  368. package/dist/getDefaultOptions-BhSDk-Jo.js.map +1 -0
  369. package/dist/icons/status-dark.png +0 -0
  370. package/dist/icons/status-dark.xcf +0 -0
  371. package/dist/icons/status-light.png +0 -0
  372. package/dist/icons.cjs +2 -0
  373. package/dist/icons.cjs.map +1 -0
  374. package/dist/icons.js +164 -0
  375. package/dist/icons.js.map +1 -0
  376. package/dist/index-BX05anye.cjs +7 -0
  377. package/dist/index-BX05anye.cjs.map +1 -0
  378. package/dist/index-DwP8ryNM.js +1694 -0
  379. package/dist/index-DwP8ryNM.js.map +1 -0
  380. package/dist/parse-DnkEsW-3.js +1603 -0
  381. package/dist/parse-DnkEsW-3.js.map +1 -0
  382. package/dist/parse-DwfgQboe.cjs +2 -0
  383. package/dist/parse-DwfgQboe.cjs.map +1 -0
  384. package/dist/plugins.cjs +9 -0
  385. package/dist/plugins.cjs.map +1 -0
  386. package/dist/plugins.js +776 -0
  387. package/dist/plugins.js.map +1 -0
  388. package/dist/timeFilters-8SaYvcH0.cjs +2 -0
  389. package/dist/timeFilters-8SaYvcH0.cjs.map +1 -0
  390. package/dist/timeFilters-CRYpYDdf.js +622 -0
  391. package/dist/timeFilters-CRYpYDdf.js.map +1 -0
  392. package/dist/tools/admin.cjs +13 -0
  393. package/dist/tools/admin.cjs.map +1 -0
  394. package/dist/tools/admin.js +2024 -0
  395. package/dist/tools/admin.js.map +1 -0
  396. package/dist/tools/base.cjs +2 -0
  397. package/dist/tools/base.cjs.map +1 -0
  398. package/dist/tools/base.js +1677 -0
  399. package/dist/tools/base.js.map +1 -0
  400. package/dist/tools/calendar.cjs +2 -0
  401. package/dist/tools/calendar.cjs.map +1 -0
  402. package/dist/tools/calendar.js +12 -0
  403. package/dist/tools/calendar.js.map +1 -0
  404. package/dist/tools/scriptrunner.cjs +86 -0
  405. package/dist/tools/scriptrunner.cjs.map +1 -0
  406. package/dist/tools/scriptrunner.js +4564 -0
  407. package/dist/tools/scriptrunner.js.map +1 -0
  408. package/dist/util.cjs +2 -0
  409. package/dist/util.cjs.map +1 -0
  410. package/dist/util.js +9 -0
  411. package/dist/util.js.map +1 -0
  412. package/dist/vue-common.css +1 -0
  413. package/dist/widgets.cjs +2 -0
  414. package/dist/widgets.cjs.map +1 -0
  415. package/dist/widgets.js +132 -0
  416. package/dist/widgets.js.map +1 -0
  417. package/package.json +20 -15
@@ -0,0 +1,1988 @@
1
+ import { T as X } from "./timeFilters-CRYpYDdf.js";
2
+ import { resolveComponent as u, createBlock as T, openBlock as y, withKeys as j, withCtx as l, createVNode as i, createElementVNode as b, createTextVNode as m, createElementBlock as P, Fragment as F, renderList as J, mergeProps as x, createCommentVNode as S, toDisplayString as E, withModifiers as Q, withDirectives as C, normalizeClass as $, vShow as M, normalizeProps as ee, guardReactiveProps as te } from "vue";
3
+ import { h as ie, c as q, u as I, l as se } from "./WidgetComponents-C1lSLZ0I.js";
4
+ import { _ as W } from "./CustomIcon-h5X7369N.js";
5
+ import { t as Z, i as B } from "./format-CVeawcIv.js";
6
+ import { p as K } from "./parse-DnkEsW-3.js";
7
+ const le = {
8
+ props: {
9
+ modelValue: Boolean,
10
+ // modelValue is the default prop when using v-model
11
+ title: {
12
+ type: String,
13
+ required: !0
14
+ },
15
+ legendPosition: {
16
+ type: String,
17
+ required: !0
18
+ },
19
+ items: {
20
+ type: Array,
21
+ required: !0
22
+ },
23
+ graphMinY: {
24
+ type: Number
25
+ },
26
+ graphMaxY: {
27
+ type: Number
28
+ },
29
+ lines: {
30
+ type: Array,
31
+ required: !0
32
+ },
33
+ colors: {
34
+ type: Array,
35
+ required: !0
36
+ },
37
+ startDateTime: {
38
+ type: Number
39
+ },
40
+ endDateTime: {
41
+ type: Number
42
+ },
43
+ timeZone: {
44
+ type: String,
45
+ required: !0
46
+ }
47
+ },
48
+ mixins: [X],
49
+ data: function() {
50
+ return {
51
+ tab: 0,
52
+ graph: {},
53
+ legendPositions: ["top", "bottom", "left", "right"],
54
+ startDate: null,
55
+ startTime: null,
56
+ endDate: null,
57
+ endTime: null,
58
+ lineHeaders: [
59
+ { title: "Y Value", value: "yValue" },
60
+ { title: "Color", value: "color" },
61
+ { title: "Actions", value: "actions", sortable: !1 }
62
+ ],
63
+ itemHeaders: [
64
+ { title: "Target Name", value: "targetName" },
65
+ { title: "Packet Name", value: "packetName" },
66
+ { title: "Item Name", value: "itemName" },
67
+ { title: "Actions", value: "actions", sortable: !1 }
68
+ ],
69
+ rules: {
70
+ date: (t) => {
71
+ if (!t) return !0;
72
+ try {
73
+ return B(K(t, "yyyy-MM-dd", /* @__PURE__ */ new Date())) || "Invalid date (YYYY-MM-DD)";
74
+ } catch {
75
+ return "Invalid date (YYYY-MM-DD)";
76
+ }
77
+ },
78
+ time: (t) => {
79
+ if (!t) return !0;
80
+ try {
81
+ return B(K(t, "HH:mm:ss", /* @__PURE__ */ new Date())) || "Invalid time (HH:MM:SS)";
82
+ } catch {
83
+ return "Invalid time (HH:MM:SS)";
84
+ }
85
+ }
86
+ }
87
+ };
88
+ },
89
+ computed: {
90
+ show: {
91
+ get() {
92
+ return this.modelValue;
93
+ },
94
+ set(t) {
95
+ this.$emit("update:modelValue", t);
96
+ }
97
+ },
98
+ editItems: function() {
99
+ if (!this.items) return [];
100
+ let t = 0;
101
+ return this.items.map((e) => (t += 1, { ...e, itemId: t }));
102
+ }
103
+ },
104
+ created() {
105
+ if (this.graph = {
106
+ title: this.title,
107
+ legendPosition: this.legendPosition,
108
+ items: this.items,
109
+ graphMinY: this.graphMinY,
110
+ graphMaxY: this.graphMaxY,
111
+ lines: [...this.lines]
112
+ }, this.startDateTime) {
113
+ let t = Z(this.startDateTime / 1e6);
114
+ this.startDate = this.formatDate(t, this.timeZone), this.startTime = this.formatTimeHMS(t, this.timeZone);
115
+ } else {
116
+ let t = /* @__PURE__ */ new Date() - 36e5;
117
+ this.startDate = this.formatDate(t, this.timeZone), this.startTime = this.formatTimeHMS(t, this.timeZone);
118
+ }
119
+ if (this.endDateTime) {
120
+ let t = Z(this.endDateTime / 1e6);
121
+ this.endDate = this.formatDate(t, this.timeZone), this.endTime = this.formatTimeHMS(t, this.timeZone);
122
+ }
123
+ },
124
+ methods: {
125
+ closeOk() {
126
+ this.startDate && this.startTime ? this.graph.startDateTime = this.startDate + " " + this.startTime : this.graph.startDateTime = null, this.endDate && this.endTime ? this.graph.endDateTime = this.endDate + " " + this.endTime : this.graph.endDateTime = null, this.$emit("ok", this.graph);
127
+ },
128
+ addLine() {
129
+ this.graph.lines.push({ yValue: 0, color: "white" });
130
+ },
131
+ removeLine(t) {
132
+ let e = this.graph.lines.indexOf(t);
133
+ this.graph.lines.splice(e, 1);
134
+ }
135
+ }
136
+ }, ae = { class: "edit-box" }, ne = { class: "edit-box" }, oe = { class: "edit-box" }, re = { class: "edit-box" };
137
+ function de(t, e, s, h, a, n) {
138
+ const r = u("v-spacer"), o = u("v-toolbar"), p = u("v-tab"), f = u("v-tabs"), g = u("v-text-field"), D = u("v-card-text"), w = u("v-col"), _ = u("v-select"), v = u("v-row"), Y = u("v-tabs-window-item"), O = u("v-btn"), z = u("v-list-item"), k = u("v-icon"), V = u("v-tooltip"), G = u("v-list"), L = u("v-data-table"), R = u("v-tabs-window"), H = u("v-card-actions"), d = u("v-card"), U = u("v-dialog");
139
+ return y(), T(U, {
140
+ modelValue: n.show,
141
+ "onUpdate:modelValue": e[12] || (e[12] = (c) => n.show = c),
142
+ onKeydown: e[13] || (e[13] = j((c) => t.$emit("cancel"), ["esc"])),
143
+ "max-width": "700"
144
+ }, {
145
+ default: l(() => [
146
+ i(o, { height: "24" }, {
147
+ default: l(() => [
148
+ i(r),
149
+ e[14] || (e[14] = b("span", null, " Edit Graph ", -1)),
150
+ i(r)
151
+ ]),
152
+ _: 1
153
+ }),
154
+ i(d, { class: "pa-3" }, {
155
+ default: l(() => [
156
+ i(f, {
157
+ modelValue: t.tab,
158
+ "onUpdate:modelValue": e[0] || (e[0] = (c) => t.tab = c),
159
+ class: "ml-3"
160
+ }, {
161
+ default: l(() => [
162
+ i(p, { value: "0" }, {
163
+ default: l(() => e[15] || (e[15] = [
164
+ m(" Settings ")
165
+ ])),
166
+ _: 1
167
+ }),
168
+ i(p, { value: "1" }, {
169
+ default: l(() => e[16] || (e[16] = [
170
+ m(" Scale / Lines ")
171
+ ])),
172
+ _: 1
173
+ }),
174
+ i(p, { value: "2" }, {
175
+ default: l(() => e[17] || (e[17] = [
176
+ m(" Items ")
177
+ ])),
178
+ _: 1
179
+ })
180
+ ]),
181
+ _: 1
182
+ }, 8, ["modelValue"]),
183
+ i(R, {
184
+ modelValue: t.tab,
185
+ "onUpdate:modelValue": e[10] || (e[10] = (c) => t.tab = c)
186
+ }, {
187
+ default: l(() => [
188
+ i(Y, {
189
+ value: "0",
190
+ eager: ""
191
+ }, {
192
+ default: l(() => [
193
+ b("div", ae, [
194
+ i(v, null, {
195
+ default: l(() => [
196
+ i(w, null, {
197
+ default: l(() => [
198
+ i(D, { class: "pa-0" }, {
199
+ default: l(() => [
200
+ i(g, {
201
+ class: "pb-2",
202
+ label: "Title",
203
+ modelValue: t.graph.title,
204
+ "onUpdate:modelValue": e[1] || (e[1] = (c) => t.graph.title = c),
205
+ "hide-details": ""
206
+ }, null, 8, ["modelValue"])
207
+ ]),
208
+ _: 1
209
+ })
210
+ ]),
211
+ _: 1
212
+ }),
213
+ i(w, null, {
214
+ default: l(() => [
215
+ i(_, {
216
+ label: "Legend Position",
217
+ "hide-details": "",
218
+ items: t.legendPositions,
219
+ modelValue: t.graph.legendPosition,
220
+ "onUpdate:modelValue": e[2] || (e[2] = (c) => t.graph.legendPosition = c),
221
+ style: { "max-width": "280px" }
222
+ }, null, 8, ["items", "modelValue"])
223
+ ]),
224
+ _: 1
225
+ })
226
+ ]),
227
+ _: 1
228
+ })
229
+ ]),
230
+ b("div", ne, [
231
+ i(D, { class: "pa-0" }, {
232
+ default: l(() => e[18] || (e[18] = [
233
+ m(" Select a start date/time for the graph. Leave blank for start now. ")
234
+ ])),
235
+ _: 1
236
+ }),
237
+ i(v, null, {
238
+ default: l(() => [
239
+ i(w, null, {
240
+ default: l(() => [
241
+ i(g, {
242
+ label: "Start Date",
243
+ name: `date${Date.now()}`,
244
+ rules: [t.rules.date],
245
+ modelValue: t.startDate,
246
+ "onUpdate:modelValue": e[3] || (e[3] = (c) => t.startDate = c),
247
+ type: "date"
248
+ }, null, 8, ["name", "rules", "modelValue"])
249
+ ]),
250
+ _: 1
251
+ }),
252
+ i(w, null, {
253
+ default: l(() => [
254
+ i(g, {
255
+ label: "Start Time",
256
+ name: `time${Date.now()}`,
257
+ rules: [t.rules.time],
258
+ modelValue: t.startTime,
259
+ "onUpdate:modelValue": e[4] || (e[4] = (c) => t.startTime = c),
260
+ type: "time",
261
+ step: "1"
262
+ }, null, 8, ["name", "rules", "modelValue"])
263
+ ]),
264
+ _: 1
265
+ })
266
+ ]),
267
+ _: 1
268
+ }),
269
+ i(D, { class: "pa-0" }, {
270
+ default: l(() => e[19] || (e[19] = [
271
+ m(" Select a end date/time for the graph. Leave blank for continuous real-time graphing. ")
272
+ ])),
273
+ _: 1
274
+ }),
275
+ i(v, null, {
276
+ default: l(() => [
277
+ i(w, null, {
278
+ default: l(() => [
279
+ i(g, {
280
+ label: "End Date",
281
+ name: `date${Date.now()}`,
282
+ rules: [t.rules.date],
283
+ modelValue: t.endDate,
284
+ "onUpdate:modelValue": e[5] || (e[5] = (c) => t.endDate = c),
285
+ type: "date"
286
+ }, null, 8, ["name", "rules", "modelValue"])
287
+ ]),
288
+ _: 1
289
+ }),
290
+ i(w, null, {
291
+ default: l(() => [
292
+ i(g, {
293
+ label: "End Time",
294
+ name: `time${Date.now()}`,
295
+ rules: [t.rules.time],
296
+ modelValue: t.endTime,
297
+ "onUpdate:modelValue": e[6] || (e[6] = (c) => t.endTime = c),
298
+ type: "time",
299
+ step: "1"
300
+ }, null, 8, ["name", "rules", "modelValue"])
301
+ ]),
302
+ _: 1
303
+ })
304
+ ]),
305
+ _: 1
306
+ })
307
+ ])
308
+ ]),
309
+ _: 1
310
+ }),
311
+ i(Y, {
312
+ value: "1",
313
+ eager: ""
314
+ }, {
315
+ default: l(() => [
316
+ b("div", oe, [
317
+ i(D, { class: "pa-0" }, {
318
+ default: l(() => e[20] || (e[20] = [
319
+ m(" Set a min or max Y value to override automatic scaling ")
320
+ ])),
321
+ _: 1
322
+ }),
323
+ i(v, { dense: "" }, {
324
+ default: l(() => [
325
+ i(w, { class: "px-2" }, {
326
+ default: l(() => [
327
+ i(g, {
328
+ "hide-details": "",
329
+ label: "Min Y Axis (Optional)",
330
+ modelValue: t.graph.graphMinY,
331
+ "onUpdate:modelValue": e[7] || (e[7] = (c) => t.graph.graphMinY = c),
332
+ type: "number"
333
+ }, null, 8, ["modelValue"])
334
+ ]),
335
+ _: 1
336
+ }),
337
+ i(w, { class: "px-2" }, {
338
+ default: l(() => [
339
+ i(g, {
340
+ "hide-details": "",
341
+ label: "Max Y Axis (Optional)",
342
+ modelValue: t.graph.graphMaxY,
343
+ "onUpdate:modelValue": e[8] || (e[8] = (c) => t.graph.graphMaxY = c),
344
+ type: "number"
345
+ }, null, 8, ["modelValue"])
346
+ ]),
347
+ _: 1
348
+ })
349
+ ]),
350
+ _: 1
351
+ })
352
+ ]),
353
+ b("div", re, [
354
+ i(G, {
355
+ density: "compact",
356
+ class: "horizontal-lines"
357
+ }, {
358
+ default: l(() => [
359
+ i(z, null, {
360
+ default: l(() => [
361
+ e[22] || (e[22] = b("span", { style: { "padding-top": "5px" } }, " Add horizontal lines to the graph ", -1)),
362
+ i(r),
363
+ i(O, {
364
+ onClick: e[9] || (e[9] = (c) => n.addLine())
365
+ }, {
366
+ default: l(() => e[21] || (e[21] = [
367
+ m(" New Line ")
368
+ ])),
369
+ _: 1
370
+ })
371
+ ]),
372
+ _: 1
373
+ }),
374
+ (y(!0), P(F, null, J(t.graph.lines, (c, A) => (y(), T(z, {
375
+ key: A,
376
+ value: c,
377
+ color: "primary"
378
+ }, {
379
+ default: l(() => [
380
+ i(v, null, {
381
+ default: l(() => [
382
+ i(w, null, {
383
+ default: l(() => [
384
+ i(g, {
385
+ label: "Y Value",
386
+ modelValue: c.yValue,
387
+ "onUpdate:modelValue": (N) => c.yValue = N
388
+ }, null, 8, ["modelValue", "onUpdate:modelValue"])
389
+ ]),
390
+ _: 2
391
+ }, 1024),
392
+ i(w, null, {
393
+ default: l(() => [
394
+ i(_, {
395
+ label: "Color",
396
+ "hide-details": "",
397
+ items: s.colors,
398
+ modelValue: c.color,
399
+ "onUpdate:modelValue": (N) => c.color = N
400
+ }, null, 8, ["items", "modelValue", "onUpdate:modelValue"])
401
+ ]),
402
+ _: 2
403
+ }, 1024),
404
+ i(w, null, {
405
+ default: l(() => [
406
+ i(V, {
407
+ text: "Remove",
408
+ location: "top"
409
+ }, {
410
+ activator: l(({ props: N }) => [
411
+ i(k, x({ ref_for: !0 }, N, {
412
+ style: { padding: "30px" },
413
+ onClick: (xe) => n.removeLine(c)
414
+ }), {
415
+ default: l(() => e[23] || (e[23] = [
416
+ m("mdi-delete")
417
+ ])),
418
+ _: 2
419
+ }, 1040, ["onClick"])
420
+ ]),
421
+ _: 2
422
+ }, 1024)
423
+ ]),
424
+ _: 2
425
+ }, 1024)
426
+ ]),
427
+ _: 2
428
+ }, 1024)
429
+ ]),
430
+ _: 2
431
+ }, 1032, ["value"]))), 128))
432
+ ]),
433
+ _: 1
434
+ })
435
+ ])
436
+ ]),
437
+ _: 1
438
+ }),
439
+ i(Y, {
440
+ value: "2",
441
+ eager: ""
442
+ }, {
443
+ default: l(() => [
444
+ i(L, {
445
+ "item-key": "itemId",
446
+ class: "elevation-1 my-2",
447
+ "data-test": "edit-graph-items",
448
+ headers: t.itemHeaders,
449
+ items: n.editItems,
450
+ "items-per-page": 5,
451
+ "footer-props": {
452
+ "items-per-page-options": [5]
453
+ }
454
+ }, {
455
+ "item.actions": l(({ item: c }) => [
456
+ i(V, {
457
+ text: "Remove",
458
+ location: "top"
459
+ }, {
460
+ activator: l(({ props: A }) => [
461
+ i(k, x(A, {
462
+ onClick: (N) => t.$emit("remove", c)
463
+ }), {
464
+ default: l(() => e[24] || (e[24] = [
465
+ m(" mdi-delete ")
466
+ ])),
467
+ _: 2
468
+ }, 1040, ["onClick"])
469
+ ]),
470
+ _: 2
471
+ }, 1024)
472
+ ]),
473
+ "no-data": l(() => e[25] || (e[25] = [
474
+ b("span", null, " Currently no items on this graph ", -1)
475
+ ])),
476
+ _: 1
477
+ }, 8, ["headers", "items"])
478
+ ]),
479
+ _: 1
480
+ })
481
+ ]),
482
+ _: 1
483
+ }, 8, ["modelValue"]),
484
+ i(H, { class: "px-2" }, {
485
+ default: l(() => [
486
+ i(r),
487
+ i(O, {
488
+ variant: "outlined",
489
+ onClick: e[11] || (e[11] = (c) => t.$emit("cancel"))
490
+ }, {
491
+ default: l(() => e[26] || (e[26] = [
492
+ m(" Cancel ")
493
+ ])),
494
+ _: 1
495
+ }),
496
+ i(O, {
497
+ variant: "flat",
498
+ onClick: n.closeOk
499
+ }, {
500
+ default: l(() => e[27] || (e[27] = [
501
+ m(" Ok ")
502
+ ])),
503
+ _: 1
504
+ }, 8, ["onClick"])
505
+ ]),
506
+ _: 1
507
+ })
508
+ ]),
509
+ _: 1
510
+ })
511
+ ]),
512
+ _: 1
513
+ }, 8, ["modelValue"]);
514
+ }
515
+ const ue = /* @__PURE__ */ W(le, [["render", de]]), he = {
516
+ props: {
517
+ modelValue: Boolean,
518
+ item: {
519
+ type: Object,
520
+ required: !0
521
+ },
522
+ colors: {
523
+ type: Array,
524
+ required: !0
525
+ }
526
+ },
527
+ data: function() {
528
+ return {
529
+ editItem: null,
530
+ limitsName: "NONE",
531
+ // NONE: [] matches the default limits assigned in Graph addItems
532
+ limits: { NONE: [] },
533
+ valueTypes: ["CONVERTED", "RAW"],
534
+ reduction: [
535
+ // Map NONE to DECOM for clarity
536
+ { title: "NONE", value: "DECOM" },
537
+ { title: "REDUCED_MINUTE", value: "REDUCED_MINUTE" },
538
+ { title: "REDUCED_HOUR", value: "REDUCED_HOUR" },
539
+ { title: "REDUCED_DAY", value: "REDUCED_DAY" }
540
+ ],
541
+ reducedTypes: ["MIN", "MAX", "AVG", "STDDEV"]
542
+ };
543
+ },
544
+ computed: {
545
+ show: {
546
+ get() {
547
+ return this.modelValue;
548
+ },
549
+ set(t) {
550
+ this.$emit("update:modelValue", t);
551
+ }
552
+ },
553
+ limitsNames() {
554
+ return Object.keys(this.limits);
555
+ }
556
+ },
557
+ async created() {
558
+ this.editItem = { ...this.item }, new ie().get_item(this.item.targetName, this.item.packetName, this.item.itemName).then((t) => {
559
+ for (const [e, s] of Object.entries(t.limits))
560
+ Object.keys(s).includes("red_low") && (this.limits[e] = Object.values(s));
561
+ this.limitsName = Object.keys(this.limits).find(
562
+ // Little hack to compare arrays you convert them to strings
563
+ (e) => this.limits[e] + "" == this.editItem.limits + ""
564
+ );
565
+ });
566
+ }
567
+ }, me = { key: 0 }, pe = { class: "pa-3" };
568
+ function fe(t, e, s, h, a, n) {
569
+ const r = u("v-card-title"), o = u("v-select"), p = u("v-card-text"), f = u("v-spacer"), g = u("v-btn"), D = u("v-card-actions"), w = u("v-card"), _ = u("v-dialog");
570
+ return y(), T(_, {
571
+ modelValue: n.show,
572
+ "onUpdate:modelValue": e[9] || (e[9] = (v) => n.show = v),
573
+ width: "400",
574
+ onKeydown: e[10] || (e[10] = j((v) => t.success(), ["enter"]))
575
+ }, {
576
+ default: l(() => [
577
+ i(w, null, {
578
+ default: l(() => [
579
+ i(r, { class: "mb-2" }, {
580
+ default: l(() => e[11] || (e[11] = [
581
+ m("Edit Item")
582
+ ])),
583
+ _: 1
584
+ }),
585
+ i(p, null, {
586
+ default: l(() => [
587
+ i(o, {
588
+ variant: "outlined",
589
+ "hide-details": "",
590
+ label: "Value Type",
591
+ items: t.valueTypes,
592
+ modelValue: t.editItem.valueType,
593
+ "onUpdate:modelValue": e[0] || (e[0] = (v) => t.editItem.valueType = v),
594
+ class: "mb-2"
595
+ }, null, 8, ["items", "modelValue"]),
596
+ i(o, {
597
+ variant: "outlined",
598
+ "hide-details": "",
599
+ label: "Reduction",
600
+ items: t.reduction,
601
+ modelValue: t.editItem.reduced,
602
+ "onUpdate:modelValue": e[1] || (e[1] = (v) => t.editItem.reduced = v),
603
+ class: "mb-2"
604
+ }, null, 8, ["items", "modelValue"]),
605
+ i(o, {
606
+ variant: "outlined",
607
+ "hide-details": "",
608
+ label: "Reduced Type",
609
+ items: t.reducedTypes,
610
+ disabled: t.editItem.reduced === "DECOM",
611
+ modelValue: t.editItem.reducedType,
612
+ "onUpdate:modelValue": e[2] || (e[2] = (v) => t.editItem.reducedType = v),
613
+ class: "mb-2"
614
+ }, null, 8, ["items", "disabled", "modelValue"]),
615
+ i(o, {
616
+ variant: "outlined",
617
+ "hide-details": "",
618
+ label: "Color",
619
+ items: s.colors,
620
+ modelValue: t.editItem.color,
621
+ "onUpdate:modelValue": [
622
+ e[3] || (e[3] = (v) => t.editItem.color = v),
623
+ e[4] || (e[4] = (v) => t.$emit("changeColor", v))
624
+ ],
625
+ class: "mb-2"
626
+ }, null, 8, ["items", "modelValue"]),
627
+ n.limitsNames.length > 1 ? (y(), P("div", me, [
628
+ i(o, {
629
+ variant: "outlined",
630
+ "hide-details": "",
631
+ label: "Display Limits",
632
+ items: n.limitsNames,
633
+ modelValue: t.limitsName,
634
+ "onUpdate:modelValue": [
635
+ e[5] || (e[5] = (v) => t.limitsName = v),
636
+ e[6] || (e[6] = (v) => t.$emit("changeLimits", t.limits[t.limitsName]))
637
+ ]
638
+ }, null, 8, ["items", "modelValue"]),
639
+ b("div", pe, E(t.limitsName) + ": " + E(t.limits[t.limitsName]), 1)
640
+ ])) : S("", !0)
641
+ ]),
642
+ _: 1
643
+ }),
644
+ i(D, { class: "px-2" }, {
645
+ default: l(() => [
646
+ i(f),
647
+ i(g, {
648
+ variant: "outlined",
649
+ onClick: e[7] || (e[7] = (v) => t.$emit("cancel"))
650
+ }, {
651
+ default: l(() => e[12] || (e[12] = [
652
+ m(" Cancel ")
653
+ ])),
654
+ _: 1
655
+ }),
656
+ i(g, {
657
+ variant: "flat",
658
+ onClick: e[8] || (e[8] = (v) => t.$emit("close", t.editItem))
659
+ }, {
660
+ default: l(() => e[13] || (e[13] = [
661
+ m(" Ok ")
662
+ ])),
663
+ _: 1
664
+ })
665
+ ]),
666
+ _: 1
667
+ })
668
+ ]),
669
+ _: 1
670
+ })
671
+ ]),
672
+ _: 1
673
+ }, 8, ["modelValue"]);
674
+ }
675
+ const ce = /* @__PURE__ */ W(he, [["render", fe]]), ve = {
676
+ components: {
677
+ GraphEditDialog: ue,
678
+ GraphEditItemDialog: ce
679
+ },
680
+ props: {
681
+ id: {
682
+ type: Number,
683
+ required: !0
684
+ },
685
+ selectedGraphId: {
686
+ type: Number
687
+ // Not required because we pass null
688
+ },
689
+ state: {
690
+ type: String,
691
+ required: !0
692
+ },
693
+ // start time in nanoseconds to start the graph
694
+ // this allows multiple graphs to be synchronized
695
+ startTime: {
696
+ type: Number
697
+ },
698
+ secondsGraphed: {
699
+ type: Number,
700
+ required: !0
701
+ },
702
+ pointsSaved: {
703
+ type: Number,
704
+ required: !0
705
+ },
706
+ pointsGraphed: {
707
+ type: Number,
708
+ required: !0
709
+ },
710
+ refreshIntervalMs: {
711
+ type: Number,
712
+ default: 200
713
+ },
714
+ hideToolbar: {
715
+ type: Boolean,
716
+ default: !1
717
+ },
718
+ hideOverview: {
719
+ type: Boolean,
720
+ default: !1
721
+ },
722
+ sparkline: {
723
+ type: Boolean,
724
+ default: !1
725
+ },
726
+ initialItems: {
727
+ type: Array
728
+ },
729
+ // These allow the parent to force a specific height and/or width
730
+ height: {
731
+ type: Number
732
+ },
733
+ width: {
734
+ type: Number
735
+ },
736
+ timeZone: {
737
+ type: String,
738
+ default: "local"
739
+ }
740
+ },
741
+ mixins: [X],
742
+ data() {
743
+ return {
744
+ lines: [],
745
+ active: !0,
746
+ expand: !0,
747
+ fullWidth: !0,
748
+ fullHeight: !0,
749
+ graph: null,
750
+ editGraph: !1,
751
+ editGraphMenu: !1,
752
+ editGraphMenuX: 0,
753
+ editGraphMenuY: 0,
754
+ editItem: !1,
755
+ itemMenu: !1,
756
+ itemMenuX: 0,
757
+ itemMenuY: 0,
758
+ legendMenu: !1,
759
+ legendMenuX: 0,
760
+ legendMenuY: 0,
761
+ legendPosition: "bottom",
762
+ selectedItem: null,
763
+ hideToolbarData: this.hideToolbar,
764
+ showOverview: !this.hideOverview,
765
+ hideOverviewData: this.hideOverview,
766
+ title: "",
767
+ overview: null,
768
+ data: [[]],
769
+ dataChanged: !1,
770
+ timeout: null,
771
+ graphMinY: null,
772
+ graphMaxY: null,
773
+ graphStartDateTime: null,
774
+ graphEndDateTime: null,
775
+ indexes: {},
776
+ items: this.initialItems || [],
777
+ limitsValues: [],
778
+ drawInterval: null,
779
+ zoomChart: !1,
780
+ zoomOverview: !1,
781
+ cable: new se(),
782
+ subscription: null,
783
+ needToUpdate: !1,
784
+ errorDialog: !1,
785
+ errors: [],
786
+ colorIndex: 0,
787
+ colors: [
788
+ // The first 3 are taken from the Astro css definitions for
789
+ // --color-data-visualization-1 through 3
790
+ "#00c7cb",
791
+ "#938bdb",
792
+ "#4dacff",
793
+ "lime",
794
+ "darkorange",
795
+ "red",
796
+ "gold",
797
+ "hotpink",
798
+ "tan",
799
+ "cyan",
800
+ "maroon",
801
+ "blue",
802
+ "teal",
803
+ "purple",
804
+ "green",
805
+ "brown",
806
+ "lightblue",
807
+ "white",
808
+ "black"
809
+ ]
810
+ };
811
+ },
812
+ computed: {
813
+ calcFullSize: function() {
814
+ return this.fullWidth || this.fullHeight;
815
+ },
816
+ error: function() {
817
+ return this.errorDialog && this.errors.length > 0 ? JSON.stringify(this.errors, null, 4) : null;
818
+ }
819
+ },
820
+ created() {
821
+ this.title = `Graph ${this.id}`;
822
+ for (const [t, e] of this.items.entries())
823
+ this.data.push([]), this.indexes[this.subscriptionKey(e)] = t + 1, e.color === void 0 && (e.color = this.colors[this.colorIndex]), this.colorIndex++, this.colorIndex === this.colors.length && (this.colorIndex = 0);
824
+ },
825
+ mounted() {
826
+ const { chartSeries: t, overviewSeries: e } = this.items.reduce(
827
+ (h, a) => {
828
+ const n = {
829
+ spanGaps: !0
830
+ };
831
+ return h.chartSeries.push({
832
+ ...n,
833
+ item: a,
834
+ label: this.formatLabel(a),
835
+ stroke: (r, o) => this.items[o - 1].color,
836
+ width: 2,
837
+ value: (r, o) => typeof o == "string" || isNaN(o) ? "NaN" : o == null ? "--" : o.toFixed(3)
838
+ }), h.overviewSeries.push({
839
+ ...n
840
+ }), h;
841
+ },
842
+ { chartSeries: [], overviewSeries: [] }
843
+ );
844
+ let s = {};
845
+ if (this.sparkline)
846
+ this.hideToolbarData = !0, this.hideOverviewData = !0, this.showOverview = !1, s = {
847
+ width: this.width,
848
+ height: this.height,
849
+ pxAlign: !1,
850
+ cursor: {
851
+ show: !1
852
+ },
853
+ select: {
854
+ show: !1
855
+ },
856
+ legend: {
857
+ show: !1
858
+ },
859
+ scales: {
860
+ x: {
861
+ time: !1
862
+ }
863
+ },
864
+ axes: [
865
+ {
866
+ show: !1
867
+ },
868
+ {
869
+ show: !1
870
+ }
871
+ ],
872
+ series: [
873
+ {},
874
+ {
875
+ stroke: "white"
876
+ // TODO: Light / dark theme
877
+ }
878
+ ]
879
+ }, this.graph = new I(
880
+ s,
881
+ this.data,
882
+ document.getElementById(`chart${this.id}`)
883
+ );
884
+ else {
885
+ let h = Intl.DateTimeFormat().resolvedOptions().timeZone;
886
+ this.timeZone && this.timeZone !== "local" && (h = this.timeZone), s = {
887
+ ...this.getSize("chart"),
888
+ ...this.getScales(),
889
+ ...this.getAxes("chart"),
890
+ // series: series, // TODO: Uncomment with the performance code
891
+ plugins: [this.linesPlugin()],
892
+ tzDate: (n) => I.tzDate(new Date(n * 1e3), h),
893
+ series: [
894
+ {
895
+ label: "Time",
896
+ value: (n, r) => (
897
+ // Convert the unix timestamp into a formatted date / time
898
+ r == null ? "--" : this.formatSeconds(r, this.timeZone)
899
+ )
900
+ },
901
+ ...t
902
+ ],
903
+ cursor: {
904
+ drag: {
905
+ x: !0,
906
+ y: !1
907
+ },
908
+ // Sync the cursor across graphs so mouseovers are synced
909
+ sync: {
910
+ key: "openc3"
911
+ // setSeries links graphs so clicking an item to hide it also hides the other graph item
912
+ // setSeries: true,
913
+ },
914
+ bind: {
915
+ mouseup: (n, r, o) => (p) => {
916
+ this.state === "pause" && n.select.width === 0 && this.$emit("start"), o(p);
917
+ }
918
+ }
919
+ },
920
+ hooks: {
921
+ setScale: [
922
+ (n, r) => {
923
+ if (r === "x" && !this.zoomOverview && this.overview) {
924
+ this.zoomChart = !0;
925
+ let o = Math.round(
926
+ this.overview.valToPos(n.scales.x.min, "x")
927
+ ), p = Math.round(
928
+ this.overview.valToPos(n.scales.x.max, "x")
929
+ );
930
+ this.overview.setSelect({ left: o, width: p - o }), this.zoomChart = !1;
931
+ }
932
+ }
933
+ ],
934
+ setSelect: [
935
+ (n) => {
936
+ this.state === "start" && n.select.width > 0 && this.$emit("pause");
937
+ }
938
+ ],
939
+ ready: [
940
+ (n) => {
941
+ n.root.querySelector(".u-over").addEventListener("contextmenu", (p) => {
942
+ p.preventDefault(), this.itemMenu = !1, this.legendMenu = !1, this.editGraphMenuX = p.clientX, this.editGraphMenuY = p.clientY, this.editGraphMenu = !0;
943
+ });
944
+ let o = n.root.querySelector(".u-legend");
945
+ o.addEventListener("contextmenu", (p) => {
946
+ p.preventDefault(), this.editGraphMenu = !1, this.legendMenu = !1, this.itemMenuX = p.clientX, this.itemMenuY = p.clientY;
947
+ let f = p.target.closest(".u-series"), g = Array.prototype.slice.call(o.childNodes[0].childNodes).indexOf(f), D = n.series[g];
948
+ D.item ? (this.selectedItem = D.item, this.itemMenu = !0) : (this.itemMenu = !1, this.legendMenuX = p.clientX, this.legendMenuY = p.clientY, this.legendMenu = !0);
949
+ }), o.querySelector("tbody").appendChild(this.$refs.info);
950
+ }
951
+ ]
952
+ }
953
+ }, this.graph = new I(
954
+ s,
955
+ this.data,
956
+ document.getElementById(`chart${this.id}`)
957
+ );
958
+ const a = {
959
+ ...this.getSize("overview"),
960
+ ...this.getScales(),
961
+ ...this.getAxes("overview"),
962
+ // series: series, // TODO: Uncomment with the performance code
963
+ tzDate: (n) => I.tzDate(new Date(n * 1e3), h),
964
+ series: [...e],
965
+ cursor: {
966
+ y: !1,
967
+ drag: {
968
+ setScale: !1,
969
+ x: !0,
970
+ y: !1
971
+ }
972
+ },
973
+ legend: {
974
+ show: !1
975
+ },
976
+ hooks: {
977
+ setSelect: [
978
+ (n) => {
979
+ if (!this.zoomChart) {
980
+ this.state === "start" && n.select.width > 0 && this.$emit("pause"), this.zoomOverview = !0;
981
+ let r = n.posToVal(n.select.left, "x"), o = n.posToVal(
982
+ n.select.left + n.select.width,
983
+ "x"
984
+ );
985
+ this.graph.setScale("x", { min: r, max: o }), this.zoomOverview = !1;
986
+ }
987
+ }
988
+ ]
989
+ }
990
+ };
991
+ this.hideOverview || (this.overview = new I(
992
+ a,
993
+ this.data,
994
+ document.getElementById(`overview${this.id}`)
995
+ )), this.moveLegend(this.legendPosition), window.addEventListener("resize", this.resize);
996
+ }
997
+ this.state !== "stop" && this.startGraph();
998
+ },
999
+ beforeUnmount: function() {
1000
+ this.stopGraph(), this.cable.disconnect(), window.removeEventListener("resize", this.resize);
1001
+ },
1002
+ watch: {
1003
+ state: function(t, e) {
1004
+ switch (t) {
1005
+ case "start":
1006
+ e === "stop" && this.startGraph();
1007
+ break;
1008
+ // case 'pause': Nothing to do ... see the data function
1009
+ case "stop":
1010
+ this.stopGraph();
1011
+ break;
1012
+ }
1013
+ },
1014
+ data: function(t, e) {
1015
+ this.dataChanged = !0;
1016
+ },
1017
+ graphMinY: function(t, e) {
1018
+ let s = parseFloat(t);
1019
+ isNaN(s) || (this.graphMinY = s), this.setGraphRange();
1020
+ },
1021
+ graphMaxY: function(t, e) {
1022
+ let s = parseFloat(t);
1023
+ isNaN(s) || (this.graphMaxY = s), this.setGraphRange();
1024
+ },
1025
+ graphStartDateTime: function(t, e) {
1026
+ t && typeof t == "string" ? (this.graphStartDateTime = this.parseDateTime(this.graphStartDateTime, this.timeZone) * 1e6, this.graphStartDateTime !== e && (this.needToUpdate = !0)) : t === null && e && (this.graphStartDateTime = null, this.needToUpdate = !0);
1027
+ },
1028
+ graphEndDateTime: function(t, e) {
1029
+ t && typeof t == "string" ? (this.graphEndDateTime = this.parseDateTime(this.graphEndDateTime, this.timeZone) * 1e6, this.graphEndDateTime !== e && (this.needToUpdate = !0)) : t === null && e && (this.graphEndDateTime = null, this.needToUpdate = !0);
1030
+ }
1031
+ },
1032
+ methods: {
1033
+ startGraph: function() {
1034
+ this.subscribe(), this.timeout = setTimeout(() => {
1035
+ this.updateTimeout();
1036
+ }, this.refreshIntervalMs);
1037
+ },
1038
+ stopGraph: function() {
1039
+ this.subscription && (this.subscription.unsubscribe(), this.subscription = null), this.timeout && (clearTimeout(this.timeout), this.timeout = null);
1040
+ },
1041
+ updateTimeout: function() {
1042
+ this.updateGraphData(), this.timeout = setTimeout(() => {
1043
+ this.updateTimeout();
1044
+ }, this.refreshIntervalMs);
1045
+ },
1046
+ updateGraphData: function() {
1047
+ if (this.state === "pause" || !this.dataChanged)
1048
+ return;
1049
+ this.graph.setData(this.data), this.overview && this.overview.setData(this.data);
1050
+ let t = this.data[0][this.data[0].length - 1], e = this.data[0][this.data[0].length - this.pointsGraphed], s = this.data[0][0];
1051
+ s < t - this.secondsGraphed && (s = t - this.secondsGraphed), e > s && (s = e), this.graph.setScale("x", { min: s, max: t }), this.dataChanged = !1;
1052
+ },
1053
+ formatLabel(t) {
1054
+ if (t.valueType === "CONVERTED" && t.reduced === "DECOM")
1055
+ return t.itemName;
1056
+ {
1057
+ let e = "";
1058
+ return t.valueType !== "CONVERTED" && (e += t.valueType), t.reduced !== "DECOM" && (e !== "" && (e += " "), e += `${t.reduced.split("_")[1]} ${t.reducedType}`), `${t.itemName} (${e})`;
1059
+ }
1060
+ },
1061
+ moveLegend: function(t) {
1062
+ switch (t) {
1063
+ case "bottom":
1064
+ this.graph.root.classList.remove("side-legend"), this.graph.root.classList.remove("left-legend"), this.graph.root.classList.remove("top-legend");
1065
+ break;
1066
+ case "top":
1067
+ this.graph.root.classList.remove("side-legend"), this.graph.root.classList.remove("left-legend"), this.graph.root.classList.add("top-legend");
1068
+ break;
1069
+ case "left":
1070
+ this.graph.root.classList.remove("top-legend"), this.graph.root.classList.add("side-legend"), this.graph.root.classList.add("left-legend");
1071
+ break;
1072
+ case "right":
1073
+ this.graph.root.classList.remove("top-legend"), this.graph.root.classList.remove("left-legend"), this.graph.root.classList.add("side-legend");
1074
+ break;
1075
+ }
1076
+ this.legendPosition = t, this.resize();
1077
+ },
1078
+ clearErrors: function() {
1079
+ this.errors = [];
1080
+ },
1081
+ editGraphClose: function(t) {
1082
+ this.editGraph = !1, this.title = t.title, this.legendPosition = t.legendPosition, this.graphMinY = t.graphMinY, this.graphMaxY = t.graphMaxY, this.lines = [...t.lines], this.graphStartDateTime = t.startDateTime, this.graphEndDateTime = t.endDateTime, this.$nextTick(() => {
1083
+ if (this.needToUpdate) {
1084
+ if (this.subscription == null)
1085
+ this.startGraph();
1086
+ else {
1087
+ let e = JSON.parse(JSON.stringify(this.items));
1088
+ this.removeItems(e), setTimeout(() => {
1089
+ this.addItems(e);
1090
+ }, 0);
1091
+ }
1092
+ this.needToUpdate = !1;
1093
+ }
1094
+ }), this.moveLegend(this.legendPosition), this.$emit("edit");
1095
+ },
1096
+ resize: function() {
1097
+ this.graph.setSize(this.getSize("chart")), this.overview && this.overview.setSize(this.getSize("overview")), this.$emit("resize", this.id);
1098
+ },
1099
+ expandAll: function() {
1100
+ this.fullWidth = !0, this.fullHeight = !0, this.resize();
1101
+ },
1102
+ collapseAll: function() {
1103
+ this.fullWidth = !1, this.fullHeight = !1, this.resize();
1104
+ },
1105
+ expandWidth: function() {
1106
+ this.fullWidth = !0, this.resize();
1107
+ },
1108
+ collapseWidth: function() {
1109
+ this.fullWidth = !1, this.resize();
1110
+ },
1111
+ expandHeight: function() {
1112
+ this.fullHeight = !0, this.resize();
1113
+ },
1114
+ collapseHeight: function() {
1115
+ this.fullHeight = !1, this.resize();
1116
+ },
1117
+ minMaxTransition: function() {
1118
+ this.expand = !this.expand, this.$emit("min-max-graph", this.id);
1119
+ },
1120
+ setGraphRange: function() {
1121
+ let t = 0.1;
1122
+ (this.graphMinY || this.graphMinY === 0 || this.graphMaxY || this.graphMaxY === 0) && (t = 0), this.graph.scales.y.range = (e, s, h) => {
1123
+ let a = s;
1124
+ (this.graphMinY || this.graphMinY === 0) && (a = this.graphMinY);
1125
+ let n = h;
1126
+ return (this.graphMaxY || this.graphMaxY === 0) && (n = this.graphMaxY), I.rangeNum(a, n, t, !0);
1127
+ };
1128
+ },
1129
+ subscribe: function() {
1130
+ this.cable.createSubscription("StreamingChannel", window.openc3Scope, {
1131
+ received: (t) => this.received(t),
1132
+ connected: () => {
1133
+ this.addItemsToSubscription(this.items);
1134
+ },
1135
+ disconnected: (t) => {
1136
+ t.allowReconnect && this.errors.push({
1137
+ type: "disconnected",
1138
+ message: "OpenC3 backend connection disconnected",
1139
+ time: (/* @__PURE__ */ new Date()).getTime()
1140
+ });
1141
+ },
1142
+ rejected: () => {
1143
+ this.errors.push({
1144
+ type: "rejected",
1145
+ message: "OpenC3 backend connection rejected",
1146
+ time: (/* @__PURE__ */ new Date()).getTime()
1147
+ });
1148
+ }
1149
+ }).then((t) => {
1150
+ this.subscription = t;
1151
+ });
1152
+ },
1153
+ // throttle(cb, limit) {
1154
+ // let wait = false
1155
+ // return () => {
1156
+ // if (!wait) {
1157
+ // requestAnimationFrame(cb)
1158
+ // wait = true
1159
+ // setTimeout(() => {
1160
+ // wait = false
1161
+ // }, limit)
1162
+ // }
1163
+ // }
1164
+ // },
1165
+ getSize: function(t) {
1166
+ let e = 0;
1167
+ const s = document.getElementById("openc3-nav-drawer");
1168
+ s && (e = s.classList.contains(
1169
+ "v-navigation-drawer--active"
1170
+ ) ? s.clientWidth : 0);
1171
+ let h = 0;
1172
+ (this.legendPosition === "right" || this.legendPosition === "left") && (h = document.getElementsByClassName("u-legend")[0].clientWidth);
1173
+ const a = Math.max(document.documentElement.clientWidth, window.innerWidth || 0) - e - h, n = Math.max(
1174
+ document.documentElement.clientHeight,
1175
+ window.innerHeight || 0
1176
+ ), r = document.getElementsByClassName("v-expansion-panel")[0];
1177
+ let o = 100;
1178
+ t === "overview" ? this.fullHeight && !this.hideOverviewData ? this.showOverview = !0 : this.showOverview = !1 : (o = n - r.clientHeight - o - 250, this.fullHeight || (o = o / 2 + 10));
1179
+ let p = a - 70;
1180
+ return this.fullWidth || (p = p / 2 - 12), {
1181
+ width: this.width || p,
1182
+ height: this.height || o
1183
+ };
1184
+ },
1185
+ getScales: function() {
1186
+ return {
1187
+ scales: {
1188
+ x: {
1189
+ range(t, e, s) {
1190
+ return e == null ? [1566453600, 1566497660] : [e, s];
1191
+ }
1192
+ },
1193
+ y: {
1194
+ range(t, e, s) {
1195
+ return e == null ? [-100, 100] : I.rangeNum(e, s, 0.1, !0);
1196
+ }
1197
+ }
1198
+ }
1199
+ };
1200
+ },
1201
+ getAxes: function(t) {
1202
+ let e = "rgba(255, 255, 255, .1)", s = "white";
1203
+ return {
1204
+ axes: [
1205
+ {
1206
+ stroke: s,
1207
+ grid: {
1208
+ show: !0,
1209
+ stroke: e,
1210
+ width: 2
1211
+ }
1212
+ },
1213
+ {
1214
+ size: 80,
1215
+ // This size supports values up to 8 digits plus sign
1216
+ stroke: s,
1217
+ grid: {
1218
+ show: t !== "overview",
1219
+ stroke: e,
1220
+ width: 2
1221
+ },
1222
+ // Forces the axis values to be formatted correctly
1223
+ // especially with really small or large values
1224
+ values(h, a) {
1225
+ return (a.some((n) => n >= 1e7) || a.every((n) => n < 0.01)) && (a = a.map((n) => n.toExponential(3))), a;
1226
+ }
1227
+ }
1228
+ ]
1229
+ };
1230
+ },
1231
+ closeEditItem: function(t) {
1232
+ this.editItem = !1, // If we have an end time and anything was changed we basically regraph
1233
+ (this.graphEndDateTime !== null && this.selectedItem !== t || // If we're live graphing we just regraph if the types change
1234
+ this.selectedItem.valueType !== t.valueType || this.selectedItem.reduced !== t.reduced || this.selectedItem.reducedType !== t.reducedType) && this.changeItem(t);
1235
+ },
1236
+ changeColor: function(t) {
1237
+ let e = this.subscriptionKey(this.selectedItem), s = this.indexes[e];
1238
+ this.items[s - 1].color = t, this.selectedItem.color = t, this.graph.root.querySelectorAll(".u-marker")[s].style.borderColor = t;
1239
+ },
1240
+ changeLimits: function(t) {
1241
+ let e = this.subscriptionKey(this.selectedItem), s = this.indexes[e];
1242
+ this.items[s - 1].limits = t, this.selectedItem.limits = t, this.limitsValues = t;
1243
+ },
1244
+ linesPlugin: function() {
1245
+ return {
1246
+ hooks: {
1247
+ draw: (t) => {
1248
+ const { ctx: e, bbox: s } = t, h = t.valToPos(t.scales.y.min, "y", !0), a = t.valToPos(t.scales.y.max, "y", !0), n = t.valToPos(this.limitsValues[0], "y", !0), r = t.valToPos(this.limitsValues[1], "y", !0), o = t.valToPos(this.limitsValues[2], "y", !0), p = t.valToPos(this.limitsValues[3], "y", !0);
1249
+ if (this.lines.forEach((f) => {
1250
+ t.scales.y.min <= f.yValue && f.yValue <= t.scales.y.max && (e.save(), e.beginPath(), e.strokeStyle = f.color, e.lineWidth = 2, e.moveTo(s.left, t.valToPos(f.yValue, "y", !0)), e.lineTo(
1251
+ s.left + s.width,
1252
+ t.valToPos(f.yValue, "y", !0)
1253
+ ), e.stroke(), e.restore());
1254
+ }), e.save(), e.beginPath(), e.fillStyle = "rgba(255,0,0,0.15)", t.scales.y.min < this.limitsValues[0]) {
1255
+ let f = n < a ? a : n;
1256
+ e.fillRect(s.left, n, s.width, h - f);
1257
+ }
1258
+ if (t.scales.y.max > this.limitsValues[3]) {
1259
+ let f = h < p ? h : p;
1260
+ e.fillRect(s.left, a, s.width, f - a);
1261
+ }
1262
+ if (e.fillStyle = "rgba(255,255,0,0.15)", t.scales.y.min < this.limitsValues[1] && // yellowLow
1263
+ t.scales.y.max > this.limitsValues[0]) {
1264
+ let f = r < a ? a : r;
1265
+ e.fillRect(s.left, f, s.width, n - f);
1266
+ }
1267
+ if (t.scales.y.max > this.limitsValues[2] && // yellowHigh
1268
+ t.scales.y.min < this.limitsValues[3]) {
1269
+ let f = h < p ? h : p, g = h < o ? h : o;
1270
+ e.fillRect(s.left, f, s.width, g - f);
1271
+ }
1272
+ if (e.fillStyle = "rgba(0,255,0,0.15)", this.limitsValues.length === 4) {
1273
+ if (t.scales.y.min < this.limitsValues[2] && // yellowHigh
1274
+ t.scales.y.max > this.limitsValues[1]) {
1275
+ let f = o < a ? a : o, g = h < r ? h : r;
1276
+ e.fillRect(s.left, f, s.width, g - f);
1277
+ }
1278
+ } else {
1279
+ const f = t.valToPos(this.limitsValues[4], "y", !0), g = t.valToPos(this.limitsValues[5], "y", !0);
1280
+ if (t.scales.y.min < this.limitsValues[4] && // greenLow
1281
+ t.scales.y.max > this.limitsValues[1]) {
1282
+ let _ = f < a ? a : f;
1283
+ e.fillRect(s.left, _, s.width, r - _);
1284
+ }
1285
+ if (t.scales.y.max > this.limitsValues[5] && // greenHigh
1286
+ t.scales.y.min < this.limitsValues[2]) {
1287
+ let _ = h < o ? h : o, v = h < g ? h : g;
1288
+ e.fillRect(s.left, _, s.width, v - _);
1289
+ }
1290
+ e.fillStyle = "rgba(0,0,255,0.15)";
1291
+ let D = g < a ? a : g, w = h < f ? h : f;
1292
+ e.fillRect(s.left, D, s.width, w - D);
1293
+ }
1294
+ e.stroke(), e.restore();
1295
+ }
1296
+ }
1297
+ };
1298
+ },
1299
+ changeItem: function(t) {
1300
+ this.removeItems([this.selectedItem]), this.selectedItem.valueType = t.valueType, this.selectedItem.reduced = t.reduced, this.selectedItem.reducedType = t.reducedType, setTimeout(() => {
1301
+ this.addItems([this.selectedItem]);
1302
+ }, 0);
1303
+ },
1304
+ addItems: function(t, e = "CONVERTED") {
1305
+ t.forEach((s) => {
1306
+ s.valueType || (s.valueType = e), s.color || (s.color = this.colors[this.colorIndex]), s.limits || (s.limits = []), s.limits.length > 0 && (this.limitsValues = s.limits), this.colorIndex = (this.colorIndex + 1) % this.colors.length, this.items.push(s);
1307
+ const h = this.data.length;
1308
+ this.graph.addSeries(this.createSeriesConfig(s), h), this.overview && this.overview.addSeries(this.createOverviewSeriesConfig(), h), this.data.splice(h, 0, Array(this.data[0].length)), this.indexes[this.subscriptionKey(s)] = h;
1309
+ }), this.updateColorIndex(t), this.addItemsToSubscription(t), this.$emit("resize"), this.$emit("edit");
1310
+ },
1311
+ createSeriesConfig: function(t) {
1312
+ return {
1313
+ spanGaps: !0,
1314
+ item: t,
1315
+ label: this.formatLabel(t),
1316
+ stroke: (e, s) => this.items[s - 1].color,
1317
+ width: 2,
1318
+ value: (e, s) => typeof s == "string" || isNaN(s) ? "NaN" : s == null ? "--" : Math.abs(s) < 0.01 && s !== 0 || Math.abs(s) >= 1e7 ? s.toExponential(6) : s.toFixed(6)
1319
+ };
1320
+ },
1321
+ createOverviewSeriesConfig: function() {
1322
+ return {
1323
+ spanGaps: !0,
1324
+ stroke: (t, e) => this.items[e - 1].color
1325
+ };
1326
+ },
1327
+ updateColorIndex: function(t) {
1328
+ const e = t[t.length - 1];
1329
+ if (e) {
1330
+ const s = this.colors.indexOf(e.color);
1331
+ s !== -1 && (this.colorIndex = (s + 1) % this.colors.length);
1332
+ }
1333
+ },
1334
+ addItemsToSubscription: function(t = this.items) {
1335
+ let e = this.startTime;
1336
+ this.graphStartDateTime && (e = this.graphStartDateTime), this.subscription && OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity).then(
1337
+ (s) => {
1338
+ s && OpenC3Auth.setTokens(), this.subscription.perform("add", {
1339
+ scope: window.openc3Scope,
1340
+ token: localStorage.openc3Token,
1341
+ items: t.map(this.subscriptionKey),
1342
+ start_time: e,
1343
+ end_time: this.graphEndDateTime
1344
+ });
1345
+ }
1346
+ );
1347
+ },
1348
+ clearAllData: function() {
1349
+ this.data[0] = [], this.clearData(this.items);
1350
+ },
1351
+ clearData: function(t) {
1352
+ for (const e of t.map(this.subscriptionKey)) {
1353
+ let s = this.indexes[e];
1354
+ this.data[s] = Array(this.data[0].length).fill(null), this.graph.setData(this.data), this.overview && this.overview.setData(this.data);
1355
+ }
1356
+ this.data.length === 2 && (this.data[0] = [], this.graph.setData(this.data), this.overview && this.overview.setData(this.data));
1357
+ },
1358
+ removeItems: function(t) {
1359
+ this.removeItemsFromSubscription(t);
1360
+ for (const e of t.map(this.subscriptionKey)) {
1361
+ const s = this.reorderIndexes(e);
1362
+ this.items.splice(s - 1, 1), this.data.splice(s, 1), this.graph.delSeries(s), this.graph.setData(this.data), this.overview && (this.overview.delSeries(s), this.overview.setData(this.data));
1363
+ }
1364
+ this.data.length === 1 && (this.data[0] = [], this.graph.setData(this.data), this.overview && this.overview.setData(this.data)), this.$emit("resize"), this.$emit("edit");
1365
+ },
1366
+ removeItemsFromSubscription: function(t = this.items) {
1367
+ this.subscription && this.subscription.perform("remove", {
1368
+ scope: window.openc3Scope,
1369
+ token: localStorage.openc3Token,
1370
+ items: t.map(this.subscriptionKey)
1371
+ });
1372
+ },
1373
+ reorderIndexes: function(t) {
1374
+ let e = this.indexes[t];
1375
+ delete this.indexes[t];
1376
+ for (let s in this.indexes)
1377
+ this.indexes[s] > e && (this.indexes[s] -= 1);
1378
+ return e;
1379
+ },
1380
+ received: function(t) {
1381
+ this.cable.recordPing();
1382
+ for (let e = 0; e < t.length; e++) {
1383
+ let s = t[e].__time / 1e9, h = this.data[0].length;
1384
+ if (h === 0 || s > this.data[0][h - 1]) {
1385
+ for (let a = 0; a < this.data.length; a++)
1386
+ this.data[a].push(null);
1387
+ this.set_data_at_index(this.data[0].length - 1, s, t[e]);
1388
+ } else {
1389
+ let a = q(this.data[0], s, this.bs_comparator);
1390
+ if (a >= 0) {
1391
+ for (; a >= 0; )
1392
+ s -= 1e-5, a = q(this.data[0], s, this.bs_comparator);
1393
+ let n = -a - 1;
1394
+ for (let r = 0; r < this.data.length; r++)
1395
+ this.data[r].splice(n, 0, null);
1396
+ this.set_data_at_index(n, s, t[e]);
1397
+ } else {
1398
+ let n = -a - 1;
1399
+ for (let r = 0; r < this.data.length; r++)
1400
+ this.data[r].splice(n, 0, null);
1401
+ this.set_data_at_index(n, s, t[e]);
1402
+ }
1403
+ }
1404
+ }
1405
+ if (this.startTime == null && this.data[0][0]) {
1406
+ let e = this.data[0][0] * 1e9;
1407
+ this.$emit("started", e);
1408
+ }
1409
+ this.dataChanged = !0;
1410
+ },
1411
+ bs_comparator: function(t, e) {
1412
+ return t - e;
1413
+ },
1414
+ set_data_at_index: function(t, e, s) {
1415
+ this.data[0][t] = e;
1416
+ for (const [h, a] of Object.entries(s)) {
1417
+ if (h === "time")
1418
+ continue;
1419
+ let n = this.indexes[h];
1420
+ if (n) {
1421
+ let r = this.data[n];
1422
+ if (a != null && a.raw)
1423
+ r[t] = null;
1424
+ else if (typeof a == "string") {
1425
+ if (r[t] = null, !h.includes("__RAW")) {
1426
+ for (let o of this.items)
1427
+ if (this.subscriptionKey(o) === h) {
1428
+ this.selectedItem = o;
1429
+ break;
1430
+ }
1431
+ this.changeItem({
1432
+ valueType: "RAW",
1433
+ reduced: this.selectedItem.reduced,
1434
+ reducedType: this.selectedItem.reducedType
1435
+ });
1436
+ }
1437
+ } else
1438
+ r[t] = a;
1439
+ }
1440
+ }
1441
+ },
1442
+ subscriptionKey: function(t) {
1443
+ let e = `${t.reduced}__TLM__${t.targetName}__${t.packetName}__${t.itemName}__${t.valueType}`;
1444
+ return (t.reduced === "REDUCED_MINUTE" || t.reduced === "REDUCED_HOUR" || t.reduced === "REDUCED_DAY") && (e += `__${t.reducedType}`), e;
1445
+ }
1446
+ }
1447
+ }, ge = { class: "mx-2" }, ye = {
1448
+ class: "pa-1",
1449
+ id: "chart",
1450
+ ref: "chart"
1451
+ }, be = ["id"], we = ["id"], Te = {
1452
+ key: 5,
1453
+ class: "u-series",
1454
+ ref: "info"
1455
+ };
1456
+ function De(t, e, s, h, a, n) {
1457
+ const r = u("v-icon"), o = u("v-tooltip"), p = u("v-spacer"), f = u("v-toolbar"), g = u("v-expand-transition"), D = u("v-card"), w = u("graph-edit-dialog"), _ = u("v-text-field"), v = u("v-row"), Y = u("v-textarea"), O = u("v-btn"), z = u("v-dialog"), k = u("v-list-item-title"), V = u("v-list-item"), G = u("v-list"), L = u("v-menu"), R = u("graph-edit-item-dialog"), H = u("v-list-subheader");
1458
+ return y(), P("div", {
1459
+ onClick: e[21] || (e[21] = Q((d) => t.$emit("click"), ["prevent"]))
1460
+ }, [
1461
+ i(D, null, {
1462
+ default: l(() => [
1463
+ C(i(f, {
1464
+ height: "24",
1465
+ class: $(["pl-2 pr-2", s.selectedGraphId === s.id ? "active" : ""])
1466
+ }, {
1467
+ default: l(() => [
1468
+ C(b("div", ge, [
1469
+ i(o, {
1470
+ text: "Errors",
1471
+ location: "top"
1472
+ }, {
1473
+ activator: l(({ props: d }) => [
1474
+ i(r, x(d, {
1475
+ onClick: e[0] || (e[0] = (U) => a.errorDialog = !0)
1476
+ }), {
1477
+ default: l(() => e[22] || (e[22] = [
1478
+ m(" mdi-alert ")
1479
+ ])),
1480
+ _: 2
1481
+ }, 1040)
1482
+ ]),
1483
+ _: 1
1484
+ })
1485
+ ], 512), [
1486
+ [M, a.errors.length !== 0]
1487
+ ]),
1488
+ i(o, {
1489
+ text: "Edit",
1490
+ location: "top"
1491
+ }, {
1492
+ activator: l(({ props: d }) => [
1493
+ i(r, x(d, {
1494
+ onClick: e[1] || (e[1] = (U) => a.editGraph = !0),
1495
+ "data-test": "edit-graph-icon"
1496
+ }), {
1497
+ default: l(() => e[23] || (e[23] = [
1498
+ m(" mdi-pencil ")
1499
+ ])),
1500
+ _: 2
1501
+ }, 1040)
1502
+ ]),
1503
+ _: 1
1504
+ }),
1505
+ i(p),
1506
+ b("span", null, E(a.title), 1),
1507
+ i(p),
1508
+ C(b("div", null, [
1509
+ n.calcFullSize ? (y(), T(o, {
1510
+ key: 0,
1511
+ text: "Collapse",
1512
+ location: "top"
1513
+ }, {
1514
+ activator: l(({ props: d }) => [
1515
+ i(r, x(d, {
1516
+ onClick: n.collapseAll,
1517
+ "data-test": "collapse-all"
1518
+ }), {
1519
+ default: l(() => e[24] || (e[24] = [
1520
+ m(" mdi-arrow-collapse ")
1521
+ ])),
1522
+ _: 2
1523
+ }, 1040, ["onClick"])
1524
+ ]),
1525
+ _: 1
1526
+ })) : (y(), T(o, {
1527
+ key: 1,
1528
+ text: "Expand",
1529
+ location: "top"
1530
+ }, {
1531
+ activator: l(({ props: d }) => [
1532
+ i(r, x(d, {
1533
+ onClick: n.expandAll,
1534
+ "data-test": "expand-all"
1535
+ }), {
1536
+ default: l(() => e[25] || (e[25] = [
1537
+ m(" mdi-arrow-expand ")
1538
+ ])),
1539
+ _: 2
1540
+ }, 1040, ["onClick"])
1541
+ ]),
1542
+ _: 1
1543
+ }))
1544
+ ], 512), [
1545
+ [M, a.expand]
1546
+ ]),
1547
+ C(b("div", null, [
1548
+ a.fullWidth ? (y(), T(o, {
1549
+ key: 0,
1550
+ text: "Collapse Width",
1551
+ location: "top"
1552
+ }, {
1553
+ activator: l(({ props: d }) => [
1554
+ i(r, x(d, {
1555
+ onClick: n.collapseWidth,
1556
+ "data-test": "collapse-width"
1557
+ }), {
1558
+ default: l(() => e[26] || (e[26] = [
1559
+ m(" mdi-arrow-collapse-horizontal ")
1560
+ ])),
1561
+ _: 2
1562
+ }, 1040, ["onClick"])
1563
+ ]),
1564
+ _: 1
1565
+ })) : (y(), T(o, {
1566
+ key: 1,
1567
+ text: "Expand Width",
1568
+ location: "top"
1569
+ }, {
1570
+ activator: l(({ props: d }) => [
1571
+ i(r, x(d, {
1572
+ onClick: n.expandWidth,
1573
+ "data-test": "expand-width"
1574
+ }), {
1575
+ default: l(() => e[27] || (e[27] = [
1576
+ m(" mdi-arrow-expand-horizontal ")
1577
+ ])),
1578
+ _: 2
1579
+ }, 1040, ["onClick"])
1580
+ ]),
1581
+ _: 1
1582
+ }))
1583
+ ], 512), [
1584
+ [M, a.expand]
1585
+ ]),
1586
+ C(b("div", null, [
1587
+ a.fullHeight ? (y(), T(o, {
1588
+ key: 0,
1589
+ text: "Collapse Height",
1590
+ location: "top"
1591
+ }, {
1592
+ activator: l(({ props: d }) => [
1593
+ i(r, x(d, {
1594
+ onClick: n.collapseHeight,
1595
+ "data-test": "collapse-height"
1596
+ }), {
1597
+ default: l(() => e[28] || (e[28] = [
1598
+ m(" mdi-arrow-collapse-vertical ")
1599
+ ])),
1600
+ _: 2
1601
+ }, 1040, ["onClick"])
1602
+ ]),
1603
+ _: 1
1604
+ })) : (y(), T(o, {
1605
+ key: 1,
1606
+ text: "Expand Height",
1607
+ location: "top"
1608
+ }, {
1609
+ activator: l(({ props: d }) => [
1610
+ i(r, x(d, {
1611
+ onClick: n.expandHeight,
1612
+ "data-test": "expand-height"
1613
+ }), {
1614
+ default: l(() => e[29] || (e[29] = [
1615
+ m(" mdi-arrow-expand-vertical ")
1616
+ ])),
1617
+ _: 2
1618
+ }, 1040, ["onClick"])
1619
+ ]),
1620
+ _: 1
1621
+ }))
1622
+ ], 512), [
1623
+ [M, a.expand]
1624
+ ]),
1625
+ a.expand ? (y(), T(o, {
1626
+ key: 0,
1627
+ text: "Minimize",
1628
+ location: "top"
1629
+ }, {
1630
+ activator: l(({ props: d }) => [
1631
+ i(r, x(d, {
1632
+ onClick: n.minMaxTransition,
1633
+ "data-test": "minimize-screen-icon"
1634
+ }), {
1635
+ default: l(() => e[30] || (e[30] = [
1636
+ m(" mdi-window-minimize ")
1637
+ ])),
1638
+ _: 2
1639
+ }, 1040, ["onClick"])
1640
+ ]),
1641
+ _: 1
1642
+ })) : (y(), T(o, {
1643
+ key: 1,
1644
+ text: "Maximize",
1645
+ location: "top"
1646
+ }, {
1647
+ activator: l(({ props: d }) => [
1648
+ i(r, x(d, {
1649
+ onClick: n.minMaxTransition,
1650
+ "data-test": "maximize-screen-icon"
1651
+ }), {
1652
+ default: l(() => e[31] || (e[31] = [
1653
+ m(" mdi-window-maximize ")
1654
+ ])),
1655
+ _: 2
1656
+ }, 1040, ["onClick"])
1657
+ ]),
1658
+ _: 1
1659
+ })),
1660
+ i(o, {
1661
+ text: "Close",
1662
+ location: "top"
1663
+ }, {
1664
+ activator: l(({ props: d }) => [
1665
+ i(r, x(d, {
1666
+ onClick: e[2] || (e[2] = (U) => t.$emit("close-graph")),
1667
+ "data-test": "close-graph-icon"
1668
+ }), {
1669
+ default: l(() => e[32] || (e[32] = [
1670
+ m(" mdi-close-box ")
1671
+ ])),
1672
+ _: 2
1673
+ }, 1040)
1674
+ ]),
1675
+ _: 1
1676
+ })
1677
+ ]),
1678
+ _: 1
1679
+ }, 8, ["class"]), [
1680
+ [M, !a.hideToolbarData]
1681
+ ]),
1682
+ i(g, null, {
1683
+ default: l(() => [
1684
+ C(b("div", ye, [
1685
+ b("div", {
1686
+ id: `chart${s.id}`
1687
+ }, null, 8, be),
1688
+ e[33] || (e[33] = b("div", { id: "betweenCharts" }, null, -1)),
1689
+ C(b("div", {
1690
+ id: `overview${s.id}`
1691
+ }, null, 8, we), [
1692
+ [M, a.showOverview]
1693
+ ])
1694
+ ], 512), [
1695
+ [M, a.expand]
1696
+ ])
1697
+ ]),
1698
+ _: 1
1699
+ })
1700
+ ]),
1701
+ _: 1
1702
+ }),
1703
+ a.editGraph ? (y(), T(w, {
1704
+ key: 0,
1705
+ modelValue: a.editGraph,
1706
+ "onUpdate:modelValue": e[3] || (e[3] = (d) => a.editGraph = d),
1707
+ title: a.title,
1708
+ "legend-position": a.legendPosition,
1709
+ items: a.items,
1710
+ "graph-min-y": a.graphMinY,
1711
+ "graph-max-y": a.graphMaxY,
1712
+ lines: a.lines,
1713
+ colors: a.colors,
1714
+ "start-date-time": a.graphStartDateTime,
1715
+ "end-date-time": a.graphEndDateTime,
1716
+ "time-zone": s.timeZone,
1717
+ onRemove: e[4] || (e[4] = (d) => n.removeItems([d])),
1718
+ onOk: n.editGraphClose,
1719
+ onCancel: e[5] || (e[5] = (d) => a.editGraph = !1)
1720
+ }, null, 8, ["modelValue", "title", "legend-position", "items", "graph-min-y", "graph-max-y", "lines", "colors", "start-date-time", "end-date-time", "time-zone", "onOk"])) : S("", !0),
1721
+ i(z, {
1722
+ modelValue: a.errorDialog,
1723
+ "onUpdate:modelValue": e[7] || (e[7] = (d) => a.errorDialog = d),
1724
+ "max-width": "600"
1725
+ }, {
1726
+ default: l(() => [
1727
+ i(f, { height: "24" }, {
1728
+ default: l(() => [
1729
+ i(p),
1730
+ e[34] || (e[34] = b("span", null, " Errors ", -1)),
1731
+ i(p)
1732
+ ]),
1733
+ _: 1
1734
+ }),
1735
+ i(D, { class: "pa-3" }, {
1736
+ default: l(() => [
1737
+ i(v, { dense: "" }, {
1738
+ default: l(() => [
1739
+ i(_, {
1740
+ readonly: "",
1741
+ "hide-details": "",
1742
+ modelValue: a.title,
1743
+ "onUpdate:modelValue": e[6] || (e[6] = (d) => a.title = d),
1744
+ class: "pb-2",
1745
+ label: "Graph Title"
1746
+ }, null, 8, ["modelValue"])
1747
+ ]),
1748
+ _: 1
1749
+ }),
1750
+ i(v, { class: "my-3" }, {
1751
+ default: l(() => [
1752
+ i(Y, {
1753
+ readonly: "",
1754
+ rows: "8",
1755
+ value: n.error
1756
+ }, null, 8, ["value"])
1757
+ ]),
1758
+ _: 1
1759
+ }),
1760
+ i(v, null, {
1761
+ default: l(() => [
1762
+ i(O, {
1763
+ block: "",
1764
+ onClick: n.clearErrors
1765
+ }, {
1766
+ default: l(() => e[35] || (e[35] = [
1767
+ m(" Clear ")
1768
+ ])),
1769
+ _: 1
1770
+ }, 8, ["onClick"])
1771
+ ]),
1772
+ _: 1
1773
+ })
1774
+ ]),
1775
+ _: 1
1776
+ })
1777
+ ]),
1778
+ _: 1
1779
+ }, 8, ["modelValue"]),
1780
+ a.editGraphMenu ? (y(), T(L, {
1781
+ key: 1,
1782
+ modelValue: a.editGraphMenu,
1783
+ "onUpdate:modelValue": e[9] || (e[9] = (d) => a.editGraphMenu = d),
1784
+ target: [a.editGraphMenuX, a.editGraphMenuY],
1785
+ absolute: "",
1786
+ "offset-y": ""
1787
+ }, {
1788
+ default: l(() => [
1789
+ i(G, null, {
1790
+ default: l(() => [
1791
+ i(V, {
1792
+ onClick: e[8] || (e[8] = (d) => a.editGraph = !0)
1793
+ }, {
1794
+ default: l(() => [
1795
+ i(k, { style: { cursor: "pointer" } }, {
1796
+ default: l(() => [
1797
+ m(" Edit " + E(a.title), 1)
1798
+ ]),
1799
+ _: 1
1800
+ })
1801
+ ]),
1802
+ _: 1
1803
+ })
1804
+ ]),
1805
+ _: 1
1806
+ })
1807
+ ]),
1808
+ _: 1
1809
+ }, 8, ["modelValue", "target"])) : S("", !0),
1810
+ a.editItem ? (y(), T(R, {
1811
+ key: 2,
1812
+ modelValue: a.editItem,
1813
+ "onUpdate:modelValue": e[10] || (e[10] = (d) => a.editItem = d),
1814
+ colors: a.colors,
1815
+ item: a.selectedItem,
1816
+ onChangeColor: n.changeColor,
1817
+ onChangeLimits: n.changeLimits,
1818
+ onCancel: e[11] || (e[11] = (d) => a.editItem = !1),
1819
+ onClose: n.closeEditItem
1820
+ }, null, 8, ["modelValue", "colors", "item", "onChangeColor", "onChangeLimits", "onClose"])) : S("", !0),
1821
+ a.itemMenu ? (y(), T(L, {
1822
+ key: 3,
1823
+ modelValue: a.itemMenu,
1824
+ "onUpdate:modelValue": e[15] || (e[15] = (d) => a.itemMenu = d),
1825
+ target: [a.itemMenuX, a.itemMenuY],
1826
+ absolute: "",
1827
+ "offset-y": ""
1828
+ }, {
1829
+ default: l(() => [
1830
+ i(G, {
1831
+ nav: "",
1832
+ density: "compact"
1833
+ }, {
1834
+ default: l(() => [
1835
+ i(H, null, {
1836
+ default: l(() => [
1837
+ m(E(a.selectedItem.targetName) + " " + E(a.selectedItem.packetName) + " " + E(a.selectedItem.itemName), 1)
1838
+ ]),
1839
+ _: 1
1840
+ }),
1841
+ i(V, {
1842
+ onClick: e[12] || (e[12] = (d) => a.editItem = !0)
1843
+ }, {
1844
+ prepend: l(() => [
1845
+ i(r, { icon: "mdi-pencil" })
1846
+ ]),
1847
+ default: l(() => [
1848
+ i(k, null, {
1849
+ default: l(() => e[36] || (e[36] = [
1850
+ m(" Edit ")
1851
+ ])),
1852
+ _: 1
1853
+ })
1854
+ ]),
1855
+ _: 1
1856
+ }),
1857
+ i(V, {
1858
+ onClick: e[13] || (e[13] = (d) => n.clearData([a.selectedItem]))
1859
+ }, {
1860
+ prepend: l(() => [
1861
+ i(r, { icon: "mdi-eraser" })
1862
+ ]),
1863
+ default: l(() => [
1864
+ i(k, null, {
1865
+ default: l(() => e[37] || (e[37] = [
1866
+ m(" Clear ")
1867
+ ])),
1868
+ _: 1
1869
+ })
1870
+ ]),
1871
+ _: 1
1872
+ }),
1873
+ i(V, {
1874
+ onClick: e[14] || (e[14] = (d) => n.removeItems([a.selectedItem]))
1875
+ }, {
1876
+ prepend: l(() => [
1877
+ i(r, { icon: "mdi-delete" })
1878
+ ]),
1879
+ default: l(() => [
1880
+ i(k, null, {
1881
+ default: l(() => e[38] || (e[38] = [
1882
+ m(" Delete ")
1883
+ ])),
1884
+ _: 1
1885
+ })
1886
+ ]),
1887
+ _: 1
1888
+ })
1889
+ ]),
1890
+ _: 1
1891
+ })
1892
+ ]),
1893
+ _: 1
1894
+ }, 8, ["modelValue", "target"])) : S("", !0),
1895
+ a.legendMenu ? (y(), T(L, {
1896
+ key: 4,
1897
+ modelValue: a.legendMenu,
1898
+ "onUpdate:modelValue": e[20] || (e[20] = (d) => a.legendMenu = d),
1899
+ target: [a.legendMenuX, a.legendMenuY],
1900
+ absolute: "",
1901
+ "offset-y": ""
1902
+ }, {
1903
+ default: l(() => [
1904
+ i(G, null, {
1905
+ default: l(() => [
1906
+ i(V, {
1907
+ onClick: e[16] || (e[16] = (d) => n.moveLegend("top"))
1908
+ }, {
1909
+ default: l(() => [
1910
+ i(k, { style: { cursor: "pointer" } }, {
1911
+ default: l(() => e[39] || (e[39] = [
1912
+ m(" Legend Top ")
1913
+ ])),
1914
+ _: 1
1915
+ })
1916
+ ]),
1917
+ _: 1
1918
+ }),
1919
+ i(V, {
1920
+ onClick: e[17] || (e[17] = (d) => n.moveLegend("bottom"))
1921
+ }, {
1922
+ default: l(() => [
1923
+ i(k, { style: { cursor: "pointer" } }, {
1924
+ default: l(() => e[40] || (e[40] = [
1925
+ m(" Legend Bottom ")
1926
+ ])),
1927
+ _: 1
1928
+ })
1929
+ ]),
1930
+ _: 1
1931
+ }),
1932
+ i(V, {
1933
+ onClick: e[18] || (e[18] = (d) => n.moveLegend("left"))
1934
+ }, {
1935
+ default: l(() => [
1936
+ i(k, { style: { cursor: "pointer" } }, {
1937
+ default: l(() => e[41] || (e[41] = [
1938
+ m(" Legend Left ")
1939
+ ])),
1940
+ _: 1
1941
+ })
1942
+ ]),
1943
+ _: 1
1944
+ }),
1945
+ i(V, {
1946
+ onClick: e[19] || (e[19] = (d) => n.moveLegend("right"))
1947
+ }, {
1948
+ default: l(() => [
1949
+ i(k, { style: { cursor: "pointer" } }, {
1950
+ default: l(() => e[42] || (e[42] = [
1951
+ m(" Legend RIght ")
1952
+ ])),
1953
+ _: 1
1954
+ })
1955
+ ]),
1956
+ _: 1
1957
+ })
1958
+ ]),
1959
+ _: 1
1960
+ })
1961
+ ]),
1962
+ _: 1
1963
+ }, 8, ["modelValue", "target"])) : S("", !0),
1964
+ s.sparkline ? S("", !0) : (y(), P("div", Te, [
1965
+ i(o, {
1966
+ text: "Click item to toggle, Right click to edit",
1967
+ location: "top"
1968
+ }, {
1969
+ activator: l(({ props: d }) => [
1970
+ i(r, ee(te(d)), {
1971
+ default: l(() => e[43] || (e[43] = [
1972
+ m(" mdi-information-variant-circle ")
1973
+ ])),
1974
+ _: 2
1975
+ }, 1040)
1976
+ ]),
1977
+ _: 1
1978
+ })
1979
+ ], 512))
1980
+ ]);
1981
+ }
1982
+ const Se = /* @__PURE__ */ W(ve, [["render", De], ["__scopeId", "data-v-51bcc3ba"]]);
1983
+ export {
1984
+ Se as G,
1985
+ ue as a,
1986
+ ce as b
1987
+ };
1988
+ //# sourceMappingURL=Graph-Bgo0cjl3.js.map