@openc3/vue-common 5.21.0-beta0

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 (399) hide show
  1. package/LICENSE.txt +729 -0
  2. package/README.md +25 -0
  3. package/dist/ArrayWidget-ChaMDaRA.js +105 -0
  4. package/dist/ArrayWidget-ChaMDaRA.js.map +1 -0
  5. package/dist/ArrayWidget-x7le0X73.cjs +3 -0
  6. package/dist/ArrayWidget-x7le0X73.cjs.map +1 -0
  7. package/dist/AstroStatus-CILMWL6F.cjs +2 -0
  8. package/dist/AstroStatus-CILMWL6F.cjs.map +1 -0
  9. package/dist/AstroStatus-CY9VkeTN.js +40 -0
  10. package/dist/AstroStatus-CY9VkeTN.js.map +1 -0
  11. package/dist/BarColumn-CqXfFAQ9.js +106 -0
  12. package/dist/BarColumn-CqXfFAQ9.js.map +1 -0
  13. package/dist/BarColumn-Ct4izXqV.cjs +2 -0
  14. package/dist/BarColumn-Ct4izXqV.cjs.map +1 -0
  15. package/dist/BlockWidget-BPefRY_h.cjs +3 -0
  16. package/dist/BlockWidget-BPefRY_h.cjs.map +1 -0
  17. package/dist/BlockWidget-DjiPs6ID.js +111 -0
  18. package/dist/BlockWidget-DjiPs6ID.js.map +1 -0
  19. package/dist/ButtonWidget-Dd80CjGt.js +165 -0
  20. package/dist/ButtonWidget-Dd80CjGt.js.map +1 -0
  21. package/dist/ButtonWidget-SoiP15gH.cjs +3 -0
  22. package/dist/ButtonWidget-SoiP15gH.cjs.map +1 -0
  23. package/dist/CanvasWidget-ALHiDq5o.js +39 -0
  24. package/dist/CanvasWidget-ALHiDq5o.js.map +1 -0
  25. package/dist/CanvasWidget-JapjwSXd.cjs +2 -0
  26. package/dist/CanvasWidget-JapjwSXd.cjs.map +1 -0
  27. package/dist/CanvasdotWidget-BU42MGW6.cjs +2 -0
  28. package/dist/CanvasdotWidget-BU42MGW6.cjs.map +1 -0
  29. package/dist/CanvasdotWidget-JkDXGoHm.js +19 -0
  30. package/dist/CanvasdotWidget-JkDXGoHm.js.map +1 -0
  31. package/dist/CanvasimageWidget-CQ_ZlEFj.cjs +2 -0
  32. package/dist/CanvasimageWidget-CQ_ZlEFj.cjs.map +1 -0
  33. package/dist/CanvasimageWidget-CTXlEJgA.js +58 -0
  34. package/dist/CanvasimageWidget-CTXlEJgA.js.map +1 -0
  35. package/dist/CanvasimagevalueWidget-CihOXOHH.js +107 -0
  36. package/dist/CanvasimagevalueWidget-CihOXOHH.js.map +1 -0
  37. package/dist/CanvasimagevalueWidget-DKejEVKr.cjs +2 -0
  38. package/dist/CanvasimagevalueWidget-DKejEVKr.cjs.map +1 -0
  39. package/dist/CanvaslabelWidget-2uD1FRT0.js +23 -0
  40. package/dist/CanvaslabelWidget-2uD1FRT0.js.map +1 -0
  41. package/dist/CanvaslabelWidget-zKoAOaaE.cjs +2 -0
  42. package/dist/CanvaslabelWidget-zKoAOaaE.cjs.map +1 -0
  43. package/dist/CanvaslabelvalueWidget-BCd0ssW9.js +42 -0
  44. package/dist/CanvaslabelvalueWidget-BCd0ssW9.js.map +1 -0
  45. package/dist/CanvaslabelvalueWidget-ZnyvNaVM.cjs +2 -0
  46. package/dist/CanvaslabelvalueWidget-ZnyvNaVM.cjs.map +1 -0
  47. package/dist/CanvaslineWidget-BRFrT-9r.cjs +2 -0
  48. package/dist/CanvaslineWidget-BRFrT-9r.cjs.map +1 -0
  49. package/dist/CanvaslineWidget-Cc8vj_vu.js +28 -0
  50. package/dist/CanvaslineWidget-Cc8vj_vu.js.map +1 -0
  51. package/dist/CanvaslinevalueWidget-CJTmkXEr.js +44 -0
  52. package/dist/CanvaslinevalueWidget-CJTmkXEr.js.map +1 -0
  53. package/dist/CanvaslinevalueWidget-DgIU-2d6.cjs +2 -0
  54. package/dist/CanvaslinevalueWidget-DgIU-2d6.cjs.map +1 -0
  55. package/dist/CheckbuttonWidget-BrUBiJWn.cjs +2 -0
  56. package/dist/CheckbuttonWidget-BrUBiJWn.cjs.map +1 -0
  57. package/dist/CheckbuttonWidget-lZD4wLcB.js +37 -0
  58. package/dist/CheckbuttonWidget-lZD4wLcB.js.map +1 -0
  59. package/dist/ComboboxWidget-BUMleWlR.cjs +2 -0
  60. package/dist/ComboboxWidget-BUMleWlR.cjs.map +1 -0
  61. package/dist/ComboboxWidget-D-nVY2Zf.js +37 -0
  62. package/dist/ComboboxWidget-D-nVY2Zf.js.map +1 -0
  63. package/dist/CosmosRuxIcon.vue_vue_type_style_index_0_scoped_9af48e85_lang-BHFhmbuH.cjs +2 -0
  64. package/dist/CosmosRuxIcon.vue_vue_type_style_index_0_scoped_9af48e85_lang-BHFhmbuH.cjs.map +1 -0
  65. package/dist/CosmosRuxIcon.vue_vue_type_style_index_0_scoped_9af48e85_lang-CHgC5LLL.js +10 -0
  66. package/dist/CosmosRuxIcon.vue_vue_type_style_index_0_scoped_9af48e85_lang-CHgC5LLL.js.map +1 -0
  67. package/dist/CriticalCmdDialog-BvPQYRie.cjs +2 -0
  68. package/dist/CriticalCmdDialog-BvPQYRie.cjs.map +1 -0
  69. package/dist/CriticalCmdDialog-ChYR9_7n.js +270 -0
  70. package/dist/CriticalCmdDialog-ChYR9_7n.js.map +1 -0
  71. package/dist/DateWidget-3e2qqqxw.cjs +2 -0
  72. package/dist/DateWidget-3e2qqqxw.cjs.map +1 -0
  73. package/dist/DateWidget-Bs2NufYI.js +40 -0
  74. package/dist/DateWidget-Bs2NufYI.js.map +1 -0
  75. package/dist/DetailsDialog-8ixZ1oPd.cjs +2 -0
  76. package/dist/DetailsDialog-8ixZ1oPd.cjs.map +1 -0
  77. package/dist/DetailsDialog-ScKx0N2e.js +767 -0
  78. package/dist/DetailsDialog-ScKx0N2e.js.map +1 -0
  79. package/dist/DynamicWidget-3wHr6Ng-.cjs +2 -0
  80. package/dist/DynamicWidget-3wHr6Ng-.cjs.map +1 -0
  81. package/dist/DynamicWidget-m9EliUR2.js +35 -0
  82. package/dist/DynamicWidget-m9EliUR2.js.map +1 -0
  83. package/dist/FormatvalueWidget-DEj59HDj.js +44 -0
  84. package/dist/FormatvalueWidget-DEj59HDj.js.map +1 -0
  85. package/dist/FormatvalueWidget-DK0tTvcs.cjs +2 -0
  86. package/dist/FormatvalueWidget-DK0tTvcs.cjs.map +1 -0
  87. package/dist/Graph-D2frd7mZ.js +1999 -0
  88. package/dist/Graph-D2frd7mZ.js.map +1 -0
  89. package/dist/Graph-DFEMzAGq.cjs +2 -0
  90. package/dist/Graph-DFEMzAGq.cjs.map +1 -0
  91. package/dist/GraphWidget-CbyYREVa.cjs +2 -0
  92. package/dist/GraphWidget-CbyYREVa.cjs.map +1 -0
  93. package/dist/GraphWidget-CvlfqTgn.js +129 -0
  94. package/dist/GraphWidget-CvlfqTgn.js.map +1 -0
  95. package/dist/HorizontalWidget-BEOYwm8D.js +41 -0
  96. package/dist/HorizontalWidget-BEOYwm8D.js.map +1 -0
  97. package/dist/HorizontalWidget-xEd4ZLsc.cjs +2 -0
  98. package/dist/HorizontalWidget-xEd4ZLsc.cjs.map +1 -0
  99. package/dist/HorizontalboxWidget-C2wA9_HA.js +38 -0
  100. package/dist/HorizontalboxWidget-C2wA9_HA.js.map +1 -0
  101. package/dist/HorizontalboxWidget-xwLnkDXf.cjs +2 -0
  102. package/dist/HorizontalboxWidget-xwLnkDXf.cjs.map +1 -0
  103. package/dist/HorizontallineWidget-BCKOQase.cjs +2 -0
  104. package/dist/HorizontallineWidget-BCKOQase.cjs.map +1 -0
  105. package/dist/HorizontallineWidget-BdlNB951.js +11 -0
  106. package/dist/HorizontallineWidget-BdlNB951.js.map +1 -0
  107. package/dist/IframeWidget-C42hZbe_.cjs +2 -0
  108. package/dist/IframeWidget-C42hZbe_.cjs.map +1 -0
  109. package/dist/IframeWidget-qwGlLyoS.js +29 -0
  110. package/dist/IframeWidget-qwGlLyoS.js.map +1 -0
  111. package/dist/ImageLoader-BSTQyLlJ.cjs +2 -0
  112. package/dist/ImageLoader-BSTQyLlJ.cjs.map +1 -0
  113. package/dist/ImageLoader-CQAyutzR.js +36 -0
  114. package/dist/ImageLoader-CQAyutzR.js.map +1 -0
  115. package/dist/ImageviewerWidget-B0HJk4Tf.cjs +2 -0
  116. package/dist/ImageviewerWidget-B0HJk4Tf.cjs.map +1 -0
  117. package/dist/ImageviewerWidget-CDeYB2QG.js +37 -0
  118. package/dist/ImageviewerWidget-CDeYB2QG.js.map +1 -0
  119. package/dist/InterfacesTab-D-VIrHHf.js +92 -0
  120. package/dist/InterfacesTab-D-VIrHHf.js.map +1 -0
  121. package/dist/InterfacesTab-NTrgd1dN.cjs +2 -0
  122. package/dist/InterfacesTab-NTrgd1dN.cjs.map +1 -0
  123. package/dist/LabelWidget-B1-se7_B.cjs +2 -0
  124. package/dist/LabelWidget-B1-se7_B.cjs.map +1 -0
  125. package/dist/LabelWidget-C5_cj8pA.js +48 -0
  126. package/dist/LabelWidget-C5_cj8pA.js.map +1 -0
  127. package/dist/LabelledWidget-3aDkVYzF.cjs +2 -0
  128. package/dist/LabelledWidget-3aDkVYzF.cjs.map +1 -0
  129. package/dist/LabelledWidget-DWOPmkyP.js +42 -0
  130. package/dist/LabelledWidget-DWOPmkyP.js.map +1 -0
  131. package/dist/LabelprogressbarWidget-DFPXYOTH.js +43 -0
  132. package/dist/LabelprogressbarWidget-DFPXYOTH.js.map +1 -0
  133. package/dist/LabelprogressbarWidget-Dsiw-uBJ.cjs +2 -0
  134. package/dist/LabelprogressbarWidget-Dsiw-uBJ.cjs.map +1 -0
  135. package/dist/LabelsparklineWidget-DG_Q8WOZ.js +44 -0
  136. package/dist/LabelsparklineWidget-DG_Q8WOZ.js.map +1 -0
  137. package/dist/LabelsparklineWidget-w6pdf_eu.cjs +2 -0
  138. package/dist/LabelsparklineWidget-w6pdf_eu.cjs.map +1 -0
  139. package/dist/LabelvalueWidget-CRtYLZfm.cjs +2 -0
  140. package/dist/LabelvalueWidget-CRtYLZfm.cjs.map +1 -0
  141. package/dist/LabelvalueWidget-CxL0zxQr.js +58 -0
  142. package/dist/LabelvalueWidget-CxL0zxQr.js.map +1 -0
  143. package/dist/LabelvaluedescWidget-CF9py8m9.cjs +2 -0
  144. package/dist/LabelvaluedescWidget-CF9py8m9.cjs.map +1 -0
  145. package/dist/LabelvaluedescWidget-ClWPSOeN.js +59 -0
  146. package/dist/LabelvaluedescWidget-ClWPSOeN.js.map +1 -0
  147. package/dist/LabelvaluelimitsbarWidget-DFUH0HNe.cjs +2 -0
  148. package/dist/LabelvaluelimitsbarWidget-DFUH0HNe.cjs.map +1 -0
  149. package/dist/LabelvaluelimitsbarWidget-DUyZ7KXT.js +55 -0
  150. package/dist/LabelvaluelimitsbarWidget-DUyZ7KXT.js.map +1 -0
  151. package/dist/LabelvaluelimitscolumnWidget-DdCNjIEm.js +45 -0
  152. package/dist/LabelvaluelimitscolumnWidget-DdCNjIEm.js.map +1 -0
  153. package/dist/LabelvaluelimitscolumnWidget-k0hVnMUV.cjs +2 -0
  154. package/dist/LabelvaluelimitscolumnWidget-k0hVnMUV.cjs.map +1 -0
  155. package/dist/LabelvaluerangebarWidget-CRqMQa_x.cjs +2 -0
  156. package/dist/LabelvaluerangebarWidget-CRqMQa_x.cjs.map +1 -0
  157. package/dist/LabelvaluerangebarWidget-DGJv44i4.js +79 -0
  158. package/dist/LabelvaluerangebarWidget-DGJv44i4.js.map +1 -0
  159. package/dist/Layout-C1uMy2Sd.js +14 -0
  160. package/dist/Layout-C1uMy2Sd.js.map +1 -0
  161. package/dist/Layout-C2VWUn33.cjs +2 -0
  162. package/dist/Layout-C2VWUn33.cjs.map +1 -0
  163. package/dist/LedWidget-C8LEesIO.js +69 -0
  164. package/dist/LedWidget-C8LEesIO.js.map +1 -0
  165. package/dist/LedWidget-tnHC12fA.cjs +2 -0
  166. package/dist/LedWidget-tnHC12fA.cjs.map +1 -0
  167. package/dist/LimitsbarWidget-DSJvR91d.cjs +2 -0
  168. package/dist/LimitsbarWidget-DSJvR91d.cjs.map +1 -0
  169. package/dist/LimitsbarWidget-DV94AaXX.js +52 -0
  170. package/dist/LimitsbarWidget-DV94AaXX.js.map +1 -0
  171. package/dist/LimitscolorWidget-BWfffXvj.cjs +2 -0
  172. package/dist/LimitscolorWidget-BWfffXvj.cjs.map +1 -0
  173. package/dist/LimitscolorWidget-DT_WG8Jb.js +59 -0
  174. package/dist/LimitscolorWidget-DT_WG8Jb.js.map +1 -0
  175. package/dist/LimitscolumnWidget-Ci2DqqsC.cjs +2 -0
  176. package/dist/LimitscolumnWidget-Ci2DqqsC.cjs.map +1 -0
  177. package/dist/LimitscolumnWidget-yGBCsGuc.js +49 -0
  178. package/dist/LimitscolumnWidget-yGBCsGuc.js.map +1 -0
  179. package/dist/LinegraphWidget-BG43_kkA.js +38 -0
  180. package/dist/LinegraphWidget-BG43_kkA.js.map +1 -0
  181. package/dist/LinegraphWidget-ByTUdpDj.cjs +2 -0
  182. package/dist/LinegraphWidget-ByTUdpDj.cjs.map +1 -0
  183. package/dist/MatrixbycolumnsWidget-Cfp2S5QC.js +56 -0
  184. package/dist/MatrixbycolumnsWidget-Cfp2S5QC.js.map +1 -0
  185. package/dist/MatrixbycolumnsWidget-GHZ6cCcr.cjs +2 -0
  186. package/dist/MatrixbycolumnsWidget-GHZ6cCcr.cjs.map +1 -0
  187. package/dist/MicroservicesTab-BuIftbHc.js +159 -0
  188. package/dist/MicroservicesTab-BuIftbHc.js.map +1 -0
  189. package/dist/MicroservicesTab-CdCozCVI.cjs +2 -0
  190. package/dist/MicroservicesTab-CdCozCVI.cjs.map +1 -0
  191. package/dist/OutputDialog-CjFsDUYh.js +244 -0
  192. package/dist/OutputDialog-CjFsDUYh.js.map +1 -0
  193. package/dist/OutputDialog-Dkn9Fli9.cjs +2 -0
  194. package/dist/OutputDialog-Dkn9Fli9.cjs.map +1 -0
  195. package/dist/PackagesTab-BwTViRcm.js +339 -0
  196. package/dist/PackagesTab-BwTViRcm.js.map +1 -0
  197. package/dist/PackagesTab-DPaJ_JbE.cjs +2 -0
  198. package/dist/PackagesTab-DPaJ_JbE.cjs.map +1 -0
  199. package/dist/PluginsTab-C7GizpA1.cjs +6 -0
  200. package/dist/PluginsTab-C7GizpA1.cjs.map +1 -0
  201. package/dist/PluginsTab-fld_-DT-.js +598 -0
  202. package/dist/PluginsTab-fld_-DT-.js.map +1 -0
  203. package/dist/ProgressbarWidget-BSPuQNU_.js +46 -0
  204. package/dist/ProgressbarWidget-BSPuQNU_.js.map +1 -0
  205. package/dist/ProgressbarWidget-D1wbbnow.cjs +2 -0
  206. package/dist/ProgressbarWidget-D1wbbnow.cjs.map +1 -0
  207. package/dist/RadiobuttonWidget-B4rrjT9j.js +34 -0
  208. package/dist/RadiobuttonWidget-B4rrjT9j.js.map +1 -0
  209. package/dist/RadiobuttonWidget-Bhcj3WY5.cjs +2 -0
  210. package/dist/RadiobuttonWidget-Bhcj3WY5.cjs.map +1 -0
  211. package/dist/RadiogroupWidget-CQrEv3Qs.cjs +2 -0
  212. package/dist/RadiogroupWidget-CQrEv3Qs.cjs.map +1 -0
  213. package/dist/RadiogroupWidget-VncDKxiZ.js +48 -0
  214. package/dist/RadiogroupWidget-VncDKxiZ.js.map +1 -0
  215. package/dist/RangebarWidget-Btu0oj_O.js +67 -0
  216. package/dist/RangebarWidget-Btu0oj_O.js.map +1 -0
  217. package/dist/RangebarWidget-CKmh0GEh.cjs +2 -0
  218. package/dist/RangebarWidget-CKmh0GEh.cjs.map +1 -0
  219. package/dist/RedisTab-BPFEQDx-.js +135 -0
  220. package/dist/RedisTab-BPFEQDx-.js.map +1 -0
  221. package/dist/RedisTab-DpbDcxH5.cjs +2 -0
  222. package/dist/RedisTab-DpbDcxH5.cjs.map +1 -0
  223. package/dist/RollupWidget-Bh-Gpi5l.cjs +2 -0
  224. package/dist/RollupWidget-Bh-Gpi5l.cjs.map +1 -0
  225. package/dist/RollupWidget-CIp8Akqq.js +81 -0
  226. package/dist/RollupWidget-CIp8Akqq.js.map +1 -0
  227. package/dist/RoutersTab-CTpmfcgq.js +94 -0
  228. package/dist/RoutersTab-CTpmfcgq.js.map +1 -0
  229. package/dist/RoutersTab-DLQ-_xsb.cjs +2 -0
  230. package/dist/RoutersTab-DLQ-_xsb.cjs.map +1 -0
  231. package/dist/ScriptChooser-Cku5i9C6.cjs +2 -0
  232. package/dist/ScriptChooser-Cku5i9C6.cjs.map +1 -0
  233. package/dist/ScriptChooser-Cx985GFr.js +199 -0
  234. package/dist/ScriptChooser-Cx985GFr.js.map +1 -0
  235. package/dist/ScrollwindowWidget-BIYEL78X.js +45 -0
  236. package/dist/ScrollwindowWidget-BIYEL78X.js.map +1 -0
  237. package/dist/ScrollwindowWidget-DWBLVHz1.cjs +2 -0
  238. package/dist/ScrollwindowWidget-DWBLVHz1.cjs.map +1 -0
  239. package/dist/SecretsTab-CV5WYD3N.cjs +2 -0
  240. package/dist/SecretsTab-CV5WYD3N.cjs.map +1 -0
  241. package/dist/SecretsTab-DfBaqZw2.js +202 -0
  242. package/dist/SecretsTab-DfBaqZw2.js.map +1 -0
  243. package/dist/SettingsTab-B1DNmvM5.js +1282 -0
  244. package/dist/SettingsTab-B1DNmvM5.js.map +1 -0
  245. package/dist/SettingsTab-BKD5vVwv.cjs +2 -0
  246. package/dist/SettingsTab-BKD5vVwv.cjs.map +1 -0
  247. package/dist/SignalWidget-f_2K-phy.js +61 -0
  248. package/dist/SignalWidget-f_2K-phy.js.map +1 -0
  249. package/dist/SignalWidget-vsx411XW.cjs +2 -0
  250. package/dist/SignalWidget-vsx411XW.cjs.map +1 -0
  251. package/dist/SimpleTextDialog-BLlux8b4.js +108 -0
  252. package/dist/SimpleTextDialog-BLlux8b4.js.map +1 -0
  253. package/dist/SimpleTextDialog-D2R3WQXD.cjs +2 -0
  254. package/dist/SimpleTextDialog-D2R3WQXD.cjs.map +1 -0
  255. package/dist/SpacerWidget-DGo6ZjYn.cjs +2 -0
  256. package/dist/SpacerWidget-DGo6ZjYn.cjs.map +1 -0
  257. package/dist/SpacerWidget-YhsM7srQ.js +19 -0
  258. package/dist/SpacerWidget-YhsM7srQ.js.map +1 -0
  259. package/dist/SparklineWidget-Bkx8nwqY.cjs +2 -0
  260. package/dist/SparklineWidget-Bkx8nwqY.cjs.map +1 -0
  261. package/dist/SparklineWidget-CuGChXzf.js +47 -0
  262. package/dist/SparklineWidget-CuGChXzf.js.map +1 -0
  263. package/dist/TabbookWidget-BlDW3n54.js +66 -0
  264. package/dist/TabbookWidget-BlDW3n54.js.map +1 -0
  265. package/dist/TabbookWidget-CDUj7RHp.cjs +2 -0
  266. package/dist/TabbookWidget-CDUj7RHp.cjs.map +1 -0
  267. package/dist/TargetsTab-B2Jw5Kec.js +128 -0
  268. package/dist/TargetsTab-B2Jw5Kec.js.map +1 -0
  269. package/dist/TargetsTab-fON6-iJc.cjs +2 -0
  270. package/dist/TargetsTab-fON6-iJc.cjs.map +1 -0
  271. package/dist/TextBoxDialog-CZ3h4LP-.js +110 -0
  272. package/dist/TextBoxDialog-CZ3h4LP-.js.map +1 -0
  273. package/dist/TextBoxDialog-DvUf3Cak.cjs +2 -0
  274. package/dist/TextBoxDialog-DvUf3Cak.cjs.map +1 -0
  275. package/dist/TextboxWidget-CWXCNL8K.js +92 -0
  276. package/dist/TextboxWidget-CWXCNL8K.js.map +1 -0
  277. package/dist/TextboxWidget-LhNzbjQI.cjs +2 -0
  278. package/dist/TextboxWidget-LhNzbjQI.cjs.map +1 -0
  279. package/dist/TextfieldWidget-AbalSObh.cjs +2 -0
  280. package/dist/TextfieldWidget-AbalSObh.cjs.map +1 -0
  281. package/dist/TextfieldWidget-CRVUO3wk.js +37 -0
  282. package/dist/TextfieldWidget-CRVUO3wk.js.map +1 -0
  283. package/dist/TimeWidget-BUMtokM-.cjs +2 -0
  284. package/dist/TimeWidget-BUMtokM-.cjs.map +1 -0
  285. package/dist/TimeWidget-CDo0yWlB.js +40 -0
  286. package/dist/TimeWidget-CDo0yWlB.js.map +1 -0
  287. package/dist/TitleWidget-Cvjndegg.js +26 -0
  288. package/dist/TitleWidget-Cvjndegg.js.map +1 -0
  289. package/dist/TitleWidget-DWieiIfq.cjs +2 -0
  290. package/dist/TitleWidget-DWieiIfq.cjs.map +1 -0
  291. package/dist/ToolsTab-Bu4syVrX.js +1519 -0
  292. package/dist/ToolsTab-Bu4syVrX.js.map +1 -0
  293. package/dist/ToolsTab-rS3KG7M5.cjs +7 -0
  294. package/dist/ToolsTab-rS3KG7M5.cjs.map +1 -0
  295. package/dist/TopBar-B1dOQ1W9.js +253 -0
  296. package/dist/TopBar-B1dOQ1W9.js.map +1 -0
  297. package/dist/TopBar-_j4ndwSi.cjs +2 -0
  298. package/dist/TopBar-_j4ndwSi.cjs.map +1 -0
  299. package/dist/UpgradeToEnterpriseDialog--cLHsvir.cjs +2 -0
  300. package/dist/UpgradeToEnterpriseDialog--cLHsvir.cjs.map +1 -0
  301. package/dist/UpgradeToEnterpriseDialog-CY9g4hzD.js +95 -0
  302. package/dist/UpgradeToEnterpriseDialog-CY9g4hzD.js.map +1 -0
  303. package/dist/UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_6fa47877_lang-BrapmXxi.js +25215 -0
  304. package/dist/UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_6fa47877_lang-BrapmXxi.js.map +1 -0
  305. package/dist/UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_6fa47877_lang-DdL5xG80.cjs +1416 -0
  306. package/dist/UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_6fa47877_lang-DdL5xG80.cjs.map +1 -0
  307. package/dist/VWidget-BRkvqAVS.cjs +2 -0
  308. package/dist/VWidget-BRkvqAVS.cjs.map +1 -0
  309. package/dist/VWidget-D9Wk0N9r.js +323 -0
  310. package/dist/VWidget-D9Wk0N9r.js.map +1 -0
  311. package/dist/ValueWidget-D3EJcN4C.js +115 -0
  312. package/dist/ValueWidget-D3EJcN4C.js.map +1 -0
  313. package/dist/ValueWidget-DxY7IZvc.cjs +2 -0
  314. package/dist/ValueWidget-DxY7IZvc.cjs.map +1 -0
  315. package/dist/ValuelimitsbarWidget-C5revcun.js +39 -0
  316. package/dist/ValuelimitsbarWidget-C5revcun.js.map +1 -0
  317. package/dist/ValuelimitsbarWidget-Dk6L7fl3.cjs +2 -0
  318. package/dist/ValuelimitsbarWidget-Dk6L7fl3.cjs.map +1 -0
  319. package/dist/ValuelimitscolumnWidget-BBEGOlON.js +38 -0
  320. package/dist/ValuelimitscolumnWidget-BBEGOlON.js.map +1 -0
  321. package/dist/ValuelimitscolumnWidget-YD_Xd3tD.cjs +2 -0
  322. package/dist/ValuelimitscolumnWidget-YD_Xd3tD.cjs.map +1 -0
  323. package/dist/ValuerangebarWidget-BtoenJky.cjs +2 -0
  324. package/dist/ValuerangebarWidget-BtoenJky.cjs.map +1 -0
  325. package/dist/ValuerangebarWidget-D70Xk8rM.js +65 -0
  326. package/dist/ValuerangebarWidget-D70Xk8rM.js.map +1 -0
  327. package/dist/VerticalWidget-Dw11Ey1R.cjs +2 -0
  328. package/dist/VerticalWidget-Dw11Ey1R.cjs.map +1 -0
  329. package/dist/VerticalWidget-RIOu-NI3.js +41 -0
  330. package/dist/VerticalWidget-RIOu-NI3.js.map +1 -0
  331. package/dist/VerticalboxWidget-BUjeAxtO.js +37 -0
  332. package/dist/VerticalboxWidget-BUjeAxtO.js.map +1 -0
  333. package/dist/VerticalboxWidget-DT-OCuyc.cjs +2 -0
  334. package/dist/VerticalboxWidget-DT-OCuyc.cjs.map +1 -0
  335. package/dist/Widget-C-EiCtmV.cjs +2 -0
  336. package/dist/Widget-C-EiCtmV.cjs.map +1 -0
  337. package/dist/Widget-C5V53T-a.js +197 -0
  338. package/dist/Widget-C5V53T-a.js.map +1 -0
  339. package/dist/addMonths-Be4oiWXO.js +19 -0
  340. package/dist/addMonths-Be4oiWXO.js.map +1 -0
  341. package/dist/addMonths-foItT0GW.cjs +2 -0
  342. package/dist/addMonths-foItT0GW.cjs.map +1 -0
  343. package/dist/axios-CXDYiOMX.js +1705 -0
  344. package/dist/axios-CXDYiOMX.js.map +1 -0
  345. package/dist/axios-tuVKNgv9.cjs +7 -0
  346. package/dist/axios-tuVKNgv9.cjs.map +1 -0
  347. package/dist/components.cjs +7 -0
  348. package/dist/components.cjs.map +1 -0
  349. package/dist/components.js +2936 -0
  350. package/dist/components.js.map +1 -0
  351. package/dist/fileIcon-BduOQcTc.cjs +2 -0
  352. package/dist/fileIcon-BduOQcTc.cjs.map +1 -0
  353. package/dist/fileIcon-DqRHb1_Z.js +22 -0
  354. package/dist/fileIcon-DqRHb1_Z.js.map +1 -0
  355. package/dist/format-BDZ4AOJt.cjs +2 -0
  356. package/dist/format-BDZ4AOJt.cjs.map +1 -0
  357. package/dist/format-Da42caYw.js +1229 -0
  358. package/dist/format-Da42caYw.js.map +1 -0
  359. package/dist/icons/status-dark.png +0 -0
  360. package/dist/icons/status-dark.xcf +0 -0
  361. package/dist/icons/status-light.png +0 -0
  362. package/dist/icons.cjs +2 -0
  363. package/dist/icons.cjs.map +1 -0
  364. package/dist/icons.js +157 -0
  365. package/dist/icons.js.map +1 -0
  366. package/dist/parse-BO9ihK1v.cjs +2 -0
  367. package/dist/parse-BO9ihK1v.cjs.map +1 -0
  368. package/dist/parse-dDr1Btat.js +1556 -0
  369. package/dist/parse-dDr1Btat.js.map +1 -0
  370. package/dist/plugins.cjs +9 -0
  371. package/dist/plugins.cjs.map +1 -0
  372. package/dist/plugins.js +771 -0
  373. package/dist/plugins.js.map +1 -0
  374. package/dist/style.css +1 -0
  375. package/dist/timeFilters-CN3Tdo2Z.js +607 -0
  376. package/dist/timeFilters-CN3Tdo2Z.js.map +1 -0
  377. package/dist/timeFilters-DwWhNG4a.cjs +2 -0
  378. package/dist/timeFilters-DwWhNG4a.cjs.map +1 -0
  379. package/dist/tools/admin.cjs +13 -0
  380. package/dist/tools/admin.cjs.map +1 -0
  381. package/dist/tools/admin.js +1909 -0
  382. package/dist/tools/admin.js.map +1 -0
  383. package/dist/tools/base.cjs +2 -0
  384. package/dist/tools/base.cjs.map +1 -0
  385. package/dist/tools/base.js +1580 -0
  386. package/dist/tools/base.js.map +1 -0
  387. package/dist/tools/calendar.cjs +2 -0
  388. package/dist/tools/calendar.cjs.map +1 -0
  389. package/dist/tools/calendar.js +1591 -0
  390. package/dist/tools/calendar.js.map +1 -0
  391. package/dist/util.cjs +2 -0
  392. package/dist/util.cjs.map +1 -0
  393. package/dist/util.js +9 -0
  394. package/dist/util.js.map +1 -0
  395. package/dist/widgets.cjs +2 -0
  396. package/dist/widgets.cjs.map +1 -0
  397. package/dist/widgets.js +130 -0
  398. package/dist/widgets.js.map +1 -0
  399. package/package.json +95 -0
@@ -0,0 +1,1591 @@
1
+ import { n as U } from "../UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_6fa47877_lang-BrapmXxi.js";
2
+ import { resolveComponent as l, openBlock as v, createElementBlock as V, createVNode as i, withCtx as n, createElementVNode as r, normalizeProps as H, guardReactiveProps as Z, createTextVNode as y, createSlots as R, createBlock as M, createCommentVNode as A, withDirectives as I, toDisplayString as S, vShow as N, withModifiers as P, mergeProps as j, Fragment as K, renderList as W } from "vue";
3
+ import { _ as q } from "../CosmosRuxIcon.vue_vue_type_style_index_0_scoped_9af48e85_lang-CHgC5LLL.js";
4
+ import { E as Y, S as G } from "../ScriptChooser-Cx985GFr.js";
5
+ import { T as z } from "../timeFilters-CN3Tdo2Z.js";
6
+ import { a as J, p as Q } from "../parse-dDr1Btat.js";
7
+ import { a as X } from "../addMonths-Be4oiWXO.js";
8
+ import { t as $, c as tt, f as O } from "../format-Da42caYw.js";
9
+ function et(e, t, s) {
10
+ const {
11
+ years: u = 0,
12
+ months: a = 0,
13
+ weeks: o = 0,
14
+ days: d = 0,
15
+ hours: D = 0,
16
+ minutes: k = 0,
17
+ seconds: b = 0
18
+ } = t, h = $(e, s == null ? void 0 : s.in), c = a || u ? X(h, a + u * 12) : h, _ = d || o ? J(c, d + o * 7) : c, w = k + D * 60, C = (b + w * 60) * 1e3;
19
+ return tt(e, +_ + C);
20
+ }
21
+ const B = {
22
+ props: {
23
+ date: {
24
+ type: String
25
+ },
26
+ time: {
27
+ type: String
28
+ },
29
+ timeZone: {
30
+ type: String
31
+ }
32
+ },
33
+ data() {
34
+ return {
35
+ startDate: "",
36
+ startTime: "",
37
+ endDate: "",
38
+ endTime: ""
39
+ };
40
+ },
41
+ methods: {
42
+ calcStartDateTime: function() {
43
+ this.date ? (this.startDate = this.date, this.endDate = this.date) : (this.startDate = O(/* @__PURE__ */ new Date(), "yyyy-MM-dd"), this.endDate = O(/* @__PURE__ */ new Date(), "yyyy-MM-dd"));
44
+ let e = 1e3 * 60 * 30, t = null;
45
+ this.time ? (t = Q(this.time, "HH:mm:ss", /* @__PURE__ */ new Date()), t = new Date(Math.floor(t.getTime() / e) * e)) : t = new Date(Math.ceil((/* @__PURE__ */ new Date()).getTime() / e) * e), this.startTime = O(t, "HH:mm:ss"), this.endTime = O(et(t, { minutes: 30 }), "HH:mm:ss");
46
+ }
47
+ }
48
+ }, at = {
49
+ components: {
50
+ EnvironmentChooser: Y,
51
+ ScriptChooser: G
52
+ },
53
+ props: {
54
+ modelValue: Boolean,
55
+ timelines: {
56
+ type: Array,
57
+ required: !0
58
+ },
59
+ activity: {
60
+ type: Object,
61
+ default: null
62
+ }
63
+ },
64
+ mixins: [B, z],
65
+ data() {
66
+ return {
67
+ timeline: null,
68
+ dialogStep: 1,
69
+ kind: "",
70
+ types: ["COMMAND", "SCRIPT", "RESERVE"],
71
+ activityData: "",
72
+ activityEnvironment: [],
73
+ rules: {
74
+ required: (e) => !!e || "Required"
75
+ },
76
+ recurring: !1,
77
+ recurringEndDate: null,
78
+ recurringEndTime: null,
79
+ frequency: 90,
80
+ timeSpan: "minutes",
81
+ timeSpans: ["minutes", "hours", "days"]
82
+ };
83
+ },
84
+ mounted: function() {
85
+ this.updateValues();
86
+ },
87
+ computed: {
88
+ timeError: function() {
89
+ const e = /* @__PURE__ */ new Date(), t = Date.parse(`${this.startDate}T${this.startTime}`), s = Date.parse(`${this.endDate}T${this.endTime}`);
90
+ return t === s ? "Invalid start, end time. Activity must have different start and end times." : e > t ? "Invalid start time. Activity must be in the future." : t > s ? "Invalid start time. Activity start before end." : null;
91
+ },
92
+ typeError: function() {
93
+ return this.timeline ? this.kind !== "RESERVE" && !this.activityData ? "No data is selected or inputted" : null : "Activity must have a timeline selected.";
94
+ },
95
+ timelineNames: function() {
96
+ return this.timelines.map((e) => e.name);
97
+ },
98
+ show: {
99
+ get() {
100
+ return this.modelValue;
101
+ },
102
+ set(e) {
103
+ this.$emit("update:modelValue", e);
104
+ }
105
+ }
106
+ },
107
+ methods: {
108
+ changeKind: function(e) {
109
+ e !== this.kind && (this.kind = e, this.activityData = "");
110
+ },
111
+ fileHandler: function(e) {
112
+ this.activityData = e;
113
+ },
114
+ updateValues: function() {
115
+ var e;
116
+ if (this.dialogStep = 1, this.activity) {
117
+ this.timeline = this.activity.name;
118
+ const t = new Date(this.activity.start * 1e3), s = new Date(this.activity.stop * 1e3);
119
+ if (this.startDate = this.formatDate(t, this.timeZone), this.startTime = this.formatTimeHMS(t, this.timeZone), this.endDate = this.formatDate(s, this.timeZone), this.endTime = this.formatTimeHMS(s, this.timeZone), this.kind = this.activity.kind.toUpperCase(), this.activityData = this.activity.data[this.activity.kind], this.activityEnvironment = this.activity.data.environment, (e = this.activity.recurring) != null && e.uuid) {
120
+ this.recurring = !0;
121
+ const u = new Date(this.activity.recurring.end * 1e3);
122
+ this.recurringEndDate = this.formatDate(u, this.timeZone), this.recurringEndTime = this.formatTimeHMS(u, this.timeZone), this.frequency = this.activity.recurring.frequency, this.timeSpan = this.activity.recurring.span;
123
+ }
124
+ } else
125
+ this.calcStartDateTime(), this.recurringEndDate = this.startDate, this.recurringEndTime = this.startTime, this.kind = "", this.activityData = "", this.activityEnvironment = [], this.timeline = this.timelineNames[0];
126
+ },
127
+ clearHandler: function() {
128
+ this.show = !this.show;
129
+ },
130
+ submitHandler() {
131
+ let e = null, t = null, s = null;
132
+ this.timeZone === "local" ? (e = (/* @__PURE__ */ new Date(this.startDate + " " + this.startTime)).toISOString(), t = (/* @__PURE__ */ new Date(this.endDate + " " + this.endTime)).toISOString(), this.recurring && (s = (/* @__PURE__ */ new Date(
133
+ this.recurringEndDate + " " + this.recurringEndTime
134
+ )).toISOString())) : (e = (/* @__PURE__ */ new Date(
135
+ this.startDate + " " + this.startTime + "Z"
136
+ )).toISOString(), t = (/* @__PURE__ */ new Date(this.endDate + " " + this.endTime + "Z")).toISOString(), this.recurring && (s = (/* @__PURE__ */ new Date(
137
+ this.recurringEndDate + " " + this.recurringEndTime + "Z"
138
+ )).toISOString()));
139
+ const u = this.kind.toLowerCase();
140
+ let a = { environment: this.activityEnvironment };
141
+ a[u] = this.activityData;
142
+ let o = {};
143
+ this.recurring && (o = {
144
+ frequency: this.frequency,
145
+ span: this.timeSpan,
146
+ end: s
147
+ }), this.activity ? U.put(
148
+ `/openc3-api/timeline/${this.activity.name}/activity/${this.activity.start}`,
149
+ {
150
+ data: { start: e, stop: t, kind: u, data: a, recurring: o }
151
+ }
152
+ ).then((d) => {
153
+ const D = this.formatSeconds(
154
+ new Date(d.data.start * 1e3)
155
+ );
156
+ this.$notify.normal({
157
+ title: "Updated Activity",
158
+ body: `${D} (${d.data.start}) on timeline: ${d.data.name}`
159
+ }), this.$emit("update", d.data), this.show = !this.show;
160
+ }).catch((d) => {
161
+ this.show = !this.show;
162
+ }) : U.post(`/openc3-api/timeline/${this.timeline}/activities`, {
163
+ data: { start: e, stop: t, kind: u, data: a, recurring: o }
164
+ }).then((d) => {
165
+ const D = this.formatSeconds(
166
+ new Date(d.data.start * 1e3)
167
+ );
168
+ this.$notify.normal({
169
+ title: "Created Activity",
170
+ body: `${D} (${d.data.start}) on timeline: ${d.data.name}`
171
+ }), this.$emit("update", d.data), this.show = !this.show;
172
+ }).catch((d) => {
173
+ this.show = !this.show;
174
+ }), this.clearHandler();
175
+ }
176
+ }
177
+ }, it = { key: 0 }, nt = { key: 1 }, ot = { class: "pr-2" }, lt = ["textContent"], st = { class: "pr-2" }, dt = { key: 0 }, rt = {
178
+ key: 1,
179
+ class: "ma-3"
180
+ }, ut = { key: 2 }, mt = ["textContent"];
181
+ function ct(e, t, s, u, a, o) {
182
+ const d = l("v-spacer"), D = l("v-icon"), k = l("v-tooltip"), b = l("v-toolbar"), h = l("v-btn"), c = l("v-row"), _ = l("v-select"), w = l("v-text-field"), T = l("v-checkbox"), C = l("v-col"), E = l("v-card-text"), x = l("script-chooser"), f = l("environment-chooser"), g = l("v-stepper"), F = l("v-card"), p = l("v-dialog");
183
+ return v(), V("div", null, [
184
+ i(p, {
185
+ persistent: "",
186
+ modelValue: o.show,
187
+ "onUpdate:modelValue": t[15] || (t[15] = (m) => o.show = m),
188
+ width: "600"
189
+ }, {
190
+ default: n(() => [
191
+ i(F, null, {
192
+ default: n(() => [
193
+ i(b, { height: "24" }, {
194
+ default: n(() => [
195
+ i(d),
196
+ s.activity ? (v(), V("span", it, "Edit Activity")) : (v(), V("span", nt, "Create Activity")),
197
+ i(d),
198
+ i(k, { location: "top" }, {
199
+ activator: n(({ props: m }) => [
200
+ r("div", H(Z(m)), [
201
+ i(D, {
202
+ "data-test": "close-note-icon",
203
+ onClick: o.clearHandler
204
+ }, {
205
+ default: n(() => t[16] || (t[16] = [
206
+ y(" mdi-close-box ")
207
+ ])),
208
+ _: 1
209
+ }, 8, ["onClick"])
210
+ ], 16)
211
+ ]),
212
+ default: n(() => [
213
+ t[17] || (t[17] = r("span", null, " Close ", -1))
214
+ ]),
215
+ _: 1
216
+ })
217
+ ]),
218
+ _: 1
219
+ }),
220
+ i(g, {
221
+ modelValue: a.dialogStep,
222
+ "onUpdate:modelValue": t[14] || (t[14] = (m) => a.dialogStep = m),
223
+ editable: "",
224
+ items: ["Activity Times", "Activity Type"]
225
+ }, R({
226
+ "item.1": n(() => [
227
+ i(E, null, {
228
+ default: n(() => [
229
+ r("div", ot, [
230
+ i(_, {
231
+ density: "compact",
232
+ "hide-details": "",
233
+ variant: "outlined",
234
+ modelValue: a.timeline,
235
+ "onUpdate:modelValue": t[1] || (t[1] = (m) => a.timeline = m),
236
+ items: o.timelineNames,
237
+ label: "Timeline",
238
+ "data-test": "activity-select-timeline",
239
+ class: "pb-2"
240
+ }, null, 8, ["modelValue", "items"]),
241
+ i(c, { dense: "" }, {
242
+ default: n(() => [
243
+ i(w, {
244
+ modelValue: e.startDate,
245
+ "onUpdate:modelValue": t[2] || (t[2] = (m) => e.startDate = m),
246
+ type: "date",
247
+ label: "Start Date",
248
+ class: "mx-1",
249
+ rules: [a.rules.required],
250
+ "data-test": "activity-start-date"
251
+ }, null, 8, ["modelValue", "rules"]),
252
+ i(w, {
253
+ modelValue: e.startTime,
254
+ "onUpdate:modelValue": t[3] || (t[3] = (m) => e.startTime = m),
255
+ type: "time",
256
+ step: "1",
257
+ label: "Start Time",
258
+ class: "mx-1",
259
+ rules: [a.rules.required],
260
+ "data-test": "activity-start-time"
261
+ }, null, 8, ["modelValue", "rules"])
262
+ ]),
263
+ _: 1
264
+ }),
265
+ i(c, { dense: "" }, {
266
+ default: n(() => [
267
+ i(w, {
268
+ modelValue: e.endDate,
269
+ "onUpdate:modelValue": t[4] || (t[4] = (m) => e.endDate = m),
270
+ type: "date",
271
+ label: "End Date",
272
+ class: "mx-1",
273
+ rules: [a.rules.required],
274
+ "data-test": "activity-end-date"
275
+ }, null, 8, ["modelValue", "rules"]),
276
+ i(w, {
277
+ modelValue: e.endTime,
278
+ "onUpdate:modelValue": t[5] || (t[5] = (m) => e.endTime = m),
279
+ type: "time",
280
+ step: "1",
281
+ label: "End Time",
282
+ class: "mx-1",
283
+ rules: [a.rules.required],
284
+ "data-test": "activity-end-time"
285
+ }, null, 8, ["modelValue", "rules"])
286
+ ]),
287
+ _: 1
288
+ }),
289
+ i(c, { class: "pl-3" }, {
290
+ default: n(() => [
291
+ i(T, {
292
+ modelValue: a.recurring,
293
+ "onUpdate:modelValue": t[6] || (t[6] = (m) => a.recurring = m),
294
+ disabled: !!s.activity,
295
+ label: "Recurring",
296
+ "hide-details": "",
297
+ "data-test": "recurring"
298
+ }, null, 8, ["modelValue", "disabled"])
299
+ ]),
300
+ _: 1
301
+ }),
302
+ a.recurring ? (v(), M(c, { key: 0 }, {
303
+ default: n(() => [
304
+ i(C, null, {
305
+ default: n(() => t[21] || (t[21] = [
306
+ r("div", { class: "repeat" }, "Repeat every", -1)
307
+ ])),
308
+ _: 1
309
+ }),
310
+ i(C, null, {
311
+ default: n(() => [
312
+ i(w, {
313
+ modelValue: a.frequency,
314
+ "onUpdate:modelValue": t[7] || (t[7] = (m) => a.frequency = m),
315
+ disabled: !!s.activity,
316
+ density: "compact",
317
+ variant: "outlined",
318
+ "single-line": "",
319
+ "hide-details": "",
320
+ "data-test": "recurring-frequency"
321
+ }, null, 8, ["modelValue", "disabled"])
322
+ ]),
323
+ _: 1
324
+ }),
325
+ i(C, null, {
326
+ default: n(() => [
327
+ i(_, {
328
+ modelValue: a.timeSpan,
329
+ "onUpdate:modelValue": t[8] || (t[8] = (m) => a.timeSpan = m),
330
+ disabled: !!s.activity,
331
+ items: a.timeSpans,
332
+ style: {},
333
+ "hide-details": "",
334
+ density: "compact",
335
+ variant: "outlined",
336
+ "data-test": "recurring-span"
337
+ }, null, 8, ["modelValue", "disabled", "items"])
338
+ ]),
339
+ _: 1
340
+ })
341
+ ]),
342
+ _: 1
343
+ })) : A("", !0),
344
+ a.recurring ? (v(), M(c, {
345
+ key: 1,
346
+ style: { "padding-bottom": "10px" }
347
+ }, {
348
+ default: n(() => [
349
+ i(C, null, {
350
+ default: n(() => t[22] || (t[22] = [
351
+ r("div", { class: "repeat" }, "Ending", -1)
352
+ ])),
353
+ _: 1
354
+ }),
355
+ i(C, null, {
356
+ default: n(() => [
357
+ i(w, {
358
+ modelValue: a.recurringEndDate,
359
+ "onUpdate:modelValue": t[9] || (t[9] = (m) => a.recurringEndDate = m),
360
+ type: "date",
361
+ label: "End Date",
362
+ class: "mx-1",
363
+ rules: [a.rules.required],
364
+ disabled: !!s.activity,
365
+ "data-test": "recurring-end-date"
366
+ }, null, 8, ["modelValue", "rules", "disabled"])
367
+ ]),
368
+ _: 1
369
+ }),
370
+ i(C, null, {
371
+ default: n(() => [
372
+ i(w, {
373
+ modelValue: a.recurringEndTime,
374
+ "onUpdate:modelValue": t[10] || (t[10] = (m) => a.recurringEndTime = m),
375
+ type: "time",
376
+ step: "1",
377
+ label: "End Time",
378
+ class: "mx-1",
379
+ rules: [a.rules.required],
380
+ disabled: !!s.activity,
381
+ "data-test": "recurring-end-time"
382
+ }, null, 8, ["modelValue", "rules", "disabled"])
383
+ ]),
384
+ _: 1
385
+ })
386
+ ]),
387
+ _: 1
388
+ })) : A("", !0),
389
+ i(c, null, {
390
+ default: n(() => [
391
+ I(r("span", {
392
+ class: "ma-2 text-red",
393
+ textContent: S(o.timeError)
394
+ }, null, 8, lt), [
395
+ [N, o.timeError]
396
+ ])
397
+ ]),
398
+ _: 1
399
+ })
400
+ ])
401
+ ]),
402
+ _: 1
403
+ })
404
+ ]),
405
+ "item.2": n(() => [
406
+ i(E, null, {
407
+ default: n(() => [
408
+ r("div", st, [
409
+ i(_, {
410
+ density: "compact",
411
+ "hide-details": "",
412
+ variant: "outlined",
413
+ modelValue: a.kind,
414
+ "onUpdate:modelValue": t[11] || (t[11] = (m) => a.kind = m),
415
+ items: a.types,
416
+ label: "Activity Type",
417
+ "data-test": "activity-select-type",
418
+ class: "pb-2"
419
+ }, null, 8, ["modelValue", "items"]),
420
+ a.kind === "COMMAND" ? (v(), V("div", dt, [
421
+ i(w, {
422
+ modelValue: a.activityData,
423
+ "onUpdate:modelValue": t[12] || (t[12] = (m) => a.activityData = m),
424
+ type: "text",
425
+ label: "Command Input",
426
+ placeholder: "INST COLLECT with TYPE 0, DURATION 1, OPCODE 171, TEMP 0",
427
+ prefix: "cmd('",
428
+ suffix: "')",
429
+ hint: "Timeline runs commands with cmd_no_hazardous_check",
430
+ "data-test": "activity-cmd"
431
+ }, null, 8, ["modelValue"])
432
+ ])) : a.kind === "SCRIPT" ? (v(), V("div", rt, [
433
+ i(x, { onFile: o.fileHandler }, null, 8, ["onFile"]),
434
+ i(f, {
435
+ modelValue: a.activityEnvironment,
436
+ "onUpdate:modelValue": t[13] || (t[13] = (m) => a.activityEnvironment = m)
437
+ }, null, 8, ["modelValue"])
438
+ ])) : (v(), V("div", ut, t[23] || (t[23] = [
439
+ r("span", { class: "ma-2" }, " No required input ", -1)
440
+ ]))),
441
+ I(i(c, { class: "mt-2" }, {
442
+ default: n(() => [
443
+ r("span", {
444
+ class: "ma-2 text-red",
445
+ textContent: S(o.typeError)
446
+ }, null, 8, mt)
447
+ ]),
448
+ _: 1
449
+ }, 512), [
450
+ [N, o.typeError]
451
+ ])
452
+ ])
453
+ ]),
454
+ _: 1
455
+ })
456
+ ]),
457
+ _: 2
458
+ }, [
459
+ a.dialogStep === 2 ? {
460
+ name: "actions",
461
+ fn: n(() => [
462
+ i(c, { class: "ma-0 px-6 pb-4" }, {
463
+ default: n(() => [
464
+ i(h, {
465
+ onClick: t[0] || (t[0] = () => a.dialogStep -= 1),
466
+ variant: "text"
467
+ }, {
468
+ default: n(() => t[18] || (t[18] = [
469
+ y(" Previous ")
470
+ ])),
471
+ _: 1
472
+ }),
473
+ i(d),
474
+ i(h, {
475
+ onClick: o.clearHandler,
476
+ variant: "outlined",
477
+ class: "mr-4"
478
+ }, {
479
+ default: n(() => t[19] || (t[19] = [
480
+ y(" Cancel ")
481
+ ])),
482
+ _: 1
483
+ }, 8, ["onClick"]),
484
+ i(h, {
485
+ onClick: P(o.submitHandler, ["prevent"]),
486
+ type: "submit",
487
+ color: "primary",
488
+ disabled: !!e.error
489
+ }, {
490
+ default: n(() => t[20] || (t[20] = [
491
+ y(" Ok ")
492
+ ])),
493
+ _: 1
494
+ }, 8, ["onClick", "disabled"])
495
+ ]),
496
+ _: 1
497
+ })
498
+ ]),
499
+ key: "0"
500
+ } : void 0
501
+ ]), 1032, ["modelValue"])
502
+ ]),
503
+ _: 1
504
+ })
505
+ ]),
506
+ _: 1
507
+ }, 8, ["modelValue"])
508
+ ]);
509
+ }
510
+ const pt = /* @__PURE__ */ q(at, [["render", ct], ["__scopeId", "data-v-808c8059"]]), vt = {
511
+ components: {},
512
+ props: {
513
+ modelValue: {
514
+ type: String,
515
+ required: !0
516
+ }
517
+ },
518
+ data() {
519
+ return {
520
+ selectedColor: ""
521
+ };
522
+ },
523
+ computed: {
524
+ color: {
525
+ get() {
526
+ return this.modelValue;
527
+ },
528
+ set(e) {
529
+ this.$emit("update:modelValue", e);
530
+ }
531
+ },
532
+ swatches: function() {
533
+ return [
534
+ "#005a8f",
535
+ "#003784",
536
+ "#8F3400",
537
+ "#df1368",
538
+ "#ff5252",
539
+ "#df323b",
540
+ "#9f0010",
541
+ "#2d9437",
542
+ "#004700",
543
+ "#db7200",
544
+ "#802700",
545
+ "#0f2941"
546
+ ];
547
+ }
548
+ },
549
+ methods: {}
550
+ };
551
+ function ht(e, t, s, u, a, o) {
552
+ const d = l("v-icon"), D = l("v-list-item"), k = l("v-select");
553
+ return v(), V("div", null, [
554
+ i(k, {
555
+ label: "Color",
556
+ items: o.swatches,
557
+ modelValue: a.selectedColor,
558
+ "onUpdate:modelValue": t[0] || (t[0] = (b) => a.selectedColor = b)
559
+ }, R({
560
+ item: n(({ props: b, item: h }) => [
561
+ i(D, j(b, { value: h }), {
562
+ prepend: n(() => [
563
+ i(d, { color: h }, {
564
+ default: n(() => t[2] || (t[2] = [
565
+ y(" mdi-square ")
566
+ ])),
567
+ _: 2
568
+ }, 1032, ["color"])
569
+ ]),
570
+ _: 2
571
+ }, 1040, ["value"])
572
+ ]),
573
+ _: 2
574
+ }, [
575
+ a.selectedColor ? {
576
+ name: "prepend-inner",
577
+ fn: n(() => [
578
+ i(d, { color: a.selectedColor }, {
579
+ default: n(() => t[1] || (t[1] = [
580
+ y(" mdi-square ")
581
+ ])),
582
+ _: 1
583
+ }, 8, ["color"])
584
+ ]),
585
+ key: "0"
586
+ } : void 0
587
+ ]), 1032, ["items", "modelValue"])
588
+ ]);
589
+ }
590
+ const L = /* @__PURE__ */ q(vt, [["render", ht]]), yt = {
591
+ methods: {
592
+ deleteItem(e) {
593
+ let t = null, s = "";
594
+ switch (e.type.toLowerCase()) {
595
+ case "activity":
596
+ s = "activity", t = e.activity.start;
597
+ break;
598
+ case "metadata":
599
+ s = "metadata", t = e.metadata.start;
600
+ break;
601
+ case "note":
602
+ s = "notes", t = e.note.start;
603
+ break;
604
+ }
605
+ this.$dialog.confirm(
606
+ `Are you sure you want to remove ${e.typeStr} at ${e.startStr}`,
607
+ {
608
+ okText: "Delete",
609
+ cancelText: "Cancel"
610
+ }
611
+ ).then(() => U.delete(`/openc3-api/${s}/${t}`)).then(() => {
612
+ this.$emit("delete", e), this.$notify.normal({
613
+ title: `Deleted ${e.typeStr}`,
614
+ body: `Deleted ${e.typeStr} at ${e.startStr}`
615
+ });
616
+ }).catch(() => {
617
+ });
618
+ }
619
+ }
620
+ }, ft = {
621
+ components: {},
622
+ props: {
623
+ modelValue: {
624
+ type: Array,
625
+ required: !0
626
+ }
627
+ },
628
+ data() {
629
+ return {};
630
+ },
631
+ computed: {
632
+ metadata: {
633
+ get() {
634
+ return this.modelValue;
635
+ },
636
+ set(e) {
637
+ this.$emit("update:modelValue", e);
638
+ }
639
+ }
640
+ },
641
+ methods: {
642
+ newMetadata: function() {
643
+ this.metadata.push({
644
+ key: "",
645
+ value: ""
646
+ });
647
+ },
648
+ rm: function(e) {
649
+ this.metadata.splice(e, 1);
650
+ }
651
+ }
652
+ }, _t = {
653
+ scope: "col",
654
+ class: "text-right"
655
+ };
656
+ function Vt(e, t, s, u, a, o) {
657
+ const d = l("v-icon"), D = l("v-tooltip"), k = l("v-text-field"), b = l("v-table");
658
+ return v(), V("div", null, [
659
+ i(b, { dense: "" }, {
660
+ default: n(() => [
661
+ r("tbody", null, [
662
+ r("tr", null, [
663
+ t[2] || (t[2] = r("th", {
664
+ scope: "col",
665
+ class: "text-left"
666
+ }, "Key", -1)),
667
+ t[3] || (t[3] = r("th", {
668
+ scope: "col",
669
+ class: "text-left"
670
+ }, "Value", -1)),
671
+ r("th", _t, [
672
+ i(D, { location: "top" }, {
673
+ activator: n(({ props: h }) => [
674
+ r("div", H(Z(h)), [
675
+ i(d, {
676
+ "data-test": "new-metadata-icon",
677
+ onClick: o.newMetadata
678
+ }, {
679
+ default: n(() => t[0] || (t[0] = [
680
+ y(" mdi-plus ")
681
+ ])),
682
+ _: 1
683
+ }, 8, ["onClick"])
684
+ ], 16)
685
+ ]),
686
+ default: n(() => [
687
+ t[1] || (t[1] = r("span", null, " New Metadata ", -1))
688
+ ]),
689
+ _: 1
690
+ })
691
+ ])
692
+ ]),
693
+ (v(!0), V(K, null, W(o.metadata, (h, c) => (v(), V("tr", {
694
+ key: `tr-${c}`
695
+ }, [
696
+ r("td", null, [
697
+ i(k, {
698
+ modelValue: h.key,
699
+ "onUpdate:modelValue": (_) => h.key = _,
700
+ type: "text",
701
+ density: "compact",
702
+ "data-test": `key-${c}`
703
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "data-test"])
704
+ ]),
705
+ r("td", null, [
706
+ i(k, {
707
+ modelValue: h.value,
708
+ "onUpdate:modelValue": (_) => h.value = _,
709
+ type: "text",
710
+ density: "compact",
711
+ "data-test": `value-${c}`
712
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "data-test"])
713
+ ]),
714
+ r("td", null, [
715
+ i(D, { location: "top" }, {
716
+ activator: n(({ props: _ }) => [
717
+ r("div", j({ ref_for: !0 }, _), [
718
+ i(d, {
719
+ "data-test": `delete-metadata-icon-${c}`,
720
+ onClick: (w) => o.rm(c)
721
+ }, {
722
+ default: n(() => t[4] || (t[4] = [
723
+ y(" mdi-delete ")
724
+ ])),
725
+ _: 2
726
+ }, 1032, ["data-test", "onClick"])
727
+ ], 16)
728
+ ]),
729
+ default: n(() => [
730
+ t[5] || (t[5] = r("span", null, " Delete Metadata ", -1))
731
+ ]),
732
+ _: 2
733
+ }, 1024)
734
+ ])
735
+ ]))), 128))
736
+ ])
737
+ ]),
738
+ _: 1
739
+ })
740
+ ]);
741
+ }
742
+ const Dt = /* @__PURE__ */ q(ft, [["render", Vt]]), wt = {
743
+ components: {
744
+ ColorSelectForm: L,
745
+ MetadataInputForm: Dt
746
+ },
747
+ props: {
748
+ modelValue: Boolean,
749
+ metadata: {
750
+ type: Object,
751
+ default: null
752
+ }
753
+ },
754
+ mixins: [B, z],
755
+ data() {
756
+ return {
757
+ dialogStep: 1,
758
+ color: "#003784",
759
+ metadataVals: [],
760
+ rules: {
761
+ required: (e) => !!e || "Required"
762
+ }
763
+ };
764
+ },
765
+ mounted: function() {
766
+ this.updateValues();
767
+ },
768
+ computed: {
769
+ typeError: function() {
770
+ return this.color ? this.metadataVals.length < 1 ? "Please enter a value in the metadata table." : this.metadataVals.find(
771
+ (t) => t.key === "" || t.value === ""
772
+ ) ? "Missing or empty key, value in the metadata table." : null : "A color is required.";
773
+ },
774
+ show: {
775
+ get() {
776
+ return this.modelValue;
777
+ },
778
+ set(e) {
779
+ this.$emit("update:modelValue", e);
780
+ }
781
+ }
782
+ },
783
+ methods: {
784
+ updateValues: function() {
785
+ if (this.dialogStep = 1, this.metadata) {
786
+ const e = new Date(this.metadata.start * 1e3);
787
+ this.startDate = this.formatDate(e, this.timeZone), this.startTime = this.formatTimeHMS(e, this.timeZone), this.color = this.metadata.color, this.metadataVals = Object.keys(this.metadata.metadata).map((t) => ({ key: t, value: this.metadata.metadata[t] }));
788
+ } else
789
+ this.calcStartDateTime(), this.color = "#003784", this.metadataVals = [];
790
+ },
791
+ clearHandler: function() {
792
+ this.show = !this.show;
793
+ },
794
+ submitHandler() {
795
+ const e = this.color, t = this.metadataVals.reduce((u, a) => (u[a.key] = a.value, u), {}), s = { color: e, metadata: t };
796
+ this.timeZone === "local" ? s.start = (/* @__PURE__ */ new Date(
797
+ this.startDate + " " + this.startTime
798
+ )).toISOString() : s.start = (/* @__PURE__ */ new Date(
799
+ this.startDate + " " + this.startTime + "Z"
800
+ )).toISOString(), this.metadata ? U.put(`/openc3-api/metadata/${this.metadata.start}`, {
801
+ data: s
802
+ }).then((u) => {
803
+ this.$notify.normal({
804
+ title: "Updated Metadata",
805
+ body: `Metadata updated: (${u.data.start})`
806
+ }), this.$emit("update", u.data), this.show = !this.show;
807
+ }) : U.post("/openc3-api/metadata", {
808
+ data: s
809
+ }).then((u) => {
810
+ this.$notify.normal({
811
+ title: "Created new Metadata",
812
+ body: `Metadata: (${u.data.start})`
813
+ }), this.$emit("update", u.data), this.show = !this.show;
814
+ });
815
+ }
816
+ }
817
+ }, gt = { key: 0 }, bt = { key: 1 }, kt = { class: "pa-2" }, Ct = { class: "pa-2" }, Tt = { style: { "min-height": "200px" } }, St = ["textContent"];
818
+ function Et(e, t, s, u, a, o) {
819
+ const d = l("v-spacer"), D = l("v-icon"), k = l("v-tooltip"), b = l("v-toolbar"), h = l("v-btn"), c = l("v-row"), _ = l("color-select-form"), w = l("v-text-field"), T = l("v-card-text"), C = l("metadata-input-form"), E = l("v-stepper"), x = l("v-card"), f = l("v-dialog");
820
+ return v(), V("div", null, [
821
+ i(f, {
822
+ persistent: "",
823
+ modelValue: o.show,
824
+ "onUpdate:modelValue": t[6] || (t[6] = (g) => o.show = g),
825
+ width: "600"
826
+ }, {
827
+ default: n(() => [
828
+ i(x, null, {
829
+ default: n(() => [
830
+ i(b, { height: "24" }, {
831
+ default: n(() => [
832
+ i(d),
833
+ s.metadata ? (v(), V("span", gt, "Update Metadata")) : (v(), V("span", bt, "Create Metadata")),
834
+ i(d),
835
+ i(k, { location: "top" }, {
836
+ activator: n(({ props: g }) => [
837
+ r("div", H(Z(g)), [
838
+ i(D, {
839
+ "data-test": "close-metadata-icon",
840
+ onClick: o.clearHandler
841
+ }, {
842
+ default: n(() => t[7] || (t[7] = [
843
+ y(" mdi-close-box ")
844
+ ])),
845
+ _: 1
846
+ }, 8, ["onClick"])
847
+ ], 16)
848
+ ]),
849
+ default: n(() => [
850
+ t[8] || (t[8] = r("span", null, "Close", -1))
851
+ ]),
852
+ _: 1
853
+ })
854
+ ]),
855
+ _: 1
856
+ }),
857
+ i(E, {
858
+ modelValue: a.dialogStep,
859
+ "onUpdate:modelValue": t[5] || (t[5] = (g) => a.dialogStep = g),
860
+ editable: "",
861
+ items: ["Metadata Times", "Metadata Input"]
862
+ }, R({
863
+ "item.1": n(() => [
864
+ i(T, null, {
865
+ default: n(() => [
866
+ r("div", kt, [
867
+ i(_, {
868
+ modelValue: a.color,
869
+ "onUpdate:modelValue": t[1] || (t[1] = (g) => a.color = g)
870
+ }, null, 8, ["modelValue"]),
871
+ i(c, { dense: "" }, {
872
+ default: n(() => [
873
+ i(w, {
874
+ modelValue: e.startDate,
875
+ "onUpdate:modelValue": t[2] || (t[2] = (g) => e.startDate = g),
876
+ type: "date",
877
+ label: "Start Date",
878
+ class: "mx-1",
879
+ rules: [a.rules.required],
880
+ "data-test": "metadata-start-date"
881
+ }, null, 8, ["modelValue", "rules"]),
882
+ i(w, {
883
+ modelValue: e.startTime,
884
+ "onUpdate:modelValue": t[3] || (t[3] = (g) => e.startTime = g),
885
+ type: "time",
886
+ step: "1",
887
+ label: "Start Time",
888
+ class: "mx-1",
889
+ rules: [a.rules.required],
890
+ "data-test": "metadata-start-time"
891
+ }, null, 8, ["modelValue", "rules"])
892
+ ]),
893
+ _: 1
894
+ })
895
+ ])
896
+ ]),
897
+ _: 1
898
+ })
899
+ ]),
900
+ "item.2": n(() => [
901
+ i(T, null, {
902
+ default: n(() => [
903
+ r("div", Ct, [
904
+ r("div", Tt, [
905
+ i(C, {
906
+ modelValue: a.metadataVals,
907
+ "onUpdate:modelValue": t[4] || (t[4] = (g) => a.metadataVals = g)
908
+ }, null, 8, ["modelValue"])
909
+ ]),
910
+ I(i(c, null, {
911
+ default: n(() => [
912
+ r("span", {
913
+ class: "ma-2 text-red",
914
+ textContent: S(o.typeError)
915
+ }, null, 8, St)
916
+ ]),
917
+ _: 1
918
+ }, 512), [
919
+ [N, o.typeError]
920
+ ])
921
+ ])
922
+ ]),
923
+ _: 1
924
+ })
925
+ ]),
926
+ _: 2
927
+ }, [
928
+ a.dialogStep === 2 ? {
929
+ name: "actions",
930
+ fn: n(() => [
931
+ i(c, { class: "ma-0 px-6 pb-4" }, {
932
+ default: n(() => [
933
+ i(h, {
934
+ onClick: t[0] || (t[0] = () => a.dialogStep -= 1),
935
+ variant: "text"
936
+ }, {
937
+ default: n(() => t[9] || (t[9] = [
938
+ y(" Previous ")
939
+ ])),
940
+ _: 1
941
+ }),
942
+ i(d),
943
+ i(h, {
944
+ onClick: o.clearHandler,
945
+ variant: "outlined",
946
+ class: "mr-4"
947
+ }, {
948
+ default: n(() => t[10] || (t[10] = [
949
+ y(" Cancel ")
950
+ ])),
951
+ _: 1
952
+ }, 8, ["onClick"]),
953
+ i(h, {
954
+ onClick: P(o.submitHandler, ["prevent"]),
955
+ type: "submit",
956
+ color: "primary",
957
+ disabled: !!e.error
958
+ }, {
959
+ default: n(() => t[11] || (t[11] = [
960
+ y(" Ok ")
961
+ ])),
962
+ _: 1
963
+ }, 8, ["onClick", "disabled"])
964
+ ]),
965
+ _: 1
966
+ })
967
+ ]),
968
+ key: "0"
969
+ } : void 0
970
+ ]), 1032, ["modelValue"])
971
+ ]),
972
+ _: 1
973
+ })
974
+ ]),
975
+ _: 1
976
+ }, 8, ["modelValue"])
977
+ ]);
978
+ }
979
+ const Ut = /* @__PURE__ */ q(wt, [["render", Et], ["__scopeId", "data-v-364c2ff6"]]), xt = {
980
+ components: {
981
+ ColorSelectForm: L
982
+ },
983
+ props: {
984
+ modelValue: Boolean,
985
+ note: {
986
+ type: Object
987
+ }
988
+ },
989
+ mixins: [B, z],
990
+ data() {
991
+ return {
992
+ dialogStep: 1,
993
+ description: "",
994
+ color: "#8F3400",
995
+ rules: {
996
+ required: (e) => !!e || "Required"
997
+ }
998
+ };
999
+ },
1000
+ mounted: function() {
1001
+ this.updateValues();
1002
+ },
1003
+ computed: {
1004
+ timeError: function() {
1005
+ let e, t;
1006
+ return this.timeZone === "local" ? (e = /* @__PURE__ */ new Date(this.startDate + " " + this.startTime), t = /* @__PURE__ */ new Date(this.endDate + " " + this.endTime)) : (e = /* @__PURE__ */ new Date(this.startDate + " " + this.startTime + "Z"), t = /* @__PURE__ */ new Date(this.endDate + " " + this.endTime + "Z")), e === t ? "Invalid start, end time. Notes must have different start and end times." : e > t ? "Invalid start time. Notes start before end." : null;
1007
+ },
1008
+ typeError: function() {
1009
+ return this.color ? this.description ? null : "A description is required for a valid note." : "A color is required.";
1010
+ },
1011
+ show: {
1012
+ get() {
1013
+ return this.modelValue;
1014
+ },
1015
+ set(e) {
1016
+ this.$emit("update:modelValue", e);
1017
+ }
1018
+ }
1019
+ },
1020
+ methods: {
1021
+ updateValues: function() {
1022
+ if (this.dialogStep = 1, this.note) {
1023
+ const e = new Date(this.note.start * 1e3);
1024
+ this.startDate = this.formatDate(e, this.timeZone), this.startTime = this.formatTimeHMS(e, this.timeZone);
1025
+ const t = new Date(this.note.stop * 1e3);
1026
+ this.endDate = this.formatDate(t, this.timeZone), this.endTime = this.formatTimeHMS(t, this.timeZone), this.color = this.note.color, this.description = this.note.description;
1027
+ } else
1028
+ this.calcStartDateTime(), this.color = "#8F3400", this.description = "";
1029
+ },
1030
+ clearHandler: function() {
1031
+ this.show = !this.show;
1032
+ },
1033
+ submitHandler() {
1034
+ let e, t;
1035
+ this.timeZone === "local" ? (e = (/* @__PURE__ */ new Date(this.startDate + " " + this.startTime)).toISOString(), t = (/* @__PURE__ */ new Date(this.endDate + " " + this.endTime)).toISOString()) : (e = (/* @__PURE__ */ new Date(
1036
+ this.startDate + " " + this.startTime + "Z"
1037
+ )).toISOString(), t = (/* @__PURE__ */ new Date(this.endDate + " " + this.endTime + "Z")).toISOString());
1038
+ const s = this.color, u = this.description;
1039
+ this.note ? U.put(`/openc3-api/notes/${this.note.start}`, {
1040
+ data: { start: e, stop: t, color: s, description: u }
1041
+ }).then((a) => {
1042
+ const o = a.data.description.length > 16 ? `${a.data.description.substring(0, 16)}...` : a.data.description;
1043
+ this.$notify.normal({
1044
+ title: "Updated Note",
1045
+ body: `Note updated: (${a.data.start}): "${o}"`
1046
+ }), this.$emit("update", a.data), this.show = !this.show;
1047
+ }) : U.post("/openc3-api/notes", {
1048
+ data: { start: e, stop: t, color: s, description: u }
1049
+ }).then((a) => {
1050
+ const o = a.data.description.length > 16 ? `${a.data.description.substring(0, 16)}...` : a.data.description;
1051
+ this.$notify.normal({
1052
+ title: "Created new Note",
1053
+ body: `Note: (${a.data.start}) created: "${o}"`
1054
+ }), this.$emit("update", a.data), this.show = !this.show;
1055
+ });
1056
+ }
1057
+ }
1058
+ }, Mt = { key: 0 }, At = { key: 1 }, qt = { class: "pa-2" }, It = ["textContent"], Nt = { class: "pa-2" }, Ht = ["textContent"];
1059
+ function Zt(e, t, s, u, a, o) {
1060
+ const d = l("v-spacer"), D = l("v-icon"), k = l("v-tooltip"), b = l("v-toolbar"), h = l("v-btn"), c = l("v-row"), _ = l("v-text-field"), w = l("v-card-text"), T = l("color-select-form"), C = l("v-stepper"), E = l("v-card"), x = l("v-dialog");
1061
+ return v(), V("div", null, [
1062
+ i(x, {
1063
+ persistent: "",
1064
+ modelValue: o.show,
1065
+ "onUpdate:modelValue": t[8] || (t[8] = (f) => o.show = f),
1066
+ width: "600"
1067
+ }, {
1068
+ default: n(() => [
1069
+ i(E, null, {
1070
+ default: n(() => [
1071
+ i(b, { height: "24" }, {
1072
+ default: n(() => [
1073
+ i(d),
1074
+ s.note ? (v(), V("span", Mt, "Update Note")) : (v(), V("span", At, "Create Note")),
1075
+ i(d),
1076
+ i(k, { location: "top" }, {
1077
+ activator: n(({ props: f }) => [
1078
+ r("div", H(Z(f)), [
1079
+ i(D, {
1080
+ "data-test": "close-note-icon",
1081
+ onClick: o.clearHandler
1082
+ }, {
1083
+ default: n(() => t[9] || (t[9] = [
1084
+ y(" mdi-close-box ")
1085
+ ])),
1086
+ _: 1
1087
+ }, 8, ["onClick"])
1088
+ ], 16)
1089
+ ]),
1090
+ default: n(() => [
1091
+ t[10] || (t[10] = r("span", null, " Close ", -1))
1092
+ ]),
1093
+ _: 1
1094
+ })
1095
+ ]),
1096
+ _: 1
1097
+ }),
1098
+ i(C, {
1099
+ modelValue: a.dialogStep,
1100
+ "onUpdate:modelValue": t[7] || (t[7] = (f) => a.dialogStep = f),
1101
+ editable: "",
1102
+ items: ["Note Times", "Note Input"]
1103
+ }, R({
1104
+ "item.1": n(() => [
1105
+ i(w, null, {
1106
+ default: n(() => [
1107
+ r("div", qt, [
1108
+ i(c, { dense: "" }, {
1109
+ default: n(() => [
1110
+ i(_, {
1111
+ modelValue: e.startDate,
1112
+ "onUpdate:modelValue": t[1] || (t[1] = (f) => e.startDate = f),
1113
+ type: "date",
1114
+ label: "Start Date",
1115
+ class: "mx-1",
1116
+ rules: [a.rules.required],
1117
+ "data-test": "note-start-date"
1118
+ }, null, 8, ["modelValue", "rules"]),
1119
+ i(_, {
1120
+ modelValue: e.startTime,
1121
+ "onUpdate:modelValue": t[2] || (t[2] = (f) => e.startTime = f),
1122
+ type: "time",
1123
+ step: "1",
1124
+ label: "Start Time",
1125
+ class: "mx-1",
1126
+ rules: [a.rules.required],
1127
+ "data-test": "note-start-time"
1128
+ }, null, 8, ["modelValue", "rules"])
1129
+ ]),
1130
+ _: 1
1131
+ }),
1132
+ i(c, { dense: "" }, {
1133
+ default: n(() => [
1134
+ i(_, {
1135
+ modelValue: e.endDate,
1136
+ "onUpdate:modelValue": t[3] || (t[3] = (f) => e.endDate = f),
1137
+ type: "date",
1138
+ label: "End Date",
1139
+ class: "mx-1",
1140
+ rules: [a.rules.required],
1141
+ "data-test": "note-end-date"
1142
+ }, null, 8, ["modelValue", "rules"]),
1143
+ i(_, {
1144
+ modelValue: e.endTime,
1145
+ "onUpdate:modelValue": t[4] || (t[4] = (f) => e.endTime = f),
1146
+ type: "time",
1147
+ step: "1",
1148
+ label: "End Time",
1149
+ class: "mx-1",
1150
+ rules: [a.rules.required],
1151
+ "data-test": "note-end-time"
1152
+ }, null, 8, ["modelValue", "rules"])
1153
+ ]),
1154
+ _: 1
1155
+ }),
1156
+ i(c, null, {
1157
+ default: n(() => [
1158
+ I(r("span", {
1159
+ class: "ma-2 text-red",
1160
+ textContent: S(o.timeError)
1161
+ }, null, 8, It), [
1162
+ [N, o.timeError]
1163
+ ])
1164
+ ]),
1165
+ _: 1
1166
+ })
1167
+ ])
1168
+ ]),
1169
+ _: 1
1170
+ })
1171
+ ]),
1172
+ "item.2": n(() => [
1173
+ i(w, null, {
1174
+ default: n(() => [
1175
+ r("div", Nt, [
1176
+ r("div", null, [
1177
+ i(T, {
1178
+ modelValue: a.color,
1179
+ "onUpdate:modelValue": t[5] || (t[5] = (f) => a.color = f)
1180
+ }, null, 8, ["modelValue"])
1181
+ ]),
1182
+ r("div", null, [
1183
+ i(_, {
1184
+ modelValue: a.description,
1185
+ "onUpdate:modelValue": t[6] || (t[6] = (f) => a.description = f),
1186
+ type: "text",
1187
+ label: "Note Description",
1188
+ "data-test": "note-description"
1189
+ }, null, 8, ["modelValue"])
1190
+ ]),
1191
+ I(i(c, null, {
1192
+ default: n(() => [
1193
+ r("span", {
1194
+ class: "ma-2 text-red",
1195
+ textContent: S(o.typeError)
1196
+ }, null, 8, Ht)
1197
+ ]),
1198
+ _: 1
1199
+ }, 512), [
1200
+ [N, o.typeError]
1201
+ ])
1202
+ ])
1203
+ ]),
1204
+ _: 1
1205
+ })
1206
+ ]),
1207
+ _: 2
1208
+ }, [
1209
+ a.dialogStep === 2 ? {
1210
+ name: "actions",
1211
+ fn: n(() => [
1212
+ i(c, { class: "ma-0 px-6 pb-4" }, {
1213
+ default: n(() => [
1214
+ i(h, {
1215
+ onClick: t[0] || (t[0] = () => a.dialogStep -= 1),
1216
+ variant: "text"
1217
+ }, {
1218
+ default: n(() => t[11] || (t[11] = [
1219
+ y(" Previous ")
1220
+ ])),
1221
+ _: 1
1222
+ }),
1223
+ i(d),
1224
+ i(h, {
1225
+ onClick: o.clearHandler,
1226
+ variant: "outlined",
1227
+ class: "mr-4"
1228
+ }, {
1229
+ default: n(() => t[12] || (t[12] = [
1230
+ y(" Cancel ")
1231
+ ])),
1232
+ _: 1
1233
+ }, 8, ["onClick"]),
1234
+ i(h, {
1235
+ onClick: P(o.submitHandler, ["prevent"]),
1236
+ type: "submit",
1237
+ color: "primary",
1238
+ disabled: !!e.error
1239
+ }, {
1240
+ default: n(() => t[13] || (t[13] = [
1241
+ y(" Ok ")
1242
+ ])),
1243
+ _: 1
1244
+ }, 8, ["onClick", "disabled"])
1245
+ ]),
1246
+ _: 1
1247
+ })
1248
+ ]),
1249
+ key: "0"
1250
+ } : void 0
1251
+ ]), 1032, ["modelValue"])
1252
+ ]),
1253
+ _: 1
1254
+ })
1255
+ ]),
1256
+ _: 1
1257
+ }, 8, ["modelValue"])
1258
+ ]);
1259
+ }
1260
+ const Ot = /* @__PURE__ */ q(xt, [["render", Zt], ["__scopeId", "data-v-87960c87"]]), Rt = {
1261
+ components: {
1262
+ ActivityCreateDialog: pt,
1263
+ MetadataCreateDialog: Ut,
1264
+ NoteCreateDialog: Ot
1265
+ },
1266
+ mixins: [z, yt],
1267
+ props: {
1268
+ events: {
1269
+ type: Array,
1270
+ required: !0
1271
+ },
1272
+ modelValue: {
1273
+ type: Boolean,
1274
+ required: !0
1275
+ },
1276
+ timeZone: {
1277
+ type: String,
1278
+ required: !0
1279
+ },
1280
+ types: {
1281
+ type: Array
1282
+ },
1283
+ newMetadata: {
1284
+ type: Boolean,
1285
+ default: !1
1286
+ }
1287
+ },
1288
+ data() {
1289
+ return {
1290
+ search: "",
1291
+ localEvents: [...this.events],
1292
+ eventHeaders: [
1293
+ { title: "Start", key: "start", width: 215 },
1294
+ { title: "Stop", key: "end", width: 215 },
1295
+ { title: "Type", key: "type" },
1296
+ { title: "Data", key: "data" },
1297
+ { title: "Actions", key: "actions", sortable: !1 }
1298
+ ],
1299
+ editActivity: { start: /* @__PURE__ */ new Date(), end: /* @__PURE__ */ new Date() },
1300
+ editMetadata: { start: /* @__PURE__ */ new Date(), end: /* @__PURE__ */ new Date() },
1301
+ editNote: { start: /* @__PURE__ */ new Date(), end: /* @__PURE__ */ new Date() },
1302
+ editIndex: 0,
1303
+ showActivityUpdate: !1,
1304
+ showMetadataUpdate: !1,
1305
+ showNoteUpdate: !1,
1306
+ showMetadataCreate: !1
1307
+ };
1308
+ },
1309
+ computed: {
1310
+ show: {
1311
+ get() {
1312
+ return this.modelValue;
1313
+ },
1314
+ set(e) {
1315
+ this.$emit("update:modelValue", e);
1316
+ }
1317
+ }
1318
+ },
1319
+ created: function() {
1320
+ },
1321
+ methods: {
1322
+ close() {
1323
+ this.$emit("close"), this.show = !1;
1324
+ },
1325
+ dataFormat(e) {
1326
+ let t = e.name;
1327
+ switch (e.type) {
1328
+ case "note":
1329
+ t = e.note.description;
1330
+ break;
1331
+ case "metadata":
1332
+ let s = [];
1333
+ Object.entries(e.metadata.metadata).forEach(
1334
+ ([u, a]) => s.push(`${u}: ${a}`)
1335
+ ), t = s.join(", ");
1336
+ break;
1337
+ }
1338
+ return t;
1339
+ },
1340
+ editAction(e) {
1341
+ switch (this.editIndex = this.localEvents.findIndex((t) => t.type === e.type && t.start === e.start), e.type) {
1342
+ case "activity":
1343
+ this.editActivity = e.activity, this.showActivityUpdate = !0;
1344
+ break;
1345
+ case "metadata":
1346
+ this.editMetadata = e.metadata, this.showMetadataUpdate = !0;
1347
+ break;
1348
+ case "note":
1349
+ this.editNote = e.note, this.showNoteUpdate = !0;
1350
+ break;
1351
+ }
1352
+ },
1353
+ deleteAction(e) {
1354
+ let t = this.localEvents.findIndex((o) => o.type === e.type && o.start === e.start), s = null, u = null, a = null;
1355
+ switch (e.type) {
1356
+ case "activity":
1357
+ s = `timeline/${e.activity.name}/activity`, u = e.activity.start, a = e.activity.uuid;
1358
+ break;
1359
+ case "metadata":
1360
+ s = "metadata", u = e.metadata.start;
1361
+ break;
1362
+ case "note":
1363
+ s = "notes", u = e.note.start;
1364
+ break;
1365
+ }
1366
+ this.$dialog.confirm(
1367
+ `Are you sure you want to remove ${e.type} at ${e.start}`,
1368
+ {
1369
+ okText: "Delete",
1370
+ cancelText: "Cancel"
1371
+ }
1372
+ ).then((o) => {
1373
+ this.localEvents.splice(t, 1);
1374
+ let d = `/openc3-api/${s}/${u}`;
1375
+ return a && (d += `/${a}`), U.delete(d);
1376
+ }).then((o) => {
1377
+ this.$emit("update"), this.$notify.normal({
1378
+ title: `Deleted ${e.type}`,
1379
+ body: `Deleted ${e.type} at ${u}`
1380
+ });
1381
+ }).catch((o) => {
1382
+ });
1383
+ },
1384
+ updateActivity(e) {
1385
+ this.$emit("update"), this.localEvents[this.editIndex].activity = e;
1386
+ },
1387
+ updateMetadata(e) {
1388
+ this.$emit("update"), this.localEvents[this.editIndex].metadata = e;
1389
+ },
1390
+ updateNote(e) {
1391
+ this.$emit("update"), this.localEvents[this.editIndex].note = e;
1392
+ },
1393
+ addMetadata(e) {
1394
+ let t = {
1395
+ name: "Metadata",
1396
+ start: new Date(e.start * 1e3),
1397
+ end: new Date(e.start * 1e3),
1398
+ color: e.color,
1399
+ type: e.type,
1400
+ timed: !0,
1401
+ metadata: e
1402
+ };
1403
+ this.localEvents.push(t);
1404
+ }
1405
+ }
1406
+ }, zt = { key: 0 }, Ft = { key: 1 }, Pt = { key: 0 }, Bt = { key: 1 };
1407
+ function jt(e, t, s, u, a, o) {
1408
+ const d = l("v-spacer"), D = l("v-icon"), k = l("v-tooltip"), b = l("v-toolbar"), h = l("v-text-field"), c = l("v-row"), _ = l("v-card-title"), w = l("v-data-table"), T = l("v-btn"), C = l("v-card-actions"), E = l("v-card"), x = l("v-dialog"), f = l("activity-create-dialog"), g = l("metadata-create-dialog"), F = l("note-create-dialog");
1409
+ return v(), V("div", null, [
1410
+ i(x, {
1411
+ persistent: "",
1412
+ modelValue: o.show,
1413
+ "onUpdate:modelValue": t[2] || (t[2] = (p) => o.show = p),
1414
+ width: "80vw"
1415
+ }, {
1416
+ default: n(() => [
1417
+ i(E, null, {
1418
+ default: n(() => [
1419
+ i(b, { height: "24" }, {
1420
+ default: n(() => [
1421
+ i(d),
1422
+ s.newMetadata ? (v(), V("span", zt, "Metadata")) : (v(), V("span", Ft, "Events")),
1423
+ i(d),
1424
+ i(k, { location: "top" }, {
1425
+ activator: n(({ props: p }) => [
1426
+ r("div", H(Z(p)), [
1427
+ i(D, {
1428
+ "data-test": "close-metadata-icon",
1429
+ onClick: o.close
1430
+ }, {
1431
+ default: n(() => t[7] || (t[7] = [
1432
+ y(" mdi-close-box ")
1433
+ ])),
1434
+ _: 1
1435
+ }, 8, ["onClick"])
1436
+ ], 16)
1437
+ ]),
1438
+ default: n(() => [
1439
+ t[8] || (t[8] = r("span", null, "Close", -1))
1440
+ ]),
1441
+ _: 1
1442
+ })
1443
+ ]),
1444
+ _: 1
1445
+ }),
1446
+ i(_, null, {
1447
+ default: n(() => [
1448
+ i(c, { class: "pa-3" }, {
1449
+ default: n(() => [
1450
+ s.newMetadata ? (v(), V("span", Pt, "Metadata")) : (v(), V("span", Bt, "Events")),
1451
+ i(d),
1452
+ i(h, {
1453
+ modelValue: a.search,
1454
+ "onUpdate:modelValue": t[0] || (t[0] = (p) => a.search = p),
1455
+ label: "Search",
1456
+ "prepend-inner-icon": "mdi-magnify",
1457
+ clearable: "",
1458
+ variant: "outlined",
1459
+ density: "compact",
1460
+ "single-line": "",
1461
+ "hide-details": ""
1462
+ }, null, 8, ["modelValue"])
1463
+ ]),
1464
+ _: 1
1465
+ })
1466
+ ]),
1467
+ _: 1
1468
+ }),
1469
+ i(w, {
1470
+ headers: a.eventHeaders,
1471
+ items: a.localEvents,
1472
+ search: a.search
1473
+ }, {
1474
+ "no-data": n(() => t[9] || (t[9] = [
1475
+ r("span", null, " No events ", -1)
1476
+ ])),
1477
+ "item.start": n(({ item: p }) => [
1478
+ y(S(e.formatDateTime(p.start, s.timeZone)), 1)
1479
+ ]),
1480
+ "item.end": n(({ item: p }) => [
1481
+ y(S(e.formatDateTime(p.end, s.timeZone)), 1)
1482
+ ]),
1483
+ "item.type": n(({ item: p }) => [
1484
+ y(S(p.type.charAt(0).toUpperCase() + p.type.slice(1)), 1)
1485
+ ]),
1486
+ "item.data": n(({ item: p }) => [
1487
+ y(S(o.dataFormat(p)), 1)
1488
+ ]),
1489
+ "item.actions": n(({ item: p }) => [
1490
+ i(D, {
1491
+ size: "small",
1492
+ class: "mr-2",
1493
+ onClick: (m) => o.editAction(p),
1494
+ "data-test": "edit-event"
1495
+ }, {
1496
+ default: n(() => t[10] || (t[10] = [
1497
+ y(" mdi-pencil ")
1498
+ ])),
1499
+ _: 2
1500
+ }, 1032, ["onClick"]),
1501
+ i(D, {
1502
+ size: "small",
1503
+ onClick: (m) => o.deleteAction(p),
1504
+ "data-test": "delete-event"
1505
+ }, {
1506
+ default: n(() => t[11] || (t[11] = [
1507
+ y(" mdi-delete ")
1508
+ ])),
1509
+ _: 2
1510
+ }, 1032, ["onClick"])
1511
+ ]),
1512
+ _: 1
1513
+ }, 8, ["headers", "items", "search"]),
1514
+ i(C, { class: "px-2" }, {
1515
+ default: n(() => [
1516
+ i(d),
1517
+ i(T, {
1518
+ variant: "outlined",
1519
+ "data-test": "close-event-list",
1520
+ onClick: o.close
1521
+ }, {
1522
+ default: n(() => t[12] || (t[12] = [
1523
+ y(" Close ")
1524
+ ])),
1525
+ _: 1
1526
+ }, 8, ["onClick"]),
1527
+ s.newMetadata ? (v(), M(T, {
1528
+ key: 0,
1529
+ variant: "flat",
1530
+ "data-test": "new-event",
1531
+ onClick: t[1] || (t[1] = (p) => a.showMetadataCreate = !0)
1532
+ }, {
1533
+ default: n(() => t[13] || (t[13] = [
1534
+ y(" New Metadata ")
1535
+ ])),
1536
+ _: 1
1537
+ })) : A("", !0)
1538
+ ]),
1539
+ _: 1
1540
+ })
1541
+ ]),
1542
+ _: 1
1543
+ })
1544
+ ]),
1545
+ _: 1
1546
+ }, 8, ["modelValue"]),
1547
+ a.showActivityUpdate ? (v(), M(f, {
1548
+ key: 0,
1549
+ modelValue: a.showActivityUpdate,
1550
+ "onUpdate:modelValue": t[3] || (t[3] = (p) => a.showActivityUpdate = p),
1551
+ activity: a.editActivity,
1552
+ "time-zone": s.timeZone,
1553
+ onUpdate: o.updateActivity
1554
+ }, null, 8, ["modelValue", "activity", "time-zone", "onUpdate"])) : A("", !0),
1555
+ a.showMetadataUpdate ? (v(), M(g, {
1556
+ key: 1,
1557
+ modelValue: a.showMetadataUpdate,
1558
+ "onUpdate:modelValue": t[4] || (t[4] = (p) => a.showMetadataUpdate = p),
1559
+ metadata: a.editMetadata,
1560
+ "time-zone": s.timeZone,
1561
+ onUpdate: o.updateMetadata
1562
+ }, null, 8, ["modelValue", "metadata", "time-zone", "onUpdate"])) : A("", !0),
1563
+ a.showNoteUpdate ? (v(), M(F, {
1564
+ key: 2,
1565
+ modelValue: a.showNoteUpdate,
1566
+ "onUpdate:modelValue": t[5] || (t[5] = (p) => a.showNoteUpdate = p),
1567
+ note: a.editNote,
1568
+ "time-zone": s.timeZone,
1569
+ onUpdate: o.updateNote
1570
+ }, null, 8, ["modelValue", "note", "time-zone", "onUpdate"])) : A("", !0),
1571
+ a.showMetadataCreate ? (v(), M(g, {
1572
+ key: 3,
1573
+ modelValue: a.showMetadataCreate,
1574
+ "onUpdate:modelValue": t[6] || (t[6] = (p) => a.showMetadataCreate = p),
1575
+ "time-zone": s.timeZone,
1576
+ onUpdate: o.addMetadata
1577
+ }, null, 8, ["modelValue", "time-zone", "onUpdate"])) : A("", !0)
1578
+ ]);
1579
+ }
1580
+ const $t = /* @__PURE__ */ q(Rt, [["render", jt]]);
1581
+ export {
1582
+ pt as ActivityCreateDialog,
1583
+ L as ColorSelectForm,
1584
+ B as CreateDialog,
1585
+ yt as DeleteItem,
1586
+ $t as EventListDialog,
1587
+ Ut as MetadataCreateDialog,
1588
+ Dt as MetadataInputForm,
1589
+ Ot as NoteCreateDialog
1590
+ };
1591
+ //# sourceMappingURL=calendar.js.map