@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,1519 +0,0 @@
1
- import { n as dt } from "./UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_6fa47877_lang-BrapmXxi.js";
2
- import { resolveComponent as j, openBlock as Et, createElementBlock as Jt, createVNode as A, withCtx as x, createTextVNode as Dt, toDisplayString as me, createElementVNode as Kt, Fragment as Ve, renderList as ze, normalizeClass as Ue, mergeProps as ge, createBlock as ve, createCommentVNode as be } from "vue";
3
- import { _ as $e } from "./CosmosRuxIcon.vue_vue_type_style_index_0_scoped_9af48e85_lang-CHgC5LLL.js";
4
- import { O as qe } from "./OutputDialog-CjFsDUYh.js";
5
- /**!
6
- * Sortable 1.15.3
7
- * @author RubaXa <trash@rubaxa.org>
8
- * @author owenm <owen23355@gmail.com>
9
- * @license MIT
10
- */
11
- function _e(e, t) {
12
- var n = Object.keys(e);
13
- if (Object.getOwnPropertySymbols) {
14
- var o = Object.getOwnPropertySymbols(e);
15
- t && (o = o.filter(function(i) {
16
- return Object.getOwnPropertyDescriptor(e, i).enumerable;
17
- })), n.push.apply(n, o);
18
- }
19
- return n;
20
- }
21
- function $(e) {
22
- for (var t = 1; t < arguments.length; t++) {
23
- var n = arguments[t] != null ? arguments[t] : {};
24
- t % 2 ? _e(Object(n), !0).forEach(function(o) {
25
- Je(e, o, n[o]);
26
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : _e(Object(n)).forEach(function(o) {
27
- Object.defineProperty(e, o, Object.getOwnPropertyDescriptor(n, o));
28
- });
29
- }
30
- return e;
31
- }
32
- function Yt(e) {
33
- "@babel/helpers - typeof";
34
- return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Yt = function(t) {
35
- return typeof t;
36
- } : Yt = function(t) {
37
- return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
38
- }, Yt(e);
39
- }
40
- function Je(e, t, n) {
41
- return t in e ? Object.defineProperty(e, t, {
42
- value: n,
43
- enumerable: !0,
44
- configurable: !0,
45
- writable: !0
46
- }) : e[t] = n, e;
47
- }
48
- function K() {
49
- return K = Object.assign || function(e) {
50
- for (var t = 1; t < arguments.length; t++) {
51
- var n = arguments[t];
52
- for (var o in n)
53
- Object.prototype.hasOwnProperty.call(n, o) && (e[o] = n[o]);
54
- }
55
- return e;
56
- }, K.apply(this, arguments);
57
- }
58
- function Ke(e, t) {
59
- if (e == null) return {};
60
- var n = {}, o = Object.keys(e), i, r;
61
- for (r = 0; r < o.length; r++)
62
- i = o[r], !(t.indexOf(i) >= 0) && (n[i] = e[i]);
63
- return n;
64
- }
65
- function Ze(e, t) {
66
- if (e == null) return {};
67
- var n = Ke(e, t), o, i;
68
- if (Object.getOwnPropertySymbols) {
69
- var r = Object.getOwnPropertySymbols(e);
70
- for (i = 0; i < r.length; i++)
71
- o = r[i], !(t.indexOf(o) >= 0) && Object.prototype.propertyIsEnumerable.call(e, o) && (n[o] = e[o]);
72
- }
73
- return n;
74
- }
75
- var Qe = "1.15.3";
76
- function J(e) {
77
- if (typeof window < "u" && window.navigator)
78
- return !!/* @__PURE__ */ navigator.userAgent.match(e);
79
- }
80
- var Z = J(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), Pt = J(/Edge/i), we = J(/firefox/i), Ot = J(/safari/i) && !J(/chrome/i) && !J(/android/i), Ie = J(/iP(ad|od|hone)/i), Ae = J(/chrome/i) && J(/android/i), xe = {
81
- capture: !1,
82
- passive: !1
83
- };
84
- function w(e, t, n) {
85
- e.addEventListener(t, n, !Z && xe);
86
- }
87
- function b(e, t, n) {
88
- e.removeEventListener(t, n, !Z && xe);
89
- }
90
- function Gt(e, t) {
91
- if (t) {
92
- if (t[0] === ">" && (t = t.substring(1)), e)
93
- try {
94
- if (e.matches)
95
- return e.matches(t);
96
- if (e.msMatchesSelector)
97
- return e.msMatchesSelector(t);
98
- if (e.webkitMatchesSelector)
99
- return e.webkitMatchesSelector(t);
100
- } catch {
101
- return !1;
102
- }
103
- return !1;
104
- }
105
- }
106
- function Ne(e) {
107
- return e.host && e !== document && e.host.nodeType ? e.host : e.parentNode;
108
- }
109
- function V(e, t, n, o) {
110
- if (e) {
111
- n = n || document;
112
- do {
113
- if (t != null && (t[0] === ">" ? e.parentNode === n && Gt(e, t) : Gt(e, t)) || o && e === n)
114
- return e;
115
- if (e === n) break;
116
- } while (e = Ne(e));
117
- }
118
- return null;
119
- }
120
- var ye = /\s+/g;
121
- function L(e, t, n) {
122
- if (e && t)
123
- if (e.classList)
124
- e.classList[n ? "add" : "remove"](t);
125
- else {
126
- var o = (" " + e.className + " ").replace(ye, " ").replace(" " + t + " ", " ");
127
- e.className = (o + (n ? " " + t : "")).replace(ye, " ");
128
- }
129
- }
130
- function h(e, t, n) {
131
- var o = e && e.style;
132
- if (o) {
133
- if (n === void 0)
134
- return document.defaultView && document.defaultView.getComputedStyle ? n = document.defaultView.getComputedStyle(e, "") : e.currentStyle && (n = e.currentStyle), t === void 0 ? n : n[t];
135
- !(t in o) && t.indexOf("webkit") === -1 && (t = "-webkit-" + t), o[t] = n + (typeof n == "string" ? "" : "px");
136
- }
137
- }
138
- function mt(e, t) {
139
- var n = "";
140
- if (typeof e == "string")
141
- n = e;
142
- else
143
- do {
144
- var o = h(e, "transform");
145
- o && o !== "none" && (n = o + " " + n);
146
- } while (!t && (e = e.parentNode));
147
- var i = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
148
- return i && new i(n);
149
- }
150
- function Pe(e, t, n) {
151
- if (e) {
152
- var o = e.getElementsByTagName(t), i = 0, r = o.length;
153
- if (n)
154
- for (; i < r; i++)
155
- n(o[i], i);
156
- return o;
157
- }
158
- return [];
159
- }
160
- function U() {
161
- var e = document.scrollingElement;
162
- return e || document.documentElement;
163
- }
164
- function O(e, t, n, o, i) {
165
- if (!(!e.getBoundingClientRect && e !== window)) {
166
- var r, a, l, s, u, c, f;
167
- if (e !== window && e.parentNode && e !== U() ? (r = e.getBoundingClientRect(), a = r.top, l = r.left, s = r.bottom, u = r.right, c = r.height, f = r.width) : (a = 0, l = 0, s = window.innerHeight, u = window.innerWidth, c = window.innerHeight, f = window.innerWidth), (t || n) && e !== window && (i = i || e.parentNode, !Z))
168
- do
169
- if (i && i.getBoundingClientRect && (h(i, "transform") !== "none" || n && h(i, "position") !== "static")) {
170
- var g = i.getBoundingClientRect();
171
- a -= g.top + parseInt(h(i, "border-top-width")), l -= g.left + parseInt(h(i, "border-left-width")), s = a + r.height, u = l + r.width;
172
- break;
173
- }
174
- while (i = i.parentNode);
175
- if (o && e !== window) {
176
- var y = mt(i || e), v = y && y.a, _ = y && y.d;
177
- y && (a /= _, l /= v, f /= v, c /= _, s = a + c, u = l + f);
178
- }
179
- return {
180
- top: a,
181
- left: l,
182
- bottom: s,
183
- right: u,
184
- width: f,
185
- height: c
186
- };
187
- }
188
- }
189
- function Ee(e, t, n) {
190
- for (var o = ot(e, !0), i = O(e)[t]; o; ) {
191
- var r = O(o)[n], a = void 0;
192
- if (a = i >= r, !a) return o;
193
- if (o === U()) break;
194
- o = ot(o, !1);
195
- }
196
- return !1;
197
- }
198
- function gt(e, t, n, o) {
199
- for (var i = 0, r = 0, a = e.children; r < a.length; ) {
200
- if (a[r].style.display !== "none" && a[r] !== p.ghost && (o || a[r] !== p.dragged) && V(a[r], n.draggable, e, !1)) {
201
- if (i === t)
202
- return a[r];
203
- i++;
204
- }
205
- r++;
206
- }
207
- return null;
208
- }
209
- function fe(e, t) {
210
- for (var n = e.lastElementChild; n && (n === p.ghost || h(n, "display") === "none" || t && !Gt(n, t)); )
211
- n = n.previousElementSibling;
212
- return n || null;
213
- }
214
- function W(e, t) {
215
- var n = 0;
216
- if (!e || !e.parentNode)
217
- return -1;
218
- for (; e = e.previousElementSibling; )
219
- e.nodeName.toUpperCase() !== "TEMPLATE" && e !== p.clone && (!t || Gt(e, t)) && n++;
220
- return n;
221
- }
222
- function De(e) {
223
- var t = 0, n = 0, o = U();
224
- if (e)
225
- do {
226
- var i = mt(e), r = i.a, a = i.d;
227
- t += e.scrollLeft * r, n += e.scrollTop * a;
228
- } while (e !== o && (e = e.parentNode));
229
- return [t, n];
230
- }
231
- function tn(e, t) {
232
- for (var n in e)
233
- if (e.hasOwnProperty(n)) {
234
- for (var o in t)
235
- if (t.hasOwnProperty(o) && t[o] === e[n][o]) return Number(n);
236
- }
237
- return -1;
238
- }
239
- function ot(e, t) {
240
- if (!e || !e.getBoundingClientRect) return U();
241
- var n = e, o = !1;
242
- do
243
- if (n.clientWidth < n.scrollWidth || n.clientHeight < n.scrollHeight) {
244
- var i = h(n);
245
- if (n.clientWidth < n.scrollWidth && (i.overflowX == "auto" || i.overflowX == "scroll") || n.clientHeight < n.scrollHeight && (i.overflowY == "auto" || i.overflowY == "scroll")) {
246
- if (!n.getBoundingClientRect || n === document.body) return U();
247
- if (o || t) return n;
248
- o = !0;
249
- }
250
- }
251
- while (n = n.parentNode);
252
- return U();
253
- }
254
- function en(e, t) {
255
- if (e && t)
256
- for (var n in t)
257
- t.hasOwnProperty(n) && (e[n] = t[n]);
258
- return e;
259
- }
260
- function Zt(e, t) {
261
- return Math.round(e.top) === Math.round(t.top) && Math.round(e.left) === Math.round(t.left) && Math.round(e.height) === Math.round(t.height) && Math.round(e.width) === Math.round(t.width);
262
- }
263
- var It;
264
- function Fe(e, t) {
265
- return function() {
266
- if (!It) {
267
- var n = arguments, o = this;
268
- n.length === 1 ? e.call(o, n[0]) : e.apply(o, n), It = setTimeout(function() {
269
- It = void 0;
270
- }, t);
271
- }
272
- };
273
- }
274
- function nn() {
275
- clearTimeout(It), It = void 0;
276
- }
277
- function Me(e, t, n) {
278
- e.scrollLeft += t, e.scrollTop += n;
279
- }
280
- function ke(e) {
281
- var t = window.Polymer, n = window.jQuery || window.Zepto;
282
- return t && t.dom ? t.dom(e).cloneNode(!0) : n ? n(e).clone(!0)[0] : e.cloneNode(!0);
283
- }
284
- function Re(e, t, n) {
285
- var o = {};
286
- return Array.from(e.children).forEach(function(i) {
287
- var r, a, l, s;
288
- if (!(!V(i, t.draggable, e, !1) || i.animated || i === n)) {
289
- var u = O(i);
290
- o.left = Math.min((r = o.left) !== null && r !== void 0 ? r : 1 / 0, u.left), o.top = Math.min((a = o.top) !== null && a !== void 0 ? a : 1 / 0, u.top), o.right = Math.max((l = o.right) !== null && l !== void 0 ? l : -1 / 0, u.right), o.bottom = Math.max((s = o.bottom) !== null && s !== void 0 ? s : -1 / 0, u.bottom);
291
- }
292
- }), o.width = o.right - o.left, o.height = o.bottom - o.top, o.x = o.left, o.y = o.top, o;
293
- }
294
- var B = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
295
- function on() {
296
- var e = [], t;
297
- return {
298
- captureAnimationState: function() {
299
- if (e = [], !!this.options.animation) {
300
- var o = [].slice.call(this.el.children);
301
- o.forEach(function(i) {
302
- if (!(h(i, "display") === "none" || i === p.ghost)) {
303
- e.push({
304
- target: i,
305
- rect: O(i)
306
- });
307
- var r = $({}, e[e.length - 1].rect);
308
- if (i.thisAnimationDuration) {
309
- var a = mt(i, !0);
310
- a && (r.top -= a.f, r.left -= a.e);
311
- }
312
- i.fromRect = r;
313
- }
314
- });
315
- }
316
- },
317
- addAnimationState: function(o) {
318
- e.push(o);
319
- },
320
- removeAnimationState: function(o) {
321
- e.splice(tn(e, {
322
- target: o
323
- }), 1);
324
- },
325
- animateAll: function(o) {
326
- var i = this;
327
- if (!this.options.animation) {
328
- clearTimeout(t), typeof o == "function" && o();
329
- return;
330
- }
331
- var r = !1, a = 0;
332
- e.forEach(function(l) {
333
- var s = 0, u = l.target, c = u.fromRect, f = O(u), g = u.prevFromRect, y = u.prevToRect, v = l.rect, _ = mt(u, !0);
334
- _ && (f.top -= _.f, f.left -= _.e), u.toRect = f, u.thisAnimationDuration && Zt(g, f) && !Zt(c, f) && // Make sure animatingRect is on line between toRect & fromRect
335
- (v.top - f.top) / (v.left - f.left) === (c.top - f.top) / (c.left - f.left) && (s = an(v, g, y, i.options)), Zt(f, c) || (u.prevFromRect = c, u.prevToRect = f, s || (s = i.options.animation), i.animate(u, v, f, s)), s && (r = !0, a = Math.max(a, s), clearTimeout(u.animationResetTimer), u.animationResetTimer = setTimeout(function() {
336
- u.animationTime = 0, u.prevFromRect = null, u.fromRect = null, u.prevToRect = null, u.thisAnimationDuration = null;
337
- }, s), u.thisAnimationDuration = s);
338
- }), clearTimeout(t), r ? t = setTimeout(function() {
339
- typeof o == "function" && o();
340
- }, a) : typeof o == "function" && o(), e = [];
341
- },
342
- animate: function(o, i, r, a) {
343
- if (a) {
344
- h(o, "transition", ""), h(o, "transform", "");
345
- var l = mt(this.el), s = l && l.a, u = l && l.d, c = (i.left - r.left) / (s || 1), f = (i.top - r.top) / (u || 1);
346
- o.animatingX = !!c, o.animatingY = !!f, h(o, "transform", "translate3d(" + c + "px," + f + "px,0)"), this.forRepaintDummy = rn(o), h(o, "transition", "transform " + a + "ms" + (this.options.easing ? " " + this.options.easing : "")), h(o, "transform", "translate3d(0,0,0)"), typeof o.animated == "number" && clearTimeout(o.animated), o.animated = setTimeout(function() {
347
- h(o, "transition", ""), h(o, "transform", ""), o.animated = !1, o.animatingX = !1, o.animatingY = !1;
348
- }, a);
349
- }
350
- }
351
- };
352
- }
353
- function rn(e) {
354
- return e.offsetWidth;
355
- }
356
- function an(e, t, n, o) {
357
- return Math.sqrt(Math.pow(t.top - e.top, 2) + Math.pow(t.left - e.left, 2)) / Math.sqrt(Math.pow(t.top - n.top, 2) + Math.pow(t.left - n.left, 2)) * o.animation;
358
- }
359
- var ft = [], Qt = {
360
- initializeByDefault: !0
361
- }, Ft = {
362
- mount: function(t) {
363
- for (var n in Qt)
364
- Qt.hasOwnProperty(n) && !(n in t) && (t[n] = Qt[n]);
365
- ft.forEach(function(o) {
366
- if (o.pluginName === t.pluginName)
367
- throw "Sortable: Cannot mount plugin ".concat(t.pluginName, " more than once");
368
- }), ft.push(t);
369
- },
370
- pluginEvent: function(t, n, o) {
371
- var i = this;
372
- this.eventCanceled = !1, o.cancel = function() {
373
- i.eventCanceled = !0;
374
- };
375
- var r = t + "Global";
376
- ft.forEach(function(a) {
377
- n[a.pluginName] && (n[a.pluginName][r] && n[a.pluginName][r]($({
378
- sortable: n
379
- }, o)), n.options[a.pluginName] && n[a.pluginName][t] && n[a.pluginName][t]($({
380
- sortable: n
381
- }, o)));
382
- });
383
- },
384
- initializePlugins: function(t, n, o, i) {
385
- ft.forEach(function(l) {
386
- var s = l.pluginName;
387
- if (!(!t.options[s] && !l.initializeByDefault)) {
388
- var u = new l(t, n, t.options);
389
- u.sortable = t, u.options = t.options, t[s] = u, K(o, u.defaults);
390
- }
391
- });
392
- for (var r in t.options)
393
- if (t.options.hasOwnProperty(r)) {
394
- var a = this.modifyOption(t, r, t.options[r]);
395
- typeof a < "u" && (t.options[r] = a);
396
- }
397
- },
398
- getEventProperties: function(t, n) {
399
- var o = {};
400
- return ft.forEach(function(i) {
401
- typeof i.eventProperties == "function" && K(o, i.eventProperties.call(n[i.pluginName], t));
402
- }), o;
403
- },
404
- modifyOption: function(t, n, o) {
405
- var i;
406
- return ft.forEach(function(r) {
407
- t[r.pluginName] && r.optionListeners && typeof r.optionListeners[n] == "function" && (i = r.optionListeners[n].call(t[r.pluginName], o));
408
- }), i;
409
- }
410
- };
411
- function ln(e) {
412
- var t = e.sortable, n = e.rootEl, o = e.name, i = e.targetEl, r = e.cloneEl, a = e.toEl, l = e.fromEl, s = e.oldIndex, u = e.newIndex, c = e.oldDraggableIndex, f = e.newDraggableIndex, g = e.originalEvent, y = e.putSortable, v = e.extraEventProperties;
413
- if (t = t || n && n[B], !!t) {
414
- var _, X = t.options, E = "on" + o.charAt(0).toUpperCase() + o.substr(1);
415
- window.CustomEvent && !Z && !Pt ? _ = new CustomEvent(o, {
416
- bubbles: !0,
417
- cancelable: !0
418
- }) : (_ = document.createEvent("Event"), _.initEvent(o, !0, !0)), _.to = a || n, _.from = l || n, _.item = i || n, _.clone = r, _.oldIndex = s, _.newIndex = u, _.oldDraggableIndex = c, _.newDraggableIndex = f, _.originalEvent = g, _.pullMode = y ? y.lastPutMode : void 0;
419
- var I = $($({}, v), Ft.getEventProperties(o, t));
420
- for (var F in I)
421
- _[F] = I[F];
422
- n && n.dispatchEvent(_), X[E] && X[E].call(t, _);
423
- }
424
- }
425
- var sn = ["evt"], R = function(t, n) {
426
- var o = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, i = o.evt, r = Ze(o, sn);
427
- Ft.pluginEvent.bind(p)(t, n, $({
428
- dragEl: d,
429
- parentEl: T,
430
- ghostEl: m,
431
- rootEl: D,
432
- nextEl: ut,
433
- lastDownEl: Lt,
434
- cloneEl: S,
435
- cloneHidden: nt,
436
- dragStarted: St,
437
- putSortable: N,
438
- activeSortable: p.active,
439
- originalEvent: i,
440
- oldIndex: pt,
441
- oldDraggableIndex: At,
442
- newIndex: H,
443
- newDraggableIndex: et,
444
- hideGhostForTarget: Le,
445
- unhideGhostForTarget: He,
446
- cloneNowHidden: function() {
447
- nt = !0;
448
- },
449
- cloneNowShown: function() {
450
- nt = !1;
451
- },
452
- dispatchSortableEvent: function(l) {
453
- k({
454
- sortable: n,
455
- name: l,
456
- originalEvent: i
457
- });
458
- }
459
- }, r));
460
- };
461
- function k(e) {
462
- ln($({
463
- putSortable: N,
464
- cloneEl: S,
465
- targetEl: d,
466
- rootEl: D,
467
- oldIndex: pt,
468
- oldDraggableIndex: At,
469
- newIndex: H,
470
- newDraggableIndex: et
471
- }, e));
472
- }
473
- var d, T, m, D, ut, Lt, S, nt, pt, H, At, et, kt, N, ht = !1, Vt = !1, zt = [], lt, G, te, ee, Se, Te, St, ct, xt, Nt = !1, Rt = !1, Ht, P, ne = [], le = !1, Ut = [], qt = typeof document < "u", Bt = Ie, Ce = Pt || Z ? "cssFloat" : "float", un = qt && !Ae && !Ie && "draggable" in document.createElement("div"), Be = function() {
474
- if (qt) {
475
- if (Z)
476
- return !1;
477
- var e = document.createElement("x");
478
- return e.style.cssText = "pointer-events:auto", e.style.pointerEvents === "auto";
479
- }
480
- }(), Xe = function(t, n) {
481
- var o = h(t), i = parseInt(o.width) - parseInt(o.paddingLeft) - parseInt(o.paddingRight) - parseInt(o.borderLeftWidth) - parseInt(o.borderRightWidth), r = gt(t, 0, n), a = gt(t, 1, n), l = r && h(r), s = a && h(a), u = l && parseInt(l.marginLeft) + parseInt(l.marginRight) + O(r).width, c = s && parseInt(s.marginLeft) + parseInt(s.marginRight) + O(a).width;
482
- if (o.display === "flex")
483
- return o.flexDirection === "column" || o.flexDirection === "column-reverse" ? "vertical" : "horizontal";
484
- if (o.display === "grid")
485
- return o.gridTemplateColumns.split(" ").length <= 1 ? "vertical" : "horizontal";
486
- if (r && l.float && l.float !== "none") {
487
- var f = l.float === "left" ? "left" : "right";
488
- return a && (s.clear === "both" || s.clear === f) ? "vertical" : "horizontal";
489
- }
490
- return r && (l.display === "block" || l.display === "flex" || l.display === "table" || l.display === "grid" || u >= i && o[Ce] === "none" || a && o[Ce] === "none" && u + c > i) ? "vertical" : "horizontal";
491
- }, dn = function(t, n, o) {
492
- var i = o ? t.left : t.top, r = o ? t.right : t.bottom, a = o ? t.width : t.height, l = o ? n.left : n.top, s = o ? n.right : n.bottom, u = o ? n.width : n.height;
493
- return i === l || r === s || i + a / 2 === l + u / 2;
494
- }, fn = function(t, n) {
495
- var o;
496
- return zt.some(function(i) {
497
- var r = i[B].options.emptyInsertThreshold;
498
- if (!(!r || fe(i))) {
499
- var a = O(i), l = t >= a.left - r && t <= a.right + r, s = n >= a.top - r && n <= a.bottom + r;
500
- if (l && s)
501
- return o = i;
502
- }
503
- }), o;
504
- }, Ye = function(t) {
505
- function n(r, a) {
506
- return function(l, s, u, c) {
507
- var f = l.options.group.name && s.options.group.name && l.options.group.name === s.options.group.name;
508
- if (r == null && (a || f))
509
- return !0;
510
- if (r == null || r === !1)
511
- return !1;
512
- if (a && r === "clone")
513
- return r;
514
- if (typeof r == "function")
515
- return n(r(l, s, u, c), a)(l, s, u, c);
516
- var g = (a ? l : s).options.group.name;
517
- return r === !0 || typeof r == "string" && r === g || r.join && r.indexOf(g) > -1;
518
- };
519
- }
520
- var o = {}, i = t.group;
521
- (!i || Yt(i) != "object") && (i = {
522
- name: i
523
- }), o.name = i.name, o.checkPull = n(i.pull, !0), o.checkPut = n(i.put), o.revertClone = i.revertClone, t.group = o;
524
- }, Le = function() {
525
- !Be && m && h(m, "display", "none");
526
- }, He = function() {
527
- !Be && m && h(m, "display", "");
528
- };
529
- qt && !Ae && document.addEventListener("click", function(e) {
530
- if (Vt)
531
- return e.preventDefault(), e.stopPropagation && e.stopPropagation(), e.stopImmediatePropagation && e.stopImmediatePropagation(), Vt = !1, !1;
532
- }, !0);
533
- var st = function(t) {
534
- if (d) {
535
- t = t.touches ? t.touches[0] : t;
536
- var n = fn(t.clientX, t.clientY);
537
- if (n) {
538
- var o = {};
539
- for (var i in t)
540
- t.hasOwnProperty(i) && (o[i] = t[i]);
541
- o.target = o.rootEl = n, o.preventDefault = void 0, o.stopPropagation = void 0, n[B]._onDragOver(o);
542
- }
543
- }
544
- }, cn = function(t) {
545
- d && d.parentNode[B]._isOutsideThisEl(t.target);
546
- };
547
- function p(e, t) {
548
- if (!(e && e.nodeType && e.nodeType === 1))
549
- throw "Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));
550
- this.el = e, this.options = t = K({}, t), e[B] = this;
551
- var n = {
552
- group: null,
553
- sort: !0,
554
- disabled: !1,
555
- store: null,
556
- handle: null,
557
- draggable: /^[uo]l$/i.test(e.nodeName) ? ">li" : ">*",
558
- swapThreshold: 1,
559
- // percentage; 0 <= x <= 1
560
- invertSwap: !1,
561
- // invert always
562
- invertedSwapThreshold: null,
563
- // will be set to same as swapThreshold if default
564
- removeCloneOnHide: !0,
565
- direction: function() {
566
- return Xe(e, this.options);
567
- },
568
- ghostClass: "sortable-ghost",
569
- chosenClass: "sortable-chosen",
570
- dragClass: "sortable-drag",
571
- ignore: "a, img",
572
- filter: null,
573
- preventOnFilter: !0,
574
- animation: 0,
575
- easing: null,
576
- setData: function(a, l) {
577
- a.setData("Text", l.textContent);
578
- },
579
- dropBubble: !1,
580
- dragoverBubble: !1,
581
- dataIdAttr: "data-id",
582
- delay: 0,
583
- delayOnTouchOnly: !1,
584
- touchStartThreshold: (Number.parseInt ? Number : window).parseInt(window.devicePixelRatio, 10) || 1,
585
- forceFallback: !1,
586
- fallbackClass: "sortable-fallback",
587
- fallbackOnBody: !1,
588
- fallbackTolerance: 0,
589
- fallbackOffset: {
590
- x: 0,
591
- y: 0
592
- },
593
- supportPointer: p.supportPointer !== !1 && "PointerEvent" in window && !Ot,
594
- emptyInsertThreshold: 5
595
- };
596
- Ft.initializePlugins(this, e, n);
597
- for (var o in n)
598
- !(o in t) && (t[o] = n[o]);
599
- Ye(t);
600
- for (var i in this)
601
- i.charAt(0) === "_" && typeof this[i] == "function" && (this[i] = this[i].bind(this));
602
- this.nativeDraggable = t.forceFallback ? !1 : un, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.supportPointer ? w(e, "pointerdown", this._onTapStart) : (w(e, "mousedown", this._onTapStart), w(e, "touchstart", this._onTapStart)), this.nativeDraggable && (w(e, "dragover", this), w(e, "dragenter", this)), zt.push(this.el), t.store && t.store.get && this.sort(t.store.get(this) || []), K(this, on());
603
- }
604
- p.prototype = /** @lends Sortable.prototype */
605
- {
606
- constructor: p,
607
- _isOutsideThisEl: function(t) {
608
- !this.el.contains(t) && t !== this.el && (ct = null);
609
- },
610
- _getDirection: function(t, n) {
611
- return typeof this.options.direction == "function" ? this.options.direction.call(this, t, n, d) : this.options.direction;
612
- },
613
- _onTapStart: function(t) {
614
- if (t.cancelable) {
615
- var n = this, o = this.el, i = this.options, r = i.preventOnFilter, a = t.type, l = t.touches && t.touches[0] || t.pointerType && t.pointerType === "touch" && t, s = (l || t).target, u = t.target.shadowRoot && (t.path && t.path[0] || t.composedPath && t.composedPath()[0]) || s, c = i.filter;
616
- if (wn(o), !d && !(/mousedown|pointerdown/.test(a) && t.button !== 0 || i.disabled) && !u.isContentEditable && !(!this.nativeDraggable && Ot && s && s.tagName.toUpperCase() === "SELECT") && (s = V(s, i.draggable, o, !1), !(s && s.animated) && Lt !== s)) {
617
- if (pt = W(s), At = W(s, i.draggable), typeof c == "function") {
618
- if (c.call(this, t, s, this)) {
619
- k({
620
- sortable: n,
621
- rootEl: u,
622
- name: "filter",
623
- targetEl: s,
624
- toEl: o,
625
- fromEl: o
626
- }), R("filter", n, {
627
- evt: t
628
- }), r && t.cancelable && t.preventDefault();
629
- return;
630
- }
631
- } else if (c && (c = c.split(",").some(function(f) {
632
- if (f = V(u, f.trim(), o, !1), f)
633
- return k({
634
- sortable: n,
635
- rootEl: f,
636
- name: "filter",
637
- targetEl: s,
638
- fromEl: o,
639
- toEl: o
640
- }), R("filter", n, {
641
- evt: t
642
- }), !0;
643
- }), c)) {
644
- r && t.cancelable && t.preventDefault();
645
- return;
646
- }
647
- i.handle && !V(u, i.handle, o, !1) || this._prepareDragStart(t, l, s);
648
- }
649
- }
650
- },
651
- _prepareDragStart: function(t, n, o) {
652
- var i = this, r = i.el, a = i.options, l = r.ownerDocument, s;
653
- if (o && !d && o.parentNode === r) {
654
- var u = O(o);
655
- if (D = r, d = o, T = d.parentNode, ut = d.nextSibling, Lt = o, kt = a.group, p.dragged = d, lt = {
656
- target: d,
657
- clientX: (n || t).clientX,
658
- clientY: (n || t).clientY
659
- }, Se = lt.clientX - u.left, Te = lt.clientY - u.top, this._lastX = (n || t).clientX, this._lastY = (n || t).clientY, d.style["will-change"] = "all", s = function() {
660
- if (R("delayEnded", i, {
661
- evt: t
662
- }), p.eventCanceled) {
663
- i._onDrop();
664
- return;
665
- }
666
- i._disableDelayedDragEvents(), !we && i.nativeDraggable && (d.draggable = !0), i._triggerDragStart(t, n), k({
667
- sortable: i,
668
- name: "choose",
669
- originalEvent: t
670
- }), L(d, a.chosenClass, !0);
671
- }, a.ignore.split(",").forEach(function(c) {
672
- Pe(d, c.trim(), oe);
673
- }), w(l, "dragover", st), w(l, "mousemove", st), w(l, "touchmove", st), w(l, "mouseup", i._onDrop), w(l, "touchend", i._onDrop), w(l, "touchcancel", i._onDrop), we && this.nativeDraggable && (this.options.touchStartThreshold = 4, d.draggable = !0), R("delayStart", this, {
674
- evt: t
675
- }), a.delay && (!a.delayOnTouchOnly || n) && (!this.nativeDraggable || !(Pt || Z))) {
676
- if (p.eventCanceled) {
677
- this._onDrop();
678
- return;
679
- }
680
- w(l, "mouseup", i._disableDelayedDrag), w(l, "touchend", i._disableDelayedDrag), w(l, "touchcancel", i._disableDelayedDrag), w(l, "mousemove", i._delayedDragTouchMoveHandler), w(l, "touchmove", i._delayedDragTouchMoveHandler), a.supportPointer && w(l, "pointermove", i._delayedDragTouchMoveHandler), i._dragStartTimer = setTimeout(s, a.delay);
681
- } else
682
- s();
683
- }
684
- },
685
- _delayedDragTouchMoveHandler: function(t) {
686
- var n = t.touches ? t.touches[0] : t;
687
- Math.max(Math.abs(n.clientX - this._lastX), Math.abs(n.clientY - this._lastY)) >= Math.floor(this.options.touchStartThreshold / (this.nativeDraggable && window.devicePixelRatio || 1)) && this._disableDelayedDrag();
688
- },
689
- _disableDelayedDrag: function() {
690
- d && oe(d), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
691
- },
692
- _disableDelayedDragEvents: function() {
693
- var t = this.el.ownerDocument;
694
- b(t, "mouseup", this._disableDelayedDrag), b(t, "touchend", this._disableDelayedDrag), b(t, "touchcancel", this._disableDelayedDrag), b(t, "mousemove", this._delayedDragTouchMoveHandler), b(t, "touchmove", this._delayedDragTouchMoveHandler), b(t, "pointermove", this._delayedDragTouchMoveHandler);
695
- },
696
- _triggerDragStart: function(t, n) {
697
- n = n || t.pointerType == "touch" && t, !this.nativeDraggable || n ? this.options.supportPointer ? w(document, "pointermove", this._onTouchMove) : n ? w(document, "touchmove", this._onTouchMove) : w(document, "mousemove", this._onTouchMove) : (w(d, "dragend", this), w(D, "dragstart", this._onDragStart));
698
- try {
699
- document.selection ? Wt(function() {
700
- document.selection.empty();
701
- }) : window.getSelection().removeAllRanges();
702
- } catch {
703
- }
704
- },
705
- _dragStarted: function(t, n) {
706
- if (ht = !1, D && d) {
707
- R("dragStarted", this, {
708
- evt: n
709
- }), this.nativeDraggable && w(document, "dragover", cn);
710
- var o = this.options;
711
- !t && L(d, o.dragClass, !1), L(d, o.ghostClass, !0), p.active = this, t && this._appendGhost(), k({
712
- sortable: this,
713
- name: "start",
714
- originalEvent: n
715
- });
716
- } else
717
- this._nulling();
718
- },
719
- _emulateDragOver: function() {
720
- if (G) {
721
- this._lastX = G.clientX, this._lastY = G.clientY, Le();
722
- for (var t = document.elementFromPoint(G.clientX, G.clientY), n = t; t && t.shadowRoot && (t = t.shadowRoot.elementFromPoint(G.clientX, G.clientY), t !== n); )
723
- n = t;
724
- if (d.parentNode[B]._isOutsideThisEl(t), n)
725
- do {
726
- if (n[B]) {
727
- var o = void 0;
728
- if (o = n[B]._onDragOver({
729
- clientX: G.clientX,
730
- clientY: G.clientY,
731
- target: t,
732
- rootEl: n
733
- }), o && !this.options.dragoverBubble)
734
- break;
735
- }
736
- t = n;
737
- } while (n = Ne(n));
738
- He();
739
- }
740
- },
741
- _onTouchMove: function(t) {
742
- if (lt) {
743
- var n = this.options, o = n.fallbackTolerance, i = n.fallbackOffset, r = t.touches ? t.touches[0] : t, a = m && mt(m, !0), l = m && a && a.a, s = m && a && a.d, u = Bt && P && De(P), c = (r.clientX - lt.clientX + i.x) / (l || 1) + (u ? u[0] - ne[0] : 0) / (l || 1), f = (r.clientY - lt.clientY + i.y) / (s || 1) + (u ? u[1] - ne[1] : 0) / (s || 1);
744
- if (!p.active && !ht) {
745
- if (o && Math.max(Math.abs(r.clientX - this._lastX), Math.abs(r.clientY - this._lastY)) < o)
746
- return;
747
- this._onDragStart(t, !0);
748
- }
749
- if (m) {
750
- a ? (a.e += c - (te || 0), a.f += f - (ee || 0)) : a = {
751
- a: 1,
752
- b: 0,
753
- c: 0,
754
- d: 1,
755
- e: c,
756
- f
757
- };
758
- var g = "matrix(".concat(a.a, ",").concat(a.b, ",").concat(a.c, ",").concat(a.d, ",").concat(a.e, ",").concat(a.f, ")");
759
- h(m, "webkitTransform", g), h(m, "mozTransform", g), h(m, "msTransform", g), h(m, "transform", g), te = c, ee = f, G = r;
760
- }
761
- t.cancelable && t.preventDefault();
762
- }
763
- },
764
- _appendGhost: function() {
765
- if (!m) {
766
- var t = this.options.fallbackOnBody ? document.body : D, n = O(d, !0, Bt, !0, t), o = this.options;
767
- if (Bt) {
768
- for (P = t; h(P, "position") === "static" && h(P, "transform") === "none" && P !== document; )
769
- P = P.parentNode;
770
- P !== document.body && P !== document.documentElement ? (P === document && (P = U()), n.top += P.scrollTop, n.left += P.scrollLeft) : P = U(), ne = De(P);
771
- }
772
- m = d.cloneNode(!0), L(m, o.ghostClass, !1), L(m, o.fallbackClass, !0), L(m, o.dragClass, !0), h(m, "transition", ""), h(m, "transform", ""), h(m, "box-sizing", "border-box"), h(m, "margin", 0), h(m, "top", n.top), h(m, "left", n.left), h(m, "width", n.width), h(m, "height", n.height), h(m, "opacity", "0.8"), h(m, "position", Bt ? "absolute" : "fixed"), h(m, "zIndex", "100000"), h(m, "pointerEvents", "none"), p.ghost = m, t.appendChild(m), h(m, "transform-origin", Se / parseInt(m.style.width) * 100 + "% " + Te / parseInt(m.style.height) * 100 + "%");
773
- }
774
- },
775
- _onDragStart: function(t, n) {
776
- var o = this, i = t.dataTransfer, r = o.options;
777
- if (R("dragStart", this, {
778
- evt: t
779
- }), p.eventCanceled) {
780
- this._onDrop();
781
- return;
782
- }
783
- R("setupClone", this), p.eventCanceled || (S = ke(d), S.removeAttribute("id"), S.draggable = !1, S.style["will-change"] = "", this._hideClone(), L(S, this.options.chosenClass, !1), p.clone = S), o.cloneId = Wt(function() {
784
- R("clone", o), !p.eventCanceled && (o.options.removeCloneOnHide || D.insertBefore(S, d), o._hideClone(), k({
785
- sortable: o,
786
- name: "clone"
787
- }));
788
- }), !n && L(d, r.dragClass, !0), n ? (Vt = !0, o._loopId = setInterval(o._emulateDragOver, 50)) : (b(document, "mouseup", o._onDrop), b(document, "touchend", o._onDrop), b(document, "touchcancel", o._onDrop), i && (i.effectAllowed = "move", r.setData && r.setData.call(o, i, d)), w(document, "drop", o), h(d, "transform", "translateZ(0)")), ht = !0, o._dragStartId = Wt(o._dragStarted.bind(o, n, t)), w(document, "selectstart", o), St = !0, Ot && h(document.body, "user-select", "none");
789
- },
790
- // Returns true - if no further action is needed (either inserted or another condition)
791
- _onDragOver: function(t) {
792
- var n = this.el, o = t.target, i, r, a, l = this.options, s = l.group, u = p.active, c = kt === s, f = l.sort, g = N || u, y, v = this, _ = !1;
793
- if (le) return;
794
- function X(yt, je) {
795
- R(yt, v, $({
796
- evt: t,
797
- isOwner: c,
798
- axis: y ? "vertical" : "horizontal",
799
- revert: a,
800
- dragRect: i,
801
- targetRect: r,
802
- canSort: f,
803
- fromSortable: g,
804
- target: o,
805
- completed: I,
806
- onMove: function(pe, Ge) {
807
- return Xt(D, n, d, i, pe, O(pe), t, Ge);
808
- },
809
- changed: F
810
- }, je));
811
- }
812
- function E() {
813
- X("dragOverAnimationCapture"), v.captureAnimationState(), v !== g && g.captureAnimationState();
814
- }
815
- function I(yt) {
816
- return X("dragOverCompleted", {
817
- insertion: yt
818
- }), yt && (c ? u._hideClone() : u._showClone(v), v !== g && (L(d, N ? N.options.ghostClass : u.options.ghostClass, !1), L(d, l.ghostClass, !0)), N !== v && v !== p.active ? N = v : v === p.active && N && (N = null), g === v && (v._ignoreWhileAnimating = o), v.animateAll(function() {
819
- X("dragOverAnimationComplete"), v._ignoreWhileAnimating = null;
820
- }), v !== g && (g.animateAll(), g._ignoreWhileAnimating = null)), (o === d && !d.animated || o === n && !o.animated) && (ct = null), !l.dragoverBubble && !t.rootEl && o !== document && (d.parentNode[B]._isOutsideThisEl(t.target), !yt && st(t)), !l.dragoverBubble && t.stopPropagation && t.stopPropagation(), _ = !0;
821
- }
822
- function F() {
823
- H = W(d), et = W(d, l.draggable), k({
824
- sortable: v,
825
- name: "change",
826
- toEl: n,
827
- newIndex: H,
828
- newDraggableIndex: et,
829
- originalEvent: t
830
- });
831
- }
832
- if (t.preventDefault !== void 0 && t.cancelable && t.preventDefault(), o = V(o, l.draggable, n, !0), X("dragOver"), p.eventCanceled) return _;
833
- if (d.contains(t.target) || o.animated && o.animatingX && o.animatingY || v._ignoreWhileAnimating === o)
834
- return I(!1);
835
- if (Vt = !1, u && !l.disabled && (c ? f || (a = T !== D) : N === this || (this.lastPutMode = kt.checkPull(this, u, d, t)) && s.checkPut(this, u, d, t))) {
836
- if (y = this._getDirection(t, o) === "vertical", i = O(d), X("dragOverValid"), p.eventCanceled) return _;
837
- if (a)
838
- return T = D, E(), this._hideClone(), X("revert"), p.eventCanceled || (ut ? D.insertBefore(d, ut) : D.appendChild(d)), I(!0);
839
- var M = fe(n, l.draggable);
840
- if (!M || gn(t, y, this) && !M.animated) {
841
- if (M === d)
842
- return I(!1);
843
- if (M && n === t.target && (o = M), o && (r = O(o)), Xt(D, n, d, i, o, r, t, !!o) !== !1)
844
- return E(), M && M.nextSibling ? n.insertBefore(d, M.nextSibling) : n.appendChild(d), T = n, F(), I(!0);
845
- } else if (M && mn(t, y, this)) {
846
- var it = gt(n, 0, l, !0);
847
- if (it === d)
848
- return I(!1);
849
- if (o = it, r = O(o), Xt(D, n, d, i, o, r, t, !1) !== !1)
850
- return E(), n.insertBefore(d, it), T = n, F(), I(!0);
851
- } else if (o.parentNode === n) {
852
- r = O(o);
853
- var z = 0, rt, vt = d.parentNode !== n, Y = !dn(d.animated && d.toRect || i, o.animated && o.toRect || r, y), bt = y ? "top" : "left", Q = Ee(o, "top", "top") || Ee(d, "top", "top"), _t = Q ? Q.scrollTop : void 0;
854
- ct !== o && (rt = r[bt], Nt = !1, Rt = !Y && l.invertSwap || vt), z = vn(t, o, r, y, Y ? 1 : l.swapThreshold, l.invertedSwapThreshold == null ? l.swapThreshold : l.invertedSwapThreshold, Rt, ct === o);
855
- var q;
856
- if (z !== 0) {
857
- var at = W(d);
858
- do
859
- at -= z, q = T.children[at];
860
- while (q && (h(q, "display") === "none" || q === m));
861
- }
862
- if (z === 0 || q === o)
863
- return I(!1);
864
- ct = o, xt = z;
865
- var wt = o.nextElementSibling, tt = !1;
866
- tt = z === 1;
867
- var Mt = Xt(D, n, d, i, o, r, t, tt);
868
- if (Mt !== !1)
869
- return (Mt === 1 || Mt === -1) && (tt = Mt === 1), le = !0, setTimeout(pn, 30), E(), tt && !wt ? n.appendChild(d) : o.parentNode.insertBefore(d, tt ? wt : o), Q && Me(Q, 0, _t - Q.scrollTop), T = d.parentNode, rt !== void 0 && !Rt && (Ht = Math.abs(rt - O(o)[bt])), F(), I(!0);
870
- }
871
- if (n.contains(d))
872
- return I(!1);
873
- }
874
- return !1;
875
- },
876
- _ignoreWhileAnimating: null,
877
- _offMoveEvents: function() {
878
- b(document, "mousemove", this._onTouchMove), b(document, "touchmove", this._onTouchMove), b(document, "pointermove", this._onTouchMove), b(document, "dragover", st), b(document, "mousemove", st), b(document, "touchmove", st);
879
- },
880
- _offUpEvents: function() {
881
- var t = this.el.ownerDocument;
882
- b(t, "mouseup", this._onDrop), b(t, "touchend", this._onDrop), b(t, "pointerup", this._onDrop), b(t, "touchcancel", this._onDrop), b(document, "selectstart", this);
883
- },
884
- _onDrop: function(t) {
885
- var n = this.el, o = this.options;
886
- if (H = W(d), et = W(d, o.draggable), R("drop", this, {
887
- evt: t
888
- }), T = d && d.parentNode, H = W(d), et = W(d, o.draggable), p.eventCanceled) {
889
- this._nulling();
890
- return;
891
- }
892
- ht = !1, Rt = !1, Nt = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), se(this.cloneId), se(this._dragStartId), this.nativeDraggable && (b(document, "drop", this), b(n, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), Ot && h(document.body, "user-select", ""), h(d, "transform", ""), t && (St && (t.cancelable && t.preventDefault(), !o.dropBubble && t.stopPropagation()), m && m.parentNode && m.parentNode.removeChild(m), (D === T || N && N.lastPutMode !== "clone") && S && S.parentNode && S.parentNode.removeChild(S), d && (this.nativeDraggable && b(d, "dragend", this), oe(d), d.style["will-change"] = "", St && !ht && L(d, N ? N.options.ghostClass : this.options.ghostClass, !1), L(d, this.options.chosenClass, !1), k({
893
- sortable: this,
894
- name: "unchoose",
895
- toEl: T,
896
- newIndex: null,
897
- newDraggableIndex: null,
898
- originalEvent: t
899
- }), D !== T ? (H >= 0 && (k({
900
- rootEl: T,
901
- name: "add",
902
- toEl: T,
903
- fromEl: D,
904
- originalEvent: t
905
- }), k({
906
- sortable: this,
907
- name: "remove",
908
- toEl: T,
909
- originalEvent: t
910
- }), k({
911
- rootEl: T,
912
- name: "sort",
913
- toEl: T,
914
- fromEl: D,
915
- originalEvent: t
916
- }), k({
917
- sortable: this,
918
- name: "sort",
919
- toEl: T,
920
- originalEvent: t
921
- })), N && N.save()) : H !== pt && H >= 0 && (k({
922
- sortable: this,
923
- name: "update",
924
- toEl: T,
925
- originalEvent: t
926
- }), k({
927
- sortable: this,
928
- name: "sort",
929
- toEl: T,
930
- originalEvent: t
931
- })), p.active && ((H == null || H === -1) && (H = pt, et = At), k({
932
- sortable: this,
933
- name: "end",
934
- toEl: T,
935
- originalEvent: t
936
- }), this.save()))), this._nulling();
937
- },
938
- _nulling: function() {
939
- R("nulling", this), D = d = T = m = ut = S = Lt = nt = lt = G = St = H = et = pt = At = ct = xt = N = kt = p.dragged = p.ghost = p.clone = p.active = null, Ut.forEach(function(t) {
940
- t.checked = !0;
941
- }), Ut.length = te = ee = 0;
942
- },
943
- handleEvent: function(t) {
944
- switch (t.type) {
945
- case "drop":
946
- case "dragend":
947
- this._onDrop(t);
948
- break;
949
- case "dragenter":
950
- case "dragover":
951
- d && (this._onDragOver(t), hn(t));
952
- break;
953
- case "selectstart":
954
- t.preventDefault();
955
- break;
956
- }
957
- },
958
- /**
959
- * Serializes the item into an array of string.
960
- * @returns {String[]}
961
- */
962
- toArray: function() {
963
- for (var t = [], n, o = this.el.children, i = 0, r = o.length, a = this.options; i < r; i++)
964
- n = o[i], V(n, a.draggable, this.el, !1) && t.push(n.getAttribute(a.dataIdAttr) || _n(n));
965
- return t;
966
- },
967
- /**
968
- * Sorts the elements according to the array.
969
- * @param {String[]} order order of the items
970
- */
971
- sort: function(t, n) {
972
- var o = {}, i = this.el;
973
- this.toArray().forEach(function(r, a) {
974
- var l = i.children[a];
975
- V(l, this.options.draggable, i, !1) && (o[r] = l);
976
- }, this), n && this.captureAnimationState(), t.forEach(function(r) {
977
- o[r] && (i.removeChild(o[r]), i.appendChild(o[r]));
978
- }), n && this.animateAll();
979
- },
980
- /**
981
- * Save the current sorting
982
- */
983
- save: function() {
984
- var t = this.options.store;
985
- t && t.set && t.set(this);
986
- },
987
- /**
988
- * For each element in the set, get the first element that matches the selector by testing the element itself and traversing up through its ancestors in the DOM tree.
989
- * @param {HTMLElement} el
990
- * @param {String} [selector] default: `options.draggable`
991
- * @returns {HTMLElement|null}
992
- */
993
- closest: function(t, n) {
994
- return V(t, n || this.options.draggable, this.el, !1);
995
- },
996
- /**
997
- * Set/get option
998
- * @param {string} name
999
- * @param {*} [value]
1000
- * @returns {*}
1001
- */
1002
- option: function(t, n) {
1003
- var o = this.options;
1004
- if (n === void 0)
1005
- return o[t];
1006
- var i = Ft.modifyOption(this, t, n);
1007
- typeof i < "u" ? o[t] = i : o[t] = n, t === "group" && Ye(o);
1008
- },
1009
- /**
1010
- * Destroy
1011
- */
1012
- destroy: function() {
1013
- R("destroy", this);
1014
- var t = this.el;
1015
- t[B] = null, b(t, "mousedown", this._onTapStart), b(t, "touchstart", this._onTapStart), b(t, "pointerdown", this._onTapStart), this.nativeDraggable && (b(t, "dragover", this), b(t, "dragenter", this)), Array.prototype.forEach.call(t.querySelectorAll("[draggable]"), function(n) {
1016
- n.removeAttribute("draggable");
1017
- }), this._onDrop(), this._disableDelayedDragEvents(), zt.splice(zt.indexOf(this.el), 1), this.el = t = null;
1018
- },
1019
- _hideClone: function() {
1020
- if (!nt) {
1021
- if (R("hideClone", this), p.eventCanceled) return;
1022
- h(S, "display", "none"), this.options.removeCloneOnHide && S.parentNode && S.parentNode.removeChild(S), nt = !0;
1023
- }
1024
- },
1025
- _showClone: function(t) {
1026
- if (t.lastPutMode !== "clone") {
1027
- this._hideClone();
1028
- return;
1029
- }
1030
- if (nt) {
1031
- if (R("showClone", this), p.eventCanceled) return;
1032
- d.parentNode == D && !this.options.group.revertClone ? D.insertBefore(S, d) : ut ? D.insertBefore(S, ut) : D.appendChild(S), this.options.group.revertClone && this.animate(d, S), h(S, "display", ""), nt = !1;
1033
- }
1034
- }
1035
- };
1036
- function hn(e) {
1037
- e.dataTransfer && (e.dataTransfer.dropEffect = "move"), e.cancelable && e.preventDefault();
1038
- }
1039
- function Xt(e, t, n, o, i, r, a, l) {
1040
- var s, u = e[B], c = u.options.onMove, f;
1041
- return window.CustomEvent && !Z && !Pt ? s = new CustomEvent("move", {
1042
- bubbles: !0,
1043
- cancelable: !0
1044
- }) : (s = document.createEvent("Event"), s.initEvent("move", !0, !0)), s.to = t, s.from = e, s.dragged = n, s.draggedRect = o, s.related = i || t, s.relatedRect = r || O(t), s.willInsertAfter = l, s.originalEvent = a, e.dispatchEvent(s), c && (f = c.call(u, s, a)), f;
1045
- }
1046
- function oe(e) {
1047
- e.draggable = !1;
1048
- }
1049
- function pn() {
1050
- le = !1;
1051
- }
1052
- function mn(e, t, n) {
1053
- var o = O(gt(n.el, 0, n.options, !0)), i = Re(n.el, n.options, m), r = 10;
1054
- return t ? e.clientX < i.left - r || e.clientY < o.top && e.clientX < o.right : e.clientY < i.top - r || e.clientY < o.bottom && e.clientX < o.left;
1055
- }
1056
- function gn(e, t, n) {
1057
- var o = O(fe(n.el, n.options.draggable)), i = Re(n.el, n.options, m), r = 10;
1058
- return t ? e.clientX > i.right + r || e.clientY > o.bottom && e.clientX > o.left : e.clientY > i.bottom + r || e.clientX > o.right && e.clientY > o.top;
1059
- }
1060
- function vn(e, t, n, o, i, r, a, l) {
1061
- var s = o ? e.clientY : e.clientX, u = o ? n.height : n.width, c = o ? n.top : n.left, f = o ? n.bottom : n.right, g = !1;
1062
- if (!a) {
1063
- if (l && Ht < u * i) {
1064
- if (!Nt && (xt === 1 ? s > c + u * r / 2 : s < f - u * r / 2) && (Nt = !0), Nt)
1065
- g = !0;
1066
- else if (xt === 1 ? s < c + Ht : s > f - Ht)
1067
- return -xt;
1068
- } else if (s > c + u * (1 - i) / 2 && s < f - u * (1 - i) / 2)
1069
- return bn(t);
1070
- }
1071
- return g = g || a, g && (s < c + u * r / 2 || s > f - u * r / 2) ? s > c + u / 2 ? 1 : -1 : 0;
1072
- }
1073
- function bn(e) {
1074
- return W(d) < W(e) ? 1 : -1;
1075
- }
1076
- function _n(e) {
1077
- for (var t = e.tagName + e.className + e.src + e.href + e.textContent, n = t.length, o = 0; n--; )
1078
- o += t.charCodeAt(n);
1079
- return o.toString(36);
1080
- }
1081
- function wn(e) {
1082
- Ut.length = 0;
1083
- for (var t = e.getElementsByTagName("input"), n = t.length; n--; ) {
1084
- var o = t[n];
1085
- o.checked && Ut.push(o);
1086
- }
1087
- }
1088
- function Wt(e) {
1089
- return setTimeout(e, 0);
1090
- }
1091
- function se(e) {
1092
- return clearTimeout(e);
1093
- }
1094
- qt && w(document, "touchmove", function(e) {
1095
- (p.active || ht) && e.cancelable && e.preventDefault();
1096
- });
1097
- p.utils = {
1098
- on: w,
1099
- off: b,
1100
- css: h,
1101
- find: Pe,
1102
- is: function(t, n) {
1103
- return !!V(t, n, t, !1);
1104
- },
1105
- extend: en,
1106
- throttle: Fe,
1107
- closest: V,
1108
- toggleClass: L,
1109
- clone: ke,
1110
- index: W,
1111
- nextTick: Wt,
1112
- cancelNextTick: se,
1113
- detectDirection: Xe,
1114
- getChild: gt,
1115
- expando: B
1116
- };
1117
- p.get = function(e) {
1118
- return e[B];
1119
- };
1120
- p.mount = function() {
1121
- for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
1122
- t[n] = arguments[n];
1123
- t[0].constructor === Array && (t = t[0]), t.forEach(function(o) {
1124
- if (!o.prototype || !o.prototype.constructor)
1125
- throw "Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(o));
1126
- o.utils && (p.utils = $($({}, p.utils), o.utils)), Ft.mount(o);
1127
- });
1128
- };
1129
- p.create = function(e, t) {
1130
- return new p(e, t);
1131
- };
1132
- p.version = Qe;
1133
- var C = [], Tt, ue, de = !1, ie, re, $t, Ct;
1134
- function yn() {
1135
- function e() {
1136
- this.defaults = {
1137
- scroll: !0,
1138
- forceAutoScrollFallback: !1,
1139
- scrollSensitivity: 30,
1140
- scrollSpeed: 10,
1141
- bubbleScroll: !0
1142
- };
1143
- for (var t in this)
1144
- t.charAt(0) === "_" && typeof this[t] == "function" && (this[t] = this[t].bind(this));
1145
- }
1146
- return e.prototype = {
1147
- dragStarted: function(n) {
1148
- var o = n.originalEvent;
1149
- this.sortable.nativeDraggable ? w(document, "dragover", this._handleAutoScroll) : this.options.supportPointer ? w(document, "pointermove", this._handleFallbackAutoScroll) : o.touches ? w(document, "touchmove", this._handleFallbackAutoScroll) : w(document, "mousemove", this._handleFallbackAutoScroll);
1150
- },
1151
- dragOverCompleted: function(n) {
1152
- var o = n.originalEvent;
1153
- !this.options.dragOverBubble && !o.rootEl && this._handleAutoScroll(o);
1154
- },
1155
- drop: function() {
1156
- this.sortable.nativeDraggable ? b(document, "dragover", this._handleAutoScroll) : (b(document, "pointermove", this._handleFallbackAutoScroll), b(document, "touchmove", this._handleFallbackAutoScroll), b(document, "mousemove", this._handleFallbackAutoScroll)), Oe(), jt(), nn();
1157
- },
1158
- nulling: function() {
1159
- $t = ue = Tt = de = Ct = ie = re = null, C.length = 0;
1160
- },
1161
- _handleFallbackAutoScroll: function(n) {
1162
- this._handleAutoScroll(n, !0);
1163
- },
1164
- _handleAutoScroll: function(n, o) {
1165
- var i = this, r = (n.touches ? n.touches[0] : n).clientX, a = (n.touches ? n.touches[0] : n).clientY, l = document.elementFromPoint(r, a);
1166
- if ($t = n, o || this.options.forceAutoScrollFallback || Pt || Z || Ot) {
1167
- ae(n, this.options, l, o);
1168
- var s = ot(l, !0);
1169
- de && (!Ct || r !== ie || a !== re) && (Ct && Oe(), Ct = setInterval(function() {
1170
- var u = ot(document.elementFromPoint(r, a), !0);
1171
- u !== s && (s = u, jt()), ae(n, i.options, u, o);
1172
- }, 10), ie = r, re = a);
1173
- } else {
1174
- if (!this.options.bubbleScroll || ot(l, !0) === U()) {
1175
- jt();
1176
- return;
1177
- }
1178
- ae(n, this.options, ot(l, !1), !1);
1179
- }
1180
- }
1181
- }, K(e, {
1182
- pluginName: "scroll",
1183
- initializeByDefault: !0
1184
- });
1185
- }
1186
- function jt() {
1187
- C.forEach(function(e) {
1188
- clearInterval(e.pid);
1189
- }), C = [];
1190
- }
1191
- function Oe() {
1192
- clearInterval(Ct);
1193
- }
1194
- var ae = Fe(function(e, t, n, o) {
1195
- if (t.scroll) {
1196
- var i = (e.touches ? e.touches[0] : e).clientX, r = (e.touches ? e.touches[0] : e).clientY, a = t.scrollSensitivity, l = t.scrollSpeed, s = U(), u = !1, c;
1197
- ue !== n && (ue = n, jt(), Tt = t.scroll, c = t.scrollFn, Tt === !0 && (Tt = ot(n, !0)));
1198
- var f = 0, g = Tt;
1199
- do {
1200
- var y = g, v = O(y), _ = v.top, X = v.bottom, E = v.left, I = v.right, F = v.width, M = v.height, it = void 0, z = void 0, rt = y.scrollWidth, vt = y.scrollHeight, Y = h(y), bt = y.scrollLeft, Q = y.scrollTop;
1201
- y === s ? (it = F < rt && (Y.overflowX === "auto" || Y.overflowX === "scroll" || Y.overflowX === "visible"), z = M < vt && (Y.overflowY === "auto" || Y.overflowY === "scroll" || Y.overflowY === "visible")) : (it = F < rt && (Y.overflowX === "auto" || Y.overflowX === "scroll"), z = M < vt && (Y.overflowY === "auto" || Y.overflowY === "scroll"));
1202
- var _t = it && (Math.abs(I - i) <= a && bt + F < rt) - (Math.abs(E - i) <= a && !!bt), q = z && (Math.abs(X - r) <= a && Q + M < vt) - (Math.abs(_ - r) <= a && !!Q);
1203
- if (!C[f])
1204
- for (var at = 0; at <= f; at++)
1205
- C[at] || (C[at] = {});
1206
- (C[f].vx != _t || C[f].vy != q || C[f].el !== y) && (C[f].el = y, C[f].vx = _t, C[f].vy = q, clearInterval(C[f].pid), (_t != 0 || q != 0) && (u = !0, C[f].pid = setInterval((function() {
1207
- o && this.layer === 0 && p.active._onTouchMove($t);
1208
- var wt = C[this.layer].vy ? C[this.layer].vy * l : 0, tt = C[this.layer].vx ? C[this.layer].vx * l : 0;
1209
- typeof c == "function" && c.call(p.dragged.parentNode[B], tt, wt, e, $t, C[this.layer].el) !== "continue" || Me(C[this.layer].el, tt, wt);
1210
- }).bind({
1211
- layer: f
1212
- }), 24))), f++;
1213
- } while (t.bubbleScroll && g !== s && (g = ot(g, !1)));
1214
- de = u;
1215
- }
1216
- }, 30), We = function(t) {
1217
- var n = t.originalEvent, o = t.putSortable, i = t.dragEl, r = t.activeSortable, a = t.dispatchSortableEvent, l = t.hideGhostForTarget, s = t.unhideGhostForTarget;
1218
- if (n) {
1219
- var u = o || r;
1220
- l();
1221
- var c = n.changedTouches && n.changedTouches.length ? n.changedTouches[0] : n, f = document.elementFromPoint(c.clientX, c.clientY);
1222
- s(), u && !u.el.contains(f) && (a("spill"), this.onSpill({
1223
- dragEl: i,
1224
- putSortable: o
1225
- }));
1226
- }
1227
- };
1228
- function ce() {
1229
- }
1230
- ce.prototype = {
1231
- startIndex: null,
1232
- dragStart: function(t) {
1233
- var n = t.oldDraggableIndex;
1234
- this.startIndex = n;
1235
- },
1236
- onSpill: function(t) {
1237
- var n = t.dragEl, o = t.putSortable;
1238
- this.sortable.captureAnimationState(), o && o.captureAnimationState();
1239
- var i = gt(this.sortable.el, this.startIndex, this.options);
1240
- i ? this.sortable.el.insertBefore(n, i) : this.sortable.el.appendChild(n), this.sortable.animateAll(), o && o.animateAll();
1241
- },
1242
- drop: We
1243
- };
1244
- K(ce, {
1245
- pluginName: "revertOnSpill"
1246
- });
1247
- function he() {
1248
- }
1249
- he.prototype = {
1250
- onSpill: function(t) {
1251
- var n = t.dragEl, o = t.putSortable, i = o || this.sortable;
1252
- i.captureAnimationState(), n.parentNode && n.parentNode.removeChild(n), i.animateAll();
1253
- },
1254
- drop: We
1255
- };
1256
- K(he, {
1257
- pluginName: "removeOnSpill"
1258
- });
1259
- p.mount(new yn());
1260
- p.mount(he, ce);
1261
- const En = {
1262
- components: { OutputDialog: qe },
1263
- data() {
1264
- return {
1265
- name: null,
1266
- icon: "astro:add-small",
1267
- url: null,
1268
- tools: [],
1269
- jsonContent: "",
1270
- dialogTitle: "",
1271
- showDialog: !1,
1272
- tool_id: null
1273
- };
1274
- },
1275
- mounted() {
1276
- this.update();
1277
- let e = document.getElementById("toollist");
1278
- p.create(e, {
1279
- filter: ".filter",
1280
- // 'filter' class is not draggable
1281
- onUpdate: this.sortChanged
1282
- });
1283
- },
1284
- methods: {
1285
- sortChanged(e) {
1286
- dt.post(`/openc3-api/tools/position/${this.tools[e.oldIndex]}`, {
1287
- data: {
1288
- position: e.newIndex
1289
- },
1290
- // Tools are global and are always installed into the DEFAULT scope
1291
- params: { scope: "DEFAULT" }
1292
- }).then((t) => {
1293
- this.$notify.normal({
1294
- title: `Reordered tool ${this.tools[e.oldIndex]}`
1295
- }), this.update();
1296
- });
1297
- },
1298
- update() {
1299
- dt.get("/openc3-api/tools", { params: { scope: "DEFAULT" } }).then(
1300
- (e) => {
1301
- this.tools = e.data, this.name = "", this.url = "";
1302
- }
1303
- );
1304
- },
1305
- add() {
1306
- dt.post("/openc3-api/tools", {
1307
- data: {
1308
- id: this.name,
1309
- json: JSON.stringify({
1310
- name: this.name,
1311
- icon: this.icon,
1312
- url: this.url,
1313
- window: "NEW"
1314
- })
1315
- },
1316
- // Tools are global and are always installed into the DEFAULT scope
1317
- params: { scope: "DEFAULT" }
1318
- }).then((e) => {
1319
- this.$notify.normal({
1320
- title: `Added tool ${this.name}`
1321
- }), this.update();
1322
- }).catch((e) => {
1323
- window.$cosmosNotify.serious({
1324
- title: `Failed to add tool ${this.name}`,
1325
- message: e.response.data
1326
- });
1327
- });
1328
- },
1329
- showTool(e) {
1330
- dt.get(`/openc3-api/tools/${e}`, {
1331
- // Tools are global and are always installed into the DEFAULT scope
1332
- params: { scope: "DEFAULT" }
1333
- }).then((t) => {
1334
- this.tool_id = e, this.jsonContent = JSON.stringify(t.data, null, " "), this.dialogTitle = e, this.showDialog = !0;
1335
- });
1336
- },
1337
- dialogCallback(e) {
1338
- if (this.showDialog = !1, e !== null) {
1339
- let t = JSON.parse(e), n = "put", o = `/openc3-api/tools/${this.tool_id}`;
1340
- t.name !== this.tool_id && (n = "post", o = "/openc3-api/tools"), dt[n](o, {
1341
- data: {
1342
- json: e
1343
- },
1344
- // Tools are global and are always installed into the DEFAULT scope
1345
- params: { scope: "DEFAULT" }
1346
- }).then((i) => {
1347
- this.$notify.normal({
1348
- title: `Modified tool ${t.name}`
1349
- }), this.update();
1350
- });
1351
- }
1352
- },
1353
- deleteTool(e) {
1354
- this.$dialog.confirm(`Are you sure you want to remove: ${e}`, {
1355
- okText: "Delete",
1356
- cancelText: "Cancel"
1357
- }).then(function(t) {
1358
- return dt.delete(`/openc3-api/tools/${e}`, {
1359
- // Tools are global and are always installed into the DEFAULT scope
1360
- params: { scope: "DEFAULT" }
1361
- });
1362
- }).then((t) => {
1363
- this.$notify.normal({
1364
- title: `Removed tool ${e}`
1365
- }), this.update();
1366
- });
1367
- }
1368
- }
1369
- };
1370
- function Dn(e, t, n, o, i, r) {
1371
- const a = j("v-icon"), l = j("v-btn"), s = j("v-col"), u = j("v-text-field"), c = j("v-row"), f = j("v-list-item-title"), g = j("v-tooltip"), y = j("v-list-item"), v = j("v-divider"), _ = j("v-list"), X = j("output-dialog");
1372
- return Et(), Jt("div", null, [
1373
- A(c, {
1374
- "no-gutters": "",
1375
- align: "center",
1376
- style: { "padding-left": "10px" }
1377
- }, {
1378
- default: x(() => [
1379
- A(s, { cols: "3" }, {
1380
- default: x(() => [
1381
- A(l, {
1382
- block: "",
1383
- color: "primary",
1384
- "data-test": "toolAdd",
1385
- onClick: t[0] || (t[0] = (E) => r.add()),
1386
- disabled: !i.name || !i.url || !i.icon
1387
- }, {
1388
- default: x(() => [
1389
- t[5] || (t[5] = Dt(" Add ")),
1390
- A(a, {
1391
- end: "",
1392
- theme: "dark"
1393
- }, {
1394
- default: x(() => [
1395
- Dt(me(i.icon), 1)
1396
- ]),
1397
- _: 1
1398
- })
1399
- ]),
1400
- _: 1
1401
- }, 8, ["disabled"])
1402
- ]),
1403
- _: 1
1404
- }),
1405
- A(s, { cols: "3" }, {
1406
- default: x(() => [
1407
- A(u, {
1408
- modelValue: i.icon,
1409
- "onUpdate:modelValue": t[1] || (t[1] = (E) => i.icon = E),
1410
- label: "Tool Icon",
1411
- class: "px-2"
1412
- }, null, 8, ["modelValue"])
1413
- ]),
1414
- _: 1
1415
- }),
1416
- A(s, { cols: "3" }, {
1417
- default: x(() => [
1418
- A(u, {
1419
- modelValue: i.name,
1420
- "onUpdate:modelValue": t[2] || (t[2] = (E) => i.name = E),
1421
- label: "Tool Name",
1422
- class: "px-2"
1423
- }, null, 8, ["modelValue"])
1424
- ]),
1425
- _: 1
1426
- }),
1427
- A(s, {
1428
- cols: "3",
1429
- class: "px-2"
1430
- }, {
1431
- default: x(() => [
1432
- A(u, {
1433
- modelValue: i.url,
1434
- "onUpdate:modelValue": t[3] || (t[3] = (E) => i.url = E),
1435
- label: "Tool Url"
1436
- }, null, 8, ["modelValue"])
1437
- ]),
1438
- _: 1
1439
- })
1440
- ]),
1441
- _: 1
1442
- }),
1443
- t[10] || (t[10] = Kt("span", { class: "text-body1 pa-3" }, "Drag and drop to reorder tools in the NavBar. Note: 'Base' and 'Admin' can't be reordered. A browser refresh is required to see the new tool order.", -1)),
1444
- A(_, {
1445
- class: "list",
1446
- "data-test": "toolList",
1447
- id: "toollist"
1448
- }, {
1449
- default: x(() => [
1450
- (Et(!0), Jt(Ve, null, ze(i.tools, (E, I) => (Et(), Jt("div", { key: E }, [
1451
- A(y, {
1452
- class: Ue({ filter: E === "Base" || E === "Admin" }),
1453
- "prepend-icon": "mdi-drag-horizontal"
1454
- }, {
1455
- append: x(() => [
1456
- A(g, { location: "bottom" }, {
1457
- activator: x(({ props: F }) => [
1458
- A(a, ge({ ref_for: !0 }, F, {
1459
- onClick: (M) => r.showTool(E)
1460
- }), {
1461
- default: x(() => t[6] || (t[6] = [
1462
- Dt(" mdi-eye ")
1463
- ])),
1464
- _: 2
1465
- }, 1040, ["onClick"])
1466
- ]),
1467
- default: x(() => [
1468
- t[7] || (t[7] = Kt("span", null, "Edit Tool", -1))
1469
- ]),
1470
- _: 2
1471
- }, 1024),
1472
- A(g, { location: "bottom" }, {
1473
- activator: x(({ props: F }) => [
1474
- A(a, ge({ ref_for: !0 }, F, {
1475
- onClick: (M) => r.deleteTool(E)
1476
- }), {
1477
- default: x(() => t[8] || (t[8] = [
1478
- Dt(" mdi-delete ")
1479
- ])),
1480
- _: 2
1481
- }, 1040, ["onClick"])
1482
- ]),
1483
- default: x(() => [
1484
- t[9] || (t[9] = Kt("span", null, "Delete Tool", -1))
1485
- ]),
1486
- _: 2
1487
- }, 1024)
1488
- ]),
1489
- default: x(() => [
1490
- A(f, null, {
1491
- default: x(() => [
1492
- Dt(me(E), 1)
1493
- ]),
1494
- _: 2
1495
- }, 1024)
1496
- ]),
1497
- _: 2
1498
- }, 1032, ["class"]),
1499
- I < i.tools.length - 1 ? (Et(), ve(v, { key: I })) : be("", !0)
1500
- ]))), 128))
1501
- ]),
1502
- _: 1
1503
- }),
1504
- i.showDialog ? (Et(), ve(X, {
1505
- key: 0,
1506
- modelValue: i.showDialog,
1507
- "onUpdate:modelValue": t[4] || (t[4] = (E) => i.showDialog = E),
1508
- content: i.jsonContent,
1509
- type: "Tool",
1510
- name: i.dialogTitle,
1511
- onSubmit: r.dialogCallback
1512
- }, null, 8, ["modelValue", "content", "name", "onSubmit"])) : be("", !0)
1513
- ]);
1514
- }
1515
- const An = /* @__PURE__ */ $e(En, [["render", Dn], ["__scopeId", "data-v-c2e352e9"]]);
1516
- export {
1517
- An as default
1518
- };
1519
- //# sourceMappingURL=ToolsTab-Bu4syVrX.js.map