@openc3/vue-common 5.21.0-beta0 → 6.0.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 (397) hide show
  1. package/package.json +16 -16
  2. package/dist/ArrayWidget-ChaMDaRA.js +0 -105
  3. package/dist/ArrayWidget-ChaMDaRA.js.map +0 -1
  4. package/dist/ArrayWidget-x7le0X73.cjs +0 -3
  5. package/dist/ArrayWidget-x7le0X73.cjs.map +0 -1
  6. package/dist/AstroStatus-CILMWL6F.cjs +0 -2
  7. package/dist/AstroStatus-CILMWL6F.cjs.map +0 -1
  8. package/dist/AstroStatus-CY9VkeTN.js +0 -40
  9. package/dist/AstroStatus-CY9VkeTN.js.map +0 -1
  10. package/dist/BarColumn-CqXfFAQ9.js +0 -106
  11. package/dist/BarColumn-CqXfFAQ9.js.map +0 -1
  12. package/dist/BarColumn-Ct4izXqV.cjs +0 -2
  13. package/dist/BarColumn-Ct4izXqV.cjs.map +0 -1
  14. package/dist/BlockWidget-BPefRY_h.cjs +0 -3
  15. package/dist/BlockWidget-BPefRY_h.cjs.map +0 -1
  16. package/dist/BlockWidget-DjiPs6ID.js +0 -111
  17. package/dist/BlockWidget-DjiPs6ID.js.map +0 -1
  18. package/dist/ButtonWidget-Dd80CjGt.js +0 -165
  19. package/dist/ButtonWidget-Dd80CjGt.js.map +0 -1
  20. package/dist/ButtonWidget-SoiP15gH.cjs +0 -3
  21. package/dist/ButtonWidget-SoiP15gH.cjs.map +0 -1
  22. package/dist/CanvasWidget-ALHiDq5o.js +0 -39
  23. package/dist/CanvasWidget-ALHiDq5o.js.map +0 -1
  24. package/dist/CanvasWidget-JapjwSXd.cjs +0 -2
  25. package/dist/CanvasWidget-JapjwSXd.cjs.map +0 -1
  26. package/dist/CanvasdotWidget-BU42MGW6.cjs +0 -2
  27. package/dist/CanvasdotWidget-BU42MGW6.cjs.map +0 -1
  28. package/dist/CanvasdotWidget-JkDXGoHm.js +0 -19
  29. package/dist/CanvasdotWidget-JkDXGoHm.js.map +0 -1
  30. package/dist/CanvasimageWidget-CQ_ZlEFj.cjs +0 -2
  31. package/dist/CanvasimageWidget-CQ_ZlEFj.cjs.map +0 -1
  32. package/dist/CanvasimageWidget-CTXlEJgA.js +0 -58
  33. package/dist/CanvasimageWidget-CTXlEJgA.js.map +0 -1
  34. package/dist/CanvasimagevalueWidget-CihOXOHH.js +0 -107
  35. package/dist/CanvasimagevalueWidget-CihOXOHH.js.map +0 -1
  36. package/dist/CanvasimagevalueWidget-DKejEVKr.cjs +0 -2
  37. package/dist/CanvasimagevalueWidget-DKejEVKr.cjs.map +0 -1
  38. package/dist/CanvaslabelWidget-2uD1FRT0.js +0 -23
  39. package/dist/CanvaslabelWidget-2uD1FRT0.js.map +0 -1
  40. package/dist/CanvaslabelWidget-zKoAOaaE.cjs +0 -2
  41. package/dist/CanvaslabelWidget-zKoAOaaE.cjs.map +0 -1
  42. package/dist/CanvaslabelvalueWidget-BCd0ssW9.js +0 -42
  43. package/dist/CanvaslabelvalueWidget-BCd0ssW9.js.map +0 -1
  44. package/dist/CanvaslabelvalueWidget-ZnyvNaVM.cjs +0 -2
  45. package/dist/CanvaslabelvalueWidget-ZnyvNaVM.cjs.map +0 -1
  46. package/dist/CanvaslineWidget-BRFrT-9r.cjs +0 -2
  47. package/dist/CanvaslineWidget-BRFrT-9r.cjs.map +0 -1
  48. package/dist/CanvaslineWidget-Cc8vj_vu.js +0 -28
  49. package/dist/CanvaslineWidget-Cc8vj_vu.js.map +0 -1
  50. package/dist/CanvaslinevalueWidget-CJTmkXEr.js +0 -44
  51. package/dist/CanvaslinevalueWidget-CJTmkXEr.js.map +0 -1
  52. package/dist/CanvaslinevalueWidget-DgIU-2d6.cjs +0 -2
  53. package/dist/CanvaslinevalueWidget-DgIU-2d6.cjs.map +0 -1
  54. package/dist/CheckbuttonWidget-BrUBiJWn.cjs +0 -2
  55. package/dist/CheckbuttonWidget-BrUBiJWn.cjs.map +0 -1
  56. package/dist/CheckbuttonWidget-lZD4wLcB.js +0 -37
  57. package/dist/CheckbuttonWidget-lZD4wLcB.js.map +0 -1
  58. package/dist/ComboboxWidget-BUMleWlR.cjs +0 -2
  59. package/dist/ComboboxWidget-BUMleWlR.cjs.map +0 -1
  60. package/dist/ComboboxWidget-D-nVY2Zf.js +0 -37
  61. package/dist/ComboboxWidget-D-nVY2Zf.js.map +0 -1
  62. package/dist/CosmosRuxIcon.vue_vue_type_style_index_0_scoped_9af48e85_lang-BHFhmbuH.cjs +0 -2
  63. package/dist/CosmosRuxIcon.vue_vue_type_style_index_0_scoped_9af48e85_lang-BHFhmbuH.cjs.map +0 -1
  64. package/dist/CosmosRuxIcon.vue_vue_type_style_index_0_scoped_9af48e85_lang-CHgC5LLL.js +0 -10
  65. package/dist/CosmosRuxIcon.vue_vue_type_style_index_0_scoped_9af48e85_lang-CHgC5LLL.js.map +0 -1
  66. package/dist/CriticalCmdDialog-BvPQYRie.cjs +0 -2
  67. package/dist/CriticalCmdDialog-BvPQYRie.cjs.map +0 -1
  68. package/dist/CriticalCmdDialog-ChYR9_7n.js +0 -270
  69. package/dist/CriticalCmdDialog-ChYR9_7n.js.map +0 -1
  70. package/dist/DateWidget-3e2qqqxw.cjs +0 -2
  71. package/dist/DateWidget-3e2qqqxw.cjs.map +0 -1
  72. package/dist/DateWidget-Bs2NufYI.js +0 -40
  73. package/dist/DateWidget-Bs2NufYI.js.map +0 -1
  74. package/dist/DetailsDialog-8ixZ1oPd.cjs +0 -2
  75. package/dist/DetailsDialog-8ixZ1oPd.cjs.map +0 -1
  76. package/dist/DetailsDialog-ScKx0N2e.js +0 -767
  77. package/dist/DetailsDialog-ScKx0N2e.js.map +0 -1
  78. package/dist/DynamicWidget-3wHr6Ng-.cjs +0 -2
  79. package/dist/DynamicWidget-3wHr6Ng-.cjs.map +0 -1
  80. package/dist/DynamicWidget-m9EliUR2.js +0 -35
  81. package/dist/DynamicWidget-m9EliUR2.js.map +0 -1
  82. package/dist/FormatvalueWidget-DEj59HDj.js +0 -44
  83. package/dist/FormatvalueWidget-DEj59HDj.js.map +0 -1
  84. package/dist/FormatvalueWidget-DK0tTvcs.cjs +0 -2
  85. package/dist/FormatvalueWidget-DK0tTvcs.cjs.map +0 -1
  86. package/dist/Graph-D2frd7mZ.js +0 -1999
  87. package/dist/Graph-D2frd7mZ.js.map +0 -1
  88. package/dist/Graph-DFEMzAGq.cjs +0 -2
  89. package/dist/Graph-DFEMzAGq.cjs.map +0 -1
  90. package/dist/GraphWidget-CbyYREVa.cjs +0 -2
  91. package/dist/GraphWidget-CbyYREVa.cjs.map +0 -1
  92. package/dist/GraphWidget-CvlfqTgn.js +0 -129
  93. package/dist/GraphWidget-CvlfqTgn.js.map +0 -1
  94. package/dist/HorizontalWidget-BEOYwm8D.js +0 -41
  95. package/dist/HorizontalWidget-BEOYwm8D.js.map +0 -1
  96. package/dist/HorizontalWidget-xEd4ZLsc.cjs +0 -2
  97. package/dist/HorizontalWidget-xEd4ZLsc.cjs.map +0 -1
  98. package/dist/HorizontalboxWidget-C2wA9_HA.js +0 -38
  99. package/dist/HorizontalboxWidget-C2wA9_HA.js.map +0 -1
  100. package/dist/HorizontalboxWidget-xwLnkDXf.cjs +0 -2
  101. package/dist/HorizontalboxWidget-xwLnkDXf.cjs.map +0 -1
  102. package/dist/HorizontallineWidget-BCKOQase.cjs +0 -2
  103. package/dist/HorizontallineWidget-BCKOQase.cjs.map +0 -1
  104. package/dist/HorizontallineWidget-BdlNB951.js +0 -11
  105. package/dist/HorizontallineWidget-BdlNB951.js.map +0 -1
  106. package/dist/IframeWidget-C42hZbe_.cjs +0 -2
  107. package/dist/IframeWidget-C42hZbe_.cjs.map +0 -1
  108. package/dist/IframeWidget-qwGlLyoS.js +0 -29
  109. package/dist/IframeWidget-qwGlLyoS.js.map +0 -1
  110. package/dist/ImageLoader-BSTQyLlJ.cjs +0 -2
  111. package/dist/ImageLoader-BSTQyLlJ.cjs.map +0 -1
  112. package/dist/ImageLoader-CQAyutzR.js +0 -36
  113. package/dist/ImageLoader-CQAyutzR.js.map +0 -1
  114. package/dist/ImageviewerWidget-B0HJk4Tf.cjs +0 -2
  115. package/dist/ImageviewerWidget-B0HJk4Tf.cjs.map +0 -1
  116. package/dist/ImageviewerWidget-CDeYB2QG.js +0 -37
  117. package/dist/ImageviewerWidget-CDeYB2QG.js.map +0 -1
  118. package/dist/InterfacesTab-D-VIrHHf.js +0 -92
  119. package/dist/InterfacesTab-D-VIrHHf.js.map +0 -1
  120. package/dist/InterfacesTab-NTrgd1dN.cjs +0 -2
  121. package/dist/InterfacesTab-NTrgd1dN.cjs.map +0 -1
  122. package/dist/LabelWidget-B1-se7_B.cjs +0 -2
  123. package/dist/LabelWidget-B1-se7_B.cjs.map +0 -1
  124. package/dist/LabelWidget-C5_cj8pA.js +0 -48
  125. package/dist/LabelWidget-C5_cj8pA.js.map +0 -1
  126. package/dist/LabelledWidget-3aDkVYzF.cjs +0 -2
  127. package/dist/LabelledWidget-3aDkVYzF.cjs.map +0 -1
  128. package/dist/LabelledWidget-DWOPmkyP.js +0 -42
  129. package/dist/LabelledWidget-DWOPmkyP.js.map +0 -1
  130. package/dist/LabelprogressbarWidget-DFPXYOTH.js +0 -43
  131. package/dist/LabelprogressbarWidget-DFPXYOTH.js.map +0 -1
  132. package/dist/LabelprogressbarWidget-Dsiw-uBJ.cjs +0 -2
  133. package/dist/LabelprogressbarWidget-Dsiw-uBJ.cjs.map +0 -1
  134. package/dist/LabelsparklineWidget-DG_Q8WOZ.js +0 -44
  135. package/dist/LabelsparklineWidget-DG_Q8WOZ.js.map +0 -1
  136. package/dist/LabelsparklineWidget-w6pdf_eu.cjs +0 -2
  137. package/dist/LabelsparklineWidget-w6pdf_eu.cjs.map +0 -1
  138. package/dist/LabelvalueWidget-CRtYLZfm.cjs +0 -2
  139. package/dist/LabelvalueWidget-CRtYLZfm.cjs.map +0 -1
  140. package/dist/LabelvalueWidget-CxL0zxQr.js +0 -58
  141. package/dist/LabelvalueWidget-CxL0zxQr.js.map +0 -1
  142. package/dist/LabelvaluedescWidget-CF9py8m9.cjs +0 -2
  143. package/dist/LabelvaluedescWidget-CF9py8m9.cjs.map +0 -1
  144. package/dist/LabelvaluedescWidget-ClWPSOeN.js +0 -59
  145. package/dist/LabelvaluedescWidget-ClWPSOeN.js.map +0 -1
  146. package/dist/LabelvaluelimitsbarWidget-DFUH0HNe.cjs +0 -2
  147. package/dist/LabelvaluelimitsbarWidget-DFUH0HNe.cjs.map +0 -1
  148. package/dist/LabelvaluelimitsbarWidget-DUyZ7KXT.js +0 -55
  149. package/dist/LabelvaluelimitsbarWidget-DUyZ7KXT.js.map +0 -1
  150. package/dist/LabelvaluelimitscolumnWidget-DdCNjIEm.js +0 -45
  151. package/dist/LabelvaluelimitscolumnWidget-DdCNjIEm.js.map +0 -1
  152. package/dist/LabelvaluelimitscolumnWidget-k0hVnMUV.cjs +0 -2
  153. package/dist/LabelvaluelimitscolumnWidget-k0hVnMUV.cjs.map +0 -1
  154. package/dist/LabelvaluerangebarWidget-CRqMQa_x.cjs +0 -2
  155. package/dist/LabelvaluerangebarWidget-CRqMQa_x.cjs.map +0 -1
  156. package/dist/LabelvaluerangebarWidget-DGJv44i4.js +0 -79
  157. package/dist/LabelvaluerangebarWidget-DGJv44i4.js.map +0 -1
  158. package/dist/Layout-C1uMy2Sd.js +0 -14
  159. package/dist/Layout-C1uMy2Sd.js.map +0 -1
  160. package/dist/Layout-C2VWUn33.cjs +0 -2
  161. package/dist/Layout-C2VWUn33.cjs.map +0 -1
  162. package/dist/LedWidget-C8LEesIO.js +0 -69
  163. package/dist/LedWidget-C8LEesIO.js.map +0 -1
  164. package/dist/LedWidget-tnHC12fA.cjs +0 -2
  165. package/dist/LedWidget-tnHC12fA.cjs.map +0 -1
  166. package/dist/LimitsbarWidget-DSJvR91d.cjs +0 -2
  167. package/dist/LimitsbarWidget-DSJvR91d.cjs.map +0 -1
  168. package/dist/LimitsbarWidget-DV94AaXX.js +0 -52
  169. package/dist/LimitsbarWidget-DV94AaXX.js.map +0 -1
  170. package/dist/LimitscolorWidget-BWfffXvj.cjs +0 -2
  171. package/dist/LimitscolorWidget-BWfffXvj.cjs.map +0 -1
  172. package/dist/LimitscolorWidget-DT_WG8Jb.js +0 -59
  173. package/dist/LimitscolorWidget-DT_WG8Jb.js.map +0 -1
  174. package/dist/LimitscolumnWidget-Ci2DqqsC.cjs +0 -2
  175. package/dist/LimitscolumnWidget-Ci2DqqsC.cjs.map +0 -1
  176. package/dist/LimitscolumnWidget-yGBCsGuc.js +0 -49
  177. package/dist/LimitscolumnWidget-yGBCsGuc.js.map +0 -1
  178. package/dist/LinegraphWidget-BG43_kkA.js +0 -38
  179. package/dist/LinegraphWidget-BG43_kkA.js.map +0 -1
  180. package/dist/LinegraphWidget-ByTUdpDj.cjs +0 -2
  181. package/dist/LinegraphWidget-ByTUdpDj.cjs.map +0 -1
  182. package/dist/MatrixbycolumnsWidget-Cfp2S5QC.js +0 -56
  183. package/dist/MatrixbycolumnsWidget-Cfp2S5QC.js.map +0 -1
  184. package/dist/MatrixbycolumnsWidget-GHZ6cCcr.cjs +0 -2
  185. package/dist/MatrixbycolumnsWidget-GHZ6cCcr.cjs.map +0 -1
  186. package/dist/MicroservicesTab-BuIftbHc.js +0 -159
  187. package/dist/MicroservicesTab-BuIftbHc.js.map +0 -1
  188. package/dist/MicroservicesTab-CdCozCVI.cjs +0 -2
  189. package/dist/MicroservicesTab-CdCozCVI.cjs.map +0 -1
  190. package/dist/OutputDialog-CjFsDUYh.js +0 -244
  191. package/dist/OutputDialog-CjFsDUYh.js.map +0 -1
  192. package/dist/OutputDialog-Dkn9Fli9.cjs +0 -2
  193. package/dist/OutputDialog-Dkn9Fli9.cjs.map +0 -1
  194. package/dist/PackagesTab-BwTViRcm.js +0 -339
  195. package/dist/PackagesTab-BwTViRcm.js.map +0 -1
  196. package/dist/PackagesTab-DPaJ_JbE.cjs +0 -2
  197. package/dist/PackagesTab-DPaJ_JbE.cjs.map +0 -1
  198. package/dist/PluginsTab-C7GizpA1.cjs +0 -6
  199. package/dist/PluginsTab-C7GizpA1.cjs.map +0 -1
  200. package/dist/PluginsTab-fld_-DT-.js +0 -598
  201. package/dist/PluginsTab-fld_-DT-.js.map +0 -1
  202. package/dist/ProgressbarWidget-BSPuQNU_.js +0 -46
  203. package/dist/ProgressbarWidget-BSPuQNU_.js.map +0 -1
  204. package/dist/ProgressbarWidget-D1wbbnow.cjs +0 -2
  205. package/dist/ProgressbarWidget-D1wbbnow.cjs.map +0 -1
  206. package/dist/RadiobuttonWidget-B4rrjT9j.js +0 -34
  207. package/dist/RadiobuttonWidget-B4rrjT9j.js.map +0 -1
  208. package/dist/RadiobuttonWidget-Bhcj3WY5.cjs +0 -2
  209. package/dist/RadiobuttonWidget-Bhcj3WY5.cjs.map +0 -1
  210. package/dist/RadiogroupWidget-CQrEv3Qs.cjs +0 -2
  211. package/dist/RadiogroupWidget-CQrEv3Qs.cjs.map +0 -1
  212. package/dist/RadiogroupWidget-VncDKxiZ.js +0 -48
  213. package/dist/RadiogroupWidget-VncDKxiZ.js.map +0 -1
  214. package/dist/RangebarWidget-Btu0oj_O.js +0 -67
  215. package/dist/RangebarWidget-Btu0oj_O.js.map +0 -1
  216. package/dist/RangebarWidget-CKmh0GEh.cjs +0 -2
  217. package/dist/RangebarWidget-CKmh0GEh.cjs.map +0 -1
  218. package/dist/RedisTab-BPFEQDx-.js +0 -135
  219. package/dist/RedisTab-BPFEQDx-.js.map +0 -1
  220. package/dist/RedisTab-DpbDcxH5.cjs +0 -2
  221. package/dist/RedisTab-DpbDcxH5.cjs.map +0 -1
  222. package/dist/RollupWidget-Bh-Gpi5l.cjs +0 -2
  223. package/dist/RollupWidget-Bh-Gpi5l.cjs.map +0 -1
  224. package/dist/RollupWidget-CIp8Akqq.js +0 -81
  225. package/dist/RollupWidget-CIp8Akqq.js.map +0 -1
  226. package/dist/RoutersTab-CTpmfcgq.js +0 -94
  227. package/dist/RoutersTab-CTpmfcgq.js.map +0 -1
  228. package/dist/RoutersTab-DLQ-_xsb.cjs +0 -2
  229. package/dist/RoutersTab-DLQ-_xsb.cjs.map +0 -1
  230. package/dist/ScriptChooser-Cku5i9C6.cjs +0 -2
  231. package/dist/ScriptChooser-Cku5i9C6.cjs.map +0 -1
  232. package/dist/ScriptChooser-Cx985GFr.js +0 -199
  233. package/dist/ScriptChooser-Cx985GFr.js.map +0 -1
  234. package/dist/ScrollwindowWidget-BIYEL78X.js +0 -45
  235. package/dist/ScrollwindowWidget-BIYEL78X.js.map +0 -1
  236. package/dist/ScrollwindowWidget-DWBLVHz1.cjs +0 -2
  237. package/dist/ScrollwindowWidget-DWBLVHz1.cjs.map +0 -1
  238. package/dist/SecretsTab-CV5WYD3N.cjs +0 -2
  239. package/dist/SecretsTab-CV5WYD3N.cjs.map +0 -1
  240. package/dist/SecretsTab-DfBaqZw2.js +0 -202
  241. package/dist/SecretsTab-DfBaqZw2.js.map +0 -1
  242. package/dist/SettingsTab-B1DNmvM5.js +0 -1282
  243. package/dist/SettingsTab-B1DNmvM5.js.map +0 -1
  244. package/dist/SettingsTab-BKD5vVwv.cjs +0 -2
  245. package/dist/SettingsTab-BKD5vVwv.cjs.map +0 -1
  246. package/dist/SignalWidget-f_2K-phy.js +0 -61
  247. package/dist/SignalWidget-f_2K-phy.js.map +0 -1
  248. package/dist/SignalWidget-vsx411XW.cjs +0 -2
  249. package/dist/SignalWidget-vsx411XW.cjs.map +0 -1
  250. package/dist/SimpleTextDialog-BLlux8b4.js +0 -108
  251. package/dist/SimpleTextDialog-BLlux8b4.js.map +0 -1
  252. package/dist/SimpleTextDialog-D2R3WQXD.cjs +0 -2
  253. package/dist/SimpleTextDialog-D2R3WQXD.cjs.map +0 -1
  254. package/dist/SpacerWidget-DGo6ZjYn.cjs +0 -2
  255. package/dist/SpacerWidget-DGo6ZjYn.cjs.map +0 -1
  256. package/dist/SpacerWidget-YhsM7srQ.js +0 -19
  257. package/dist/SpacerWidget-YhsM7srQ.js.map +0 -1
  258. package/dist/SparklineWidget-Bkx8nwqY.cjs +0 -2
  259. package/dist/SparklineWidget-Bkx8nwqY.cjs.map +0 -1
  260. package/dist/SparklineWidget-CuGChXzf.js +0 -47
  261. package/dist/SparklineWidget-CuGChXzf.js.map +0 -1
  262. package/dist/TabbookWidget-BlDW3n54.js +0 -66
  263. package/dist/TabbookWidget-BlDW3n54.js.map +0 -1
  264. package/dist/TabbookWidget-CDUj7RHp.cjs +0 -2
  265. package/dist/TabbookWidget-CDUj7RHp.cjs.map +0 -1
  266. package/dist/TargetsTab-B2Jw5Kec.js +0 -128
  267. package/dist/TargetsTab-B2Jw5Kec.js.map +0 -1
  268. package/dist/TargetsTab-fON6-iJc.cjs +0 -2
  269. package/dist/TargetsTab-fON6-iJc.cjs.map +0 -1
  270. package/dist/TextBoxDialog-CZ3h4LP-.js +0 -110
  271. package/dist/TextBoxDialog-CZ3h4LP-.js.map +0 -1
  272. package/dist/TextBoxDialog-DvUf3Cak.cjs +0 -2
  273. package/dist/TextBoxDialog-DvUf3Cak.cjs.map +0 -1
  274. package/dist/TextboxWidget-CWXCNL8K.js +0 -92
  275. package/dist/TextboxWidget-CWXCNL8K.js.map +0 -1
  276. package/dist/TextboxWidget-LhNzbjQI.cjs +0 -2
  277. package/dist/TextboxWidget-LhNzbjQI.cjs.map +0 -1
  278. package/dist/TextfieldWidget-AbalSObh.cjs +0 -2
  279. package/dist/TextfieldWidget-AbalSObh.cjs.map +0 -1
  280. package/dist/TextfieldWidget-CRVUO3wk.js +0 -37
  281. package/dist/TextfieldWidget-CRVUO3wk.js.map +0 -1
  282. package/dist/TimeWidget-BUMtokM-.cjs +0 -2
  283. package/dist/TimeWidget-BUMtokM-.cjs.map +0 -1
  284. package/dist/TimeWidget-CDo0yWlB.js +0 -40
  285. package/dist/TimeWidget-CDo0yWlB.js.map +0 -1
  286. package/dist/TitleWidget-Cvjndegg.js +0 -26
  287. package/dist/TitleWidget-Cvjndegg.js.map +0 -1
  288. package/dist/TitleWidget-DWieiIfq.cjs +0 -2
  289. package/dist/TitleWidget-DWieiIfq.cjs.map +0 -1
  290. package/dist/ToolsTab-Bu4syVrX.js +0 -1519
  291. package/dist/ToolsTab-Bu4syVrX.js.map +0 -1
  292. package/dist/ToolsTab-rS3KG7M5.cjs +0 -7
  293. package/dist/ToolsTab-rS3KG7M5.cjs.map +0 -1
  294. package/dist/TopBar-B1dOQ1W9.js +0 -253
  295. package/dist/TopBar-B1dOQ1W9.js.map +0 -1
  296. package/dist/TopBar-_j4ndwSi.cjs +0 -2
  297. package/dist/TopBar-_j4ndwSi.cjs.map +0 -1
  298. package/dist/UpgradeToEnterpriseDialog--cLHsvir.cjs +0 -2
  299. package/dist/UpgradeToEnterpriseDialog--cLHsvir.cjs.map +0 -1
  300. package/dist/UpgradeToEnterpriseDialog-CY9g4hzD.js +0 -95
  301. package/dist/UpgradeToEnterpriseDialog-CY9g4hzD.js.map +0 -1
  302. package/dist/UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_6fa47877_lang-BrapmXxi.js +0 -25215
  303. package/dist/UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_6fa47877_lang-BrapmXxi.js.map +0 -1
  304. package/dist/UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_6fa47877_lang-DdL5xG80.cjs +0 -1416
  305. package/dist/UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_6fa47877_lang-DdL5xG80.cjs.map +0 -1
  306. package/dist/VWidget-BRkvqAVS.cjs +0 -2
  307. package/dist/VWidget-BRkvqAVS.cjs.map +0 -1
  308. package/dist/VWidget-D9Wk0N9r.js +0 -323
  309. package/dist/VWidget-D9Wk0N9r.js.map +0 -1
  310. package/dist/ValueWidget-D3EJcN4C.js +0 -115
  311. package/dist/ValueWidget-D3EJcN4C.js.map +0 -1
  312. package/dist/ValueWidget-DxY7IZvc.cjs +0 -2
  313. package/dist/ValueWidget-DxY7IZvc.cjs.map +0 -1
  314. package/dist/ValuelimitsbarWidget-C5revcun.js +0 -39
  315. package/dist/ValuelimitsbarWidget-C5revcun.js.map +0 -1
  316. package/dist/ValuelimitsbarWidget-Dk6L7fl3.cjs +0 -2
  317. package/dist/ValuelimitsbarWidget-Dk6L7fl3.cjs.map +0 -1
  318. package/dist/ValuelimitscolumnWidget-BBEGOlON.js +0 -38
  319. package/dist/ValuelimitscolumnWidget-BBEGOlON.js.map +0 -1
  320. package/dist/ValuelimitscolumnWidget-YD_Xd3tD.cjs +0 -2
  321. package/dist/ValuelimitscolumnWidget-YD_Xd3tD.cjs.map +0 -1
  322. package/dist/ValuerangebarWidget-BtoenJky.cjs +0 -2
  323. package/dist/ValuerangebarWidget-BtoenJky.cjs.map +0 -1
  324. package/dist/ValuerangebarWidget-D70Xk8rM.js +0 -65
  325. package/dist/ValuerangebarWidget-D70Xk8rM.js.map +0 -1
  326. package/dist/VerticalWidget-Dw11Ey1R.cjs +0 -2
  327. package/dist/VerticalWidget-Dw11Ey1R.cjs.map +0 -1
  328. package/dist/VerticalWidget-RIOu-NI3.js +0 -41
  329. package/dist/VerticalWidget-RIOu-NI3.js.map +0 -1
  330. package/dist/VerticalboxWidget-BUjeAxtO.js +0 -37
  331. package/dist/VerticalboxWidget-BUjeAxtO.js.map +0 -1
  332. package/dist/VerticalboxWidget-DT-OCuyc.cjs +0 -2
  333. package/dist/VerticalboxWidget-DT-OCuyc.cjs.map +0 -1
  334. package/dist/Widget-C-EiCtmV.cjs +0 -2
  335. package/dist/Widget-C-EiCtmV.cjs.map +0 -1
  336. package/dist/Widget-C5V53T-a.js +0 -197
  337. package/dist/Widget-C5V53T-a.js.map +0 -1
  338. package/dist/addMonths-Be4oiWXO.js +0 -19
  339. package/dist/addMonths-Be4oiWXO.js.map +0 -1
  340. package/dist/addMonths-foItT0GW.cjs +0 -2
  341. package/dist/addMonths-foItT0GW.cjs.map +0 -1
  342. package/dist/axios-CXDYiOMX.js +0 -1705
  343. package/dist/axios-CXDYiOMX.js.map +0 -1
  344. package/dist/axios-tuVKNgv9.cjs +0 -7
  345. package/dist/axios-tuVKNgv9.cjs.map +0 -1
  346. package/dist/components.cjs +0 -7
  347. package/dist/components.cjs.map +0 -1
  348. package/dist/components.js +0 -2936
  349. package/dist/components.js.map +0 -1
  350. package/dist/fileIcon-BduOQcTc.cjs +0 -2
  351. package/dist/fileIcon-BduOQcTc.cjs.map +0 -1
  352. package/dist/fileIcon-DqRHb1_Z.js +0 -22
  353. package/dist/fileIcon-DqRHb1_Z.js.map +0 -1
  354. package/dist/format-BDZ4AOJt.cjs +0 -2
  355. package/dist/format-BDZ4AOJt.cjs.map +0 -1
  356. package/dist/format-Da42caYw.js +0 -1229
  357. package/dist/format-Da42caYw.js.map +0 -1
  358. package/dist/icons/status-dark.png +0 -0
  359. package/dist/icons/status-dark.xcf +0 -0
  360. package/dist/icons/status-light.png +0 -0
  361. package/dist/icons.cjs +0 -2
  362. package/dist/icons.cjs.map +0 -1
  363. package/dist/icons.js +0 -157
  364. package/dist/icons.js.map +0 -1
  365. package/dist/parse-BO9ihK1v.cjs +0 -2
  366. package/dist/parse-BO9ihK1v.cjs.map +0 -1
  367. package/dist/parse-dDr1Btat.js +0 -1556
  368. package/dist/parse-dDr1Btat.js.map +0 -1
  369. package/dist/plugins.cjs +0 -9
  370. package/dist/plugins.cjs.map +0 -1
  371. package/dist/plugins.js +0 -771
  372. package/dist/plugins.js.map +0 -1
  373. package/dist/style.css +0 -1
  374. package/dist/timeFilters-CN3Tdo2Z.js +0 -607
  375. package/dist/timeFilters-CN3Tdo2Z.js.map +0 -1
  376. package/dist/timeFilters-DwWhNG4a.cjs +0 -2
  377. package/dist/timeFilters-DwWhNG4a.cjs.map +0 -1
  378. package/dist/tools/admin.cjs +0 -13
  379. package/dist/tools/admin.cjs.map +0 -1
  380. package/dist/tools/admin.js +0 -1909
  381. package/dist/tools/admin.js.map +0 -1
  382. package/dist/tools/base.cjs +0 -2
  383. package/dist/tools/base.cjs.map +0 -1
  384. package/dist/tools/base.js +0 -1580
  385. package/dist/tools/base.js.map +0 -1
  386. package/dist/tools/calendar.cjs +0 -2
  387. package/dist/tools/calendar.cjs.map +0 -1
  388. package/dist/tools/calendar.js +0 -1591
  389. package/dist/tools/calendar.js.map +0 -1
  390. package/dist/util.cjs +0 -2
  391. package/dist/util.cjs.map +0 -1
  392. package/dist/util.js +0 -9
  393. package/dist/util.js.map +0 -1
  394. package/dist/widgets.cjs +0 -2
  395. package/dist/widgets.cjs.map +0 -1
  396. package/dist/widgets.js +0 -130
  397. package/dist/widgets.js.map +0 -1
@@ -1,1580 +0,0 @@
1
- import { n as U, i as B, r as $ } from "../UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_6fa47877_lang-BrapmXxi.js";
2
- import { resolveComponent as a, openBlock as c, createElementBlock as w, createElementVNode as C, toDisplayString as _, createVNode as n, withCtx as i, createTextVNode as f, createBlock as N, createCommentVNode as D, normalizeClass as ee, mergeProps as j, Fragment as V, renderList as Z, withModifiers as L } from "vue";
3
- import { _ as A } from "../CosmosRuxIcon.vue_vue_type_style_index_0_scoped_9af48e85_lang-CHgC5LLL.js";
4
- import { U as x } from "../UpgradeToEnterpriseDialog-CY9g4hzD.js";
5
- import { t as O, c as se, n as W, e as ie, b as G, d as K, h as P, g as ae, f as re } from "../format-Da42caYw.js";
6
- import { registerApplication as le, start as ce, navigateToUrl as ue } from "single-spa";
7
- import { A as de } from "../AstroStatus-CY9VkeTN.js";
8
- import { AstroStatusIndicator as fe, AstroStatusColors as pe, UnknownToAstroStatus as Q } from "../icons.js";
9
- import { a as me } from "../axios-CXDYiOMX.js";
10
- function F(e, t) {
11
- const o = +O(e) - +O(t);
12
- return o < 0 ? -1 : o > 0 ? 1 : o;
13
- }
14
- function he(e) {
15
- return se(e, Date.now());
16
- }
17
- function _e(e, t, o) {
18
- const [l, s] = W(
19
- o == null ? void 0 : o.in,
20
- e,
21
- t
22
- ), r = l.getFullYear() - s.getFullYear(), m = l.getMonth() - s.getMonth();
23
- return r * 12 + m;
24
- }
25
- function ge(e) {
26
- return (t) => {
27
- const l = (e ? Math[e] : Math.trunc)(t);
28
- return l === 0 ? 0 : l;
29
- };
30
- }
31
- function ve(e, t) {
32
- return +O(e) - +O(t);
33
- }
34
- function we(e, t) {
35
- const o = O(e, t == null ? void 0 : t.in);
36
- return o.setHours(23, 59, 59, 999), o;
37
- }
38
- function ye(e, t) {
39
- const o = O(e, t == null ? void 0 : t.in), l = o.getMonth();
40
- return o.setFullYear(o.getFullYear(), l + 1, 0), o.setHours(23, 59, 59, 999), o;
41
- }
42
- function ke(e, t) {
43
- const o = O(e, t == null ? void 0 : t.in);
44
- return +we(o, t) == +ye(o, t);
45
- }
46
- function be(e, t, o) {
47
- const [l, s, r] = W(
48
- o == null ? void 0 : o.in,
49
- e,
50
- e,
51
- t
52
- ), m = F(s, r), u = Math.abs(
53
- _e(s, r)
54
- );
55
- if (u < 1) return 0;
56
- s.getMonth() === 1 && s.getDate() > 27 && s.setDate(30), s.setMonth(s.getMonth() - m * u);
57
- let p = F(s, r) === -m;
58
- ke(l) && u === 1 && F(l, r) === 1 && (p = !1);
59
- const g = m * (u - +p);
60
- return g === 0 ? 0 : g;
61
- }
62
- function Ne(e, t, o) {
63
- const l = ve(e, t) / 1e3;
64
- return ge(o == null ? void 0 : o.roundingMethod)(l);
65
- }
66
- function Se(e, t, o) {
67
- const l = ae(), s = (o == null ? void 0 : o.locale) ?? l.locale ?? ie, r = 2520, m = F(e, t);
68
- if (isNaN(m)) throw new RangeError("Invalid time value");
69
- const u = Object.assign({}, o, {
70
- addSuffix: o == null ? void 0 : o.addSuffix,
71
- comparison: m
72
- }), [p, g] = W(
73
- o == null ? void 0 : o.in,
74
- ...m > 0 ? [t, e] : [e, t]
75
- ), y = Ne(g, p), S = (G(g) - G(p)) / 1e3, h = Math.round((y - S) / 60);
76
- let b;
77
- if (h < 2)
78
- return o != null && o.includeSeconds ? y < 5 ? s.formatDistance("lessThanXSeconds", 5, u) : y < 10 ? s.formatDistance("lessThanXSeconds", 10, u) : y < 20 ? s.formatDistance("lessThanXSeconds", 20, u) : y < 40 ? s.formatDistance("halfAMinute", 0, u) : y < 60 ? s.formatDistance("lessThanXMinutes", 1, u) : s.formatDistance("xMinutes", 1, u) : h === 0 ? s.formatDistance("lessThanXMinutes", 1, u) : s.formatDistance("xMinutes", h, u);
79
- if (h < 45)
80
- return s.formatDistance("xMinutes", h, u);
81
- if (h < 90)
82
- return s.formatDistance("aboutXHours", 1, u);
83
- if (h < K) {
84
- const v = Math.round(h / 60);
85
- return s.formatDistance("aboutXHours", v, u);
86
- } else {
87
- if (h < r)
88
- return s.formatDistance("xDays", 1, u);
89
- if (h < P) {
90
- const v = Math.round(h / K);
91
- return s.formatDistance("xDays", v, u);
92
- } else if (h < P * 2)
93
- return b = Math.round(h / P), s.formatDistance("aboutXMonths", b, u);
94
- }
95
- if (b = be(g, p), b < 12) {
96
- const v = Math.round(h / P);
97
- return s.formatDistance("xMonths", v, u);
98
- } else {
99
- const v = b % 12, T = Math.trunc(b / 12);
100
- return v < 3 ? s.formatDistance("aboutXYears", T, u) : v < 9 ? s.formatDistance("overXYears", T, u) : s.formatDistance("almostXYears", T + 1, u);
101
- }
102
- }
103
- function De(e, t) {
104
- return Se(e, he(e), t);
105
- }
106
- const Ce = {
107
- data: function() {
108
- return {
109
- localDate: /* @__PURE__ */ new Date(),
110
- displayLocal: localStorage.clock_zone === "local",
111
- display24h: !localStorage.clock_12h,
112
- dateMode: localStorage.clock_dateMode || "monthFirst",
113
- intervalCount: 0,
114
- showMenu: !1,
115
- menuX: 0,
116
- menuY: 0
117
- };
118
- },
119
- computed: {
120
- utcDate: function() {
121
- return new Date(
122
- this.localDate.getTime() + this.localDate.getTimezoneOffset() * 6e4
123
- );
124
- },
125
- formatString: function() {
126
- let e;
127
- switch (this.dateMode) {
128
- case "monthFirst":
129
- e = "LL/dd/yyy";
130
- break;
131
- case "dayFirst":
132
- e = "dd/LL/yyy";
133
- break;
134
- case "number":
135
- e = "D";
136
- break;
137
- }
138
- let t;
139
- return this.display24h ? t = "HH:mm:ss" : t = "hh:mm:ss a", `${e} ${t}`;
140
- }
141
- },
142
- watch: {
143
- displayLocal: function(e) {
144
- localStorage.clock_zone = e ? "local" : "utc";
145
- },
146
- display24h: function(e) {
147
- e ? delete localStorage.clock_12h : localStorage.clock_12h = !0;
148
- },
149
- dateMode: function(e) {
150
- e.match(/^monthFirst$|^dayFirst$|^number$/) && (localStorage.clock_dateMode = e);
151
- }
152
- },
153
- created: function() {
154
- setInterval(
155
- () => {
156
- this.intervalCount++, this.localDate = /* @__PURE__ */ new Date();
157
- },
158
- this.intervalCount < 10 ? 100 : 1e3
159
- // get the seconds to about 100ms accuracy
160
- );
161
- },
162
- methods: {
163
- openMenu: function(e) {
164
- e.preventDefault(), this.showMenu = !1, this.menuX = e.clientX, this.menuY = e.clientY, this.$nextTick(() => {
165
- this.showMenu = !0;
166
- });
167
- },
168
- toggleDisplayLocal: function() {
169
- this.displayLocal = !this.displayLocal;
170
- },
171
- toggleDisplay24h: function() {
172
- this.display24h = !this.display24h;
173
- },
174
- setMonthFirst: function() {
175
- this.dateMode = "monthFirst";
176
- },
177
- setDayFirst: function() {
178
- this.dateMode = "dayFirst";
179
- },
180
- setNumber: function() {
181
- this.dateMode = "number";
182
- },
183
- formatDate: function(e, t) {
184
- return re(e, t, { useAdditionalDayOfYearTokens: !0 });
185
- }
186
- }
187
- };
188
- function Te(e, t, o, l, s, r) {
189
- const m = a("v-list-item-title"), u = a("v-list-item"), p = a("v-divider"), g = a("v-list"), y = a("v-menu");
190
- return c(), w("div", null, [
191
- C("span", {
192
- style: { cursor: "context-menu" },
193
- class: "font-weight-bold",
194
- onContextmenu: t[0] || (t[0] = (...S) => r.openMenu && r.openMenu(...S))
195
- }, _(r.formatDate(e.displayLocal ? e.localDate : r.utcDate, r.formatString)) + " (" + _(e.displayLocal ? "local" : "UTC") + ") ", 33),
196
- n(y, {
197
- modelValue: e.showMenu,
198
- "onUpdate:modelValue": t[1] || (t[1] = (S) => e.showMenu = S),
199
- target: [e.menuX, e.menuY]
200
- }, {
201
- default: i(() => [
202
- n(g, null, {
203
- default: i(() => [
204
- n(u, null, {
205
- default: i(() => [
206
- n(m, {
207
- style: { cursor: "pointer" },
208
- onClick: r.toggleDisplayLocal
209
- }, {
210
- default: i(() => [
211
- f(" Display " + _(e.displayLocal ? "UTC" : "local time"), 1)
212
- ]),
213
- _: 1
214
- }, 8, ["onClick"])
215
- ]),
216
- _: 1
217
- }),
218
- n(p),
219
- n(u, null, {
220
- default: i(() => [
221
- n(m, {
222
- style: { cursor: "pointer" },
223
- onClick: r.toggleDisplay24h
224
- }, {
225
- default: i(() => [
226
- f(" Display " + _(e.display24h ? 12 : 24) + " hour clock ", 1)
227
- ]),
228
- _: 1
229
- }, 8, ["onClick"])
230
- ]),
231
- _: 1
232
- }),
233
- n(p),
234
- e.dateMode !== "monthFirst" ? (c(), N(u, { key: 0 }, {
235
- default: i(() => [
236
- n(m, {
237
- style: { cursor: "pointer" },
238
- onClick: r.setMonthFirst
239
- }, {
240
- default: i(() => t[2] || (t[2] = [
241
- f(" Display mm/dd/yyyy ")
242
- ])),
243
- _: 1
244
- }, 8, ["onClick"])
245
- ]),
246
- _: 1
247
- })) : D("", !0),
248
- e.dateMode !== "dayFirst" ? (c(), N(u, { key: 1 }, {
249
- default: i(() => [
250
- n(m, {
251
- style: { cursor: "pointer" },
252
- onClick: r.setDayFirst
253
- }, {
254
- default: i(() => t[3] || (t[3] = [
255
- f(" Display dd/mm/yyyy ")
256
- ])),
257
- _: 1
258
- }, 8, ["onClick"])
259
- ]),
260
- _: 1
261
- })) : D("", !0),
262
- e.dateMode !== "number" ? (c(), N(u, { key: 2 }, {
263
- default: i(() => [
264
- n(m, {
265
- style: { cursor: "pointer" },
266
- onClick: r.setNumber
267
- }, {
268
- default: i(() => t[4] || (t[4] = [
269
- f(" Display day of year ")
270
- ])),
271
- _: 1
272
- }, 8, ["onClick"])
273
- ]),
274
- _: 1
275
- })) : D("", !0)
276
- ]),
277
- _: 1
278
- })
279
- ]),
280
- _: 1
281
- }, 8, ["modelValue", "target"])
282
- ]);
283
- }
284
- const Me = /* @__PURE__ */ A(Ce, [["render", Te]]), Ue = {
285
- components: {
286
- ClockFooter: Me,
287
- UpgradeToEnterpriseDialog: x
288
- },
289
- data() {
290
- return {
291
- icon: "/img/icon.png",
292
- edition: "",
293
- enterprise: !1,
294
- license: "",
295
- sourceUrl: "",
296
- version: "",
297
- showUpgradeToEnterpriseDialog: !1,
298
- chromeless: this.$route.query.chromeless
299
- };
300
- },
301
- created: function() {
302
- this.getSourceUrl(), U.get("/openc3-api/info").then((e) => {
303
- e.data.enterprise ? this.edition = "COSMOS Enterprise" : this.edition = "COSMOS Open Source", this.enterprise = e.data.enterprise, this.license = e.data.license, this.version = e.data.version;
304
- });
305
- },
306
- computed: {
307
- footerClass() {
308
- return this.enterprise ? "enterprise" : "base";
309
- }
310
- },
311
- methods: {
312
- getSourceUrl: function() {
313
- new B().get_settings(["source_url"]).then((e) => {
314
- this.sourceUrl = e[0];
315
- });
316
- },
317
- upgrade: function() {
318
- this.enterprise || (this.showUpgradeToEnterpriseDialog = !0);
319
- }
320
- }
321
- }, Ae = ["src"], Ve = ["href"], Oe = { class: "justify-right" };
322
- function Le(e, t, o, l, s, r) {
323
- const m = a("v-spacer"), u = a("clock-footer"), p = a("upgrade-to-enterprise-dialog"), g = a("v-footer");
324
- return s.chromeless ? D("", !0) : (c(), N(g, {
325
- key: 0,
326
- id: "footer",
327
- app: "",
328
- height: "33"
329
- }, {
330
- default: i(() => [
331
- C("img", {
332
- src: s.icon,
333
- alt: "OpenC3"
334
- }, null, 8, Ae),
335
- C("span", {
336
- class: ee(r.footerClass),
337
- onClick: t[0] || (t[0] = (...y) => r.upgrade && r.upgrade(...y))
338
- }, " OpenC3 " + _(s.edition) + " " + _(s.version) + " © 2024 - License: " + _(s.license), 3),
339
- n(m),
340
- C("a", {
341
- href: s.sourceUrl,
342
- class: "text-white text-decoration-underline"
343
- }, " Source ", 8, Ve),
344
- n(m),
345
- C("div", Oe, [
346
- n(u)
347
- ]),
348
- n(p, {
349
- modelValue: s.showUpgradeToEnterpriseDialog,
350
- "onUpdate:modelValue": t[1] || (t[1] = (y) => s.showUpgradeToEnterpriseDialog = y),
351
- reason: "Enterprise is Commercially Licensed"
352
- }, null, 8, ["modelValue"])
353
- ]),
354
- _: 1
355
- }));
356
- }
357
- const Ct = /* @__PURE__ */ A(Ue, [["render", Le], ["__scopeId", "data-v-90a4c42b"]]), R = 1e3, { highestLevel: Ee, orderByLevel: Ie, groupByLevel: Pe } = de, Re = {
358
- components: {
359
- AstroStatusIndicator: fe
360
- },
361
- props: {
362
- size: {
363
- type: [String, Number],
364
- default: 26
365
- }
366
- },
367
- data: function() {
368
- return {
369
- AstroStatusColors: pe,
370
- alerts: [],
371
- cable: new $(),
372
- scriptCable: new $("/script-api/cable"),
373
- subscription: null,
374
- scriptSubscription: null,
375
- numScripts: 0,
376
- notifications: [],
377
- showNotificationPane: !1,
378
- toastNotification: {},
379
- notificationDialog: !1,
380
- selectedNotification: {},
381
- settingsDialog: !1,
382
- showToast: !0
383
- };
384
- },
385
- computed: {
386
- activeScripts: function() {
387
- return `Scripts: ${this.numScripts}`;
388
- },
389
- notificationVsAlert: function() {
390
- return "notifications";
391
- },
392
- iconStatus: function() {
393
- if (this.unreadNotifications.length === 0)
394
- return "off";
395
- const e = this.unreadNotifications.map((t) => t.level).filter((t, o, l) => l.indexOf(t) === o);
396
- return Q[Ee(e)];
397
- },
398
- readNotifications: function() {
399
- return this.notifications.filter((e) => e.read).sort((e, t) => t.time - e.time);
400
- },
401
- unreadNotifications: function() {
402
- return this.notifications.filter((e) => !e.read).sort((e, t) => t.time - e.time);
403
- },
404
- unreadCount: function() {
405
- return this.unreadNotifications.length;
406
- },
407
- notificationList: function() {
408
- const e = Pe(this.unreadNotifications);
409
- let t = Ie(Object.keys(e), (o) => o).flatMap(
410
- (o) => [{
411
- header: o.charAt(0).toUpperCase() + o.slice(1)
412
- }, ...e[o]]
413
- );
414
- return this.readNotifications.length && (t = t.concat([{ header: "Read" }, ...this.readNotifications])), t;
415
- }
416
- },
417
- watch: {
418
- showNotificationPane: function(e) {
419
- e || (this.selectedNotification.message ? (this.notificationDialog = !1, this.selectedNotification = {}) : this.markAllAsRead());
420
- },
421
- showToast: function(e) {
422
- localStorage.notoast = !e;
423
- }
424
- },
425
- created: function() {
426
- this.showToast = localStorage.notoast === "false", this.subscribe(), this.alerts = this.$store.state.notifyHistory, U.get("/script-api/running-script").then((e) => {
427
- this.numScripts = e.data.length;
428
- });
429
- },
430
- unmounted: function() {
431
- this.subscription && this.subscription.unsubscribe(), this.scriptSubscription && this.scriptSubscription.unsubscribe(), this.cable.disconnect(), this.scriptCable.disconnect();
432
- },
433
- methods: {
434
- getStatus: function(e) {
435
- return Q[e];
436
- },
437
- markAllAsRead: function() {
438
- this.notifications.forEach((e) => {
439
- e.read = !0, (!localStorage.lastReadNotification || localStorage.lastReadNotification < e.msg_id) && (localStorage.lastReadNotification = e.msg_id);
440
- });
441
- },
442
- clearNotifications: function() {
443
- this.markAllAsRead(), this.notifications = [], localStorage.notificationStreamOffset = localStorage.lastReadNotification, this.showNotificationPane = !1;
444
- },
445
- toggleNotificationPane: function() {
446
- this.showNotificationPane = !this.showNotificationPane;
447
- },
448
- toggleSettingsDialog: function() {
449
- this.settingsDialog = !this.settingsDialog;
450
- },
451
- openDialog: function(e, t = !1) {
452
- e.read = !0, (!localStorage.lastReadNotification || localStorage.lastReadNotification < e.msg_id) && (localStorage.lastReadNotification = e.msg_id), this.selectedNotification = e, this.notificationDialog = !0;
453
- },
454
- navigate: function(e) {
455
- window.open(e, "_blank");
456
- },
457
- subscribe: function() {
458
- this.cable.createSubscription(
459
- "MessagesChannel",
460
- window.openc3Scope,
461
- {
462
- received: (e) => this.receiveMessage(e)
463
- },
464
- {
465
- start_offset: localStorage.notificationStreamOffset || localStorage.lastReadNotification,
466
- types: ["notification", "alert", "ephemeral"]
467
- }
468
- ).then((e) => {
469
- this.subscription = e;
470
- }), this.scriptCable.createSubscription("AllScriptsChannel", window.openc3Scope, {
471
- received: (e) => this.receiveScript(e)
472
- }).then((e) => {
473
- this.scriptSubscription = e;
474
- });
475
- },
476
- receiveMessage: function(e) {
477
- this.cable.recordPing(), e.length > R && e.splice(0, e.length - R);
478
- let t = e.filter(
479
- (l) => l.type === "ephemeral"
480
- );
481
- t && t.length > 0 && (e = e.filter((l) => l.type !== "ephemeral"), t.forEach((l) => {
482
- this.$emit("ephemeral", l);
483
- }));
484
- let o = !1;
485
- if (e.forEach((l) => {
486
- l.read = l.msg_id <= localStorage.lastReadNotification, l.level = l.level || "INFO", !l.read && // Don't toast read notifications
487
- ["FATAL", "ERROR", "WARN"].includes(l.level) && (o = !0, this.toastNotification = l);
488
- }), this.showToast && o) {
489
- let l = 5e3;
490
- ["FATAL", "ERROR"].includes(this.toastNotification.level) && (l = null), this.$notify && this.$notify[this.toastNotification.level]({
491
- ...this.toastNotification,
492
- type: "notification",
493
- duration: l,
494
- saveToHistory: !1
495
- });
496
- }
497
- this.notifications.length + e.length > R && this.notifications.splice(
498
- 0,
499
- this.notifications.length + e.length - R
500
- ), this.notifications = this.notifications.concat(e);
501
- },
502
- receiveScript: function(e) {
503
- this.cable.recordPing(), this.numScripts = e.active_scripts;
504
- },
505
- formatShortDateTime: function(e) {
506
- if (!e) return "";
507
- const t = new Date(e / 1e6);
508
- return De(t, { addSuffix: !0 });
509
- }
510
- }
511
- };
512
- function Fe(e, t, o, l, s, r) {
513
- const m = a("v-overlay"), u = a("rux-monitoring-icon"), p = a("v-spacer"), g = a("v-btn"), y = a("v-tooltip"), S = a("v-card-title"), h = a("v-card-text"), b = a("v-divider"), v = a("v-list-subheader"), T = a("rux-status"), E = a("v-list-item-title"), M = a("v-list-item-subtitle"), z = a("v-list-item"), X = a("v-list"), I = a("v-card"), d = a("v-menu"), Y = a("astro-status-indicator"), te = a("v-card-subtitle"), oe = a("v-icon"), q = a("v-card-actions"), J = a("v-dialog"), ne = a("v-switch");
514
- return c(), w("div", null, [
515
- n(m, {
516
- "model-value": e.showNotificationPane,
517
- class: "overlay"
518
- }, null, 8, ["model-value"]),
519
- n(d, {
520
- modelValue: e.showNotificationPane,
521
- "onUpdate:modelValue": t[0] || (t[0] = (k) => e.showNotificationPane = k),
522
- transition: "slide-y-transition",
523
- "close-on-content-click": !1,
524
- offset: [12, 102]
525
- }, {
526
- activator: i(({ props: k }) => [
527
- n(u, j(k, {
528
- class: "rux-icon",
529
- icon: r.notificationVsAlert,
530
- label: "Notifications",
531
- sublabel: r.activeScripts,
532
- status: r.iconStatus,
533
- notifications: r.unreadNotifications.length
534
- }), null, 16, ["icon", "sublabel", "status", "notifications"])
535
- ]),
536
- default: i(() => [
537
- n(I, null, {
538
- default: i(() => [
539
- n(S, { class: "d-flex align-center justify-content-space-between" }, {
540
- default: i(() => [
541
- t[7] || (t[7] = C("span", null, " Notifications ", -1)),
542
- n(p),
543
- n(y, {
544
- location: "top",
545
- "open-delay": "350"
546
- }, {
547
- activator: i(({ props: k }) => [
548
- n(g, j(k, {
549
- class: "ml-1",
550
- icon: "mdi-close-box-multiple ",
551
- variant: "text",
552
- onClick: r.clearNotifications,
553
- "data-test": "clear-notifications"
554
- }), null, 16, ["onClick"])
555
- ]),
556
- default: i(() => [
557
- t[6] || (t[6] = C("span", null, " Clear all ", -1))
558
- ]),
559
- _: 1
560
- }),
561
- n(g, {
562
- icon: "astro:settings",
563
- variant: "text",
564
- onClick: r.toggleSettingsDialog,
565
- class: "ml-1",
566
- "data-test": "notification-settings"
567
- }, null, 8, ["onClick"])
568
- ]),
569
- _: 1
570
- }),
571
- e.notifications.length === 0 ? (c(), N(h, { key: 0 }, {
572
- default: i(() => t[8] || (t[8] = [
573
- f(" No notifications ")
574
- ])),
575
- _: 1
576
- })) : (c(), N(X, {
577
- key: 1,
578
- lines: "two",
579
- width: "420",
580
- "max-height": "80vh",
581
- class: "overflow-y-auto",
582
- "data-test": "notification-list"
583
- }, {
584
- default: i(() => [
585
- (c(!0), w(V, null, Z(r.notificationList, (k, H) => (c(), w(V, null, [
586
- k.header ? (c(), w(V, { key: 0 }, [
587
- H !== 0 ? (c(), N(b, {
588
- key: H,
589
- class: "mb-2"
590
- })) : D("", !0),
591
- (c(), N(v, {
592
- key: k.header
593
- }, {
594
- default: i(() => [
595
- f(_(k.header), 1)
596
- ]),
597
- _: 2
598
- }, 1024))
599
- ], 64)) : (c(), N(z, {
600
- key: `notification-${H}`,
601
- onClick: (_t) => r.openDialog(k),
602
- class: "pl-2"
603
- }, {
604
- prepend: i(() => [
605
- n(T, {
606
- class: "px-2",
607
- status: r.getStatus(k.level)
608
- }, null, 8, ["status"])
609
- ]),
610
- default: i(() => [
611
- n(E, {
612
- class: ee({
613
- "text--secondary": k.read,
614
- "text-wrap": !0
615
- })
616
- }, {
617
- default: i(() => [
618
- f(_(k.message), 1)
619
- ]),
620
- _: 2
621
- }, 1032, ["class"]),
622
- n(M, null, {
623
- default: i(() => [
624
- f(_(r.formatShortDateTime(k.time)), 1)
625
- ]),
626
- _: 2
627
- }, 1024)
628
- ]),
629
- _: 2
630
- }, 1032, ["onClick"]))
631
- ], 64))), 256))
632
- ]),
633
- _: 1
634
- }))
635
- ]),
636
- _: 1
637
- })
638
- ]),
639
- _: 1
640
- }, 8, ["modelValue"]),
641
- n(J, {
642
- modelValue: e.notificationDialog,
643
- "onUpdate:modelValue": t[3] || (t[3] = (k) => e.notificationDialog = k),
644
- width: "600"
645
- }, {
646
- default: i(() => [
647
- n(I, null, {
648
- default: i(() => [
649
- n(S, null, {
650
- default: i(() => [
651
- f(_(e.selectedNotification.message) + " ", 1),
652
- n(p),
653
- n(Y, {
654
- status: e.selectedNotification.level || "INFO"
655
- }, null, 8, ["status"])
656
- ]),
657
- _: 1
658
- }),
659
- n(te, null, {
660
- default: i(() => [
661
- f(_(r.formatShortDateTime(e.selectedNotification.time)), 1)
662
- ]),
663
- _: 1
664
- }),
665
- n(b),
666
- n(q, null, {
667
- default: i(() => [
668
- e.selectedNotification.url ? (c(), N(g, {
669
- key: 0,
670
- color: "primary",
671
- variant: "text",
672
- onClick: t[1] || (t[1] = (k) => r.navigate(e.selectedNotification.url))
673
- }, {
674
- default: i(() => [
675
- t[10] || (t[10] = f(" Open ")),
676
- n(oe, { end: "" }, {
677
- default: i(() => t[9] || (t[9] = [
678
- f(" mdi-open-in-new ")
679
- ])),
680
- _: 1
681
- })
682
- ]),
683
- _: 1
684
- })) : D("", !0),
685
- n(g, {
686
- color: "primary",
687
- variant: "text",
688
- onClick: t[2] || (t[2] = (k) => e.notificationDialog = !1)
689
- }, {
690
- default: i(() => t[11] || (t[11] = [
691
- f(" Close ")
692
- ])),
693
- _: 1
694
- })
695
- ]),
696
- _: 1
697
- })
698
- ]),
699
- _: 1
700
- })
701
- ]),
702
- _: 1
703
- }, 8, ["modelValue"]),
704
- n(J, {
705
- modelValue: e.settingsDialog,
706
- "onUpdate:modelValue": t[5] || (t[5] = (k) => e.settingsDialog = k),
707
- width: "600"
708
- }, {
709
- default: i(() => [
710
- n(I, null, {
711
- default: i(() => [
712
- n(S, null, {
713
- default: i(() => t[12] || (t[12] = [
714
- f(" Notification settings ")
715
- ])),
716
- _: 1
717
- }),
718
- n(h, null, {
719
- default: i(() => [
720
- n(ne, {
721
- modelValue: e.showToast,
722
- "onUpdate:modelValue": t[4] || (t[4] = (k) => e.showToast = k),
723
- label: "Show toasts",
724
- color: "primary"
725
- }, null, 8, ["modelValue"])
726
- ]),
727
- _: 1
728
- }),
729
- n(b),
730
- n(q, null, {
731
- default: i(() => [
732
- n(g, {
733
- color: "primary",
734
- variant: "text",
735
- onClick: r.toggleSettingsDialog
736
- }, {
737
- default: i(() => t[13] || (t[13] = [
738
- f(" Close ")
739
- ])),
740
- _: 1
741
- }, 8, ["onClick"])
742
- ]),
743
- _: 1
744
- })
745
- ]),
746
- _: 1
747
- })
748
- ]),
749
- _: 1
750
- }, 8, ["modelValue"])
751
- ]);
752
- }
753
- const xe = /* @__PURE__ */ A(Re, [["render", Fe], ["__scopeId", "data-v-9bcdc9f6"]]), ze = {
754
- components: {
755
- UpgradeToEnterpriseDialog: x
756
- },
757
- data: function() {
758
- return {
759
- // Open Source only has one scope: 'DEFAULT'
760
- scopes: ["DEFAULT"],
761
- scope: "DEFAULT",
762
- showUpgradeToEnterpriseDialog: !1
763
- };
764
- }
765
- };
766
- function Xe(e, t, o, l, s, r) {
767
- const m = a("v-select"), u = a("upgrade-to-enterprise-dialog");
768
- return c(), w("div", {
769
- style: { cursor: "pointer" },
770
- onClick: t[2] || (t[2] = (p) => e.showUpgradeToEnterpriseDialog = !0)
771
- }, [
772
- n(m, {
773
- modelValue: e.scope,
774
- "onUpdate:modelValue": t[0] || (t[0] = (p) => e.scope = p),
775
- items: e.scopes,
776
- disabled: e.scopes.length <= 1,
777
- label: "Scope",
778
- density: "compact",
779
- variant: "outlined",
780
- "hide-details": "",
781
- style: { "max-width": "150px" }
782
- }, null, 8, ["modelValue", "items", "disabled"]),
783
- n(u, {
784
- modelValue: e.showUpgradeToEnterpriseDialog,
785
- "onUpdate:modelValue": t[1] || (t[1] = (p) => e.showUpgradeToEnterpriseDialog = p),
786
- reason: "Enterprise allows additional Scopes"
787
- }, null, 8, ["modelValue"])
788
- ]);
789
- }
790
- const Ye = /* @__PURE__ */ A(ze, [["render", Xe]]), He = {
791
- components: {
792
- UpgradeToEnterpriseDialog: x
793
- },
794
- props: {
795
- size: {
796
- type: [String, Number],
797
- default: 26
798
- }
799
- },
800
- data: function() {
801
- let e = OpenC3Auth.user();
802
- return {
803
- showUserMenu: !1,
804
- authenticated: !!localStorage.openc3Token,
805
- name: e.name,
806
- // preferred_username is returned by the token (see authorization.rb)
807
- username: e.preferred_username,
808
- showUpgradeToEnterpriseDialog: !1,
809
- activeUsers: ["None"]
810
- };
811
- },
812
- watch: {
813
- // Whenever we show the user menu, refresh the list of active users
814
- showUserMenu: function(e, t) {
815
- e === !0 && this.name !== "Anonymous" && U.get("/openc3-api/users/active").then((o) => {
816
- this.activeUsers = o.data.filter(
817
- (l) => !l.includes(this.name)
818
- ), this.activeUsers.length === 0 && (this.activeUsers = ["None"]);
819
- });
820
- }
821
- },
822
- methods: {
823
- logout: function() {
824
- OpenC3Auth.logout(), U.put(`/openc3-api/users/logout/${this.username}`);
825
- },
826
- login: function() {
827
- OpenC3Auth.login(location.href);
828
- },
829
- roles: function() {
830
- return this.name === "Anonymous" ? "Admin" : OpenC3Auth.userroles().map((e) => this.capitalize(e)).sort().join(", ");
831
- },
832
- capitalize: function(e) {
833
- return e.charAt(0).toUpperCase() + e.slice(1);
834
- }
835
- }
836
- }, je = { style: { "text-align": "center", margin: "5px" } }, Be = { key: 0 }, Ze = { class: "roles" }, We = { class: "pb-3 roles" }, qe = { key: 1 }, Je = {
837
- key: 0,
838
- class: "pa-3"
839
- }, $e = { key: 2 };
840
- function Ge(e, t, o, l, s, r) {
841
- const m = a("v-overlay"), u = a("rux-monitoring-icon"), p = a("v-btn"), g = a("v-row"), y = a("v-card-text"), S = a("v-card"), h = a("v-menu"), b = a("upgrade-to-enterprise-dialog");
842
- return c(), w("div", null, [
843
- n(m, {
844
- "model-value": e.showUserMenu,
845
- class: "overlay"
846
- }, null, 8, ["model-value"]),
847
- n(h, {
848
- modelValue: e.showUserMenu,
849
- "onUpdate:modelValue": t[1] || (t[1] = (v) => e.showUserMenu = v),
850
- transition: "slide-y-transition",
851
- "close-on-content-click": !1,
852
- offset: 20
853
- }, {
854
- activator: i(({ props: v }) => [
855
- n(u, j(v, {
856
- class: "rux-icon",
857
- icon: "person",
858
- status: "off",
859
- label: e.name,
860
- sublabel: r.roles()
861
- }), null, 16, ["label", "sublabel"])
862
- ]),
863
- default: i(() => [
864
- n(S, null, {
865
- default: i(() => [
866
- n(y, { class: "text-center" }, {
867
- default: i(() => [
868
- C("div", je, _(e.name), 1),
869
- e.name !== "Anonymous" ? (c(), w("div", Be, [
870
- C("div", Ze, "Username: " + _(e.username), 1),
871
- C("div", We, "Roles: " + _(r.roles()), 1)
872
- ])) : D("", !0),
873
- e.authenticated ? (c(), w("div", qe, [
874
- n(p, {
875
- block: "",
876
- onClick: r.logout,
877
- color: "primary"
878
- }, {
879
- default: i(() => t[3] || (t[3] = [
880
- f(" Logout ")
881
- ])),
882
- _: 1
883
- }, 8, ["onClick"]),
884
- e.name !== "Anonymous" ? (c(), w("div", Je, [
885
- n(g, { class: "pt-3 user-title" }, {
886
- default: i(() => t[4] || (t[4] = [
887
- f("Other Active Users:")
888
- ])),
889
- _: 1
890
- }),
891
- (c(!0), w(V, null, Z(e.activeUsers, (v, T) => (c(), N(g, {
892
- key: T,
893
- class: "user"
894
- }, {
895
- default: i(() => [
896
- f(_(v), 1)
897
- ]),
898
- _: 2
899
- }, 1024))), 128))
900
- ])) : D("", !0)
901
- ])) : (c(), w("div", $e, [
902
- n(p, {
903
- block: "",
904
- onClick: r.login,
905
- color: "primary"
906
- }, {
907
- default: i(() => t[5] || (t[5] = [
908
- f(" Login ")
909
- ])),
910
- _: 1
911
- }, 8, ["onClick"])
912
- ])),
913
- e.name === "Anonymous" ? (c(), w("div", {
914
- key: 3,
915
- onClick: t[0] || (t[0] = (v) => e.showUpgradeToEnterpriseDialog = !0),
916
- class: "pt-2 link"
917
- }, t[6] || (t[6] = [
918
- f(" Click to learn more about"),
919
- C("br", null, null, -1),
920
- f(" COSMOS Enterprise Edition ")
921
- ]))) : D("", !0)
922
- ]),
923
- _: 1
924
- })
925
- ]),
926
- _: 1
927
- })
928
- ]),
929
- _: 1
930
- }, 8, ["modelValue"]),
931
- n(b, {
932
- modelValue: e.showUpgradeToEnterpriseDialog,
933
- "onUpdate:modelValue": t[2] || (t[2] = (v) => e.showUpgradeToEnterpriseDialog = v),
934
- reason: "Enterprise has individual users with RBAC"
935
- }, null, 8, ["modelValue"])
936
- ]);
937
- }
938
- const Ke = /* @__PURE__ */ A(He, [["render", Ge], ["__scopeId", "data-v-3a353a10"]]), Qe = {
939
- components: {
940
- Notifications: xe,
941
- ScopeSelector: Ye,
942
- UserMenu: Ke,
943
- UpgradeToEnterpriseDialog: x
944
- },
945
- props: {
946
- edition: {
947
- type: String,
948
- default: ""
949
- }
950
- },
951
- data() {
952
- return {
953
- api: new B(),
954
- timeZone: "local",
955
- subtitle: null,
956
- // Update AstroSettings.vue when changing this
957
- astro: {
958
- hideClock: !1
959
- },
960
- items: [],
961
- drawer: !0,
962
- appNav: {},
963
- logo: "/img/logo.png",
964
- initiallyOpen: [],
965
- showUpgradeToEnterpriseDialog: !1,
966
- chromeless: this.$route.query.chromeless
967
- };
968
- },
969
- computed: {
970
- // a computed getter
971
- shownTools: function() {
972
- let e = {};
973
- for (let t of Object.keys(this.appNav))
974
- this.appNav[t].shown && this.appNav[t].category !== "Admin" && (e[t] = this.appNav[t]);
975
- return e;
976
- },
977
- adminTools: function() {
978
- let e = {};
979
- for (let t of Object.keys(this.appNav))
980
- this.appNav[t].shown && this.appNav[t].category === "Admin" && (e[t] = this.appNav[t]);
981
- return e;
982
- },
983
- astroTimeZone: function() {
984
- return this.timeZone === "local" ? Intl.DateTimeFormat().resolvedOptions().timeZone : this.timeZone;
985
- }
986
- },
987
- created() {
988
- this.api.get_setting("astro").then((e) => {
989
- e && (this.astro = JSON.parse(e));
990
- }).catch((e) => {
991
- }), this.api.get_setting("subtitle").then((e) => {
992
- e && (this.subtitle = e);
993
- }).catch((e) => {
994
- }), this.api.get_setting("time_zone").then((e) => {
995
- e && (this.timeZone = e);
996
- }).catch((e) => {
997
- }), U.get("/openc3-api/tools/all", { params: { scope: "DEFAULT" } }).then(
998
- (e) => {
999
- this.appNav = e.data;
1000
- let t = 1;
1001
- for (let o of Object.keys(this.appNav)) {
1002
- if (this.appNav[o].shown) {
1003
- if (this.appNav[o].category && this.appNav[o].category !== "Admin") {
1004
- this.initiallyOpen.includes(this.appNav[o].category) || this.initiallyOpen.push(this.appNav[o].category);
1005
- const l = this.items.filter(
1006
- (s) => s.name === this.appNav[o].category
1007
- );
1008
- l.length === 0 ? (this.items.push({
1009
- id: t,
1010
- name: this.appNav[o].category,
1011
- children: [
1012
- {
1013
- id: t + 1,
1014
- name: this.appNav[o].name,
1015
- icon: this.appNav[o].icon,
1016
- url: this.appNav[o].url,
1017
- inline_url: this.appNav[o].inline_url,
1018
- window: this.appNav[o].window
1019
- }
1020
- ]
1021
- }), t++) : l[0].children.push({
1022
- id: t,
1023
- name: this.appNav[o].name,
1024
- icon: this.appNav[o].icon,
1025
- url: this.appNav[o].url,
1026
- inline_url: this.appNav[o].inline_url,
1027
- window: this.appNav[o].window
1028
- });
1029
- } else this.appNav[o].category || this.items.push({
1030
- id: t,
1031
- name: this.appNav[o].name,
1032
- icon: this.appNav[o].icon,
1033
- url: this.appNav[o].url,
1034
- inline_url: this.appNav[o].inline_url,
1035
- window: this.appNav[o].window
1036
- });
1037
- t++;
1038
- }
1039
- if (this.appNav[o].inline_url && this.appNav[o].window === "INLINE" && this.appNav[o].folder_name && this.appNav[o].folder_name !== "base") {
1040
- let l = this.appNav[o].folder_name, s = "@openc3/tool-" + l;
1041
- le({
1042
- name: s,
1043
- app: () => System.import(s),
1044
- activeWhen: ["/tools/" + l]
1045
- });
1046
- }
1047
- }
1048
- if (ce({
1049
- urlRerouteOnly: !0
1050
- }), window.location.pathname == "/" || window.location.pathname == "/tools" || window.location.pathname == "/tools/") {
1051
- for (let o of Object.keys(this.shownTools))
1052
- if (this.appNav[o].shown) {
1053
- history.replaceState(null, "", this.appNav[o].url);
1054
- break;
1055
- }
1056
- }
1057
- setInterval(() => {
1058
- OpenC3Auth.updateToken(120).then(function(o) {
1059
- o && OpenC3Auth.setTokens();
1060
- });
1061
- }, 6e4);
1062
- }
1063
- );
1064
- },
1065
- methods: {
1066
- navigateToUrl: ue,
1067
- newTabUrl(e) {
1068
- let t = null;
1069
- try {
1070
- e.url[0] == "/" && e.url[1] != "/" ? t = new URL(e.url, window.location.origin) : t = new URL(e.url), t.searchParams.set("scope", window.openc3Scope);
1071
- } catch (o) {
1072
- window.$cosmosNotify.serious({
1073
- title: `Invalid URL '${e.url}' for tool ${e.name}`,
1074
- message: o.message
1075
- }), t.href = "/";
1076
- }
1077
- return t.href;
1078
- }
1079
- }
1080
- }, et = ["src"], tt = { style: { "text-align": "center", "font-size": "18pt" } }, ot = ["href", "onClick"], nt = ["href"], st = ["href", "onClick"], it = ["href", "onClick"], at = ["href"], rt = ["href"], lt = ["href"], ct = ["href"];
1081
- function ut(e, t, o, l, s, r) {
1082
- const m = a("v-btn"), u = a("v-divider"), p = a("v-icon"), g = a("v-treeview"), y = a("v-navigation-drawer"), S = a("rux-icon"), h = a("v-row"), b = a("v-col"), v = a("rux-clock"), T = a("v-spacer"), E = a("scope-selector"), M = a("notifications"), z = a("user-menu"), X = a("v-app-bar"), I = a("upgrade-to-enterprise-dialog");
1083
- return c(), w("div", null, [
1084
- s.chromeless ? D("", !0) : (c(), N(y, {
1085
- key: 0,
1086
- "model-value": s.drawer,
1087
- id: "openc3-nav-drawer"
1088
- }, {
1089
- default: i(() => [
1090
- C("img", {
1091
- src: s.logo,
1092
- class: "logo",
1093
- alt: "OpenC3"
1094
- }, null, 8, et),
1095
- C("div", {
1096
- class: "cosmos",
1097
- onClick: t[0] || (t[0] = (d) => s.showUpgradeToEnterpriseDialog = !0)
1098
- }, " COSMOS "),
1099
- C("div", tt, _(s.subtitle), 1),
1100
- (c(!0), w(V, null, Z(r.adminTools, (d, Y) => (c(), w("div", {
1101
- key: Y,
1102
- class: "ma-3"
1103
- }, [
1104
- n(m, {
1105
- block: "",
1106
- size: "small",
1107
- href: d.url,
1108
- onClick: L(() => r.navigateToUrl(d.url), ["prevent"]),
1109
- class: "fixcenter",
1110
- color: "primary"
1111
- }, {
1112
- default: i(() => t[3] || (t[3] = [
1113
- f(" Admin Console ")
1114
- ])),
1115
- _: 2
1116
- }, 1032, ["href", "onClick"])
1117
- ]))), 128)),
1118
- n(u),
1119
- n(g, {
1120
- items: s.items,
1121
- opened: s.initiallyOpen,
1122
- "item-value": "name",
1123
- density: "compact",
1124
- "open-on-click": ""
1125
- }, {
1126
- prepend: i(({ item: d }) => [
1127
- d.icon ? (c(), w(V, { key: 0 }, [
1128
- d.window === "INLINE" ? (c(), w("a", {
1129
- key: 0,
1130
- href: d.url,
1131
- onClick: L(() => r.navigateToUrl(d.url), ["prevent"])
1132
- }, [
1133
- n(p, { class: "mr-2" }, {
1134
- default: i(() => [
1135
- f(_(d.icon), 1)
1136
- ]),
1137
- _: 2
1138
- }, 1024)
1139
- ], 8, ot)) : (c(), w("a", {
1140
- key: 1,
1141
- href: d.url
1142
- }, [
1143
- n(p, { class: "mr-2" }, {
1144
- default: i(() => [
1145
- f(_(d.icon), 1)
1146
- ]),
1147
- _: 2
1148
- }, 1024)
1149
- ], 8, nt))
1150
- ], 64)) : D("", !0)
1151
- ]),
1152
- title: i(({ item: d }) => [
1153
- d.icon ? (c(), w(V, { key: 1 }, [
1154
- d.window === "INLINE" ? (c(), w("a", {
1155
- key: 0,
1156
- href: d.url,
1157
- onClick: L(() => r.navigateToUrl(d.url), ["prevent"])
1158
- }, _(d.name), 9, it)) : d.window === "IFRAME" ? (c(), w("a", {
1159
- key: 1,
1160
- href: "/tools/iframe?title=" + encodeURIComponent(d.name) + "&url=" + d.url
1161
- }, _(d.name), 9, at)) : d.window === "SAME" ? (c(), w("a", {
1162
- key: 2,
1163
- href: d.url
1164
- }, _(d.name), 9, rt)) : (c(), w("a", {
1165
- key: 3,
1166
- href: d.url,
1167
- target: "_blank"
1168
- }, _(d.name), 9, lt))
1169
- ], 64)) : (c(), w("a", {
1170
- key: 0,
1171
- href: d.url,
1172
- onClick: L(() => r.navigateToUrl(d.url), ["prevent"])
1173
- }, _(d.name), 9, st))
1174
- ]),
1175
- append: i(({ item: d }) => [
1176
- d.icon ? (c(), w("a", {
1177
- key: 0,
1178
- href: r.newTabUrl(d),
1179
- target: "_blank"
1180
- }, [
1181
- n(p, null, {
1182
- default: i(() => t[4] || (t[4] = [
1183
- f("mdi-open-in-new")
1184
- ])),
1185
- _: 1
1186
- })
1187
- ], 8, ct)) : D("", !0)
1188
- ]),
1189
- _: 1
1190
- }, 8, ["items", "opened"])
1191
- ]),
1192
- _: 1
1193
- }, 8, ["model-value"])),
1194
- s.chromeless ? D("", !0) : (c(), N(X, {
1195
- key: 1,
1196
- id: "openc3-app-toolbar"
1197
- }, {
1198
- default: i(() => [
1199
- n(h, {
1200
- class: "flex-nowrap",
1201
- justify: "space-between",
1202
- "no-gutters": ""
1203
- }, {
1204
- default: i(() => [
1205
- n(b, { "align-self": "start" }, {
1206
- default: i(() => [
1207
- n(h, { class: "flex-nowrap" }, {
1208
- default: i(() => [
1209
- n(S, {
1210
- class: "ml-3 mr-2 pa-2",
1211
- size: "small",
1212
- icon: "apps",
1213
- onClick: t[1] || (t[1] = (d) => s.drawer = !s.drawer)
1214
- }),
1215
- t[5] || (t[5] = C("span", { id: "openc3-menu" }, null, -1))
1216
- ]),
1217
- _: 1
1218
- })
1219
- ]),
1220
- _: 1
1221
- }),
1222
- n(b, null, {
1223
- default: i(() => [
1224
- n(h, { class: "clock flex-nowrap mt-0" }, {
1225
- default: i(() => [
1226
- s.astro.hideClock ? D("", !0) : (c(), N(v, {
1227
- key: 0,
1228
- "date-in": "",
1229
- timezone: r.astroTimeZone
1230
- }, null, 8, ["timezone"]))
1231
- ]),
1232
- _: 1
1233
- })
1234
- ]),
1235
- _: 1
1236
- }),
1237
- n(b, {
1238
- "align-self": "center",
1239
- class: "mt-2"
1240
- }, {
1241
- default: i(() => [
1242
- n(h, { class: "flex-nowrap" }, {
1243
- default: i(() => [
1244
- n(T),
1245
- n(E, { class: "mr-6 mt-4" }),
1246
- n(M, {
1247
- class: "mr-6",
1248
- "data-test": "notifications"
1249
- }),
1250
- n(z, { class: "mr-6" })
1251
- ]),
1252
- _: 1
1253
- })
1254
- ]),
1255
- _: 1
1256
- })
1257
- ]),
1258
- _: 1
1259
- })
1260
- ]),
1261
- _: 1
1262
- })),
1263
- n(I, {
1264
- modelValue: s.showUpgradeToEnterpriseDialog,
1265
- "onUpdate:modelValue": t[2] || (t[2] = (d) => s.showUpgradeToEnterpriseDialog = d),
1266
- reason: "Enterprise adds Calendar and Autonomic"
1267
- }, null, 8, ["modelValue"])
1268
- ]);
1269
- }
1270
- const Tt = /* @__PURE__ */ A(Qe, [["render", ut], ["__scopeId", "data-v-d056ee4b"]]), Mt = {
1271
- data: function() {
1272
- return {
1273
- api: null,
1274
- classification: {
1275
- text: "",
1276
- fontColor: "white",
1277
- backgroundColor: "red",
1278
- topHeight: 0,
1279
- bottomHeight: 0
1280
- }
1281
- };
1282
- },
1283
- computed: {
1284
- classificationStyles: function() {
1285
- return [
1286
- `--classification-text:"${this.classification.text}";`,
1287
- `--classification-font-color:${this.classification.fontColor};`,
1288
- `--classification-background-color:${this.classification.backgroundColor};`,
1289
- `--classification-height-top:${this.classification.topHeight}px;`,
1290
- `--classification-height-bottom:${this.classification.bottomHeight}px;`
1291
- ].join("");
1292
- }
1293
- },
1294
- created: function() {
1295
- this.api = new B(), this.load();
1296
- },
1297
- methods: {
1298
- load: function() {
1299
- this.api.get_setting("classification_banner").then((e) => {
1300
- e && (this.classification = JSON.parse(e));
1301
- }).catch((e) => {
1302
- });
1303
- }
1304
- }
1305
- }, dt = {
1306
- data() {
1307
- return {
1308
- isSet: !0,
1309
- password: "",
1310
- confirmPassword: "",
1311
- oldPassword: "",
1312
- reset: !1,
1313
- // setting a password for the first time, or changing to a new password
1314
- alert: "",
1315
- alertType: "success",
1316
- showAlert: !1
1317
- };
1318
- },
1319
- computed: {
1320
- options: function() {
1321
- return {
1322
- noAuth: !0,
1323
- noScope: !0
1324
- // lol
1325
- };
1326
- },
1327
- rules: function() {
1328
- return {
1329
- matchPassword: () => this.password === this.confirmPassword || "Passwords must match"
1330
- };
1331
- },
1332
- formValid: function() {
1333
- return this.reset ? this.isSet ? !!this.oldPassword && !!this.password && this.password === this.confirmPassword : !!this.password && this.password === this.confirmPassword : !!this.password;
1334
- }
1335
- },
1336
- created: function() {
1337
- U.get("/openc3-api/auth/token-exists", this.options).then((e) => {
1338
- this.isSet = !!e.data.result, this.isSet || (this.reset = !0);
1339
- });
1340
- },
1341
- methods: {
1342
- showReset: function() {
1343
- this.reset = !0;
1344
- },
1345
- login: function(e) {
1346
- localStorage.openc3Token = e.data;
1347
- const t = new URLSearchParams(window.location.search).get(
1348
- "redirect"
1349
- );
1350
- t.startsWith("/tools/") ? window.location = decodeURI(t) : window.location = "/";
1351
- },
1352
- verifyPassword: function() {
1353
- this.showAlert = !1, U.post("/openc3-api/auth/verify", {
1354
- data: {
1355
- token: this.password
1356
- },
1357
- ...this.options
1358
- }).then((e) => {
1359
- this.login(e);
1360
- }).catch((e) => {
1361
- this.alert = "Incorrect password", this.alertType = "warning", this.showAlert = !0;
1362
- });
1363
- },
1364
- setPassword: function() {
1365
- this.showAlert = !1, U.post("/openc3-api/auth/set", {
1366
- data: {
1367
- old_token: this.oldPassword,
1368
- token: this.password
1369
- },
1370
- ...this.options
1371
- }).then((e) => {
1372
- this.login(e);
1373
- }).catch((e) => {
1374
- this.alert = `Invalid password: ${e.response.data.message}`, this.alertType = "warning", this.showAlert = !0;
1375
- });
1376
- }
1377
- }
1378
- };
1379
- function ft(e, t, o, l, s, r) {
1380
- const m = a("v-card-title"), u = a("v-card-subtitle"), p = a("v-text-field"), g = a("v-btn"), y = a("v-spacer"), S = a("v-row"), h = a("v-container"), b = a("v-form"), v = a("v-card-text"), T = a("v-alert"), E = a("v-card");
1381
- return c(), N(E, null, {
1382
- default: i(() => [
1383
- n(m, null, {
1384
- default: i(() => t[4] || (t[4] = [
1385
- f(" Login ")
1386
- ])),
1387
- _: 1
1388
- }),
1389
- n(u, null, {
1390
- default: i(() => [
1391
- f(_(s.isSet ? "Enter the" : "Create a") + " password to begin using OpenC3 ", 1)
1392
- ]),
1393
- _: 1
1394
- }),
1395
- n(v, null, {
1396
- default: i(() => [
1397
- n(b, null, {
1398
- default: i(() => [
1399
- s.isSet && s.reset ? (c(), N(p, {
1400
- key: 0,
1401
- modelValue: s.oldPassword,
1402
- "onUpdate:modelValue": t[0] || (t[0] = (M) => s.oldPassword = M),
1403
- type: "password",
1404
- label: "Old Password"
1405
- }, null, 8, ["modelValue"])) : D("", !0),
1406
- n(p, {
1407
- modelValue: s.password,
1408
- "onUpdate:modelValue": t[1] || (t[1] = (M) => s.password = M),
1409
- type: "password",
1410
- label: `${!s.isSet || s.reset ? "New " : ""}Password`,
1411
- "data-test": "new-password"
1412
- }, null, 8, ["modelValue", "label"]),
1413
- s.reset ? (c(), N(p, {
1414
- key: 1,
1415
- modelValue: s.confirmPassword,
1416
- "onUpdate:modelValue": t[2] || (t[2] = (M) => s.confirmPassword = M),
1417
- rules: [r.rules.matchPassword],
1418
- type: "password",
1419
- label: "Confirm Password",
1420
- "data-test": "confirm-password"
1421
- }, null, 8, ["modelValue", "rules"])) : D("", !0),
1422
- s.reset ? (c(), N(g, {
1423
- key: 2,
1424
- type: "submit",
1425
- onClick: L(r.setPassword, ["prevent"]),
1426
- size: "large",
1427
- color: s.isSet ? "warn" : "success",
1428
- disabled: !r.formValid,
1429
- "data-test": "set-password"
1430
- }, {
1431
- default: i(() => t[5] || (t[5] = [
1432
- f(" Set ")
1433
- ])),
1434
- _: 1
1435
- }, 8, ["onClick", "color", "disabled"])) : (c(), N(h, { key: 3 }, {
1436
- default: i(() => [
1437
- n(S, null, {
1438
- default: i(() => [
1439
- n(g, {
1440
- type: "submit",
1441
- onClick: L(r.verifyPassword, ["prevent"]),
1442
- size: "large",
1443
- color: "success",
1444
- disabled: !r.formValid
1445
- }, {
1446
- default: i(() => t[6] || (t[6] = [
1447
- f(" Login ")
1448
- ])),
1449
- _: 1
1450
- }, 8, ["onClick", "disabled"]),
1451
- n(y),
1452
- n(g, {
1453
- variant: "text",
1454
- size: "small",
1455
- onClick: r.showReset
1456
- }, {
1457
- default: i(() => t[7] || (t[7] = [
1458
- f(" Change Password ")
1459
- ])),
1460
- _: 1
1461
- }, 8, ["onClick"])
1462
- ]),
1463
- _: 1
1464
- })
1465
- ]),
1466
- _: 1
1467
- }))
1468
- ]),
1469
- _: 1
1470
- })
1471
- ]),
1472
- _: 1
1473
- }),
1474
- n(T, {
1475
- type: s.alertType,
1476
- modelValue: s.showAlert,
1477
- "onUpdate:modelValue": t[3] || (t[3] = (M) => s.showAlert = M),
1478
- closable: ""
1479
- }, {
1480
- default: i(() => [
1481
- f(_(s.alert), 1)
1482
- ]),
1483
- _: 1
1484
- }, 8, ["type", "modelValue"])
1485
- ]),
1486
- _: 1
1487
- });
1488
- }
1489
- const Ut = /* @__PURE__ */ A(dt, [["render", ft]]), pt = 3e3, mt = {
1490
- data: function() {
1491
- return {
1492
- dismissed: !1,
1493
- suppress: !1,
1494
- discrepancy: 0
1495
- };
1496
- },
1497
- created: function() {
1498
- this.suppress = localStorage.suppresswarning__clock_out_of_sync_with_server === "true", this.suppress || me.get("/openc3-api/time").then((e) => {
1499
- this.discrepancy = e.data.now_nsec / 1e6 - Date.now();
1500
- }).catch((e) => {
1501
- this.dismissed = !0;
1502
- });
1503
- },
1504
- methods: {
1505
- dismiss: function() {
1506
- localStorage.suppresswarning__clock_out_of_sync_with_server = this.suppress, this.dismissed = !0;
1507
- }
1508
- },
1509
- computed: {
1510
- approximateDiscrepancySec: function() {
1511
- return (this.discrepancy / 1e3).toFixed();
1512
- },
1513
- dialog: function() {
1514
- return !this.dismissed && Math.abs(this.discrepancy) >= pt;
1515
- }
1516
- }
1517
- };
1518
- function ht(e, t, o, l, s, r) {
1519
- const m = a("v-card-title"), u = a("v-checkbox"), p = a("v-card-text"), g = a("v-divider"), y = a("v-btn"), S = a("v-card-actions"), h = a("v-card"), b = a("v-dialog");
1520
- return c(), N(b, {
1521
- modelValue: r.dialog,
1522
- "onUpdate:modelValue": t[1] || (t[1] = (v) => r.dialog = v),
1523
- width: "500"
1524
- }, {
1525
- default: i(() => [
1526
- n(h, null, {
1527
- default: i(() => [
1528
- n(m, null, {
1529
- default: i(() => t[2] || (t[2] = [
1530
- f(" Clock out of sync ")
1531
- ])),
1532
- _: 1
1533
- }),
1534
- n(p, null, {
1535
- default: i(() => [
1536
- f(" We've detected that your clock is approximately " + _(Math.abs(r.approximateDiscrepancySec)) + " seconds " + _(r.approximateDiscrepancySec > 0 ? "behind" : "ahead of") + " server time. This can cause issues and might have unknown side effects. ", 1),
1537
- n(u, {
1538
- modelValue: e.suppress,
1539
- "onUpdate:modelValue": t[0] || (t[0] = (v) => e.suppress = v),
1540
- label: "Don't show this again"
1541
- }, null, 8, ["modelValue"])
1542
- ]),
1543
- _: 1
1544
- }),
1545
- n(g),
1546
- n(S, null, {
1547
- default: i(() => [
1548
- n(y, {
1549
- color: "primary",
1550
- variant: "text",
1551
- onClick: r.dismiss
1552
- }, {
1553
- default: i(() => t[3] || (t[3] = [
1554
- f(" Dismiss ")
1555
- ])),
1556
- _: 1
1557
- }, 8, ["onClick"])
1558
- ]),
1559
- _: 1
1560
- })
1561
- ]),
1562
- _: 1
1563
- })
1564
- ]),
1565
- _: 1
1566
- }, 8, ["modelValue"]);
1567
- }
1568
- const At = /* @__PURE__ */ A(mt, [["render", ht]]);
1569
- export {
1570
- Ct as AppFooter,
1571
- Tt as AppNav,
1572
- Mt as ClassificationBanners,
1573
- Me as ClockFooter,
1574
- Ut as Login,
1575
- xe as Notifications,
1576
- Ye as ScopeSelector,
1577
- At as TimeCheck,
1578
- Ke as UserMenu
1579
- };
1580
- //# sourceMappingURL=base.js.map