@openc3/vue-common 6.1.0 → 6.2.0-fix0

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 (405) hide show
  1. package/dist/ArrayWidget-BIQi_bWC.cjs +3 -0
  2. package/dist/ArrayWidget-BIQi_bWC.cjs.map +1 -0
  3. package/dist/ArrayWidget-BxEO5hEG.js +106 -0
  4. package/dist/ArrayWidget-BxEO5hEG.js.map +1 -0
  5. package/dist/ArrayplotWidget-B_VPoV4v.js +199 -0
  6. package/dist/ArrayplotWidget-B_VPoV4v.js.map +1 -0
  7. package/dist/ArrayplotWidget-Donxhd8_.cjs +2 -0
  8. package/dist/ArrayplotWidget-Donxhd8_.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-C9dkpg2O.js +108 -0
  14. package/dist/BarColumn-C9dkpg2O.js.map +1 -0
  15. package/dist/BarColumn-CyRSZHMh.cjs +2 -0
  16. package/dist/BarColumn-CyRSZHMh.cjs.map +1 -0
  17. package/dist/BlockWidget-CuefOin6.js +112 -0
  18. package/dist/BlockWidget-CuefOin6.js.map +1 -0
  19. package/dist/BlockWidget-DPLN1jgj.cjs +3 -0
  20. package/dist/BlockWidget-DPLN1jgj.cjs.map +1 -0
  21. package/dist/ButtonWidget-B6HM0Doo.js +166 -0
  22. package/dist/ButtonWidget-B6HM0Doo.js.map +1 -0
  23. package/dist/ButtonWidget-DccYzIY3.cjs +3 -0
  24. package/dist/ButtonWidget-DccYzIY3.cjs.map +1 -0
  25. package/dist/CanvasWidget-BzTU9rc9.cjs +2 -0
  26. package/dist/CanvasWidget-BzTU9rc9.cjs.map +1 -0
  27. package/dist/CanvasWidget-DZQGG-yQ.js +39 -0
  28. package/dist/CanvasWidget-DZQGG-yQ.js.map +1 -0
  29. package/dist/CanvasdotWidget-6wuCSnw_.js +19 -0
  30. package/dist/CanvasdotWidget-6wuCSnw_.js.map +1 -0
  31. package/dist/CanvasdotWidget-B7VTS1QI.cjs +2 -0
  32. package/dist/CanvasdotWidget-B7VTS1QI.cjs.map +1 -0
  33. package/dist/CanvasimageWidget-BwYpfmDE.cjs +2 -0
  34. package/dist/CanvasimageWidget-BwYpfmDE.cjs.map +1 -0
  35. package/dist/CanvasimageWidget-mhcPpAuN.js +58 -0
  36. package/dist/CanvasimageWidget-mhcPpAuN.js.map +1 -0
  37. package/dist/CanvasimagevalueWidget-Cx-dH8Gc.js +107 -0
  38. package/dist/CanvasimagevalueWidget-Cx-dH8Gc.js.map +1 -0
  39. package/dist/CanvasimagevalueWidget-E_NsZ82T.cjs +2 -0
  40. package/dist/CanvasimagevalueWidget-E_NsZ82T.cjs.map +1 -0
  41. package/dist/CanvaslabelWidget-BBDuXWfU.cjs +2 -0
  42. package/dist/CanvaslabelWidget-BBDuXWfU.cjs.map +1 -0
  43. package/dist/CanvaslabelWidget-CQZCeohU.js +23 -0
  44. package/dist/CanvaslabelWidget-CQZCeohU.js.map +1 -0
  45. package/dist/CanvaslabelvalueWidget-CwmYDCjr.js +42 -0
  46. package/dist/CanvaslabelvalueWidget-CwmYDCjr.js.map +1 -0
  47. package/dist/CanvaslabelvalueWidget-DAdu7ujn.cjs +2 -0
  48. package/dist/CanvaslabelvalueWidget-DAdu7ujn.cjs.map +1 -0
  49. package/dist/CanvaslineWidget-Bv5da1Vy.cjs +2 -0
  50. package/dist/CanvaslineWidget-Bv5da1Vy.cjs.map +1 -0
  51. package/dist/CanvaslineWidget-nTP3fJB4.js +28 -0
  52. package/dist/CanvaslineWidget-nTP3fJB4.js.map +1 -0
  53. package/dist/CanvaslinevalueWidget-BVfUB96K.cjs +2 -0
  54. package/dist/CanvaslinevalueWidget-BVfUB96K.cjs.map +1 -0
  55. package/dist/CanvaslinevalueWidget-C3sJnjLQ.js +44 -0
  56. package/dist/CanvaslinevalueWidget-C3sJnjLQ.js.map +1 -0
  57. package/dist/CheckbuttonWidget-5-8YDsQL.js +37 -0
  58. package/dist/CheckbuttonWidget-5-8YDsQL.js.map +1 -0
  59. package/dist/CheckbuttonWidget-BGqD-BGc.cjs +2 -0
  60. package/dist/CheckbuttonWidget-BGqD-BGc.cjs.map +1 -0
  61. package/dist/ComboboxWidget-DoHMlSAr.cjs +2 -0
  62. package/dist/ComboboxWidget-DoHMlSAr.cjs.map +1 -0
  63. package/dist/ComboboxWidget-DzBL8h9f.js +37 -0
  64. package/dist/ComboboxWidget-DzBL8h9f.js.map +1 -0
  65. package/dist/CosmosRuxIcon.vue_vue_type_style_index_0_scoped_9af48e85_lang-BHFhmbuH.cjs +2 -0
  66. package/dist/CosmosRuxIcon.vue_vue_type_style_index_0_scoped_9af48e85_lang-BHFhmbuH.cjs.map +1 -0
  67. package/dist/CosmosRuxIcon.vue_vue_type_style_index_0_scoped_9af48e85_lang-CHgC5LLL.js +10 -0
  68. package/dist/CosmosRuxIcon.vue_vue_type_style_index_0_scoped_9af48e85_lang-CHgC5LLL.js.map +1 -0
  69. package/dist/CriticalCmdDialog-DLEasFsx.js +270 -0
  70. package/dist/CriticalCmdDialog-DLEasFsx.js.map +1 -0
  71. package/dist/CriticalCmdDialog-DoLBrU2k.cjs +2 -0
  72. package/dist/CriticalCmdDialog-DoLBrU2k.cjs.map +1 -0
  73. package/dist/DateWidget-CW7Od7lB.js +40 -0
  74. package/dist/DateWidget-CW7Od7lB.js.map +1 -0
  75. package/dist/DateWidget-DKZz1J9J.cjs +2 -0
  76. package/dist/DateWidget-DKZz1J9J.cjs.map +1 -0
  77. package/dist/DetailsDialog-BvbziA7Y.js +767 -0
  78. package/dist/DetailsDialog-BvbziA7Y.js.map +1 -0
  79. package/dist/DetailsDialog-CiuQYvJK.cjs +2 -0
  80. package/dist/DetailsDialog-CiuQYvJK.cjs.map +1 -0
  81. package/dist/DynamicWidget-3wHr6Ng-.cjs +2 -0
  82. package/dist/DynamicWidget-3wHr6Ng-.cjs.map +1 -0
  83. package/dist/DynamicWidget-gFSYxzvT.js +35 -0
  84. package/dist/DynamicWidget-gFSYxzvT.js.map +1 -0
  85. package/dist/FormatvalueWidget-CGpnTqVH.js +44 -0
  86. package/dist/FormatvalueWidget-CGpnTqVH.js.map +1 -0
  87. package/dist/FormatvalueWidget-DFrbeKb9.cjs +2 -0
  88. package/dist/FormatvalueWidget-DFrbeKb9.cjs.map +1 -0
  89. package/dist/Graph-3rkhFP3G.js +1983 -0
  90. package/dist/Graph-3rkhFP3G.js.map +1 -0
  91. package/dist/Graph-C3vGMcos.cjs +2 -0
  92. package/dist/Graph-C3vGMcos.cjs.map +1 -0
  93. package/dist/GraphWidget-22NxFa9k.cjs +2 -0
  94. package/dist/GraphWidget-22NxFa9k.cjs.map +1 -0
  95. package/dist/GraphWidget-Dycey-mj.js +130 -0
  96. package/dist/GraphWidget-Dycey-mj.js.map +1 -0
  97. package/dist/HorizontalWidget-BBeB0eBI.cjs +2 -0
  98. package/dist/HorizontalWidget-BBeB0eBI.cjs.map +1 -0
  99. package/dist/HorizontalWidget-D31NRWy5.js +41 -0
  100. package/dist/HorizontalWidget-D31NRWy5.js.map +1 -0
  101. package/dist/HorizontalboxWidget-Br8dSVHD.js +38 -0
  102. package/dist/HorizontalboxWidget-Br8dSVHD.js.map +1 -0
  103. package/dist/HorizontalboxWidget-DsdzrCJx.cjs +2 -0
  104. package/dist/HorizontalboxWidget-DsdzrCJx.cjs.map +1 -0
  105. package/dist/HorizontallineWidget-BCKOQase.cjs +2 -0
  106. package/dist/HorizontallineWidget-BCKOQase.cjs.map +1 -0
  107. package/dist/HorizontallineWidget-CbxREBYI.js +11 -0
  108. package/dist/HorizontallineWidget-CbxREBYI.js.map +1 -0
  109. package/dist/IframeWidget-CZwsTgvX.cjs +2 -0
  110. package/dist/IframeWidget-CZwsTgvX.cjs.map +1 -0
  111. package/dist/IframeWidget-Ctj8OIcG.js +90 -0
  112. package/dist/IframeWidget-Ctj8OIcG.js.map +1 -0
  113. package/dist/ImageLoader-BrNrCBvi.js +36 -0
  114. package/dist/ImageLoader-BrNrCBvi.js.map +1 -0
  115. package/dist/ImageLoader-D_Gq-KxR.cjs +2 -0
  116. package/dist/ImageLoader-D_Gq-KxR.cjs.map +1 -0
  117. package/dist/ImageviewerWidget-DwRPFSLR.cjs +2 -0
  118. package/dist/ImageviewerWidget-DwRPFSLR.cjs.map +1 -0
  119. package/dist/ImageviewerWidget-XrsqxmLo.js +37 -0
  120. package/dist/ImageviewerWidget-XrsqxmLo.js.map +1 -0
  121. package/dist/InterfacesTab-CLaicsHA.cjs +2 -0
  122. package/dist/InterfacesTab-CLaicsHA.cjs.map +1 -0
  123. package/dist/InterfacesTab-DAeNlGlB.js +93 -0
  124. package/dist/InterfacesTab-DAeNlGlB.js.map +1 -0
  125. package/dist/LabelWidget-C-s8OVmA.cjs +2 -0
  126. package/dist/LabelWidget-C-s8OVmA.cjs.map +1 -0
  127. package/dist/LabelWidget-t7I87dp7.js +48 -0
  128. package/dist/LabelWidget-t7I87dp7.js.map +1 -0
  129. package/dist/LabelledWidget-C7TDf92M.js +42 -0
  130. package/dist/LabelledWidget-C7TDf92M.js.map +1 -0
  131. package/dist/LabelledWidget-DUpHxc9z.cjs +2 -0
  132. package/dist/LabelledWidget-DUpHxc9z.cjs.map +1 -0
  133. package/dist/LabelprogressbarWidget-D6cpayCR.cjs +2 -0
  134. package/dist/LabelprogressbarWidget-D6cpayCR.cjs.map +1 -0
  135. package/dist/LabelprogressbarWidget-wwLURt1u.js +43 -0
  136. package/dist/LabelprogressbarWidget-wwLURt1u.js.map +1 -0
  137. package/dist/LabelsparklineWidget-B3awLUyP.js +44 -0
  138. package/dist/LabelsparklineWidget-B3awLUyP.js.map +1 -0
  139. package/dist/LabelsparklineWidget-CJRnLETe.cjs +2 -0
  140. package/dist/LabelsparklineWidget-CJRnLETe.cjs.map +1 -0
  141. package/dist/LabelvalueWidget-Zx_yHCtl.js +58 -0
  142. package/dist/LabelvalueWidget-Zx_yHCtl.js.map +1 -0
  143. package/dist/LabelvalueWidget-owiMSCYl.cjs +2 -0
  144. package/dist/LabelvalueWidget-owiMSCYl.cjs.map +1 -0
  145. package/dist/LabelvaluedescWidget-BBSBh4vI.js +59 -0
  146. package/dist/LabelvaluedescWidget-BBSBh4vI.js.map +1 -0
  147. package/dist/LabelvaluedescWidget-MRmZBUc0.cjs +2 -0
  148. package/dist/LabelvaluedescWidget-MRmZBUc0.cjs.map +1 -0
  149. package/dist/LabelvaluelimitsbarWidget-BQ2XYPNE.cjs +2 -0
  150. package/dist/LabelvaluelimitsbarWidget-BQ2XYPNE.cjs.map +1 -0
  151. package/dist/LabelvaluelimitsbarWidget-CZueHYWG.js +57 -0
  152. package/dist/LabelvaluelimitsbarWidget-CZueHYWG.js.map +1 -0
  153. package/dist/LabelvaluelimitscolumnWidget-BTvzyQMq.js +47 -0
  154. package/dist/LabelvaluelimitscolumnWidget-BTvzyQMq.js.map +1 -0
  155. package/dist/LabelvaluelimitscolumnWidget-DNmVpU8J.cjs +2 -0
  156. package/dist/LabelvaluelimitscolumnWidget-DNmVpU8J.cjs.map +1 -0
  157. package/dist/LabelvaluerangebarWidget-BhYTBgDq.js +79 -0
  158. package/dist/LabelvaluerangebarWidget-BhYTBgDq.js.map +1 -0
  159. package/dist/LabelvaluerangebarWidget-DL0U8cbw.cjs +2 -0
  160. package/dist/LabelvaluerangebarWidget-DL0U8cbw.cjs.map +1 -0
  161. package/dist/Layout-Bh7VzCZd.js +14 -0
  162. package/dist/Layout-Bh7VzCZd.js.map +1 -0
  163. package/dist/Layout-DRL0EeSA.cjs +2 -0
  164. package/dist/Layout-DRL0EeSA.cjs.map +1 -0
  165. package/dist/LedWidget-B8rjFe1b.cjs +2 -0
  166. package/dist/LedWidget-B8rjFe1b.cjs.map +1 -0
  167. package/dist/LedWidget-CxJjJBBS.js +71 -0
  168. package/dist/LedWidget-CxJjJBBS.js.map +1 -0
  169. package/dist/LimitsbarWidget-CYIH8fdp.cjs +2 -0
  170. package/dist/LimitsbarWidget-CYIH8fdp.cjs.map +1 -0
  171. package/dist/LimitsbarWidget-Djui0IpK.js +69 -0
  172. package/dist/LimitsbarWidget-Djui0IpK.js.map +1 -0
  173. package/dist/LimitscolorWidget-CS0wpX9A.cjs +2 -0
  174. package/dist/LimitscolorWidget-CS0wpX9A.cjs.map +1 -0
  175. package/dist/LimitscolorWidget-DdmvKzmx.js +63 -0
  176. package/dist/LimitscolorWidget-DdmvKzmx.js.map +1 -0
  177. package/dist/LimitscolumnWidget-C_UW6xKq.cjs +2 -0
  178. package/dist/LimitscolumnWidget-C_UW6xKq.cjs.map +1 -0
  179. package/dist/LimitscolumnWidget-Cc19IEjq.js +66 -0
  180. package/dist/LimitscolumnWidget-Cc19IEjq.js.map +1 -0
  181. package/dist/LinegraphWidget-8td_PqgU.cjs +2 -0
  182. package/dist/LinegraphWidget-8td_PqgU.cjs.map +1 -0
  183. package/dist/LinegraphWidget-BtieJxeL.js +39 -0
  184. package/dist/LinegraphWidget-BtieJxeL.js.map +1 -0
  185. package/dist/MatrixbycolumnsWidget-CGOeCNW2.cjs +2 -0
  186. package/dist/MatrixbycolumnsWidget-CGOeCNW2.cjs.map +1 -0
  187. package/dist/MatrixbycolumnsWidget-DnExVRF8.js +56 -0
  188. package/dist/MatrixbycolumnsWidget-DnExVRF8.js.map +1 -0
  189. package/dist/MicroservicesTab-IbTmbPxO.js +268 -0
  190. package/dist/MicroservicesTab-IbTmbPxO.js.map +1 -0
  191. package/dist/MicroservicesTab-uMC8NebS.cjs +2 -0
  192. package/dist/MicroservicesTab-uMC8NebS.cjs.map +1 -0
  193. package/dist/OutputDialog-B4Q0QMJ1.cjs +2 -0
  194. package/dist/OutputDialog-B4Q0QMJ1.cjs.map +1 -0
  195. package/dist/OutputDialog-Ci5OT_fH.js +245 -0
  196. package/dist/OutputDialog-Ci5OT_fH.js.map +1 -0
  197. package/dist/PackagesTab-BX8YP3H1.js +332 -0
  198. package/dist/PackagesTab-BX8YP3H1.js.map +1 -0
  199. package/dist/PackagesTab-eYbk2vw7.cjs +2 -0
  200. package/dist/PackagesTab-eYbk2vw7.cjs.map +1 -0
  201. package/dist/PluginsTab-Ck3DvEGm.cjs +6 -0
  202. package/dist/PluginsTab-Ck3DvEGm.cjs.map +1 -0
  203. package/dist/PluginsTab-Ds3jk64b.js +599 -0
  204. package/dist/PluginsTab-Ds3jk64b.js.map +1 -0
  205. package/dist/ProgressbarWidget-CUIAYySg.cjs +2 -0
  206. package/dist/ProgressbarWidget-CUIAYySg.cjs.map +1 -0
  207. package/dist/ProgressbarWidget-DIfqhHRE.js +46 -0
  208. package/dist/ProgressbarWidget-DIfqhHRE.js.map +1 -0
  209. package/dist/RadiobuttonWidget-Cjk1JAP_.cjs +2 -0
  210. package/dist/RadiobuttonWidget-Cjk1JAP_.cjs.map +1 -0
  211. package/dist/RadiobuttonWidget-QzIkNP7m.js +34 -0
  212. package/dist/RadiobuttonWidget-QzIkNP7m.js.map +1 -0
  213. package/dist/RadiogroupWidget-B4lkYWaC.cjs +2 -0
  214. package/dist/RadiogroupWidget-B4lkYWaC.cjs.map +1 -0
  215. package/dist/RadiogroupWidget-Ci9sCX39.js +48 -0
  216. package/dist/RadiogroupWidget-Ci9sCX39.js.map +1 -0
  217. package/dist/RangebarWidget-CN0YuHqy.js +67 -0
  218. package/dist/RangebarWidget-CN0YuHqy.js.map +1 -0
  219. package/dist/RangebarWidget-nl0rzj93.cjs +2 -0
  220. package/dist/RangebarWidget-nl0rzj93.cjs.map +1 -0
  221. package/dist/RedisTab-CVimDkIE.js +135 -0
  222. package/dist/RedisTab-CVimDkIE.js.map +1 -0
  223. package/dist/RedisTab-DhS4GHDj.cjs +2 -0
  224. package/dist/RedisTab-DhS4GHDj.cjs.map +1 -0
  225. package/dist/RollupWidget-Bgudi_bt.cjs +2 -0
  226. package/dist/RollupWidget-Bgudi_bt.cjs.map +1 -0
  227. package/dist/RollupWidget-y4jBtJB2.js +83 -0
  228. package/dist/RollupWidget-y4jBtJB2.js.map +1 -0
  229. package/dist/RoutersTab-CzO10cVP.cjs +2 -0
  230. package/dist/RoutersTab-CzO10cVP.cjs.map +1 -0
  231. package/dist/RoutersTab-Dki_66av.js +95 -0
  232. package/dist/RoutersTab-Dki_66av.js.map +1 -0
  233. package/dist/ScriptChooser-BNm_zXxX.cjs +2 -0
  234. package/dist/ScriptChooser-BNm_zXxX.cjs.map +1 -0
  235. package/dist/ScriptChooser-l5i8c8KP.js +199 -0
  236. package/dist/ScriptChooser-l5i8c8KP.js.map +1 -0
  237. package/dist/ScrollwindowWidget-BIiV7xwi.cjs +2 -0
  238. package/dist/ScrollwindowWidget-BIiV7xwi.cjs.map +1 -0
  239. package/dist/ScrollwindowWidget-CBzYk4Y3.js +45 -0
  240. package/dist/ScrollwindowWidget-CBzYk4Y3.js.map +1 -0
  241. package/dist/SecretsTab-BSzFZ81X.cjs +2 -0
  242. package/dist/SecretsTab-BSzFZ81X.cjs.map +1 -0
  243. package/dist/SecretsTab-BjviaTxh.js +202 -0
  244. package/dist/SecretsTab-BjviaTxh.js.map +1 -0
  245. package/dist/SettingsTab-Bo_dYXgb.js +1382 -0
  246. package/dist/SettingsTab-Bo_dYXgb.js.map +1 -0
  247. package/dist/SettingsTab-DH8LAAoG.cjs +3 -0
  248. package/dist/SettingsTab-DH8LAAoG.cjs.map +1 -0
  249. package/dist/SignalWidget-CvZkvejy.cjs +2 -0
  250. package/dist/SignalWidget-CvZkvejy.cjs.map +1 -0
  251. package/dist/SignalWidget-DQ5Uc2uV.js +66 -0
  252. package/dist/SignalWidget-DQ5Uc2uV.js.map +1 -0
  253. package/dist/SimpleTextDialog-CheuP_ls.js +108 -0
  254. package/dist/SimpleTextDialog-CheuP_ls.js.map +1 -0
  255. package/dist/SimpleTextDialog-DmeNMMCR.cjs +2 -0
  256. package/dist/SimpleTextDialog-DmeNMMCR.cjs.map +1 -0
  257. package/dist/SpacerWidget-6rsc_dSM.js +19 -0
  258. package/dist/SpacerWidget-6rsc_dSM.js.map +1 -0
  259. package/dist/SpacerWidget-BBJR6HBQ.cjs +2 -0
  260. package/dist/SpacerWidget-BBJR6HBQ.cjs.map +1 -0
  261. package/dist/SparklineWidget-BxBLnjAO.cjs +2 -0
  262. package/dist/SparklineWidget-BxBLnjAO.cjs.map +1 -0
  263. package/dist/SparklineWidget-CZtvu2ss.js +48 -0
  264. package/dist/SparklineWidget-CZtvu2ss.js.map +1 -0
  265. package/dist/TabbookWidget-DNALU0jl.js +66 -0
  266. package/dist/TabbookWidget-DNALU0jl.js.map +1 -0
  267. package/dist/TabbookWidget-DyFQnA10.cjs +2 -0
  268. package/dist/TabbookWidget-DyFQnA10.cjs.map +1 -0
  269. package/dist/TargetsTab-Cd8U1aN_.js +129 -0
  270. package/dist/TargetsTab-Cd8U1aN_.js.map +1 -0
  271. package/dist/TargetsTab-DMiOliqg.cjs +2 -0
  272. package/dist/TargetsTab-DMiOliqg.cjs.map +1 -0
  273. package/dist/TextBoxDialog-DvUf3Cak.cjs +2 -0
  274. package/dist/TextBoxDialog-DvUf3Cak.cjs.map +1 -0
  275. package/dist/TextBoxDialog-fHkDTtzI.js +110 -0
  276. package/dist/TextBoxDialog-fHkDTtzI.js.map +1 -0
  277. package/dist/TextboxWidget-5hqPj74D.js +93 -0
  278. package/dist/TextboxWidget-5hqPj74D.js.map +1 -0
  279. package/dist/TextboxWidget-D6lW_dsU.cjs +2 -0
  280. package/dist/TextboxWidget-D6lW_dsU.cjs.map +1 -0
  281. package/dist/TextfieldWidget-Df0ANSiU.js +37 -0
  282. package/dist/TextfieldWidget-Df0ANSiU.js.map +1 -0
  283. package/dist/TextfieldWidget-iHN7-fyF.cjs +2 -0
  284. package/dist/TextfieldWidget-iHN7-fyF.cjs.map +1 -0
  285. package/dist/TimeWidget-C3NZqTEG.cjs +2 -0
  286. package/dist/TimeWidget-C3NZqTEG.cjs.map +1 -0
  287. package/dist/TimeWidget-C6XQMUG2.js +40 -0
  288. package/dist/TimeWidget-C6XQMUG2.js.map +1 -0
  289. package/dist/TitleWidget-B9SPUlbW.js +26 -0
  290. package/dist/TitleWidget-B9SPUlbW.js.map +1 -0
  291. package/dist/TitleWidget-CWZs33c4.cjs +2 -0
  292. package/dist/TitleWidget-CWZs33c4.cjs.map +1 -0
  293. package/dist/ToolsTab-CUpUmkZL.cjs +7 -0
  294. package/dist/ToolsTab-CUpUmkZL.cjs.map +1 -0
  295. package/dist/ToolsTab-Cgpb2nAW.js +1521 -0
  296. package/dist/ToolsTab-Cgpb2nAW.js.map +1 -0
  297. package/dist/TopBar-DuXL27iD.cjs +2 -0
  298. package/dist/TopBar-DuXL27iD.cjs.map +1 -0
  299. package/dist/TopBar-F1jHuFan.js +248 -0
  300. package/dist/TopBar-F1jHuFan.js.map +1 -0
  301. package/dist/UpgradeToEnterpriseDialog-DVcAH30Y.js +95 -0
  302. package/dist/UpgradeToEnterpriseDialog-DVcAH30Y.js.map +1 -0
  303. package/dist/UpgradeToEnterpriseDialog-DfIKahNK.cjs +2 -0
  304. package/dist/UpgradeToEnterpriseDialog-DfIKahNK.cjs.map +1 -0
  305. package/dist/UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_6fa47877_lang-DJX55UPj.cjs +1417 -0
  306. package/dist/UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_6fa47877_lang-DJX55UPj.cjs.map +1 -0
  307. package/dist/UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_6fa47877_lang-iq-jp8dD.js +26941 -0
  308. package/dist/UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_6fa47877_lang-iq-jp8dD.js.map +1 -0
  309. package/dist/VWidget-C2x_zSC2.cjs +2 -0
  310. package/dist/VWidget-C2x_zSC2.cjs.map +1 -0
  311. package/dist/VWidget-C4spAawK.js +323 -0
  312. package/dist/VWidget-C4spAawK.js.map +1 -0
  313. package/dist/ValueWidget-D4RrYVEK.js +116 -0
  314. package/dist/ValueWidget-D4RrYVEK.js.map +1 -0
  315. package/dist/ValueWidget-Do3Yn47P.cjs +2 -0
  316. package/dist/ValueWidget-Do3Yn47P.cjs.map +1 -0
  317. package/dist/ValuelimitsbarWidget-Bc9_Vj_f.js +41 -0
  318. package/dist/ValuelimitsbarWidget-Bc9_Vj_f.js.map +1 -0
  319. package/dist/ValuelimitsbarWidget-DJuh7FOs.cjs +2 -0
  320. package/dist/ValuelimitsbarWidget-DJuh7FOs.cjs.map +1 -0
  321. package/dist/ValuelimitscolumnWidget-BFpG-H7v.cjs +2 -0
  322. package/dist/ValuelimitscolumnWidget-BFpG-H7v.cjs.map +1 -0
  323. package/dist/ValuelimitscolumnWidget-DHKIL7sf.js +40 -0
  324. package/dist/ValuelimitscolumnWidget-DHKIL7sf.js.map +1 -0
  325. package/dist/ValuerangebarWidget-BlZSaiXo.cjs +2 -0
  326. package/dist/ValuerangebarWidget-BlZSaiXo.cjs.map +1 -0
  327. package/dist/ValuerangebarWidget-CecQRIok.js +65 -0
  328. package/dist/ValuerangebarWidget-CecQRIok.js.map +1 -0
  329. package/dist/VerticalWidget--8UErB4q.cjs +2 -0
  330. package/dist/VerticalWidget--8UErB4q.cjs.map +1 -0
  331. package/dist/VerticalWidget-D8jUFxjS.js +40 -0
  332. package/dist/VerticalWidget-D8jUFxjS.js.map +1 -0
  333. package/dist/VerticalboxWidget-B4eGUSYH.js +37 -0
  334. package/dist/VerticalboxWidget-B4eGUSYH.js.map +1 -0
  335. package/dist/VerticalboxWidget-cxHq1WKQ.cjs +2 -0
  336. package/dist/VerticalboxWidget-cxHq1WKQ.cjs.map +1 -0
  337. package/dist/Widget-DNf52jRQ.cjs +2 -0
  338. package/dist/Widget-DNf52jRQ.cjs.map +1 -0
  339. package/dist/Widget-fRCERxGf.js +197 -0
  340. package/dist/Widget-fRCERxGf.js.map +1 -0
  341. package/dist/addMonths-BtG7uZLJ.js +19 -0
  342. package/dist/addMonths-BtG7uZLJ.js.map +1 -0
  343. package/dist/addMonths-n1tnl3ab.cjs +2 -0
  344. package/dist/addMonths-n1tnl3ab.cjs.map +1 -0
  345. package/dist/components.cjs +7 -0
  346. package/dist/components.cjs.map +1 -0
  347. package/dist/components.js +2971 -0
  348. package/dist/components.js.map +1 -0
  349. package/dist/fileIcon-BduOQcTc.cjs +2 -0
  350. package/dist/fileIcon-BduOQcTc.cjs.map +1 -0
  351. package/dist/fileIcon-DqRHb1_Z.js +22 -0
  352. package/dist/fileIcon-DqRHb1_Z.js.map +1 -0
  353. package/dist/format-B22VpiOS.cjs +2 -0
  354. package/dist/format-B22VpiOS.cjs.map +1 -0
  355. package/dist/format-CVeawcIv.js +1295 -0
  356. package/dist/format-CVeawcIv.js.map +1 -0
  357. package/dist/getDefaultOptions-Batab9o8.cjs +2 -0
  358. package/dist/getDefaultOptions-Batab9o8.cjs.map +1 -0
  359. package/dist/getDefaultOptions-BhSDk-Jo.js +8 -0
  360. package/dist/getDefaultOptions-BhSDk-Jo.js.map +1 -0
  361. package/dist/icons/status-dark.png +0 -0
  362. package/dist/icons/status-dark.xcf +0 -0
  363. package/dist/icons/status-light.png +0 -0
  364. package/dist/icons.cjs +2 -0
  365. package/dist/icons.cjs.map +1 -0
  366. package/dist/icons.js +157 -0
  367. package/dist/icons.js.map +1 -0
  368. package/dist/index-Bz_jHTkl.cjs +7 -0
  369. package/dist/index-Bz_jHTkl.cjs.map +1 -0
  370. package/dist/index-CFQnWdPA.js +1705 -0
  371. package/dist/index-CFQnWdPA.js.map +1 -0
  372. package/dist/parse-DnkEsW-3.js +1603 -0
  373. package/dist/parse-DnkEsW-3.js.map +1 -0
  374. package/dist/parse-DwfgQboe.cjs +2 -0
  375. package/dist/parse-DwfgQboe.cjs.map +1 -0
  376. package/dist/plugins.cjs +9 -0
  377. package/dist/plugins.cjs.map +1 -0
  378. package/dist/plugins.js +772 -0
  379. package/dist/plugins.js.map +1 -0
  380. package/dist/timeFilters-8SaYvcH0.cjs +2 -0
  381. package/dist/timeFilters-8SaYvcH0.cjs.map +1 -0
  382. package/dist/timeFilters-CRYpYDdf.js +622 -0
  383. package/dist/timeFilters-CRYpYDdf.js.map +1 -0
  384. package/dist/tools/admin.cjs +13 -0
  385. package/dist/tools/admin.cjs.map +1 -0
  386. package/dist/tools/admin.js +1944 -0
  387. package/dist/tools/admin.js.map +1 -0
  388. package/dist/tools/base.cjs +2 -0
  389. package/dist/tools/base.cjs.map +1 -0
  390. package/dist/tools/base.js +1683 -0
  391. package/dist/tools/base.js.map +1 -0
  392. package/dist/tools/calendar.cjs +2 -0
  393. package/dist/tools/calendar.cjs.map +1 -0
  394. package/dist/tools/calendar.js +1586 -0
  395. package/dist/tools/calendar.js.map +1 -0
  396. package/dist/util.cjs +2 -0
  397. package/dist/util.cjs.map +1 -0
  398. package/dist/util.js +9 -0
  399. package/dist/util.js.map +1 -0
  400. package/dist/vue-common.css +1 -0
  401. package/dist/widgets.cjs +2 -0
  402. package/dist/widgets.cjs.map +1 -0
  403. package/dist/widgets.js +132 -0
  404. package/dist/widgets.js.map +1 -0
  405. package/package.json +7 -7
@@ -0,0 +1,1983 @@
1
+ import { T as K } from "./timeFilters-CRYpYDdf.js";
2
+ import { resolveComponent as u, createBlock as T, openBlock as y, withKeys as X, withCtx as l, createVNode as i, createElementVNode as b, createTextVNode as h, createElementBlock as P, Fragment as F, renderList as j, mergeProps as x, createCommentVNode as S, toDisplayString as E, withModifiers as J, withDirectives as C, normalizeClass as Q, vShow as M, normalizeProps as $, guardReactiveProps as ee } from "vue";
3
+ import { m as te, d as ie, u as I, f as se } from "./UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_6fa47877_lang-iq-jp8dD.js";
4
+ import { _ as W } from "./CosmosRuxIcon.vue_vue_type_style_index_0_scoped_9af48e85_lang-CHgC5LLL.js";
5
+ import { t as q, i as Z } from "./format-CVeawcIv.js";
6
+ import { p as B } 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: [K],
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 Z(B(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 Z(B(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 = q(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 = q(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, m, a, n) {
138
+ const d = u("v-spacer"), o = u("v-toolbar"), p = u("v-tab"), f = u("v-tabs"), v = u("v-text-field"), D = u("v-card-text"), w = u("v-col"), _ = u("v-select"), g = 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"), r = 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] = X((c) => t.$emit("cancel"), ["esc"])),
143
+ "max-width": "700"
144
+ }, {
145
+ default: l(() => [
146
+ i(o, { height: "24" }, {
147
+ default: l(() => [
148
+ i(d),
149
+ e[14] || (e[14] = b("span", null, " Edit Graph ", -1)),
150
+ i(d)
151
+ ]),
152
+ _: 1
153
+ }),
154
+ i(r, { 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
+ h(" Settings ")
165
+ ])),
166
+ _: 1
167
+ }),
168
+ i(p, { value: "1" }, {
169
+ default: l(() => e[16] || (e[16] = [
170
+ h(" Scale / Lines ")
171
+ ])),
172
+ _: 1
173
+ }),
174
+ i(p, { value: "2" }, {
175
+ default: l(() => e[17] || (e[17] = [
176
+ h(" 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(g, null, {
195
+ default: l(() => [
196
+ i(w, null, {
197
+ default: l(() => [
198
+ i(D, { class: "pa-0" }, {
199
+ default: l(() => [
200
+ i(v, {
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
+ h(" Select a start date/time for the graph. Leave blank for start now. ")
234
+ ])),
235
+ _: 1
236
+ }),
237
+ i(g, null, {
238
+ default: l(() => [
239
+ i(w, null, {
240
+ default: l(() => [
241
+ i(v, {
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(v, {
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
+ h(" Select a end date/time for the graph. Leave blank for continuous real-time graphing. ")
272
+ ])),
273
+ _: 1
274
+ }),
275
+ i(g, null, {
276
+ default: l(() => [
277
+ i(w, null, {
278
+ default: l(() => [
279
+ i(v, {
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(v, {
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
+ h(" Set a min or max Y value to override automatic scaling ")
320
+ ])),
321
+ _: 1
322
+ }),
323
+ i(g, { dense: "" }, {
324
+ default: l(() => [
325
+ i(w, { class: "px-2" }, {
326
+ default: l(() => [
327
+ i(v, {
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(v, {
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(d),
363
+ i(O, {
364
+ onClick: e[9] || (e[9] = (c) => n.addLine())
365
+ }, {
366
+ default: l(() => e[21] || (e[21] = [
367
+ h(" 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(g, null, {
381
+ default: l(() => [
382
+ i(w, null, {
383
+ default: l(() => [
384
+ i(v, {
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
+ h("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
+ h(" 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(d),
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
+ h(" Cancel ")
493
+ ])),
494
+ _: 1
495
+ }),
496
+ i(O, {
497
+ variant: "flat",
498
+ onClick: n.closeOk
499
+ }, {
500
+ default: l(() => e[27] || (e[27] = [
501
+ h(" 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]]), me = {
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 te().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
+ }, he = { key: 0 }, pe = { class: "pa-3" };
568
+ function fe(t, e, s, m, a, n) {
569
+ const d = u("v-card-title"), o = u("v-select"), p = u("v-card-text"), f = u("v-spacer"), v = 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] = (g) => n.show = g),
573
+ width: "400",
574
+ onKeydown: e[10] || (e[10] = X((g) => t.success(), ["enter"]))
575
+ }, {
576
+ default: l(() => [
577
+ i(w, null, {
578
+ default: l(() => [
579
+ i(d, { class: "mb-2" }, {
580
+ default: l(() => e[11] || (e[11] = [
581
+ h("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] = (g) => t.editItem.valueType = g),
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] = (g) => t.editItem.reduced = g),
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] = (g) => t.editItem.reducedType = g),
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] = (g) => t.editItem.color = g),
623
+ e[4] || (e[4] = (g) => t.$emit("changeColor", g))
624
+ ],
625
+ class: "mb-2"
626
+ }, null, 8, ["items", "modelValue"]),
627
+ n.limitsNames.length > 1 ? (y(), P("div", he, [
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] = (g) => t.limitsName = g),
636
+ e[6] || (e[6] = (g) => 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(v, {
648
+ variant: "outlined",
649
+ onClick: e[7] || (e[7] = (g) => t.$emit("cancel"))
650
+ }, {
651
+ default: l(() => e[12] || (e[12] = [
652
+ h(" Cancel ")
653
+ ])),
654
+ _: 1
655
+ }),
656
+ i(v, {
657
+ variant: "flat",
658
+ onClick: e[8] || (e[8] = (g) => t.$emit("close", t.editItem))
659
+ }, {
660
+ default: l(() => e[13] || (e[13] = [
661
+ h(" 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(me, [["render", fe]]), ge = {
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: [K],
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
+ (m, a) => {
828
+ const n = {
829
+ spanGaps: !0
830
+ };
831
+ return m.chartSeries.push({
832
+ ...n,
833
+ item: a,
834
+ label: this.formatLabel(a),
835
+ stroke: (d, o) => this.items[o - 1].color,
836
+ width: 2,
837
+ value: (d, o) => typeof o == "string" || isNaN(o) ? "NaN" : o == null ? "--" : o.toFixed(3)
838
+ }), m.overviewSeries.push({
839
+ ...n
840
+ }), m;
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 m = Intl.DateTimeFormat().resolvedOptions().timeZone;
886
+ this.timeZone && this.timeZone !== "local" && (m = 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), m),
893
+ series: [
894
+ {
895
+ label: "Time",
896
+ value: (n, d) => (
897
+ // Convert the unix timestamp into a formatted date / time
898
+ d == null ? "--" : this.formatSeconds(d, 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, d, o) => (p) => {
916
+ this.state === "pause" && n.select.width === 0 && this.$emit("start"), o(p);
917
+ }
918
+ }
919
+ },
920
+ hooks: {
921
+ setScale: [
922
+ (n, d) => {
923
+ if (d === "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"), v = Array.prototype.slice.call(o.childNodes[0].childNodes).indexOf(f), D = n.series[v];
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), m),
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 d = 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: d, max: o }), this.zoomOverview = !1;
986
+ }
987
+ }
988
+ ]
989
+ }
990
+ };
991
+ 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, m) => {
1123
+ let a = s;
1124
+ (this.graphMinY || this.graphMinY === 0) && (a = this.graphMinY);
1125
+ let n = m;
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 m = 0;
1172
+ (this.legendPosition === "right" || this.legendPosition === "left") && (m = document.getElementsByClassName("u-legend")[0].clientWidth);
1173
+ const a = Math.max(document.documentElement.clientWidth, window.innerWidth || 0) - e - m, n = Math.max(
1174
+ document.documentElement.clientHeight,
1175
+ window.innerHeight || 0
1176
+ ), d = 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 - d.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(m, 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, m = 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), d = 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, m - f);
1257
+ }
1258
+ if (t.scales.y.max > this.limitsValues[3]) {
1259
+ let f = m < p ? m : 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 = d < a ? a : d;
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 = m < p ? m : p, v = m < o ? m : o;
1270
+ e.fillRect(s.left, f, s.width, v - 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, v = m < d ? m : d;
1276
+ e.fillRect(s.left, f, s.width, v - f);
1277
+ }
1278
+ } else {
1279
+ const f = t.valToPos(this.limitsValues[4], "y", !0), v = 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, d - _);
1284
+ }
1285
+ if (t.scales.y.max > this.limitsValues[5] && // greenHigh
1286
+ t.scales.y.min < this.limitsValues[2]) {
1287
+ let _ = m < o ? m : o, g = m < v ? m : v;
1288
+ e.fillRect(s.left, _, s.width, g - _);
1289
+ }
1290
+ e.fillStyle = "rgba(0,0,255,0.15)";
1291
+ let D = v < a ? a : v, w = m < f ? m : 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 m = this.data.length;
1308
+ this.graph.addSeries(this.createSeriesConfig(s), m), this.overview && this.overview.addSeries(this.createOverviewSeriesConfig(), m), this.data.splice(m, 0, Array(this.data[0].length)), this.indexes[this.subscriptionKey(s)] = m;
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.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.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, m = t[0].length;
1384
+ if (m === 0 || s > t[0][m - 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 = ie(this.data[0], s, this.bs_comparator);
1390
+ if (a >= 0)
1391
+ this.set_data_at_index(a, s, t[e]);
1392
+ else {
1393
+ let n = -a - 1;
1394
+ for (let d = 0; d < this.data.length; d++)
1395
+ this.data[d].splice(n, 0, null);
1396
+ this.set_data_at_index(n, s, t[e]);
1397
+ }
1398
+ }
1399
+ }
1400
+ if (this.startTime == null && this.data[0][0]) {
1401
+ let e = this.data[0][0] * 1e9;
1402
+ this.$emit("started", e);
1403
+ }
1404
+ this.dataChanged = !0;
1405
+ },
1406
+ bs_comparator: function(t, e) {
1407
+ return t - e;
1408
+ },
1409
+ set_data_at_index: function(t, e, s) {
1410
+ this.data[0][t] = e;
1411
+ for (const [m, a] of Object.entries(s)) {
1412
+ if (m === "time")
1413
+ continue;
1414
+ let n = this.indexes[m];
1415
+ if (n) {
1416
+ let d = this.data[n];
1417
+ if (a != null && a.raw)
1418
+ d[t] = null;
1419
+ else if (typeof a == "string") {
1420
+ if (d[t] = null, !m.includes("__RAW")) {
1421
+ for (let o of this.items)
1422
+ if (this.subscriptionKey(o) === m) {
1423
+ this.selectedItem = o;
1424
+ break;
1425
+ }
1426
+ this.changeItem({
1427
+ valueType: "RAW",
1428
+ reduced: this.selectedItem.reduced,
1429
+ reducedType: this.selectedItem.reducedType
1430
+ });
1431
+ }
1432
+ } else
1433
+ d[t] = a;
1434
+ }
1435
+ }
1436
+ },
1437
+ subscriptionKey: function(t) {
1438
+ let e = `${t.reduced}__TLM__${t.targetName}__${t.packetName}__${t.itemName}__${t.valueType}`;
1439
+ return (t.reduced === "REDUCED_MINUTE" || t.reduced === "REDUCED_HOUR" || t.reduced === "REDUCED_DAY") && (e += `__${t.reducedType}`), e;
1440
+ }
1441
+ }
1442
+ }, ve = { class: "mx-2" }, ye = {
1443
+ class: "pa-1",
1444
+ id: "chart",
1445
+ ref: "chart"
1446
+ }, be = ["id"], we = ["id"], Te = {
1447
+ key: 5,
1448
+ class: "u-series",
1449
+ ref: "info"
1450
+ };
1451
+ function De(t, e, s, m, a, n) {
1452
+ const d = u("v-icon"), o = u("v-tooltip"), p = u("v-spacer"), f = u("v-toolbar"), v = u("v-expand-transition"), D = u("v-card"), w = u("graph-edit-dialog"), _ = u("v-text-field"), g = 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");
1453
+ return y(), P("div", {
1454
+ onClick: e[21] || (e[21] = J((r) => t.$emit("click"), ["prevent"]))
1455
+ }, [
1456
+ i(D, null, {
1457
+ default: l(() => [
1458
+ C(i(f, {
1459
+ height: "24",
1460
+ class: Q(["pl-2 pr-2", s.selectedGraphId === s.id ? "active" : ""])
1461
+ }, {
1462
+ default: l(() => [
1463
+ C(b("div", ve, [
1464
+ i(o, {
1465
+ text: "Errors",
1466
+ location: "top"
1467
+ }, {
1468
+ activator: l(({ props: r }) => [
1469
+ i(d, x(r, {
1470
+ onClick: e[0] || (e[0] = (U) => a.errorDialog = !0)
1471
+ }), {
1472
+ default: l(() => e[22] || (e[22] = [
1473
+ h(" mdi-alert ")
1474
+ ])),
1475
+ _: 2
1476
+ }, 1040)
1477
+ ]),
1478
+ _: 1
1479
+ })
1480
+ ], 512), [
1481
+ [M, a.errors.length !== 0]
1482
+ ]),
1483
+ i(o, {
1484
+ text: "Edit",
1485
+ location: "top"
1486
+ }, {
1487
+ activator: l(({ props: r }) => [
1488
+ i(d, x(r, {
1489
+ onClick: e[1] || (e[1] = (U) => a.editGraph = !0),
1490
+ "data-test": "edit-graph-icon"
1491
+ }), {
1492
+ default: l(() => e[23] || (e[23] = [
1493
+ h(" mdi-pencil ")
1494
+ ])),
1495
+ _: 2
1496
+ }, 1040)
1497
+ ]),
1498
+ _: 1
1499
+ }),
1500
+ i(p),
1501
+ b("span", null, E(a.title), 1),
1502
+ i(p),
1503
+ C(b("div", null, [
1504
+ n.calcFullSize ? (y(), T(o, {
1505
+ key: 0,
1506
+ text: "Collapse",
1507
+ location: "top"
1508
+ }, {
1509
+ activator: l(({ props: r }) => [
1510
+ i(d, x(r, {
1511
+ onClick: n.collapseAll,
1512
+ "data-test": "collapse-all"
1513
+ }), {
1514
+ default: l(() => e[24] || (e[24] = [
1515
+ h(" mdi-arrow-collapse ")
1516
+ ])),
1517
+ _: 2
1518
+ }, 1040, ["onClick"])
1519
+ ]),
1520
+ _: 1
1521
+ })) : (y(), T(o, {
1522
+ key: 1,
1523
+ text: "Expand",
1524
+ location: "top"
1525
+ }, {
1526
+ activator: l(({ props: r }) => [
1527
+ i(d, x(r, {
1528
+ onClick: n.expandAll,
1529
+ "data-test": "expand-all"
1530
+ }), {
1531
+ default: l(() => e[25] || (e[25] = [
1532
+ h(" mdi-arrow-expand ")
1533
+ ])),
1534
+ _: 2
1535
+ }, 1040, ["onClick"])
1536
+ ]),
1537
+ _: 1
1538
+ }))
1539
+ ], 512), [
1540
+ [M, a.expand]
1541
+ ]),
1542
+ C(b("div", null, [
1543
+ a.fullWidth ? (y(), T(o, {
1544
+ key: 0,
1545
+ text: "Collapse Width",
1546
+ location: "top"
1547
+ }, {
1548
+ activator: l(({ props: r }) => [
1549
+ i(d, x(r, {
1550
+ onClick: n.collapseWidth,
1551
+ "data-test": "collapse-width"
1552
+ }), {
1553
+ default: l(() => e[26] || (e[26] = [
1554
+ h(" mdi-arrow-collapse-horizontal ")
1555
+ ])),
1556
+ _: 2
1557
+ }, 1040, ["onClick"])
1558
+ ]),
1559
+ _: 1
1560
+ })) : (y(), T(o, {
1561
+ key: 1,
1562
+ text: "Expand Width",
1563
+ location: "top"
1564
+ }, {
1565
+ activator: l(({ props: r }) => [
1566
+ i(d, x(r, {
1567
+ onClick: n.expandWidth,
1568
+ "data-test": "expand-width"
1569
+ }), {
1570
+ default: l(() => e[27] || (e[27] = [
1571
+ h(" mdi-arrow-expand-horizontal ")
1572
+ ])),
1573
+ _: 2
1574
+ }, 1040, ["onClick"])
1575
+ ]),
1576
+ _: 1
1577
+ }))
1578
+ ], 512), [
1579
+ [M, a.expand]
1580
+ ]),
1581
+ C(b("div", null, [
1582
+ a.fullHeight ? (y(), T(o, {
1583
+ key: 0,
1584
+ text: "Collapse Height",
1585
+ location: "top"
1586
+ }, {
1587
+ activator: l(({ props: r }) => [
1588
+ i(d, x(r, {
1589
+ onClick: n.collapseHeight,
1590
+ "data-test": "collapse-height"
1591
+ }), {
1592
+ default: l(() => e[28] || (e[28] = [
1593
+ h(" mdi-arrow-collapse-vertical ")
1594
+ ])),
1595
+ _: 2
1596
+ }, 1040, ["onClick"])
1597
+ ]),
1598
+ _: 1
1599
+ })) : (y(), T(o, {
1600
+ key: 1,
1601
+ text: "Expand Height",
1602
+ location: "top"
1603
+ }, {
1604
+ activator: l(({ props: r }) => [
1605
+ i(d, x(r, {
1606
+ onClick: n.expandHeight,
1607
+ "data-test": "expand-height"
1608
+ }), {
1609
+ default: l(() => e[29] || (e[29] = [
1610
+ h(" mdi-arrow-expand-vertical ")
1611
+ ])),
1612
+ _: 2
1613
+ }, 1040, ["onClick"])
1614
+ ]),
1615
+ _: 1
1616
+ }))
1617
+ ], 512), [
1618
+ [M, a.expand]
1619
+ ]),
1620
+ a.expand ? (y(), T(o, {
1621
+ key: 0,
1622
+ text: "Minimize",
1623
+ location: "top"
1624
+ }, {
1625
+ activator: l(({ props: r }) => [
1626
+ i(d, x(r, {
1627
+ onClick: n.minMaxTransition,
1628
+ "data-test": "minimize-screen-icon"
1629
+ }), {
1630
+ default: l(() => e[30] || (e[30] = [
1631
+ h(" mdi-window-minimize ")
1632
+ ])),
1633
+ _: 2
1634
+ }, 1040, ["onClick"])
1635
+ ]),
1636
+ _: 1
1637
+ })) : (y(), T(o, {
1638
+ key: 1,
1639
+ text: "Maximize",
1640
+ location: "top"
1641
+ }, {
1642
+ activator: l(({ props: r }) => [
1643
+ i(d, x(r, {
1644
+ onClick: n.minMaxTransition,
1645
+ "data-test": "maximize-screen-icon"
1646
+ }), {
1647
+ default: l(() => e[31] || (e[31] = [
1648
+ h(" mdi-window-maximize ")
1649
+ ])),
1650
+ _: 2
1651
+ }, 1040, ["onClick"])
1652
+ ]),
1653
+ _: 1
1654
+ })),
1655
+ i(o, {
1656
+ text: "Close",
1657
+ location: "top"
1658
+ }, {
1659
+ activator: l(({ props: r }) => [
1660
+ i(d, x(r, {
1661
+ onClick: e[2] || (e[2] = (U) => t.$emit("close-graph")),
1662
+ "data-test": "close-graph-icon"
1663
+ }), {
1664
+ default: l(() => e[32] || (e[32] = [
1665
+ h(" mdi-close-box ")
1666
+ ])),
1667
+ _: 2
1668
+ }, 1040)
1669
+ ]),
1670
+ _: 1
1671
+ })
1672
+ ]),
1673
+ _: 1
1674
+ }, 8, ["class"]), [
1675
+ [M, !a.hideToolbarData]
1676
+ ]),
1677
+ i(v, null, {
1678
+ default: l(() => [
1679
+ C(b("div", ye, [
1680
+ b("div", {
1681
+ id: `chart${s.id}`
1682
+ }, null, 8, be),
1683
+ e[33] || (e[33] = b("div", { id: "betweenCharts" }, null, -1)),
1684
+ C(b("div", {
1685
+ id: `overview${s.id}`
1686
+ }, null, 8, we), [
1687
+ [M, a.showOverview]
1688
+ ])
1689
+ ], 512), [
1690
+ [M, a.expand]
1691
+ ])
1692
+ ]),
1693
+ _: 1
1694
+ })
1695
+ ]),
1696
+ _: 1
1697
+ }),
1698
+ a.editGraph ? (y(), T(w, {
1699
+ key: 0,
1700
+ modelValue: a.editGraph,
1701
+ "onUpdate:modelValue": e[3] || (e[3] = (r) => a.editGraph = r),
1702
+ title: a.title,
1703
+ "legend-position": a.legendPosition,
1704
+ items: a.items,
1705
+ "graph-min-y": a.graphMinY,
1706
+ "graph-max-y": a.graphMaxY,
1707
+ lines: a.lines,
1708
+ colors: a.colors,
1709
+ "start-date-time": a.graphStartDateTime,
1710
+ "end-date-time": a.graphEndDateTime,
1711
+ "time-zone": s.timeZone,
1712
+ onRemove: e[4] || (e[4] = (r) => n.removeItems([r])),
1713
+ onOk: n.editGraphClose,
1714
+ onCancel: e[5] || (e[5] = (r) => a.editGraph = !1)
1715
+ }, 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),
1716
+ i(z, {
1717
+ modelValue: a.errorDialog,
1718
+ "onUpdate:modelValue": e[7] || (e[7] = (r) => a.errorDialog = r),
1719
+ "max-width": "600"
1720
+ }, {
1721
+ default: l(() => [
1722
+ i(f, { height: "24" }, {
1723
+ default: l(() => [
1724
+ i(p),
1725
+ e[34] || (e[34] = b("span", null, " Errors ", -1)),
1726
+ i(p)
1727
+ ]),
1728
+ _: 1
1729
+ }),
1730
+ i(D, { class: "pa-3" }, {
1731
+ default: l(() => [
1732
+ i(g, { dense: "" }, {
1733
+ default: l(() => [
1734
+ i(_, {
1735
+ readonly: "",
1736
+ "hide-details": "",
1737
+ modelValue: a.title,
1738
+ "onUpdate:modelValue": e[6] || (e[6] = (r) => a.title = r),
1739
+ class: "pb-2",
1740
+ label: "Graph Title"
1741
+ }, null, 8, ["modelValue"])
1742
+ ]),
1743
+ _: 1
1744
+ }),
1745
+ i(g, { class: "my-3" }, {
1746
+ default: l(() => [
1747
+ i(Y, {
1748
+ readonly: "",
1749
+ rows: "8",
1750
+ value: n.error
1751
+ }, null, 8, ["value"])
1752
+ ]),
1753
+ _: 1
1754
+ }),
1755
+ i(g, null, {
1756
+ default: l(() => [
1757
+ i(O, {
1758
+ block: "",
1759
+ onClick: n.clearErrors
1760
+ }, {
1761
+ default: l(() => e[35] || (e[35] = [
1762
+ h(" Clear ")
1763
+ ])),
1764
+ _: 1
1765
+ }, 8, ["onClick"])
1766
+ ]),
1767
+ _: 1
1768
+ })
1769
+ ]),
1770
+ _: 1
1771
+ })
1772
+ ]),
1773
+ _: 1
1774
+ }, 8, ["modelValue"]),
1775
+ a.editGraphMenu ? (y(), T(L, {
1776
+ key: 1,
1777
+ modelValue: a.editGraphMenu,
1778
+ "onUpdate:modelValue": e[9] || (e[9] = (r) => a.editGraphMenu = r),
1779
+ target: [a.editGraphMenuX, a.editGraphMenuY],
1780
+ absolute: "",
1781
+ "offset-y": ""
1782
+ }, {
1783
+ default: l(() => [
1784
+ i(G, null, {
1785
+ default: l(() => [
1786
+ i(V, {
1787
+ onClick: e[8] || (e[8] = (r) => a.editGraph = !0)
1788
+ }, {
1789
+ default: l(() => [
1790
+ i(k, { style: { cursor: "pointer" } }, {
1791
+ default: l(() => [
1792
+ h(" Edit " + E(a.title), 1)
1793
+ ]),
1794
+ _: 1
1795
+ })
1796
+ ]),
1797
+ _: 1
1798
+ })
1799
+ ]),
1800
+ _: 1
1801
+ })
1802
+ ]),
1803
+ _: 1
1804
+ }, 8, ["modelValue", "target"])) : S("", !0),
1805
+ a.editItem ? (y(), T(R, {
1806
+ key: 2,
1807
+ modelValue: a.editItem,
1808
+ "onUpdate:modelValue": e[10] || (e[10] = (r) => a.editItem = r),
1809
+ colors: a.colors,
1810
+ item: a.selectedItem,
1811
+ onChangeColor: n.changeColor,
1812
+ onChangeLimits: n.changeLimits,
1813
+ onCancel: e[11] || (e[11] = (r) => a.editItem = !1),
1814
+ onClose: n.closeEditItem
1815
+ }, null, 8, ["modelValue", "colors", "item", "onChangeColor", "onChangeLimits", "onClose"])) : S("", !0),
1816
+ a.itemMenu ? (y(), T(L, {
1817
+ key: 3,
1818
+ modelValue: a.itemMenu,
1819
+ "onUpdate:modelValue": e[15] || (e[15] = (r) => a.itemMenu = r),
1820
+ target: [a.itemMenuX, a.itemMenuY],
1821
+ absolute: "",
1822
+ "offset-y": ""
1823
+ }, {
1824
+ default: l(() => [
1825
+ i(G, {
1826
+ nav: "",
1827
+ density: "compact"
1828
+ }, {
1829
+ default: l(() => [
1830
+ i(H, null, {
1831
+ default: l(() => [
1832
+ h(E(a.selectedItem.targetName) + " " + E(a.selectedItem.packetName) + " " + E(a.selectedItem.itemName), 1)
1833
+ ]),
1834
+ _: 1
1835
+ }),
1836
+ i(V, {
1837
+ onClick: e[12] || (e[12] = (r) => a.editItem = !0)
1838
+ }, {
1839
+ prepend: l(() => [
1840
+ i(d, { icon: "mdi-pencil" })
1841
+ ]),
1842
+ default: l(() => [
1843
+ i(k, null, {
1844
+ default: l(() => e[36] || (e[36] = [
1845
+ h(" Edit ")
1846
+ ])),
1847
+ _: 1
1848
+ })
1849
+ ]),
1850
+ _: 1
1851
+ }),
1852
+ i(V, {
1853
+ onClick: e[13] || (e[13] = (r) => n.clearData([a.selectedItem]))
1854
+ }, {
1855
+ prepend: l(() => [
1856
+ i(d, { icon: "mdi-eraser" })
1857
+ ]),
1858
+ default: l(() => [
1859
+ i(k, null, {
1860
+ default: l(() => e[37] || (e[37] = [
1861
+ h(" Clear ")
1862
+ ])),
1863
+ _: 1
1864
+ })
1865
+ ]),
1866
+ _: 1
1867
+ }),
1868
+ i(V, {
1869
+ onClick: e[14] || (e[14] = (r) => n.removeItems([a.selectedItem]))
1870
+ }, {
1871
+ prepend: l(() => [
1872
+ i(d, { icon: "mdi-delete" })
1873
+ ]),
1874
+ default: l(() => [
1875
+ i(k, null, {
1876
+ default: l(() => e[38] || (e[38] = [
1877
+ h(" Delete ")
1878
+ ])),
1879
+ _: 1
1880
+ })
1881
+ ]),
1882
+ _: 1
1883
+ })
1884
+ ]),
1885
+ _: 1
1886
+ })
1887
+ ]),
1888
+ _: 1
1889
+ }, 8, ["modelValue", "target"])) : S("", !0),
1890
+ a.legendMenu ? (y(), T(L, {
1891
+ key: 4,
1892
+ modelValue: a.legendMenu,
1893
+ "onUpdate:modelValue": e[20] || (e[20] = (r) => a.legendMenu = r),
1894
+ target: [a.legendMenuX, a.legendMenuY],
1895
+ absolute: "",
1896
+ "offset-y": ""
1897
+ }, {
1898
+ default: l(() => [
1899
+ i(G, null, {
1900
+ default: l(() => [
1901
+ i(V, {
1902
+ onClick: e[16] || (e[16] = (r) => n.moveLegend("top"))
1903
+ }, {
1904
+ default: l(() => [
1905
+ i(k, { style: { cursor: "pointer" } }, {
1906
+ default: l(() => e[39] || (e[39] = [
1907
+ h(" Legend Top ")
1908
+ ])),
1909
+ _: 1
1910
+ })
1911
+ ]),
1912
+ _: 1
1913
+ }),
1914
+ i(V, {
1915
+ onClick: e[17] || (e[17] = (r) => n.moveLegend("bottom"))
1916
+ }, {
1917
+ default: l(() => [
1918
+ i(k, { style: { cursor: "pointer" } }, {
1919
+ default: l(() => e[40] || (e[40] = [
1920
+ h(" Legend Bottom ")
1921
+ ])),
1922
+ _: 1
1923
+ })
1924
+ ]),
1925
+ _: 1
1926
+ }),
1927
+ i(V, {
1928
+ onClick: e[18] || (e[18] = (r) => n.moveLegend("left"))
1929
+ }, {
1930
+ default: l(() => [
1931
+ i(k, { style: { cursor: "pointer" } }, {
1932
+ default: l(() => e[41] || (e[41] = [
1933
+ h(" Legend Left ")
1934
+ ])),
1935
+ _: 1
1936
+ })
1937
+ ]),
1938
+ _: 1
1939
+ }),
1940
+ i(V, {
1941
+ onClick: e[19] || (e[19] = (r) => n.moveLegend("right"))
1942
+ }, {
1943
+ default: l(() => [
1944
+ i(k, { style: { cursor: "pointer" } }, {
1945
+ default: l(() => e[42] || (e[42] = [
1946
+ h(" Legend RIght ")
1947
+ ])),
1948
+ _: 1
1949
+ })
1950
+ ]),
1951
+ _: 1
1952
+ })
1953
+ ]),
1954
+ _: 1
1955
+ })
1956
+ ]),
1957
+ _: 1
1958
+ }, 8, ["modelValue", "target"])) : S("", !0),
1959
+ s.sparkline ? S("", !0) : (y(), P("div", Te, [
1960
+ i(o, {
1961
+ text: "Click item to toggle, Right click to edit",
1962
+ location: "top"
1963
+ }, {
1964
+ activator: l(({ props: r }) => [
1965
+ i(d, $(ee(r)), {
1966
+ default: l(() => e[43] || (e[43] = [
1967
+ h(" mdi-information-variant-circle ")
1968
+ ])),
1969
+ _: 2
1970
+ }, 1040)
1971
+ ]),
1972
+ _: 1
1973
+ })
1974
+ ], 512))
1975
+ ]);
1976
+ }
1977
+ const Se = /* @__PURE__ */ W(ge, [["render", De], ["__scopeId", "data-v-c22a9887"]]);
1978
+ export {
1979
+ Se as G,
1980
+ ue as a,
1981
+ ce as b
1982
+ };
1983
+ //# sourceMappingURL=Graph-3rkhFP3G.js.map