@openc3/vue-common 6.10.1 → 6.10.3
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.
- package/dist/{ArrayWidget-DvCX-1Om.cjs → ArrayWidget-B35vCzAo.cjs} +3 -3
- package/dist/{ArrayWidget-DvCX-1Om.cjs.map → ArrayWidget-B35vCzAo.cjs.map} +1 -1
- package/dist/{ArrayWidget-DQRQ7dPa.js → ArrayWidget-Bc-Awsbn.js} +11 -11
- package/dist/{ArrayWidget-DQRQ7dPa.js.map → ArrayWidget-Bc-Awsbn.js.map} +1 -1
- package/dist/{ArrayplotWidget-DA4SCxEg.cjs → ArrayplotWidget-B67ip6aR.cjs} +2 -2
- package/dist/{ArrayplotWidget-DA4SCxEg.cjs.map → ArrayplotWidget-B67ip6aR.cjs.map} +1 -1
- package/dist/{ArrayplotWidget-BeSfz3MR.js → ArrayplotWidget-B9UGCr4-.js} +4 -4
- package/dist/{ArrayplotWidget-BeSfz3MR.js.map → ArrayplotWidget-B9UGCr4-.js.map} +1 -1
- package/dist/BarColumn-3fKM-em2.cjs +2 -0
- package/dist/BarColumn-3fKM-em2.cjs.map +1 -0
- package/dist/{BarColumn-BdIaQfOz.js → BarColumn-ClLBRGll.js} +11 -11
- package/dist/BarColumn-ClLBRGll.js.map +1 -0
- package/dist/{BlockWidget-DSFKrUxl.js → BlockWidget-CoQp-LZM.js} +14 -14
- package/dist/{BlockWidget-DSFKrUxl.js.map → BlockWidget-CoQp-LZM.js.map} +1 -1
- package/dist/{BlockWidget-C33RBqR2.cjs → BlockWidget-DWexy9Dx.cjs} +3 -3
- package/dist/{BlockWidget-C33RBqR2.cjs.map → BlockWidget-DWexy9Dx.cjs.map} +1 -1
- package/dist/{ButtonWidget-DV33-G5z.cjs → ButtonWidget-BBpVoIzj.cjs} +3 -3
- package/dist/ButtonWidget-BBpVoIzj.cjs.map +1 -0
- package/dist/{ButtonWidget-CFbjdxSr.js → ButtonWidget-CTTwpFec.js} +15 -15
- package/dist/ButtonWidget-CTTwpFec.js.map +1 -0
- package/dist/{CanvasWidget-CO5Ql5FM.cjs → CanvasWidget-Qlx-Mo8v.cjs} +2 -2
- package/dist/{CanvasWidget-CO5Ql5FM.cjs.map → CanvasWidget-Qlx-Mo8v.cjs.map} +1 -1
- package/dist/{CanvasWidget-BloYxuKE.js → CanvasWidget-jFarbJ3t.js} +4 -4
- package/dist/{CanvasWidget-BloYxuKE.js.map → CanvasWidget-jFarbJ3t.js.map} +1 -1
- package/dist/{CanvasdotWidget-v73CXaR2.cjs → CanvasdotWidget-BROyk4FH.cjs} +2 -2
- package/dist/{CanvasdotWidget-v73CXaR2.cjs.map → CanvasdotWidget-BROyk4FH.cjs.map} +1 -1
- package/dist/{CanvasdotWidget-CZxUOPRd.js → CanvasdotWidget-BoyUcwiB.js} +3 -3
- package/dist/{CanvasdotWidget-CZxUOPRd.js.map → CanvasdotWidget-BoyUcwiB.js.map} +1 -1
- package/dist/CanvasimageWidget-BvTJnGXu.cjs +2 -0
- package/dist/CanvasimageWidget-BvTJnGXu.cjs.map +1 -0
- package/dist/{CanvasimageWidget-ULQq3nqZ.js → CanvasimageWidget-DmyCSnuQ.js} +8 -7
- package/dist/CanvasimageWidget-DmyCSnuQ.js.map +1 -0
- package/dist/{CanvasimagevalueWidget-jFCVXYhi.js → CanvasimagevalueWidget-CmbngMqv.js} +5 -4
- package/dist/CanvasimagevalueWidget-CmbngMqv.js.map +1 -0
- package/dist/CanvasimagevalueWidget-CzVrDo-Z.cjs +2 -0
- package/dist/CanvasimagevalueWidget-CzVrDo-Z.cjs.map +1 -0
- package/dist/{CanvaslabelWidget-XfEANCQ-.cjs → CanvaslabelWidget-BnvwV9MA.cjs} +2 -2
- package/dist/{CanvaslabelWidget-XfEANCQ-.cjs.map → CanvaslabelWidget-BnvwV9MA.cjs.map} +1 -1
- package/dist/{CanvaslabelWidget-DQhBI1vZ.js → CanvaslabelWidget-D8NzLKqi.js} +3 -3
- package/dist/{CanvaslabelWidget-DQhBI1vZ.js.map → CanvaslabelWidget-D8NzLKqi.js.map} +1 -1
- package/dist/{CanvaslabelvalueWidget-C4REgztL.js → CanvaslabelvalueWidget-DOybGI9D.js} +4 -3
- package/dist/CanvaslabelvalueWidget-DOybGI9D.js.map +1 -0
- package/dist/CanvaslabelvalueWidget-DVnkclHD.cjs +2 -0
- package/dist/CanvaslabelvalueWidget-DVnkclHD.cjs.map +1 -0
- package/dist/{CanvaslineWidget-S4PCEvZM.js → CanvaslineWidget-D2NEei7j.js} +3 -3
- package/dist/{CanvaslineWidget-S4PCEvZM.js.map → CanvaslineWidget-D2NEei7j.js.map} +1 -1
- package/dist/{CanvaslineWidget-DycxDsyJ.cjs → CanvaslineWidget-DgbXSH1K.cjs} +2 -2
- package/dist/{CanvaslineWidget-DycxDsyJ.cjs.map → CanvaslineWidget-DgbXSH1K.cjs.map} +1 -1
- package/dist/{CanvaslinevalueWidget-597khOSA.js → CanvaslinevalueWidget-Ctvv9owf.js} +11 -10
- package/dist/CanvaslinevalueWidget-Ctvv9owf.js.map +1 -0
- package/dist/CanvaslinevalueWidget-E3NDHyPl.cjs +2 -0
- package/dist/CanvaslinevalueWidget-E3NDHyPl.cjs.map +1 -0
- package/dist/CheckbuttonWidget-BdvWAgg_.cjs +2 -0
- package/dist/{CheckbuttonWidget-BwDttJTf.cjs.map → CheckbuttonWidget-BdvWAgg_.cjs.map} +1 -1
- package/dist/{CheckbuttonWidget-BcblKat3.js → CheckbuttonWidget-CQeR0BMF.js} +6 -6
- package/dist/{CheckbuttonWidget-BcblKat3.js.map → CheckbuttonWidget-CQeR0BMF.js.map} +1 -1
- package/dist/{ClassificationBanners-CEzDn5cM.cjs → ClassificationBanners-0BNhyyMS.cjs} +2 -2
- package/dist/{ClassificationBanners-CEzDn5cM.cjs.map → ClassificationBanners-0BNhyyMS.cjs.map} +1 -1
- package/dist/{ClassificationBanners-CS4GUeYv.js → ClassificationBanners-STI2n2yD.js} +2 -2
- package/dist/{ClassificationBanners-CS4GUeYv.js.map → ClassificationBanners-STI2n2yD.js.map} +1 -1
- package/dist/{ComboboxWidget-BMcHS4g5.js → ComboboxWidget-4N-MagvN.js} +6 -6
- package/dist/{ComboboxWidget-BMcHS4g5.js.map → ComboboxWidget-4N-MagvN.js.map} +1 -1
- package/dist/ComboboxWidget-Dh0q9xpJ.cjs +2 -0
- package/dist/{ComboboxWidget-DkBtLQ41.cjs.map → ComboboxWidget-Dh0q9xpJ.cjs.map} +1 -1
- package/dist/CriticalCmdDialog-Dy1cQZxQ.cjs +2 -0
- package/dist/CriticalCmdDialog-Dy1cQZxQ.cjs.map +1 -0
- package/dist/{CriticalCmdDialog-CVLyYtng.js → CriticalCmdDialog-trVtKZft.js} +62 -52
- package/dist/CriticalCmdDialog-trVtKZft.js.map +1 -0
- package/dist/{CustomIcon-DTfsnDJn.js → CustomIcon-B9m73Gqm.js} +5 -4
- package/dist/{CustomIcon-DTfsnDJn.js.map → CustomIcon-B9m73Gqm.js.map} +1 -1
- package/dist/CustomIcon-CEc927h0.cjs +2 -0
- package/dist/{CustomIcon-eie3rPKh.cjs.map → CustomIcon-CEc927h0.cjs.map} +1 -1
- package/dist/{DateWidget-CRFiLyxD.cjs → DateWidget-DXN7u3vL.cjs} +2 -2
- package/dist/{DateWidget-CRFiLyxD.cjs.map → DateWidget-DXN7u3vL.cjs.map} +1 -1
- package/dist/{DateWidget-BpnMzSBn.js → DateWidget-rYTjwUdb.js} +3 -3
- package/dist/{DateWidget-BpnMzSBn.js.map → DateWidget-rYTjwUdb.js.map} +1 -1
- package/dist/DetailsDialog-CLCCuoHV.cjs +2 -0
- package/dist/DetailsDialog-CLCCuoHV.cjs.map +1 -0
- package/dist/{DetailsDialog-q9piPmHq.js → DetailsDialog-p_vutijL.js} +130 -100
- package/dist/DetailsDialog-p_vutijL.js.map +1 -0
- package/dist/DynamicWidget-C4V2H2VJ.cjs +2 -0
- package/dist/DynamicWidget-C4V2H2VJ.cjs.map +1 -0
- package/dist/{DynamicWidget-DHL7pbgW.js → DynamicWidget-DEHWYr8i.js} +7 -7
- package/dist/DynamicWidget-DEHWYr8i.js.map +1 -0
- package/dist/{EventListDialog-BlcxcO8a.js → EventListDialog-BshKrOuQ.js} +70 -62
- package/dist/EventListDialog-BshKrOuQ.js.map +1 -0
- package/dist/EventListDialog-D0iBpLSR.cjs +2 -0
- package/dist/EventListDialog-D0iBpLSR.cjs.map +1 -0
- package/dist/FilechecksumWidget-Ddlm1UED.cjs +2 -0
- package/dist/FilechecksumWidget-Ddlm1UED.cjs.map +1 -0
- package/dist/FilechecksumWidget-gcmXxJHl.js +158 -0
- package/dist/FilechecksumWidget-gcmXxJHl.js.map +1 -0
- package/dist/FiledisplayWidget-CYX4HChi.cjs +2 -0
- package/dist/FiledisplayWidget-CYX4HChi.cjs.map +1 -0
- package/dist/FiledisplayWidget-CqM549A4.js +114 -0
- package/dist/FiledisplayWidget-CqM549A4.js.map +1 -0
- package/dist/{FormatvalueWidget-Cm-HmAmw.js → FormatvalueWidget-BEwH0C7S.js} +4 -4
- package/dist/{FormatvalueWidget-Cm-HmAmw.js.map → FormatvalueWidget-BEwH0C7S.js.map} +1 -1
- package/dist/{FormatvalueWidget-AXH-VW-A.cjs → FormatvalueWidget-CpsyYKXD.cjs} +2 -2
- package/dist/{FormatvalueWidget-AXH-VW-A.cjs.map → FormatvalueWidget-CpsyYKXD.cjs.map} +1 -1
- package/dist/{Graph-BEodMaxQ.js → Graph-CbjlChwf.js} +93 -82
- package/dist/Graph-CbjlChwf.js.map +1 -0
- package/dist/Graph-kmTrth08.cjs +2 -0
- package/dist/Graph-kmTrth08.cjs.map +1 -0
- package/dist/{GraphWidget-CAADBFV-.js → GraphWidget-CjxnC0Dc.js} +2 -2
- package/dist/{GraphWidget-CAADBFV-.js.map → GraphWidget-CjxnC0Dc.js.map} +1 -1
- package/dist/{GraphWidget-B878ArE1.cjs → GraphWidget-SamHg2AA.cjs} +2 -2
- package/dist/{GraphWidget-B878ArE1.cjs.map → GraphWidget-SamHg2AA.cjs.map} +1 -1
- package/dist/HorizontalWidget-ByZjU21C.cjs +2 -0
- package/dist/HorizontalWidget-ByZjU21C.cjs.map +1 -0
- package/dist/HorizontalWidget-Dt8bkM3k.js +69 -0
- package/dist/HorizontalWidget-Dt8bkM3k.js.map +1 -0
- package/dist/{HorizontalboxWidget-CW9XX4uH.js → HorizontalboxWidget-CdAZ5Sa6.js} +6 -6
- package/dist/{HorizontalboxWidget-CW9XX4uH.js.map → HorizontalboxWidget-CdAZ5Sa6.js.map} +1 -1
- package/dist/{HorizontalboxWidget-BGzl7-Rt.cjs → HorizontalboxWidget-DzYz5SXs.cjs} +2 -2
- package/dist/{HorizontalboxWidget-BGzl7-Rt.cjs.map → HorizontalboxWidget-DzYz5SXs.cjs.map} +1 -1
- package/dist/{HorizontallineWidget-x2u6MQNz.cjs → HorizontallineWidget-C8Zhqxik.cjs} +2 -2
- package/dist/{HorizontallineWidget-x2u6MQNz.cjs.map → HorizontallineWidget-C8Zhqxik.cjs.map} +1 -1
- package/dist/{HorizontallineWidget-Cu2dDt7k.js → HorizontallineWidget-CXZJTeU2.js} +3 -3
- package/dist/{HorizontallineWidget-Cu2dDt7k.js.map → HorizontallineWidget-CXZJTeU2.js.map} +1 -1
- package/dist/{IframeWidget-B5simCWn.cjs → IframeWidget-BuNXXziR.cjs} +2 -2
- package/dist/{IframeWidget-B5simCWn.cjs.map → IframeWidget-BuNXXziR.cjs.map} +1 -1
- package/dist/{IframeWidget-BBU3MkSq.js → IframeWidget-CrcWiAVE.js} +3 -3
- package/dist/{IframeWidget-BBU3MkSq.js.map → IframeWidget-CrcWiAVE.js.map} +1 -1
- package/dist/{ImageLoader-Dj3MZVq9.cjs → ImageLoader-130w4tXJ.cjs} +2 -2
- package/dist/{ImageLoader-Dj3MZVq9.cjs.map → ImageLoader-130w4tXJ.cjs.map} +1 -1
- package/dist/{ImageLoader-XAGgjKkq.js → ImageLoader-DPqax8yu.js} +2 -2
- package/dist/{ImageLoader-XAGgjKkq.js.map → ImageLoader-DPqax8yu.js.map} +1 -1
- package/dist/{ImageviewerWidget-UByjeO63.js → ImageviewerWidget-CTEl6iPg.js} +10 -9
- package/dist/ImageviewerWidget-CTEl6iPg.js.map +1 -0
- package/dist/ImageviewerWidget-CafLbLp2.cjs +2 -0
- package/dist/ImageviewerWidget-CafLbLp2.cjs.map +1 -0
- package/dist/{InterfacesTab-6hli9fcg.js → InterfacesTab-B9ApLB5q.js} +4 -4
- package/dist/{InterfacesTab-6hli9fcg.js.map → InterfacesTab-B9ApLB5q.js.map} +1 -1
- package/dist/{InterfacesTab-B1CwBWFu.cjs → InterfacesTab-wPQSLcSj.cjs} +2 -2
- package/dist/{InterfacesTab-B1CwBWFu.cjs.map → InterfacesTab-wPQSLcSj.cjs.map} +1 -1
- package/dist/{LabelWidget-X4cBbl5N.cjs → LabelWidget-BfBP3Xme.cjs} +2 -2
- package/dist/{LabelWidget-X4cBbl5N.cjs.map → LabelWidget-BfBP3Xme.cjs.map} +1 -1
- package/dist/{LabelWidget-BsOpolUL.js → LabelWidget-CPqKGMx0.js} +3 -3
- package/dist/{LabelWidget-BsOpolUL.js.map → LabelWidget-CPqKGMx0.js.map} +1 -1
- package/dist/{LabelledWidget-DVOGpgZ-.js → LabelledWidget-BHYzRMFd.js} +6 -6
- package/dist/{LabelledWidget-DVOGpgZ-.js.map → LabelledWidget-BHYzRMFd.js.map} +1 -1
- package/dist/{LabelledWidget-DaHqSURc.cjs → LabelledWidget-CZvKfFNW.cjs} +2 -2
- package/dist/{LabelledWidget-DaHqSURc.cjs.map → LabelledWidget-CZvKfFNW.cjs.map} +1 -1
- package/dist/{LabelprogressbarWidget-Cz3nXacL.cjs → LabelprogressbarWidget-Bv0G5oT3.cjs} +2 -2
- package/dist/{LabelprogressbarWidget-Cz3nXacL.cjs.map → LabelprogressbarWidget-Bv0G5oT3.cjs.map} +1 -1
- package/dist/{LabelprogressbarWidget-BeE9fDs6.js → LabelprogressbarWidget-D9deeUo7.js} +6 -6
- package/dist/{LabelprogressbarWidget-BeE9fDs6.js.map → LabelprogressbarWidget-D9deeUo7.js.map} +1 -1
- package/dist/{LabelsparklineWidget-Bj7trKML.js → LabelsparklineWidget-7mYre3CP.js} +13 -13
- package/dist/LabelsparklineWidget-7mYre3CP.js.map +1 -0
- package/dist/LabelsparklineWidget-dyqEroDN.cjs +2 -0
- package/dist/LabelsparklineWidget-dyqEroDN.cjs.map +1 -0
- package/dist/{LabelvalueWidget-D-sncwem.cjs → LabelvalueWidget-Bsl7Z3wM.cjs} +2 -2
- package/dist/{LabelvalueWidget-D-sncwem.cjs.map → LabelvalueWidget-Bsl7Z3wM.cjs.map} +1 -1
- package/dist/{LabelvalueWidget-Dwqsh5o2.js → LabelvalueWidget-NLsD60n4.js} +6 -6
- package/dist/{LabelvalueWidget-Dwqsh5o2.js.map → LabelvalueWidget-NLsD60n4.js.map} +1 -1
- package/dist/{LabelvaluedescWidget-DmqG8dzJ.cjs → LabelvaluedescWidget-B_Xih-c5.cjs} +2 -2
- package/dist/{LabelvaluedescWidget-DmqG8dzJ.cjs.map → LabelvaluedescWidget-B_Xih-c5.cjs.map} +1 -1
- package/dist/{LabelvaluedescWidget-Cfu2vuja.js → LabelvaluedescWidget-DXROG4Gs.js} +6 -6
- package/dist/{LabelvaluedescWidget-Cfu2vuja.js.map → LabelvaluedescWidget-DXROG4Gs.js.map} +1 -1
- package/dist/{LabelvaluelimitsbarWidget-_l7xjrX9.cjs → LabelvaluelimitsbarWidget-DDd0RIs5.cjs} +2 -2
- package/dist/LabelvaluelimitsbarWidget-DDd0RIs5.cjs.map +1 -0
- package/dist/{LabelvaluelimitsbarWidget-DYV68AJ_.js → LabelvaluelimitsbarWidget-DqVqHF4W.js} +10 -10
- package/dist/LabelvaluelimitsbarWidget-DqVqHF4W.js.map +1 -0
- package/dist/{LabelvaluelimitscolumnWidget-CtaoTixt.js → LabelvaluelimitscolumnWidget-BK6_31pC.js} +12 -12
- package/dist/LabelvaluelimitscolumnWidget-BK6_31pC.js.map +1 -0
- package/dist/LabelvaluelimitscolumnWidget-C1aqkXh5.cjs +2 -0
- package/dist/LabelvaluelimitscolumnWidget-C1aqkXh5.cjs.map +1 -0
- package/dist/{LabelvaluerangebarWidget-3EaUB6E6.js → LabelvaluerangebarWidget-DR7C8gqw.js} +6 -6
- package/dist/{LabelvaluerangebarWidget-3EaUB6E6.js.map → LabelvaluerangebarWidget-DR7C8gqw.js.map} +1 -1
- package/dist/{LabelvaluerangebarWidget-BZTEfPQh.cjs → LabelvaluerangebarWidget-a8u5LXBD.cjs} +2 -2
- package/dist/{LabelvaluerangebarWidget-BZTEfPQh.cjs.map → LabelvaluerangebarWidget-a8u5LXBD.cjs.map} +1 -1
- package/dist/Layout-B_Hgw3gd.js +36 -0
- package/dist/Layout-B_Hgw3gd.js.map +1 -0
- package/dist/Layout-CVGghwYm.cjs +2 -0
- package/dist/Layout-CVGghwYm.cjs.map +1 -0
- package/dist/{LedWidget-Gi6GXtrW.js → LedWidget-CiAVs2tj.js} +46 -39
- package/dist/LedWidget-CiAVs2tj.js.map +1 -0
- package/dist/LedWidget-Cmy47xfg.cjs +2 -0
- package/dist/LedWidget-Cmy47xfg.cjs.map +1 -0
- package/dist/LimitsBar-DTtMywOw.cjs +2 -0
- package/dist/LimitsBar-DTtMywOw.cjs.map +1 -0
- package/dist/LimitsBar-_UQG-M6e.js +134 -0
- package/dist/LimitsBar-_UQG-M6e.js.map +1 -0
- package/dist/LimitsbarWidget-CIwcOhC8.js +65 -0
- package/dist/LimitsbarWidget-CIwcOhC8.js.map +1 -0
- package/dist/LimitsbarWidget-CYm_f1FN.cjs +2 -0
- package/dist/LimitsbarWidget-CYm_f1FN.cjs.map +1 -0
- package/dist/{LimitscolorWidget-CFnmvlrA.js → LimitscolorWidget-CGPfJwvT.js} +14 -13
- package/dist/LimitscolorWidget-CGPfJwvT.js.map +1 -0
- package/dist/LimitscolorWidget-oH6NGl1C.cjs +2 -0
- package/dist/LimitscolorWidget-oH6NGl1C.cjs.map +1 -0
- package/dist/{LimitscolumnWidget-DSsz36tT.js → LimitscolumnWidget-Bj_UPEC8.js} +3 -3
- package/dist/{LimitscolumnWidget-DSsz36tT.js.map → LimitscolumnWidget-Bj_UPEC8.js.map} +1 -1
- package/dist/{LimitscolumnWidget-CXzLYznR.cjs → LimitscolumnWidget-CnGOCckG.cjs} +2 -2
- package/dist/{LimitscolumnWidget-CXzLYznR.cjs.map → LimitscolumnWidget-CnGOCckG.cjs.map} +1 -1
- package/dist/{LinegraphWidget-CeBijgDo.js → LinegraphWidget-DccnHbWa.js} +5 -5
- package/dist/{LinegraphWidget-CeBijgDo.js.map → LinegraphWidget-DccnHbWa.js.map} +1 -1
- package/dist/{LinegraphWidget-WVSJOuTE.cjs → LinegraphWidget-zHs3NG-6.cjs} +2 -2
- package/dist/{LinegraphWidget-WVSJOuTE.cjs.map → LinegraphWidget-zHs3NG-6.cjs.map} +1 -1
- package/dist/MatrixbycolumnsWidget-Dd-udu5V.cjs +2 -0
- package/dist/MatrixbycolumnsWidget-Dd-udu5V.cjs.map +1 -0
- package/dist/MatrixbycolumnsWidget-U_NZ6aW-.js +83 -0
- package/dist/MatrixbycolumnsWidget-U_NZ6aW-.js.map +1 -0
- package/dist/MicroservicesTab-DG3rdksb.js +203 -0
- package/dist/MicroservicesTab-DG3rdksb.js.map +1 -0
- package/dist/MicroservicesTab-DXgSxZ0K.cjs +2 -0
- package/dist/MicroservicesTab-DXgSxZ0K.cjs.map +1 -0
- package/dist/{Openc3Screen-iW_gaikc.js → Openc3Screen-CDwAWaTl.js} +56 -34
- package/dist/Openc3Screen-CDwAWaTl.js.map +1 -0
- package/dist/{Openc3Screen-DIN4KVsw.cjs → Openc3Screen-CKs-49JN.cjs} +5 -5
- package/dist/Openc3Screen-CKs-49JN.cjs.map +1 -0
- package/dist/OutputDialog-D2YCbR20.cjs +2 -0
- package/dist/OutputDialog-D2YCbR20.cjs.map +1 -0
- package/dist/{OutputDialog-BMzp6wy3.js → OutputDialog-Di-pSmJE.js} +24 -17
- package/dist/OutputDialog-Di-pSmJE.js.map +1 -0
- package/dist/{PackagesTab-BascLTCK.js → PackagesTab-Bui5q3rX.js} +4 -4
- package/dist/{PackagesTab-BascLTCK.js.map → PackagesTab-Bui5q3rX.js.map} +1 -1
- package/dist/{PackagesTab-D_1kbMkk.cjs → PackagesTab-C-fV9yxw.cjs} +2 -2
- package/dist/{PackagesTab-D_1kbMkk.cjs.map → PackagesTab-C-fV9yxw.cjs.map} +1 -1
- package/dist/{PluginsTab-CjYoMrbj.cjs → PluginsTab-DxxlKeVx.cjs} +2 -2
- package/dist/PluginsTab-DxxlKeVx.cjs.map +1 -0
- package/dist/{PluginsTab-Yz9HZqpp.js → PluginsTab-zR9eZuvc.js} +8 -8
- package/dist/PluginsTab-zR9eZuvc.js.map +1 -0
- package/dist/ProgressbarWidget-Cxvwcfgn.cjs +2 -0
- package/dist/ProgressbarWidget-Cxvwcfgn.cjs.map +1 -0
- package/dist/{ProgressbarWidget-DJepvOip.js → ProgressbarWidget-D4JtVzyk.js} +7 -5
- package/dist/ProgressbarWidget-D4JtVzyk.js.map +1 -0
- package/dist/{RadiobuttonWidget-4e8ROIfg.js → RadiobuttonWidget-BUaW7pRx.js} +11 -10
- package/dist/{RadiobuttonWidget-4e8ROIfg.js.map → RadiobuttonWidget-BUaW7pRx.js.map} +1 -1
- package/dist/RadiobuttonWidget-Ccgftl13.cjs +2 -0
- package/dist/{RadiobuttonWidget-D4Fka1eN.cjs.map → RadiobuttonWidget-Ccgftl13.cjs.map} +1 -1
- package/dist/{RadiogroupWidget-DU9G6qLq.cjs → RadiogroupWidget-CSxjpxCr.cjs} +2 -2
- package/dist/{RadiogroupWidget-DU9G6qLq.cjs.map → RadiogroupWidget-CSxjpxCr.cjs.map} +1 -1
- package/dist/{RadiogroupWidget-CUucj6aT.js → RadiogroupWidget-NIv4CaUQ.js} +6 -6
- package/dist/{RadiogroupWidget-CUucj6aT.js.map → RadiogroupWidget-NIv4CaUQ.js.map} +1 -1
- package/dist/{RangebarWidget-Bu4rqlrx.js → RangebarWidget-1-CsFpcl.js} +12 -11
- package/dist/RangebarWidget-1-CsFpcl.js.map +1 -0
- package/dist/RangebarWidget-BtxfPo-U.cjs +2 -0
- package/dist/RangebarWidget-BtxfPo-U.cjs.map +1 -0
- package/dist/{RedisTab-Dz4m_JfV.cjs → RedisTab-DOozcC9a.cjs} +2 -2
- package/dist/{RedisTab-Dz4m_JfV.cjs.map → RedisTab-DOozcC9a.cjs.map} +1 -1
- package/dist/{RedisTab-C00rFmdl.js → RedisTab-DuO-zUV3.js} +3 -3
- package/dist/{RedisTab-C00rFmdl.js.map → RedisTab-DuO-zUV3.js.map} +1 -1
- package/dist/RollupWidget-CQxl1mlr.cjs +2 -0
- package/dist/RollupWidget-CQxl1mlr.cjs.map +1 -0
- package/dist/{RollupWidget-ByLvEEau.js → RollupWidget-ChasTJYP.js} +15 -13
- package/dist/RollupWidget-ChasTJYP.js.map +1 -0
- package/dist/{RoutersTab-CEe4oS0x.js → RoutersTab-C0UHSj-S.js} +4 -4
- package/dist/{RoutersTab-CEe4oS0x.js.map → RoutersTab-C0UHSj-S.js.map} +1 -1
- package/dist/{RoutersTab-CyjPaVVb.cjs → RoutersTab-DgWAXGUv.cjs} +2 -2
- package/dist/{RoutersTab-CyjPaVVb.cjs.map → RoutersTab-DgWAXGUv.cjs.map} +1 -1
- package/dist/{ScriptChooser-CbVbI0x-.js → ScriptChooser-C5HHbbcP.js} +118 -93
- package/dist/ScriptChooser-C5HHbbcP.js.map +1 -0
- package/dist/ScriptChooser-D1dddugi.cjs +2 -0
- package/dist/ScriptChooser-D1dddugi.cjs.map +1 -0
- package/dist/ScrollwindowWidget-Bkyjw0Qt.cjs +2 -0
- package/dist/ScrollwindowWidget-Bkyjw0Qt.cjs.map +1 -0
- package/dist/ScrollwindowWidget-Y2J758y6.js +69 -0
- package/dist/ScrollwindowWidget-Y2J758y6.js.map +1 -0
- package/dist/{SecretsTab-B07A5MeK.cjs → SecretsTab-Ds3kGOmd.cjs} +2 -2
- package/dist/{SecretsTab-B07A5MeK.cjs.map → SecretsTab-Ds3kGOmd.cjs.map} +1 -1
- package/dist/{SecretsTab-DFrxV8Q8.js → SecretsTab-c5g8Zk4g.js} +3 -3
- package/dist/{SecretsTab-DFrxV8Q8.js.map → SecretsTab-c5g8Zk4g.js.map} +1 -1
- package/dist/{SettingsTab-CpLxrjTc.js → SettingsTab-CTd3_Ipy.js} +74 -70
- package/dist/SettingsTab-CTd3_Ipy.js.map +1 -0
- package/dist/SettingsTab-DMPRJELP.cjs +3 -0
- package/dist/SettingsTab-DMPRJELP.cjs.map +1 -0
- package/dist/SignalWidget-BkTXZpGV.cjs +2 -0
- package/dist/SignalWidget-BkTXZpGV.cjs.map +1 -0
- package/dist/{SignalWidget-qvL2YZJA.js → SignalWidget-DFhHDicI.js} +5 -3
- package/dist/SignalWidget-DFhHDicI.js.map +1 -0
- package/dist/{SimpleTextDialog--iSWgPgq.js → SimpleTextDialog-CXIEKlX0.js} +26 -19
- package/dist/SimpleTextDialog-CXIEKlX0.js.map +1 -0
- package/dist/SimpleTextDialog-Dv5ypyUQ.cjs +2 -0
- package/dist/SimpleTextDialog-Dv5ypyUQ.cjs.map +1 -0
- package/dist/{SpacerWidget-CaWx41K7.js → SpacerWidget-D4KojaGb.js} +3 -3
- package/dist/{SpacerWidget-CaWx41K7.js.map → SpacerWidget-D4KojaGb.js.map} +1 -1
- package/dist/{SpacerWidget-CUrYZDLP.cjs → SpacerWidget-HsSCc07C.cjs} +2 -2
- package/dist/{SpacerWidget-CUrYZDLP.cjs.map → SpacerWidget-HsSCc07C.cjs.map} +1 -1
- package/dist/SparklineWidget-BdRM-ymk.cjs +2 -0
- package/dist/SparklineWidget-BdRM-ymk.cjs.map +1 -0
- package/dist/{SparklineWidget-BkNSRypJ.js → SparklineWidget-DMHFzw8L.js} +11 -11
- package/dist/SparklineWidget-DMHFzw8L.js.map +1 -0
- package/dist/TabbookWidget-NVLYMdFG.js +96 -0
- package/dist/TabbookWidget-NVLYMdFG.js.map +1 -0
- package/dist/TabbookWidget-NmIK-Lgf.cjs +2 -0
- package/dist/TabbookWidget-NmIK-Lgf.cjs.map +1 -0
- package/dist/TargetPacketItemChooser-B0IVMSib.cjs +2 -0
- package/dist/TargetPacketItemChooser-B0IVMSib.cjs.map +1 -0
- package/dist/{TargetPacketItemChooser-oSQHf8Ht.js → TargetPacketItemChooser-D5h9Octy.js} +83 -67
- package/dist/TargetPacketItemChooser-D5h9Octy.js.map +1 -0
- package/dist/{TargetsTab-DwFb3_1K.cjs → TargetsTab-JLjpJ1wn.cjs} +2 -2
- package/dist/{TargetsTab-DwFb3_1K.cjs.map → TargetsTab-JLjpJ1wn.cjs.map} +1 -1
- package/dist/{TargetsTab-B6tf2hKl.js → TargetsTab-b35HgnRl.js} +4 -4
- package/dist/{TargetsTab-B6tf2hKl.js.map → TargetsTab-b35HgnRl.js.map} +1 -1
- package/dist/{TextBoxDialog-Xs-gitZd.js → TextBoxDialog-CJHrE2Sh.js} +29 -22
- package/dist/TextBoxDialog-CJHrE2Sh.js.map +1 -0
- package/dist/TextBoxDialog-DzCvdsJj.cjs +2 -0
- package/dist/TextBoxDialog-DzCvdsJj.cjs.map +1 -0
- package/dist/{TextboxWidget-DbwpPVGB.js → TextboxWidget-CrMYPQIF.js} +19 -19
- package/dist/{TextboxWidget-DbwpPVGB.js.map → TextboxWidget-CrMYPQIF.js.map} +1 -1
- package/dist/{TextboxWidget-CPmQEhMm.cjs → TextboxWidget-xk3OFSUZ.cjs} +2 -2
- package/dist/{TextboxWidget-CPmQEhMm.cjs.map → TextboxWidget-xk3OFSUZ.cjs.map} +1 -1
- package/dist/{TextfieldWidget-DzMlTMYW.js → TextfieldWidget-DMBQwtnb.js} +5 -5
- package/dist/{TextfieldWidget-DzMlTMYW.js.map → TextfieldWidget-DMBQwtnb.js.map} +1 -1
- package/dist/{TextfieldWidget-BzaNs7J4.cjs → TextfieldWidget-DnnKM6vS.cjs} +2 -2
- package/dist/{TextfieldWidget-BzaNs7J4.cjs.map → TextfieldWidget-DnnKM6vS.cjs.map} +1 -1
- package/dist/{TimeWidget-BHybAfg8.js → TimeWidget-CWLJZ2bt.js} +3 -3
- package/dist/{TimeWidget-BHybAfg8.js.map → TimeWidget-CWLJZ2bt.js.map} +1 -1
- package/dist/{TimeWidget-DksEVe5c.cjs → TimeWidget-W-flXfLb.cjs} +2 -2
- package/dist/{TimeWidget-DksEVe5c.cjs.map → TimeWidget-W-flXfLb.cjs.map} +1 -1
- package/dist/{TitleWidget-C7_pj0lU.cjs → TitleWidget-CfFyUkSu.cjs} +2 -2
- package/dist/{TitleWidget-C7_pj0lU.cjs.map → TitleWidget-CfFyUkSu.cjs.map} +1 -1
- package/dist/{TitleWidget-DL_sE5YE.js → TitleWidget-V1FGI8l3.js} +3 -3
- package/dist/{TitleWidget-DL_sE5YE.js.map → TitleWidget-V1FGI8l3.js.map} +1 -1
- package/dist/{ToolsTab-CXoxIck8.js → ToolsTab-7qOQPnN3.js} +4 -4
- package/dist/{ToolsTab-CXoxIck8.js.map → ToolsTab-7qOQPnN3.js.map} +1 -1
- package/dist/{ToolsTab-DTL8ujgd.cjs → ToolsTab-jUNdj09m.cjs} +2 -2
- package/dist/{ToolsTab-DTL8ujgd.cjs.map → ToolsTab-jUNdj09m.cjs.map} +1 -1
- package/dist/{TopBar-B8LJESUg.js → TopBar-BkwvK0oj.js} +3 -3
- package/dist/{TopBar-B8LJESUg.js.map → TopBar-BkwvK0oj.js.map} +1 -1
- package/dist/{TopBar-CGSMcenK.cjs → TopBar-DdOFDiCo.cjs} +2 -2
- package/dist/{TopBar-CGSMcenK.cjs.map → TopBar-DdOFDiCo.cjs.map} +1 -1
- package/dist/{UpgradeToEnterpriseDialog-CqnhQ8So.js → UpgradeToEnterpriseDialog-CEUcvlkx.js} +16 -13
- package/dist/UpgradeToEnterpriseDialog-CEUcvlkx.js.map +1 -0
- package/dist/UpgradeToEnterpriseDialog-CP-jJxU4.cjs +2 -0
- package/dist/UpgradeToEnterpriseDialog-CP-jJxU4.cjs.map +1 -0
- package/dist/{UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_2c757408_lang-RGlL9jUF.cjs → UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_dda5adfc_lang-CX-SWpru.cjs} +70 -70
- package/dist/{UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_2c757408_lang-RGlL9jUF.cjs.map → UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_dda5adfc_lang-CX-SWpru.cjs.map} +1 -1
- package/dist/{UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_2c757408_lang-C3WTK6F-.js → UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_dda5adfc_lang-D9LFRi0t.js} +9 -9
- package/dist/UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_dda5adfc_lang-D9LFRi0t.js.map +1 -0
- package/dist/{VWidget-CTcOKw09.cjs → VWidget-BJArPtqI.cjs} +2 -2
- package/dist/{VWidget-CTcOKw09.cjs.map → VWidget-BJArPtqI.cjs.map} +1 -1
- package/dist/{VWidget-D06LY-Yc.js → VWidget-rAFU-0vj.js} +3 -3
- package/dist/{VWidget-D06LY-Yc.js.map → VWidget-rAFU-0vj.js.map} +1 -1
- package/dist/ValueWidget-BI3uXmda.js +138 -0
- package/dist/ValueWidget-BI3uXmda.js.map +1 -0
- package/dist/ValueWidget-CwuH7beM.cjs +2 -0
- package/dist/ValueWidget-CwuH7beM.cjs.map +1 -0
- package/dist/{ValuelimitsbarWidget-CmpyPO-1.js → ValuelimitsbarWidget-BGSJLpw4.js} +11 -11
- package/dist/{ValuelimitsbarWidget-CmpyPO-1.js.map → ValuelimitsbarWidget-BGSJLpw4.js.map} +1 -1
- package/dist/{ValuelimitsbarWidget-_lEKCmQl.cjs → ValuelimitsbarWidget-BSkGhA_y.cjs} +2 -2
- package/dist/{ValuelimitsbarWidget-_lEKCmQl.cjs.map → ValuelimitsbarWidget-BSkGhA_y.cjs.map} +1 -1
- package/dist/ValuelimitscolumnWidget-BXdPahDO.cjs +2 -0
- package/dist/ValuelimitscolumnWidget-BXdPahDO.cjs.map +1 -0
- package/dist/{ValuelimitscolumnWidget-jzxrQd-f.js → ValuelimitscolumnWidget-CaNjHy4v.js} +11 -11
- package/dist/ValuelimitscolumnWidget-CaNjHy4v.js.map +1 -0
- package/dist/{ValuerangebarWidget-C8ckuAeh.js → ValuerangebarWidget-Do40-aaL.js} +6 -6
- package/dist/{ValuerangebarWidget-C8ckuAeh.js.map → ValuerangebarWidget-Do40-aaL.js.map} +1 -1
- package/dist/{ValuerangebarWidget-lXHRe4YZ.cjs → ValuerangebarWidget-DvWGqBNM.cjs} +2 -2
- package/dist/{ValuerangebarWidget-lXHRe4YZ.cjs.map → ValuerangebarWidget-DvWGqBNM.cjs.map} +1 -1
- package/dist/VerticalWidget-DZqghqIm.js +68 -0
- package/dist/VerticalWidget-DZqghqIm.js.map +1 -0
- package/dist/VerticalWidget-y238HI2A.cjs +2 -0
- package/dist/VerticalWidget-y238HI2A.cjs.map +1 -0
- package/dist/{VerticalboxWidget-1FHkgmf0.cjs → VerticalboxWidget--dgKnG5Z.cjs} +2 -2
- package/dist/{VerticalboxWidget-1FHkgmf0.cjs.map → VerticalboxWidget--dgKnG5Z.cjs.map} +1 -1
- package/dist/{VerticalboxWidget-CiJZDlHJ.js → VerticalboxWidget-CQ__4FcS.js} +6 -6
- package/dist/{VerticalboxWidget-CiJZDlHJ.js.map → VerticalboxWidget-CQ__4FcS.js.map} +1 -1
- package/dist/{Widget-DXvVFSH5.js → Widget-6-Nvewdp.js} +27 -19
- package/dist/Widget-6-Nvewdp.js.map +1 -0
- package/dist/Widget-DdxHKVWn.cjs +2 -0
- package/dist/Widget-DdxHKVWn.cjs.map +1 -0
- package/dist/components.cjs +3 -3
- package/dist/components.cjs.map +1 -1
- package/dist/components.js +96 -88
- package/dist/components.js.map +1 -1
- package/dist/icons.cjs +1 -1
- package/dist/icons.cjs.map +1 -1
- package/dist/icons.js +6 -4
- package/dist/icons.js.map +1 -1
- package/dist/plugins.cjs +2 -2
- package/dist/plugins.cjs.map +1 -1
- package/dist/plugins.js +24 -18
- package/dist/plugins.js.map +1 -1
- package/dist/purify.es-B608WQkR.cjs +3 -0
- package/dist/purify.es-B608WQkR.cjs.map +1 -0
- package/dist/{purify.es-BuxjWxA2.js → purify.es-BGaRrCfO.js} +144 -144
- package/dist/purify.es-BGaRrCfO.js.map +1 -0
- package/dist/{settings-s8NuYKD-.cjs → settings-BCE3SW-9.cjs} +2 -2
- package/dist/{settings-s8NuYKD-.cjs.map → settings-BCE3SW-9.cjs.map} +1 -1
- package/dist/{settings-DRNFiuf0.js → settings-CHPWZcnU.js} +2 -2
- package/dist/{settings-DRNFiuf0.js.map → settings-CHPWZcnU.js.map} +1 -1
- package/dist/tools/admin.cjs +1 -1
- package/dist/tools/admin.cjs.map +1 -1
- package/dist/tools/admin.js +72 -64
- package/dist/tools/admin.js.map +1 -1
- package/dist/tools/base.cjs +1 -1
- package/dist/tools/base.cjs.map +1 -1
- package/dist/tools/base.js +39 -38
- package/dist/tools/base.js.map +1 -1
- package/dist/tools/calendar.cjs +1 -1
- package/dist/tools/calendar.js +1 -1
- package/dist/tools/scriptrunner.cjs +8 -8
- package/dist/tools/scriptrunner.cjs.map +1 -1
- package/dist/tools/scriptrunner.js +1054 -994
- package/dist/tools/scriptrunner.js.map +1 -1
- package/dist/useContainerHeight-BAw05dIa.js.map +1 -1
- package/dist/useContainerHeight-BEd4f2Lr.cjs.map +1 -1
- package/dist/vue-common.css +1 -1
- package/dist/widgets.cjs +1 -1
- package/dist/widgets.js +118 -116
- package/dist/widgets.js.map +1 -1
- package/package.json +8 -8
- package/dist/BarColumn-BdIaQfOz.js.map +0 -1
- package/dist/BarColumn-C5VfAEOx.cjs +0 -2
- package/dist/BarColumn-C5VfAEOx.cjs.map +0 -1
- package/dist/ButtonWidget-CFbjdxSr.js.map +0 -1
- package/dist/ButtonWidget-DV33-G5z.cjs.map +0 -1
- package/dist/CanvasimageWidget-CCwRuLep.cjs +0 -2
- package/dist/CanvasimageWidget-CCwRuLep.cjs.map +0 -1
- package/dist/CanvasimageWidget-ULQq3nqZ.js.map +0 -1
- package/dist/CanvasimagevalueWidget-NZYl_3mA.cjs +0 -2
- package/dist/CanvasimagevalueWidget-NZYl_3mA.cjs.map +0 -1
- package/dist/CanvasimagevalueWidget-jFCVXYhi.js.map +0 -1
- package/dist/CanvaslabelvalueWidget-C4REgztL.js.map +0 -1
- package/dist/CanvaslabelvalueWidget-CJCZdHId.cjs +0 -2
- package/dist/CanvaslabelvalueWidget-CJCZdHId.cjs.map +0 -1
- package/dist/CanvaslinevalueWidget-597khOSA.js.map +0 -1
- package/dist/CanvaslinevalueWidget-bChpy38C.cjs +0 -2
- package/dist/CanvaslinevalueWidget-bChpy38C.cjs.map +0 -1
- package/dist/CheckbuttonWidget-BwDttJTf.cjs +0 -2
- package/dist/ComboboxWidget-DkBtLQ41.cjs +0 -2
- package/dist/CriticalCmdDialog-C4DRtDnA.cjs +0 -2
- package/dist/CriticalCmdDialog-C4DRtDnA.cjs.map +0 -1
- package/dist/CriticalCmdDialog-CVLyYtng.js.map +0 -1
- package/dist/CustomIcon-eie3rPKh.cjs +0 -2
- package/dist/DetailsDialog-Brv3nVs3.cjs +0 -2
- package/dist/DetailsDialog-Brv3nVs3.cjs.map +0 -1
- package/dist/DetailsDialog-q9piPmHq.js.map +0 -1
- package/dist/DynamicWidget-BNfJRfR5.cjs +0 -2
- package/dist/DynamicWidget-BNfJRfR5.cjs.map +0 -1
- package/dist/DynamicWidget-DHL7pbgW.js.map +0 -1
- package/dist/EventListDialog-BlcxcO8a.js.map +0 -1
- package/dist/EventListDialog-DXIYmkWb.cjs +0 -2
- package/dist/EventListDialog-DXIYmkWb.cjs.map +0 -1
- package/dist/Graph-BEodMaxQ.js.map +0 -1
- package/dist/Graph-wDFY6Kd7.cjs +0 -2
- package/dist/Graph-wDFY6Kd7.cjs.map +0 -1
- package/dist/HorizontalWidget-D2lXnQqQ.cjs +0 -2
- package/dist/HorizontalWidget-D2lXnQqQ.cjs.map +0 -1
- package/dist/HorizontalWidget-NcXIXxh7.js +0 -41
- package/dist/HorizontalWidget-NcXIXxh7.js.map +0 -1
- package/dist/ImageviewerWidget-BtuiORhN.cjs +0 -2
- package/dist/ImageviewerWidget-BtuiORhN.cjs.map +0 -1
- package/dist/ImageviewerWidget-UByjeO63.js.map +0 -1
- package/dist/LabelsparklineWidget-Bj7trKML.js.map +0 -1
- package/dist/LabelsparklineWidget-Bns8kwBj.cjs +0 -2
- package/dist/LabelsparklineWidget-Bns8kwBj.cjs.map +0 -1
- package/dist/LabelvaluelimitsbarWidget-DYV68AJ_.js.map +0 -1
- package/dist/LabelvaluelimitsbarWidget-_l7xjrX9.cjs.map +0 -1
- package/dist/LabelvaluelimitscolumnWidget-CtaoTixt.js.map +0 -1
- package/dist/LabelvaluelimitscolumnWidget-D0WEVZMc.cjs +0 -2
- package/dist/LabelvaluelimitscolumnWidget-D0WEVZMc.cjs.map +0 -1
- package/dist/Layout-DNR3xnku.js +0 -14
- package/dist/Layout-DNR3xnku.js.map +0 -1
- package/dist/Layout-U0MXDxLO.cjs +0 -2
- package/dist/Layout-U0MXDxLO.cjs.map +0 -1
- package/dist/LedWidget-Gi6GXtrW.js.map +0 -1
- package/dist/LedWidget-MAyRDM2n.cjs +0 -2
- package/dist/LedWidget-MAyRDM2n.cjs.map +0 -1
- package/dist/LimitsbarWidget-BTZQY9XQ.js +0 -72
- package/dist/LimitsbarWidget-BTZQY9XQ.js.map +0 -1
- package/dist/LimitsbarWidget-ytyfCphX.cjs +0 -2
- package/dist/LimitsbarWidget-ytyfCphX.cjs.map +0 -1
- package/dist/LimitscolorWidget-CFnmvlrA.js.map +0 -1
- package/dist/LimitscolorWidget-CeZYYSQn.cjs +0 -2
- package/dist/LimitscolorWidget-CeZYYSQn.cjs.map +0 -1
- package/dist/MatrixbycolumnsWidget-COWMt_-r.cjs +0 -2
- package/dist/MatrixbycolumnsWidget-COWMt_-r.cjs.map +0 -1
- package/dist/MatrixbycolumnsWidget-DX9uhjAv.js +0 -56
- package/dist/MatrixbycolumnsWidget-DX9uhjAv.js.map +0 -1
- package/dist/MicroservicesTab-BSSCh5Ss.js +0 -219
- package/dist/MicroservicesTab-BSSCh5Ss.js.map +0 -1
- package/dist/MicroservicesTab-Btw8r_9N.cjs +0 -2
- package/dist/MicroservicesTab-Btw8r_9N.cjs.map +0 -1
- package/dist/Openc3Screen-DIN4KVsw.cjs.map +0 -1
- package/dist/Openc3Screen-iW_gaikc.js.map +0 -1
- package/dist/OutputDialog-BMzp6wy3.js.map +0 -1
- package/dist/OutputDialog-CKObLICh.cjs +0 -2
- package/dist/OutputDialog-CKObLICh.cjs.map +0 -1
- package/dist/PluginsTab-CjYoMrbj.cjs.map +0 -1
- package/dist/PluginsTab-Yz9HZqpp.js.map +0 -1
- package/dist/ProgressbarWidget-BUSOhcZ3.cjs +0 -2
- package/dist/ProgressbarWidget-BUSOhcZ3.cjs.map +0 -1
- package/dist/ProgressbarWidget-DJepvOip.js.map +0 -1
- package/dist/RadiobuttonWidget-D4Fka1eN.cjs +0 -2
- package/dist/RangebarWidget-Bu4rqlrx.js.map +0 -1
- package/dist/RangebarWidget-DlMJo2o3.cjs +0 -2
- package/dist/RangebarWidget-DlMJo2o3.cjs.map +0 -1
- package/dist/RollupWidget-ByLvEEau.js.map +0 -1
- package/dist/RollupWidget-D-Dx6Dkx.cjs +0 -2
- package/dist/RollupWidget-D-Dx6Dkx.cjs.map +0 -1
- package/dist/ScriptChooser-B83Pgq2H.cjs +0 -2
- package/dist/ScriptChooser-B83Pgq2H.cjs.map +0 -1
- package/dist/ScriptChooser-CbVbI0x-.js.map +0 -1
- package/dist/ScrollwindowWidget-0UcfntpY.cjs +0 -2
- package/dist/ScrollwindowWidget-0UcfntpY.cjs.map +0 -1
- package/dist/ScrollwindowWidget-CXJ9QGN1.js +0 -45
- package/dist/ScrollwindowWidget-CXJ9QGN1.js.map +0 -1
- package/dist/SettingsTab-CDaG6VS1.cjs +0 -3
- package/dist/SettingsTab-CDaG6VS1.cjs.map +0 -1
- package/dist/SettingsTab-CpLxrjTc.js.map +0 -1
- package/dist/SignalWidget-DhS8nGJu.cjs +0 -2
- package/dist/SignalWidget-DhS8nGJu.cjs.map +0 -1
- package/dist/SignalWidget-qvL2YZJA.js.map +0 -1
- package/dist/SimpleTextDialog--iSWgPgq.js.map +0 -1
- package/dist/SimpleTextDialog-tZ7qO1zq.cjs +0 -2
- package/dist/SimpleTextDialog-tZ7qO1zq.cjs.map +0 -1
- package/dist/SparklineWidget-BOnHnJOh.cjs +0 -2
- package/dist/SparklineWidget-BOnHnJOh.cjs.map +0 -1
- package/dist/SparklineWidget-BkNSRypJ.js.map +0 -1
- package/dist/TabbookWidget-BTvyYn7i.cjs +0 -2
- package/dist/TabbookWidget-BTvyYn7i.cjs.map +0 -1
- package/dist/TabbookWidget-MsrRG1vn.js +0 -66
- package/dist/TabbookWidget-MsrRG1vn.js.map +0 -1
- package/dist/TargetPacketItemChooser-CmjEcxN3.cjs +0 -2
- package/dist/TargetPacketItemChooser-CmjEcxN3.cjs.map +0 -1
- package/dist/TargetPacketItemChooser-oSQHf8Ht.js.map +0 -1
- package/dist/TextBoxDialog-DXG7H7kQ.cjs +0 -2
- package/dist/TextBoxDialog-DXG7H7kQ.cjs.map +0 -1
- package/dist/TextBoxDialog-Xs-gitZd.js.map +0 -1
- package/dist/UpgradeToEnterpriseDialog-CqnhQ8So.js.map +0 -1
- package/dist/UpgradeToEnterpriseDialog-Dv_egyCM.cjs +0 -2
- package/dist/UpgradeToEnterpriseDialog-Dv_egyCM.cjs.map +0 -1
- package/dist/UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_2c757408_lang-C3WTK6F-.js.map +0 -1
- package/dist/ValueWidget-C2qn7lVq.cjs +0 -2
- package/dist/ValueWidget-C2qn7lVq.cjs.map +0 -1
- package/dist/ValueWidget-CGT0LV_n.js +0 -118
- package/dist/ValueWidget-CGT0LV_n.js.map +0 -1
- package/dist/ValuelimitscolumnWidget-0urjo-hR.cjs +0 -2
- package/dist/ValuelimitscolumnWidget-0urjo-hR.cjs.map +0 -1
- package/dist/ValuelimitscolumnWidget-jzxrQd-f.js.map +0 -1
- package/dist/VerticalWidget-XBSrdA2c.cjs +0 -2
- package/dist/VerticalWidget-XBSrdA2c.cjs.map +0 -1
- package/dist/VerticalWidget-qN82km_m.js +0 -40
- package/dist/VerticalWidget-qN82km_m.js.map +0 -1
- package/dist/Widget-BwvnfXRa.cjs +0 -2
- package/dist/Widget-BwvnfXRa.cjs.map +0 -1
- package/dist/Widget-DXvVFSH5.js.map +0 -1
- package/dist/purify.es-BuxjWxA2.js.map +0 -1
- package/dist/purify.es-d7tb6jjJ.cjs +0 -3
- package/dist/purify.es-d7tb6jjJ.cjs.map +0 -1
|
@@ -2,35 +2,42 @@ var it = Object.defineProperty;
|
|
|
2
2
|
var Je = (t) => {
|
|
3
3
|
throw TypeError(t);
|
|
4
4
|
};
|
|
5
|
-
var st = (t, e,
|
|
6
|
-
var Ne = (t, e,
|
|
7
|
-
var B = (t, e,
|
|
8
|
-
import { f as
|
|
9
|
-
import { resolveComponent as a, createElementBlock as
|
|
10
|
-
import { _ as K } from "../CustomIcon-
|
|
5
|
+
var st = (t, e, o) => e in t ? it(t, e, { enumerable: !0, configurable: !0, writable: !0, value: o }) : t[e] = o;
|
|
6
|
+
var Ne = (t, e, o) => st(t, typeof e != "symbol" ? e + "" : e, o), Ye = (t, e, o) => e.has(t) || Je("Cannot " + o);
|
|
7
|
+
var B = (t, e, o) => (Ye(t, e, "read from private field"), o ? o.call(t) : e.get(t)), J = (t, e, o) => e.has(t) ? Je("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, o), ne = (t, e, o, r) => (Ye(t, e, "write to private field"), r ? r.call(t, o) : e.set(t, o), o);
|
|
8
|
+
import { f as O, y as Ie, g as nt } from "../UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_dda5adfc_lang-D9LFRi0t.js";
|
|
9
|
+
import { resolveComponent as a, createElementBlock as z, openBlock as y, createVNode as n, createBlock as T, createCommentVNode as P, withCtx as l, createTextVNode as k, createElementVNode as x, withDirectives as ot, vShow as lt, toDisplayString as L, mergeProps as Y, normalizeClass as Ke, inject as oe, getCurrentInstance as rt, computed as Z, ref as ae, watch as Re, onMounted as $e, onBeforeUnmount as et, normalizeStyle as fe, unref as at, renderSlot as dt, useSlots as ut, provide as $, resolveDynamicComponent as ct, nextTick as He, h as mt, withKeys as Se, withModifiers as de, Fragment as ge, renderList as je, normalizeProps as le, guardReactiveProps as re } from "vue";
|
|
10
|
+
import { _ as K } from "../CustomIcon-B9m73Gqm.js";
|
|
11
11
|
import { T as pt } from "../timeFilters-BKnCM4rv.js";
|
|
12
12
|
import "single-spa";
|
|
13
|
-
import { O as ht, A as ft } from "../OutputDialog-
|
|
14
|
-
import { f as
|
|
13
|
+
import { O as ht, A as ft } from "../OutputDialog-Di-pSmJE.js";
|
|
14
|
+
import { f as Oe } from "../format-CVeawcIv.js";
|
|
15
15
|
import { a as gt } from "../index-3k1IXN1T.js";
|
|
16
16
|
import { u as vt } from "../useContainerHeight-BAw05dIa.js";
|
|
17
|
-
import { T as _t, A as Ee } from "../TopBar-
|
|
18
|
-
import { E as bt, C as wt } from "../ScriptChooser-
|
|
17
|
+
import { T as _t, A as Ee } from "../TopBar-BkwvK0oj.js";
|
|
18
|
+
import { E as bt, C as wt } from "../ScriptChooser-C5HHbbcP.js";
|
|
19
19
|
import { f as yt } from "../fileIcon-DqRHb1_Z.js";
|
|
20
|
-
import { C as kt } from "../CriticalCmdDialog-
|
|
21
|
-
import { a as St, O as xt, F as Ct } from "../Openc3Screen-
|
|
22
|
-
import { S as Vt } from "../SimpleTextDialog
|
|
23
|
-
import { _ as Et } from "../ClassificationBanners-
|
|
24
|
-
import "../purify.es-
|
|
25
|
-
import { E as Rt } from "../EventListDialog-
|
|
26
|
-
const
|
|
20
|
+
import { C as kt } from "../CriticalCmdDialog-trVtKZft.js";
|
|
21
|
+
import { a as St, O as xt, F as Ct } from "../Openc3Screen-CDwAWaTl.js";
|
|
22
|
+
import { S as Vt } from "../SimpleTextDialog-CXIEKlX0.js";
|
|
23
|
+
import { _ as Et } from "../ClassificationBanners-STI2n2yD.js";
|
|
24
|
+
import "../purify.es-BGaRrCfO.js";
|
|
25
|
+
import { E as Rt } from "../EventListDialog-BshKrOuQ.js";
|
|
26
|
+
const Ot = {
|
|
27
27
|
components: { OutputDialog: ht },
|
|
28
28
|
mixins: [pt],
|
|
29
29
|
props: {
|
|
30
|
-
tabId:
|
|
31
|
-
|
|
30
|
+
tabId: {
|
|
31
|
+
type: Number,
|
|
32
|
+
default: null
|
|
33
|
+
},
|
|
34
|
+
curTab: {
|
|
35
|
+
type: Number,
|
|
36
|
+
default: null
|
|
37
|
+
},
|
|
32
38
|
connectInNewTab: Boolean
|
|
33
39
|
},
|
|
40
|
+
emits: ["disconnect", "close"],
|
|
34
41
|
data() {
|
|
35
42
|
return {
|
|
36
43
|
api: null,
|
|
@@ -118,15 +125,15 @@ const Mt = {
|
|
|
118
125
|
getRunningScripts: function() {
|
|
119
126
|
this.runningLoading = !0;
|
|
120
127
|
const t = (this.runningPage - 1) * this.runningItemsPerPage;
|
|
121
|
-
|
|
128
|
+
O.get(
|
|
122
129
|
`/script-api/running-script?scope=DEFAULT&offset=${t}&limit=${this.runningItemsPerPage}`
|
|
123
130
|
).then((e) => {
|
|
124
|
-
const
|
|
125
|
-
|
|
131
|
+
const o = e.data.items || [], r = /* @__PURE__ */ new Date();
|
|
132
|
+
o.forEach((i) => {
|
|
126
133
|
if (i.user_display = `${i.user_full_name} (${i.username})`, i.start_time) {
|
|
127
|
-
const
|
|
134
|
+
const s = new Date(i.start_time), d = r - s;
|
|
128
135
|
if (i.start_time_formatted = this.formatDateTimeHMS(
|
|
129
|
-
|
|
136
|
+
s,
|
|
130
137
|
this.timeZone
|
|
131
138
|
), d < 0)
|
|
132
139
|
i.duration = "N/A";
|
|
@@ -135,15 +142,15 @@ const Mt = {
|
|
|
135
142
|
else if (d < 6e4)
|
|
136
143
|
i.duration = `${Math.round(d / 1e3)}s`;
|
|
137
144
|
else if (d < 36e5) {
|
|
138
|
-
const
|
|
139
|
-
i.duration = `${
|
|
145
|
+
const p = Math.floor(d / 6e4), c = Math.round(d % 6e4 / 1e3);
|
|
146
|
+
i.duration = `${p}m ${c}s`;
|
|
140
147
|
} else {
|
|
141
|
-
const
|
|
142
|
-
i.duration = `${
|
|
148
|
+
const p = Math.floor(d / 36e5), c = Math.floor(d % 36e5 / 6e4), b = Math.round(d % 6e4 / 1e3);
|
|
149
|
+
i.duration = `${p}h ${c}m ${b}s`;
|
|
143
150
|
}
|
|
144
151
|
} else
|
|
145
152
|
i.duration = "N/A";
|
|
146
|
-
}), this.runningScripts =
|
|
153
|
+
}), this.runningScripts = o, this.runningTotal = e.data.total || o.length, this.runningLoading = !1;
|
|
147
154
|
}).catch((e) => {
|
|
148
155
|
this.runningLoading = !1, this.$notify.caution({
|
|
149
156
|
title: "Error Loading Running Scripts",
|
|
@@ -160,11 +167,11 @@ const Mt = {
|
|
|
160
167
|
getCompletedScripts: function() {
|
|
161
168
|
this.completedLoading = !0;
|
|
162
169
|
const t = (this.completedPage - 1) * this.completedItemsPerPage;
|
|
163
|
-
|
|
170
|
+
O.get(
|
|
164
171
|
`/script-api/completed-scripts?scope=DEFAULT&offset=${t}&limit=${this.completedItemsPerPage}`
|
|
165
172
|
).then((e) => {
|
|
166
|
-
const
|
|
167
|
-
|
|
173
|
+
const o = e.data.items || [];
|
|
174
|
+
o.forEach((r) => {
|
|
168
175
|
if (r.user_display = `${r.user_full_name} (${r.username})`, r.start_time && r.end_time) {
|
|
169
176
|
const i = new Date(r.start_time), d = new Date(r.end_time) - i;
|
|
170
177
|
if (r.start_time_formatted = this.formatDateTimeHMS(
|
|
@@ -177,15 +184,15 @@ const Mt = {
|
|
|
177
184
|
else if (d < 6e4)
|
|
178
185
|
r.duration = `${Math.round(d / 1e3)}s`;
|
|
179
186
|
else if (d < 36e5) {
|
|
180
|
-
const
|
|
181
|
-
r.duration = `${
|
|
187
|
+
const p = Math.floor(d / 6e4), c = Math.round(d % 6e4 / 1e3);
|
|
188
|
+
r.duration = `${p}m ${c}s`;
|
|
182
189
|
} else {
|
|
183
|
-
const
|
|
184
|
-
r.duration = `${
|
|
190
|
+
const p = Math.floor(d / 36e5), c = Math.floor(d % 36e5 / 6e4), b = Math.round(d % 6e4 / 1e3);
|
|
191
|
+
r.duration = `${p}h ${c}m ${b}s`;
|
|
185
192
|
}
|
|
186
193
|
} else
|
|
187
194
|
r.duration = "N/A";
|
|
188
|
-
}), this.completedScripts =
|
|
195
|
+
}), this.completedScripts = o, this.completedTotal = e.data.total || o.length, this.completedLoading = !1;
|
|
189
196
|
}).catch((e) => {
|
|
190
197
|
this.completedLoading = !1, this.$notify.caution({
|
|
191
198
|
title: "Error Loading Completed Scripts",
|
|
@@ -209,8 +216,8 @@ const Mt = {
|
|
|
209
216
|
params: { id: t.name }
|
|
210
217
|
};
|
|
211
218
|
if (this.connectInNewTab) {
|
|
212
|
-
let { href:
|
|
213
|
-
window.open(
|
|
219
|
+
let { href: o } = this.$router.resolve(e);
|
|
220
|
+
window.open(o, "_blank");
|
|
214
221
|
} else
|
|
215
222
|
this.$router.push(e), this.$emit("close");
|
|
216
223
|
},
|
|
@@ -222,7 +229,7 @@ const Mt = {
|
|
|
222
229
|
okText: "Stop",
|
|
223
230
|
cancelText: "Cancel"
|
|
224
231
|
}
|
|
225
|
-
).then((e) =>
|
|
232
|
+
).then((e) => O.post(`/script-api/running-script/${t.name}/delete`)).then((e) => {
|
|
226
233
|
this.$notify.normal({
|
|
227
234
|
body: `Stopped script: ${t.name} ${t.filename}`
|
|
228
235
|
}), this.getRunningScripts();
|
|
@@ -233,39 +240,39 @@ const Mt = {
|
|
|
233
240
|
});
|
|
234
241
|
},
|
|
235
242
|
viewScriptLog: function(t, e) {
|
|
236
|
-
let
|
|
237
|
-
e === "report" ? (this.dialogName = "Report",
|
|
243
|
+
let o = null;
|
|
244
|
+
e === "report" ? (this.dialogName = "Report", o = t.report) : (this.dialogName = "Log", o = t.log), O.get(
|
|
238
245
|
`/openc3-api/storage/download_file/${encodeURIComponent(
|
|
239
|
-
|
|
246
|
+
o
|
|
240
247
|
)}?bucket=OPENC3_LOGS_BUCKET`
|
|
241
248
|
).then((r) => {
|
|
242
|
-
const i =
|
|
249
|
+
const i = o.split("/");
|
|
243
250
|
this.dialogFilename = i[i.length - 1], this.dialogContent = window.atob(r.data.contents), this.showDialog = !0;
|
|
244
251
|
});
|
|
245
252
|
},
|
|
246
|
-
downloadScriptLog: function(t, e,
|
|
253
|
+
downloadScriptLog: function(t, e, o = "text") {
|
|
247
254
|
let r = null;
|
|
248
|
-
e === "report" ? (this.dialogName = "Report", r = t.report) : (this.dialogName = "Log", r = t.log), this.downloadScript = t,
|
|
255
|
+
e === "report" ? (this.dialogName = "Report", r = t.report) : (this.dialogName = "Log", r = t.log), this.downloadScript = t, o === "ctrf" && e === "report" ? O.get(
|
|
249
256
|
`/openc3-api/storage/download_file/${encodeURIComponent(
|
|
250
257
|
r
|
|
251
258
|
)}?bucket=OPENC3_LOGS_BUCKET&format=ctrf`
|
|
252
259
|
).then((i) => {
|
|
253
|
-
const
|
|
260
|
+
const s = new Blob([window.atob(i.data.contents)], {
|
|
254
261
|
type: "application/json"
|
|
255
262
|
}), d = document.createElement("a");
|
|
256
|
-
d.href = URL.createObjectURL(
|
|
263
|
+
d.href = URL.createObjectURL(s), d.setAttribute("download", i.data.filename), d.click(), this.downloadScript = null;
|
|
257
264
|
}).catch(() => {
|
|
258
265
|
this.$notify.caution({
|
|
259
266
|
title: `Unable to download log ${r}`,
|
|
260
267
|
body: `You may be able to download this log manually from the 'logs' bucket at ${r}`
|
|
261
268
|
}), this.downloadScript = null;
|
|
262
|
-
}) :
|
|
269
|
+
}) : O.get(
|
|
263
270
|
`/openc3-api/storage/download/${encodeURIComponent(
|
|
264
271
|
r
|
|
265
272
|
)}?bucket=OPENC3_LOGS_BUCKET`
|
|
266
273
|
).then((i) => {
|
|
267
|
-
const
|
|
268
|
-
|
|
274
|
+
const s = r.split("/"), d = s[s.length - 1], p = document.createElement("a");
|
|
275
|
+
p.href = i.data.url, p.setAttribute("download", d), p.click(), this.downloadScript = null;
|
|
269
276
|
}).catch(() => {
|
|
270
277
|
this.$notify.caution({
|
|
271
278
|
title: `Unable to download log ${r}`,
|
|
@@ -274,61 +281,61 @@ const Mt = {
|
|
|
274
281
|
});
|
|
275
282
|
}
|
|
276
283
|
}
|
|
277
|
-
},
|
|
278
|
-
function It(t, e,
|
|
279
|
-
const d = a("v-tab"),
|
|
280
|
-
return
|
|
281
|
-
|
|
284
|
+
}, Mt = { key: 0 }, Tt = { key: 1 };
|
|
285
|
+
function It(t, e, o, r, i, s) {
|
|
286
|
+
const d = a("v-tab"), p = a("v-tabs"), c = a("v-spacer"), b = a("v-btn"), S = a("v-text-field"), V = a("v-row"), w = a("v-card-title"), R = a("v-icon"), E = a("v-data-table-server"), I = a("v-window-item"), _ = a("v-list-item-title"), D = a("v-list-item"), G = a("v-list"), Q = a("v-menu"), te = a("v-window"), j = a("v-card"), ie = a("output-dialog");
|
|
287
|
+
return y(), z("div", null, [
|
|
288
|
+
n(j, {
|
|
282
289
|
flat: "",
|
|
283
290
|
class: "tab-card"
|
|
284
291
|
}, {
|
|
285
292
|
default: l(() => [
|
|
286
|
-
|
|
293
|
+
n(p, {
|
|
287
294
|
modelValue: i.activeTab,
|
|
288
|
-
"onUpdate:modelValue": e[0] || (e[0] = (
|
|
295
|
+
"onUpdate:modelValue": e[0] || (e[0] = (U) => i.activeTab = U),
|
|
289
296
|
"bg-color": "var(--color-background-base-default)"
|
|
290
297
|
}, {
|
|
291
298
|
default: l(() => [
|
|
292
|
-
|
|
299
|
+
n(d, { value: "running" }, {
|
|
293
300
|
default: l(() => [...e[6] || (e[6] = [
|
|
294
|
-
|
|
301
|
+
k("Running Scripts", -1)
|
|
295
302
|
])]),
|
|
296
303
|
_: 1
|
|
297
304
|
}),
|
|
298
|
-
|
|
305
|
+
n(d, { value: "completed" }, {
|
|
299
306
|
default: l(() => [...e[7] || (e[7] = [
|
|
300
|
-
|
|
307
|
+
k("Completed Scripts", -1)
|
|
301
308
|
])]),
|
|
302
309
|
_: 1
|
|
303
310
|
})
|
|
304
311
|
]),
|
|
305
312
|
_: 1
|
|
306
313
|
}, 8, ["modelValue"]),
|
|
307
|
-
|
|
314
|
+
n(te, {
|
|
308
315
|
modelValue: i.activeTab,
|
|
309
|
-
"onUpdate:modelValue": e[3] || (e[3] = (
|
|
316
|
+
"onUpdate:modelValue": e[3] || (e[3] = (U) => i.activeTab = U)
|
|
310
317
|
}, {
|
|
311
318
|
default: l(() => [
|
|
312
|
-
|
|
319
|
+
n(I, { value: "running" }, {
|
|
313
320
|
default: l(() => [
|
|
314
|
-
|
|
321
|
+
n(w, null, {
|
|
315
322
|
default: l(() => [
|
|
316
|
-
|
|
323
|
+
n(V, { dense: "" }, {
|
|
317
324
|
default: l(() => [
|
|
318
|
-
|
|
319
|
-
|
|
325
|
+
n(c),
|
|
326
|
+
n(b, {
|
|
320
327
|
class: "mr-3",
|
|
321
328
|
color: "primary",
|
|
322
|
-
onClick:
|
|
329
|
+
onClick: s.getRunningScripts
|
|
323
330
|
}, {
|
|
324
331
|
default: l(() => [...e[8] || (e[8] = [
|
|
325
|
-
|
|
332
|
+
k("Refresh", -1)
|
|
326
333
|
])]),
|
|
327
334
|
_: 1
|
|
328
335
|
}, 8, ["onClick"]),
|
|
329
|
-
|
|
336
|
+
n(S, {
|
|
330
337
|
modelValue: i.runningSearch,
|
|
331
|
-
"onUpdate:modelValue": e[1] || (e[1] = (
|
|
338
|
+
"onUpdate:modelValue": e[1] || (e[1] = (U) => i.runningSearch = U),
|
|
332
339
|
class: "pt-0 search",
|
|
333
340
|
label: "Search",
|
|
334
341
|
"prepend-inner-icon": "mdi-magnify",
|
|
@@ -346,7 +353,7 @@ function It(t, e, n, r, i, o) {
|
|
|
346
353
|
]),
|
|
347
354
|
_: 1
|
|
348
355
|
}),
|
|
349
|
-
|
|
356
|
+
n(E, {
|
|
350
357
|
headers: i.runningHeaders,
|
|
351
358
|
items: i.runningScripts,
|
|
352
359
|
"items-length": i.runningTotal,
|
|
@@ -358,50 +365,50 @@ function It(t, e, n, r, i, o) {
|
|
|
358
365
|
page: i.runningPage,
|
|
359
366
|
"items-per-page-options": [10, 25, 50],
|
|
360
367
|
class: "script-table",
|
|
361
|
-
"onUpdate:page":
|
|
362
|
-
"onUpdate:itemsPerPage":
|
|
368
|
+
"onUpdate:page": s.updateRunningPage,
|
|
369
|
+
"onUpdate:itemsPerPage": s.updateRunningItemsPerPage
|
|
363
370
|
}, {
|
|
364
|
-
"item.name": l(({ item:
|
|
365
|
-
|
|
371
|
+
"item.name": l(({ item: U }) => [
|
|
372
|
+
n(b, {
|
|
366
373
|
color: "primary",
|
|
367
374
|
density: "comfortable",
|
|
368
|
-
onClick: (F) =>
|
|
375
|
+
onClick: (F) => s.showScript(U)
|
|
369
376
|
}, {
|
|
370
377
|
default: l(() => [
|
|
371
|
-
|
|
378
|
+
k(L(U.name), 1)
|
|
372
379
|
]),
|
|
373
380
|
_: 2
|
|
374
381
|
}, 1032, ["onClick"])
|
|
375
382
|
]),
|
|
376
|
-
"item.connect": l(({ item:
|
|
377
|
-
|
|
383
|
+
"item.connect": l(({ item: U }) => [
|
|
384
|
+
n(b, {
|
|
378
385
|
color: "primary",
|
|
379
|
-
onClick: (F) =>
|
|
386
|
+
onClick: (F) => s.connectScript(U)
|
|
380
387
|
}, {
|
|
381
388
|
default: l(() => [
|
|
382
389
|
e[10] || (e[10] = x("span", null, "Connect", -1)),
|
|
383
|
-
ot(
|
|
390
|
+
ot(n(R, { end: "" }, {
|
|
384
391
|
default: l(() => [...e[9] || (e[9] = [
|
|
385
|
-
|
|
392
|
+
k(" mdi-open-in-new ", -1)
|
|
386
393
|
])]),
|
|
387
394
|
_: 1
|
|
388
395
|
}, 512), [
|
|
389
|
-
[lt,
|
|
396
|
+
[lt, o.connectInNewTab]
|
|
390
397
|
])
|
|
391
398
|
]),
|
|
392
399
|
_: 1
|
|
393
400
|
}, 8, ["onClick"])
|
|
394
401
|
]),
|
|
395
|
-
"item.stop": l(({ item:
|
|
396
|
-
|
|
402
|
+
"item.stop": l(({ item: U }) => [
|
|
403
|
+
n(b, {
|
|
397
404
|
color: "primary",
|
|
398
|
-
onClick: (F) =>
|
|
405
|
+
onClick: (F) => s.deleteScript(U)
|
|
399
406
|
}, {
|
|
400
407
|
default: l(() => [
|
|
401
408
|
e[12] || (e[12] = x("span", null, "Stop", -1)),
|
|
402
|
-
|
|
409
|
+
n(R, { end: "" }, {
|
|
403
410
|
default: l(() => [...e[11] || (e[11] = [
|
|
404
|
-
|
|
411
|
+
k(" mdi-close-circle-outline ", -1)
|
|
405
412
|
])]),
|
|
406
413
|
_: 1
|
|
407
414
|
})
|
|
@@ -414,26 +421,26 @@ function It(t, e, n, r, i, o) {
|
|
|
414
421
|
]),
|
|
415
422
|
_: 1
|
|
416
423
|
}),
|
|
417
|
-
|
|
424
|
+
n(I, { value: "completed" }, {
|
|
418
425
|
default: l(() => [
|
|
419
|
-
|
|
426
|
+
n(w, null, {
|
|
420
427
|
default: l(() => [
|
|
421
|
-
|
|
428
|
+
n(V, { dense: "" }, {
|
|
422
429
|
default: l(() => [
|
|
423
|
-
|
|
424
|
-
|
|
430
|
+
n(c),
|
|
431
|
+
n(b, {
|
|
425
432
|
class: "mr-3",
|
|
426
433
|
color: "primary",
|
|
427
|
-
onClick:
|
|
434
|
+
onClick: s.getCompletedScripts
|
|
428
435
|
}, {
|
|
429
436
|
default: l(() => [...e[13] || (e[13] = [
|
|
430
|
-
|
|
437
|
+
k("Refresh", -1)
|
|
431
438
|
])]),
|
|
432
439
|
_: 1
|
|
433
440
|
}, 8, ["onClick"]),
|
|
434
|
-
|
|
441
|
+
n(S, {
|
|
435
442
|
modelValue: i.completedSearch,
|
|
436
|
-
"onUpdate:modelValue": e[2] || (e[2] = (
|
|
443
|
+
"onUpdate:modelValue": e[2] || (e[2] = (U) => i.completedSearch = U),
|
|
437
444
|
class: "pt-0 search",
|
|
438
445
|
label: "Search",
|
|
439
446
|
"prepend-inner-icon": "mdi-magnify",
|
|
@@ -450,7 +457,7 @@ function It(t, e, n, r, i, o) {
|
|
|
450
457
|
]),
|
|
451
458
|
_: 1
|
|
452
459
|
}),
|
|
453
|
-
|
|
460
|
+
n(E, {
|
|
454
461
|
headers: i.completedHeaders,
|
|
455
462
|
items: i.completedScripts,
|
|
456
463
|
"items-length": i.completedTotal,
|
|
@@ -462,78 +469,78 @@ function It(t, e, n, r, i, o) {
|
|
|
462
469
|
page: i.completedPage,
|
|
463
470
|
"items-per-page-options": [10, 25, 50],
|
|
464
471
|
class: "script-table",
|
|
465
|
-
"onUpdate:page":
|
|
466
|
-
"onUpdate:itemsPerPage":
|
|
472
|
+
"onUpdate:page": s.updateCompletedPage,
|
|
473
|
+
"onUpdate:itemsPerPage": s.updateCompletedItemsPerPage
|
|
467
474
|
}, {
|
|
468
|
-
"item.name": l(({ item:
|
|
469
|
-
|
|
475
|
+
"item.name": l(({ item: U }) => [
|
|
476
|
+
n(b, {
|
|
470
477
|
color: "primary",
|
|
471
478
|
density: "comfortable",
|
|
472
|
-
onClick: (F) =>
|
|
479
|
+
onClick: (F) => s.showScript(U)
|
|
473
480
|
}, {
|
|
474
481
|
default: l(() => [
|
|
475
|
-
|
|
482
|
+
k(L(U.name), 1)
|
|
476
483
|
]),
|
|
477
484
|
_: 2
|
|
478
485
|
}, 1032, ["onClick"])
|
|
479
486
|
]),
|
|
480
|
-
"item.log": l(({ item:
|
|
481
|
-
|
|
487
|
+
"item.log": l(({ item: U }) => [
|
|
488
|
+
n(b, {
|
|
482
489
|
color: "primary",
|
|
483
490
|
density: "comfortable",
|
|
484
491
|
icon: "mdi-eye",
|
|
485
|
-
onClick: (F) =>
|
|
492
|
+
onClick: (F) => s.viewScriptLog(U, "log")
|
|
486
493
|
}, null, 8, ["onClick"]),
|
|
487
|
-
|
|
494
|
+
n(b, {
|
|
488
495
|
color: "primary",
|
|
489
496
|
density: "comfortable",
|
|
490
497
|
icon: "mdi-file-download-outline",
|
|
491
498
|
disabled: i.downloadScript,
|
|
492
|
-
loading: i.downloadScript && i.downloadScript.name ===
|
|
493
|
-
onClick: (F) =>
|
|
499
|
+
loading: i.downloadScript && i.downloadScript.name === U.name,
|
|
500
|
+
onClick: (F) => s.downloadScriptLog(U, "log")
|
|
494
501
|
}, null, 8, ["disabled", "loading", "onClick"])
|
|
495
502
|
]),
|
|
496
|
-
"item.report": l(({ item:
|
|
497
|
-
|
|
498
|
-
|
|
503
|
+
"item.report": l(({ item: U }) => [
|
|
504
|
+
U.report ? (y(), z("div", Tt, [
|
|
505
|
+
n(b, {
|
|
499
506
|
color: "primary",
|
|
500
507
|
density: "comfortable",
|
|
501
508
|
icon: "mdi-eye",
|
|
502
|
-
onClick: (F) =>
|
|
509
|
+
onClick: (F) => s.viewScriptLog(U, "report")
|
|
503
510
|
}, null, 8, ["onClick"]),
|
|
504
|
-
|
|
511
|
+
n(Q, null, {
|
|
505
512
|
activator: l(({ props: F }) => [
|
|
506
|
-
|
|
513
|
+
n(b, Y({
|
|
507
514
|
color: "primary",
|
|
508
515
|
density: "comfortable",
|
|
509
516
|
icon: "mdi-file-download-outline",
|
|
510
517
|
disabled: i.downloadScript,
|
|
511
|
-
loading: i.downloadScript && i.downloadScript.name ===
|
|
518
|
+
loading: i.downloadScript && i.downloadScript.name === U.name
|
|
512
519
|
}, F), null, 16, ["disabled", "loading"])
|
|
513
520
|
]),
|
|
514
521
|
default: l(() => [
|
|
515
|
-
|
|
522
|
+
n(G, null, {
|
|
516
523
|
default: l(() => [
|
|
517
|
-
|
|
518
|
-
onClick: (F) =>
|
|
524
|
+
n(D, {
|
|
525
|
+
onClick: (F) => s.downloadScriptLog(U, "report", "text")
|
|
519
526
|
}, {
|
|
520
527
|
default: l(() => [
|
|
521
|
-
|
|
528
|
+
n(_, null, {
|
|
522
529
|
default: l(() => [...e[15] || (e[15] = [
|
|
523
|
-
|
|
530
|
+
k("Download as Text", -1)
|
|
524
531
|
])]),
|
|
525
532
|
_: 1
|
|
526
533
|
})
|
|
527
534
|
]),
|
|
528
535
|
_: 1
|
|
529
536
|
}, 8, ["onClick"]),
|
|
530
|
-
|
|
531
|
-
onClick: (F) =>
|
|
537
|
+
n(D, {
|
|
538
|
+
onClick: (F) => s.downloadScriptLog(U, "report", "ctrf")
|
|
532
539
|
}, {
|
|
533
540
|
default: l(() => [
|
|
534
|
-
|
|
541
|
+
n(_, null, {
|
|
535
542
|
default: l(() => [...e[16] || (e[16] = [
|
|
536
|
-
|
|
543
|
+
k("Download as CTRF", -1)
|
|
537
544
|
])]),
|
|
538
545
|
_: 1
|
|
539
546
|
})
|
|
@@ -546,7 +553,7 @@ function It(t, e, n, r, i, o) {
|
|
|
546
553
|
]),
|
|
547
554
|
_: 2
|
|
548
555
|
}, 1024)
|
|
549
|
-
])) : (
|
|
556
|
+
])) : (y(), z("div", Mt, [...e[14] || (e[14] = [
|
|
550
557
|
x("span", null, "N/A", -1)
|
|
551
558
|
])]))
|
|
552
559
|
]),
|
|
@@ -561,19 +568,19 @@ function It(t, e, n, r, i, o) {
|
|
|
561
568
|
]),
|
|
562
569
|
_: 1
|
|
563
570
|
}),
|
|
564
|
-
i.showDialog ? (
|
|
571
|
+
i.showDialog ? (y(), T(ie, {
|
|
565
572
|
key: 0,
|
|
566
573
|
modelValue: i.showDialog,
|
|
567
|
-
"onUpdate:modelValue": e[4] || (e[4] = (
|
|
574
|
+
"onUpdate:modelValue": e[4] || (e[4] = (U) => i.showDialog = U),
|
|
568
575
|
content: i.dialogContent,
|
|
569
576
|
type: "Script",
|
|
570
577
|
name: i.dialogName,
|
|
571
578
|
filename: i.dialogFilename,
|
|
572
|
-
onSubmit: e[5] || (e[5] = (
|
|
573
|
-
}, null, 8, ["modelValue", "content", "name", "filename"])) :
|
|
579
|
+
onSubmit: e[5] || (e[5] = (U) => i.showDialog = !1)
|
|
580
|
+
}, null, 8, ["modelValue", "content", "name", "filename"])) : P("", !0)
|
|
574
581
|
]);
|
|
575
582
|
}
|
|
576
|
-
const Ut = /* @__PURE__ */ K(
|
|
583
|
+
const Ut = /* @__PURE__ */ K(Ot, [["render", It]]), Dt = {
|
|
577
584
|
props: {
|
|
578
585
|
modelValue: {
|
|
579
586
|
type: Array,
|
|
@@ -614,11 +621,11 @@ const Ut = /* @__PURE__ */ K(Mt, [["render", It]]), Dt = {
|
|
|
614
621
|
const t = this.messages.map((r) => r.message).join(`
|
|
615
622
|
`), e = new Blob([t], {
|
|
616
623
|
type: "text/plain"
|
|
617
|
-
}),
|
|
618
|
-
|
|
624
|
+
}), o = document.createElement("a");
|
|
625
|
+
o.href = URL.createObjectURL(e), o.setAttribute(
|
|
619
626
|
"download",
|
|
620
|
-
|
|
621
|
-
),
|
|
627
|
+
Oe(Date.now(), "yyyy_MM_dd_HH_mm_ss") + "_sr_message_log.txt"
|
|
628
|
+
), o.click();
|
|
622
629
|
},
|
|
623
630
|
clearLog: function() {
|
|
624
631
|
this.$dialog.confirm("Are you sure you want to clear the log?", {
|
|
@@ -631,24 +638,24 @@ const Ut = /* @__PURE__ */ K(Mt, [["render", It]]), Dt = {
|
|
|
631
638
|
}
|
|
632
639
|
}
|
|
633
640
|
};
|
|
634
|
-
function Pt(t, e,
|
|
635
|
-
const d = a("v-btn"),
|
|
636
|
-
return
|
|
641
|
+
function Pt(t, e, o, r, i, s) {
|
|
642
|
+
const d = a("v-btn"), p = a("v-spacer"), c = a("v-select"), b = a("v-text-field"), S = a("v-card-title"), V = a("v-data-table"), w = a("v-card-text"), R = a("v-card");
|
|
643
|
+
return y(), T(R, { class: "d-flex flex-column h-100" }, {
|
|
637
644
|
default: l(() => [
|
|
638
|
-
|
|
645
|
+
n(S, { class: "d-flex align-center" }, {
|
|
639
646
|
default: l(() => [
|
|
640
|
-
|
|
647
|
+
n(d, {
|
|
641
648
|
class: "mx-2",
|
|
642
649
|
icon: "mdi-download",
|
|
643
650
|
variant: "text",
|
|
644
651
|
density: "compact",
|
|
645
652
|
"data-test": "download-log",
|
|
646
653
|
"aria-label": "Download Log",
|
|
647
|
-
onClick:
|
|
654
|
+
onClick: s.downloadLog
|
|
648
655
|
}, null, 8, ["onClick"]),
|
|
649
|
-
e[2] || (e[2] =
|
|
650
|
-
|
|
651
|
-
|
|
656
|
+
e[2] || (e[2] = k(" Script Messages ", -1)),
|
|
657
|
+
n(p),
|
|
658
|
+
n(c, {
|
|
652
659
|
modelValue: i.messageOrder,
|
|
653
660
|
"onUpdate:modelValue": e[0] || (e[0] = (E) => i.messageOrder = E),
|
|
654
661
|
density: "compact",
|
|
@@ -659,8 +666,8 @@ function Pt(t, e, n, r, i, o) {
|
|
|
659
666
|
style: { "max-width": "200px" },
|
|
660
667
|
"data-test": "message-order"
|
|
661
668
|
}, null, 8, ["modelValue", "items"]),
|
|
662
|
-
|
|
663
|
-
|
|
669
|
+
n(p),
|
|
670
|
+
n(b, {
|
|
664
671
|
modelValue: i.search,
|
|
665
672
|
"onUpdate:modelValue": e[1] || (e[1] = (E) => i.search = E),
|
|
666
673
|
label: "Search",
|
|
@@ -673,24 +680,24 @@ function Pt(t, e, n, r, i, o) {
|
|
|
673
680
|
class: "search",
|
|
674
681
|
"data-test": "search-messages"
|
|
675
682
|
}, null, 8, ["modelValue"]),
|
|
676
|
-
|
|
683
|
+
n(d, {
|
|
677
684
|
class: "mx-2",
|
|
678
685
|
icon: "mdi-delete-sweep",
|
|
679
686
|
variant: "text",
|
|
680
687
|
density: "compact",
|
|
681
688
|
"data-test": "clear-log",
|
|
682
689
|
"aria-label": "Clear Log",
|
|
683
|
-
onClick:
|
|
690
|
+
onClick: s.clearLog
|
|
684
691
|
}, null, 8, ["onClick"])
|
|
685
692
|
]),
|
|
686
693
|
_: 1
|
|
687
694
|
}),
|
|
688
|
-
|
|
695
|
+
n(w, { class: "overflow-auto" }, {
|
|
689
696
|
default: l(() => [
|
|
690
|
-
|
|
697
|
+
n(V, {
|
|
691
698
|
id: "script-log-messages",
|
|
692
699
|
headers: i.headers,
|
|
693
|
-
items:
|
|
700
|
+
items: s.messages,
|
|
694
701
|
search: i.search,
|
|
695
702
|
"items-per-page": -1,
|
|
696
703
|
"hide-default-footer": "",
|
|
@@ -699,7 +706,7 @@ function Pt(t, e, n, r, i, o) {
|
|
|
699
706
|
}, {
|
|
700
707
|
"item.message": l(({ item: E }) => [
|
|
701
708
|
x("div", {
|
|
702
|
-
class: Ke(
|
|
709
|
+
class: Ke(s.messageClass(E.message))
|
|
703
710
|
}, L(E.message), 3)
|
|
704
711
|
]),
|
|
705
712
|
_: 1
|
|
@@ -734,7 +741,7 @@ const zt = /* @__PURE__ */ K(Dt, [["render", Pt]]), Lt = {
|
|
|
734
741
|
"splitter-dblclick"
|
|
735
742
|
],
|
|
736
743
|
setup(t, { emit: e }) {
|
|
737
|
-
const
|
|
744
|
+
const o = e, r = t, i = ut(), s = ae([]), d = Z(() => s.value.reduce((u, h) => (u[~~h.id] = h) && u, {})), p = Z(() => s.value.length), c = ae(null), b = ae(!1), S = ae({
|
|
738
745
|
mouseDown: !1,
|
|
739
746
|
dragging: !1,
|
|
740
747
|
activeSplitter: null,
|
|
@@ -744,174 +751,174 @@ const zt = /* @__PURE__ */ K(Dt, [["render", Pt]]), Lt = {
|
|
|
744
751
|
// Used to detect double click on touch devices.
|
|
745
752
|
splitter: null,
|
|
746
753
|
timeoutId: null
|
|
747
|
-
}), w =
|
|
754
|
+
}), w = Z(() => ({
|
|
748
755
|
[`splitpanes splitpanes--${r.horizontal ? "horizontal" : "vertical"}`]: !0,
|
|
749
|
-
"splitpanes--dragging":
|
|
756
|
+
"splitpanes--dragging": S.value.dragging
|
|
750
757
|
})), R = () => {
|
|
751
|
-
document.addEventListener("mousemove", _, { passive: !1 }), document.addEventListener("mouseup",
|
|
758
|
+
document.addEventListener("mousemove", _, { passive: !1 }), document.addEventListener("mouseup", D), "ontouchstart" in window && (document.addEventListener("touchmove", _, { passive: !1 }), document.addEventListener("touchend", D));
|
|
752
759
|
}, E = () => {
|
|
753
|
-
document.removeEventListener("mousemove", _, { passive: !1 }), document.removeEventListener("mouseup",
|
|
754
|
-
},
|
|
760
|
+
document.removeEventListener("mousemove", _, { passive: !1 }), document.removeEventListener("mouseup", D), "ontouchstart" in window && (document.removeEventListener("touchmove", _, { passive: !1 }), document.removeEventListener("touchend", D));
|
|
761
|
+
}, I = (u, h) => {
|
|
755
762
|
const v = u.target.closest(".splitpanes__splitter");
|
|
756
763
|
if (v) {
|
|
757
|
-
const { left: f, top: g } = v.getBoundingClientRect(), { clientX: C, clientY:
|
|
758
|
-
|
|
764
|
+
const { left: f, top: g } = v.getBoundingClientRect(), { clientX: C, clientY: M } = "ontouchstart" in window && u.touches ? u.touches[0] : u;
|
|
765
|
+
S.value.cursorOffset = r.horizontal ? M - g : C - f;
|
|
759
766
|
}
|
|
760
|
-
R(),
|
|
767
|
+
R(), S.value.mouseDown = !0, S.value.activeSplitter = h;
|
|
761
768
|
}, _ = (u) => {
|
|
762
|
-
|
|
763
|
-
|
|
769
|
+
S.value.mouseDown && (u.preventDefault(), S.value.dragging = !0, requestAnimationFrame(() => {
|
|
770
|
+
U(j(u)), N("resize", { event: u }, !0);
|
|
764
771
|
}));
|
|
765
|
-
},
|
|
766
|
-
|
|
767
|
-
|
|
772
|
+
}, D = (u) => {
|
|
773
|
+
S.value.dragging && (window.getSelection().removeAllRanges(), N("resized", { event: u }, !0)), S.value.mouseDown = !1, S.value.activeSplitter = null, setTimeout(() => {
|
|
774
|
+
S.value.dragging = !1, E();
|
|
768
775
|
}, 100);
|
|
769
|
-
}, G = (u,
|
|
770
|
-
"ontouchstart" in window && (u.preventDefault(), V.value.splitter ===
|
|
771
|
-
}, Q = (u,
|
|
772
|
-
if (N("splitter-dblclick", { event: u, index:
|
|
776
|
+
}, G = (u, h) => {
|
|
777
|
+
"ontouchstart" in window && (u.preventDefault(), V.value.splitter === h ? (clearTimeout(V.value.timeoutId), V.value.timeoutId = null, Q(u, h), V.value.splitter = null) : (V.value.splitter = h, V.value.timeoutId = setTimeout(() => V.value.splitter = null, 500))), S.value.dragging || N("splitter-click", { event: u, index: h }, !0);
|
|
778
|
+
}, Q = (u, h) => {
|
|
779
|
+
if (N("splitter-dblclick", { event: u, index: h }, !0), r.maximizePanes) {
|
|
773
780
|
let v = 0;
|
|
774
|
-
|
|
781
|
+
s.value = s.value.map((f, g) => (f.size = g === h ? f.max : f.min, g !== h && (v += f.min), f)), s.value[h].size -= v, N("pane-maximize", { event: u, index: h, pane: s.value[h] }), N("resized", { event: u, index: h }, !0);
|
|
775
782
|
}
|
|
776
|
-
}, te = (u,
|
|
783
|
+
}, te = (u, h) => {
|
|
777
784
|
N("pane-click", {
|
|
778
785
|
event: u,
|
|
779
|
-
index: d.value[
|
|
780
|
-
pane: d.value[
|
|
786
|
+
index: d.value[h].index,
|
|
787
|
+
pane: d.value[h]
|
|
781
788
|
});
|
|
782
789
|
}, j = (u) => {
|
|
783
|
-
const
|
|
790
|
+
const h = c.value.getBoundingClientRect(), { clientX: v, clientY: f } = "ontouchstart" in window && u.touches ? u.touches[0] : u;
|
|
784
791
|
return {
|
|
785
|
-
x: v - (r.horizontal ? 0 :
|
|
786
|
-
y: f - (r.horizontal ?
|
|
792
|
+
x: v - (r.horizontal ? 0 : S.value.cursorOffset) - h.left,
|
|
793
|
+
y: f - (r.horizontal ? S.value.cursorOffset : 0) - h.top
|
|
787
794
|
};
|
|
788
795
|
}, ie = (u) => {
|
|
789
796
|
u = u[r.horizontal ? "y" : "x"];
|
|
790
|
-
const
|
|
791
|
-
return r.rtl && !r.horizontal && (u =
|
|
792
|
-
},
|
|
793
|
-
const
|
|
797
|
+
const h = c.value[r.horizontal ? "clientHeight" : "clientWidth"];
|
|
798
|
+
return r.rtl && !r.horizontal && (u = h - u), u * 100 / h;
|
|
799
|
+
}, U = (u) => {
|
|
800
|
+
const h = S.value.activeSplitter;
|
|
794
801
|
let v = {
|
|
795
|
-
prevPanesSize: ue(
|
|
796
|
-
nextPanesSize:
|
|
802
|
+
prevPanesSize: ue(h),
|
|
803
|
+
nextPanesSize: X(h),
|
|
797
804
|
prevReachedMinPanes: 0,
|
|
798
805
|
nextReachedMinPanes: 0
|
|
799
806
|
};
|
|
800
807
|
const f = 0 + (r.pushOtherPanes ? 0 : v.prevPanesSize), g = 100 - (r.pushOtherPanes ? 0 : v.nextPanesSize), C = Math.max(Math.min(ie(u), g), f);
|
|
801
|
-
let
|
|
802
|
-
const m = A.max < 100 && C >= A.max + v.prevPanesSize,
|
|
803
|
-
if (m ||
|
|
804
|
-
m ? (A.size = A.max, H.size = Math.max(100 - A.max - v.prevPanesSize - v.nextPanesSize, 0)) : (A.size = Math.max(100 - H.max - v.prevPanesSize -
|
|
808
|
+
let M = [h, h + 1], A = s.value[M[0]] || null, H = s.value[M[1]] || null;
|
|
809
|
+
const m = A.max < 100 && C >= A.max + v.prevPanesSize, W = H.max < 100 && C <= 100 - (H.max + X(h + 1));
|
|
810
|
+
if (m || W) {
|
|
811
|
+
m ? (A.size = A.max, H.size = Math.max(100 - A.max - v.prevPanesSize - v.nextPanesSize, 0)) : (A.size = Math.max(100 - H.max - v.prevPanesSize - X(h + 1), 0), H.size = H.max);
|
|
805
812
|
return;
|
|
806
813
|
}
|
|
807
814
|
if (r.pushOtherPanes) {
|
|
808
815
|
const We = F(v, C);
|
|
809
816
|
if (!We) return;
|
|
810
|
-
({ sums: v, panesToResize:
|
|
817
|
+
({ sums: v, panesToResize: M } = We), A = s.value[M[0]] || null, H = s.value[M[1]] || null;
|
|
811
818
|
}
|
|
812
819
|
A !== null && (A.size = Math.min(Math.max(C - v.prevPanesSize - v.prevReachedMinPanes, A.min), A.max)), H !== null && (H.size = Math.min(Math.max(100 - C - v.nextPanesSize - v.nextReachedMinPanes, H.min), H.max));
|
|
813
|
-
}, F = (u,
|
|
814
|
-
const v =
|
|
815
|
-
return
|
|
820
|
+
}, F = (u, h) => {
|
|
821
|
+
const v = S.value.activeSplitter, f = [v, v + 1];
|
|
822
|
+
return h < u.prevPanesSize + s.value[f[0]].min && (f[0] = Ue(v).index, u.prevReachedMinPanes = 0, f[0] < v && s.value.forEach((g, C) => {
|
|
816
823
|
C > f[0] && C <= v && (g.size = g.min, u.prevReachedMinPanes += g.min);
|
|
817
|
-
}), u.prevPanesSize = ue(f[0]), f[0] === void 0) ? (u.prevReachedMinPanes = 0,
|
|
824
|
+
}), u.prevPanesSize = ue(f[0]), f[0] === void 0) ? (u.prevReachedMinPanes = 0, s.value[0].size = s.value[0].min, s.value.forEach((g, C) => {
|
|
818
825
|
C > 0 && C <= v && (g.size = g.min, u.prevReachedMinPanes += g.min);
|
|
819
|
-
}),
|
|
826
|
+
}), s.value[f[1]].size = 100 - u.prevReachedMinPanes - s.value[0].min - u.prevPanesSize - u.nextPanesSize, null) : h > 100 - u.nextPanesSize - s.value[f[1]].min && (f[1] = xe(v).index, u.nextReachedMinPanes = 0, f[1] > v + 1 && s.value.forEach((g, C) => {
|
|
820
827
|
C > v && C < f[1] && (g.size = g.min, u.nextReachedMinPanes += g.min);
|
|
821
|
-
}), u.nextPanesSize =
|
|
822
|
-
C <
|
|
823
|
-
}),
|
|
824
|
-
}, ue = (u) =>
|
|
828
|
+
}), u.nextPanesSize = X(f[1] - 1), f[1] === void 0) ? (u.nextReachedMinPanes = 0, s.value.forEach((g, C) => {
|
|
829
|
+
C < p.value - 1 && C >= v + 1 && (g.size = g.min, u.nextReachedMinPanes += g.min);
|
|
830
|
+
}), s.value[f[0]].size = 100 - u.prevPanesSize - X(f[0] - 1), null) : { sums: u, panesToResize: f };
|
|
831
|
+
}, ue = (u) => s.value.reduce((h, v, f) => h + (f < u ? v.size : 0), 0), X = (u) => s.value.reduce((h, v, f) => h + (f > u + 1 ? v.size : 0), 0), Ue = (u) => [...s.value].reverse().find((h) => h.index < u && h.size > h.min) || {}, xe = (u) => s.value.find((h) => h.index > u + 1 && h.size > h.min) || {}, De = () => {
|
|
825
832
|
var u;
|
|
826
|
-
const
|
|
827
|
-
for (const v of
|
|
833
|
+
const h = Array.from(((u = c.value) == null ? void 0 : u.children) || []);
|
|
834
|
+
for (const v of h) {
|
|
828
835
|
const f = v.classList.contains("splitpanes__pane"), g = v.classList.contains("splitpanes__splitter");
|
|
829
836
|
!f && !g && (v.remove(), console.warn("Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed."));
|
|
830
837
|
}
|
|
831
|
-
}, ce = (u,
|
|
838
|
+
}, ce = (u, h, v = !1) => {
|
|
832
839
|
const f = u - 1, g = document.createElement("div");
|
|
833
|
-
g.classList.add("splitpanes__splitter"), v || (g.onmousedown = (C) =>
|
|
840
|
+
g.classList.add("splitpanes__splitter"), v || (g.onmousedown = (C) => I(C, f), typeof window < "u" && "ontouchstart" in window && (g.ontouchstart = (C) => I(C, f)), g.onclick = (C) => G(C, f + 1)), g.ondblclick = (C) => Q(C, f + 1), h.parentNode.insertBefore(g, h);
|
|
834
841
|
}, Ce = (u) => {
|
|
835
842
|
u.onmousedown = void 0, u.onclick = void 0, u.ondblclick = void 0, u.remove();
|
|
836
843
|
}, se = () => {
|
|
837
844
|
var u;
|
|
838
|
-
const
|
|
839
|
-
for (const f of
|
|
845
|
+
const h = Array.from(((u = c.value) == null ? void 0 : u.children) || []);
|
|
846
|
+
for (const f of h)
|
|
840
847
|
f.className.includes("splitpanes__splitter") && Ce(f);
|
|
841
848
|
let v = 0;
|
|
842
|
-
for (const f of
|
|
849
|
+
for (const f of h)
|
|
843
850
|
f.className.includes("splitpanes__pane") && (!v && r.firstSplitter ? ce(v, f, !0) : v && ce(v, f), v++);
|
|
844
|
-
}, Ve = ({ uid: u, ...
|
|
851
|
+
}, Ve = ({ uid: u, ...h }) => {
|
|
845
852
|
const v = d.value[u];
|
|
846
|
-
for (const [f, g] of Object.entries(
|
|
853
|
+
for (const [f, g] of Object.entries(h)) v[f] = g;
|
|
847
854
|
}, Pe = (u) => {
|
|
848
|
-
var
|
|
855
|
+
var h;
|
|
849
856
|
let v = -1;
|
|
850
|
-
Array.from(((
|
|
851
|
-
se(), me({ addedPane:
|
|
857
|
+
Array.from(((h = c.value) == null ? void 0 : h.children) || []).some((f) => (f.className.includes("splitpanes__pane") && v++, f.isSameNode(u.el))), s.value.splice(v, 0, { ...u, index: v }), s.value.forEach((f, g) => f.index = g), b.value && He(() => {
|
|
858
|
+
se(), me({ addedPane: s.value[v] }), N("pane-add", { pane: s.value[v] });
|
|
852
859
|
});
|
|
853
860
|
}, ze = (u) => {
|
|
854
|
-
const
|
|
855
|
-
|
|
856
|
-
const v =
|
|
857
|
-
|
|
861
|
+
const h = s.value.findIndex((f) => f.id === u);
|
|
862
|
+
s.value[h].el = null;
|
|
863
|
+
const v = s.value.splice(h, 1)[0];
|
|
864
|
+
s.value.forEach((f, g) => f.index = g), He(() => {
|
|
858
865
|
se(), N("pane-remove", { pane: v }), me({ removedPane: { ...v } });
|
|
859
866
|
});
|
|
860
867
|
}, me = (u = {}) => {
|
|
861
|
-
!u.addedPane && !u.removedPane ? Ae() :
|
|
868
|
+
!u.addedPane && !u.removedPane ? Ae() : s.value.some((h) => h.givenSize !== null || h.min || h.max < 100) ? Fe(u) : Le(), b.value && N("resized");
|
|
862
869
|
}, Le = () => {
|
|
863
|
-
const u = 100 /
|
|
864
|
-
let
|
|
870
|
+
const u = 100 / p.value;
|
|
871
|
+
let h = 0;
|
|
865
872
|
const v = [], f = [];
|
|
866
|
-
for (const g of
|
|
867
|
-
g.size = Math.max(Math.min(u, g.max), g.min),
|
|
868
|
-
|
|
873
|
+
for (const g of s.value)
|
|
874
|
+
g.size = Math.max(Math.min(u, g.max), g.min), h -= g.size, g.size >= g.max && v.push(g.id), g.size <= g.min && f.push(g.id);
|
|
875
|
+
h > 0.1 && pe(h, v, f);
|
|
869
876
|
}, Ae = () => {
|
|
870
877
|
let u = 100;
|
|
871
|
-
const
|
|
878
|
+
const h = [], v = [];
|
|
872
879
|
let f = 0;
|
|
873
|
-
for (const C of
|
|
874
|
-
u -= C.size, C.givenSize !== null && f++, C.size >= C.max &&
|
|
880
|
+
for (const C of s.value)
|
|
881
|
+
u -= C.size, C.givenSize !== null && f++, C.size >= C.max && h.push(C.id), C.size <= C.min && v.push(C.id);
|
|
875
882
|
let g = 100;
|
|
876
883
|
if (u > 0.1) {
|
|
877
|
-
for (const C of
|
|
878
|
-
C.givenSize === null && (C.size = Math.max(Math.min(u / (
|
|
879
|
-
g > 0.1 && pe(g,
|
|
884
|
+
for (const C of s.value)
|
|
885
|
+
C.givenSize === null && (C.size = Math.max(Math.min(u / (p.value - f), C.max), C.min)), g -= C.size;
|
|
886
|
+
g > 0.1 && pe(g, h, v);
|
|
880
887
|
}
|
|
881
|
-
}, Fe = ({ addedPane: u, removedPane:
|
|
882
|
-
let v = 100 /
|
|
888
|
+
}, Fe = ({ addedPane: u, removedPane: h } = {}) => {
|
|
889
|
+
let v = 100 / p.value, f = 0;
|
|
883
890
|
const g = [], C = [];
|
|
884
|
-
((u == null ? void 0 : u.givenSize) ?? null) !== null && (v = (100 - u.givenSize) / (
|
|
885
|
-
for (const
|
|
886
|
-
f -=
|
|
891
|
+
((u == null ? void 0 : u.givenSize) ?? null) !== null && (v = (100 - u.givenSize) / (p.value - 1));
|
|
892
|
+
for (const M of s.value)
|
|
893
|
+
f -= M.size, M.size >= M.max && g.push(M.id), M.size <= M.min && C.push(M.id);
|
|
887
894
|
if (!(Math.abs(f) < 0.1)) {
|
|
888
|
-
for (const
|
|
889
|
-
(u == null ? void 0 : u.givenSize) !== null && (u == null ? void 0 : u.id) ===
|
|
895
|
+
for (const M of s.value)
|
|
896
|
+
(u == null ? void 0 : u.givenSize) !== null && (u == null ? void 0 : u.id) === M.id || (M.size = Math.max(Math.min(v, M.max), M.min)), f -= M.size, M.size >= M.max && g.push(M.id), M.size <= M.min && C.push(M.id);
|
|
890
897
|
f > 0.1 && pe(f, g, C);
|
|
891
898
|
}
|
|
892
|
-
}, pe = (u,
|
|
899
|
+
}, pe = (u, h, v) => {
|
|
893
900
|
let f;
|
|
894
|
-
u > 0 ? f = u / (
|
|
895
|
-
if (u > 0 && !
|
|
896
|
-
const
|
|
897
|
-
u -= A, g.size =
|
|
901
|
+
u > 0 ? f = u / (p.value - h.length) : f = u / (p.value - v.length), s.value.forEach((g, C) => {
|
|
902
|
+
if (u > 0 && !h.includes(g.id)) {
|
|
903
|
+
const M = Math.max(Math.min(g.size + f, g.max), g.min), A = M - g.size;
|
|
904
|
+
u -= A, g.size = M;
|
|
898
905
|
} else if (!v.includes(g.id)) {
|
|
899
|
-
const
|
|
900
|
-
u -= A, g.size =
|
|
906
|
+
const M = Math.max(Math.min(g.size + f, g.max), g.min), A = M - g.size;
|
|
907
|
+
u -= A, g.size = M;
|
|
901
908
|
}
|
|
902
909
|
}), Math.abs(u) > 0.1 && He(() => {
|
|
903
910
|
b.value && console.warn("Splitpanes: Could not resize panes correctly due to their constraints.");
|
|
904
911
|
});
|
|
905
|
-
}, N = (u,
|
|
906
|
-
const f = (
|
|
907
|
-
|
|
908
|
-
...
|
|
912
|
+
}, N = (u, h = void 0, v = !1) => {
|
|
913
|
+
const f = (h == null ? void 0 : h.index) ?? S.value.activeSplitter ?? null;
|
|
914
|
+
o(u, {
|
|
915
|
+
...h,
|
|
909
916
|
...f !== null && { index: f },
|
|
910
917
|
...v && f !== null && {
|
|
911
|
-
prevPane:
|
|
912
|
-
nextPane:
|
|
918
|
+
prevPane: s.value[f - (r.firstSplitter ? 1 : 0)],
|
|
919
|
+
nextPane: s.value[f + (r.firstSplitter ? 0 : 1)]
|
|
913
920
|
},
|
|
914
|
-
panes:
|
|
921
|
+
panes: s.value.map((g) => ({ min: g.min, max: g.max, size: g.size }))
|
|
915
922
|
});
|
|
916
923
|
};
|
|
917
924
|
Re(() => r.firstSplitter, () => se()), $e(() => {
|
|
@@ -925,7 +932,7 @@ const zt = /* @__PURE__ */ K(Dt, [["render", Pt]]), Lt = {
|
|
|
925
932
|
(u = i.default) == null ? void 0 : u.call(i)
|
|
926
933
|
);
|
|
927
934
|
};
|
|
928
|
-
return $("panes",
|
|
935
|
+
return $("panes", s), $("indexedPanes", d), $("horizontal", Z(() => r.horizontal)), $("requestUpdate", Ve), $("onPaneAdd", Pe), $("onPaneRemove", ze), $("onPaneClick", te), (u, h) => (y(), T(ct(Be)));
|
|
929
936
|
}
|
|
930
937
|
}, At = {
|
|
931
938
|
__name: "pane",
|
|
@@ -936,18 +943,18 @@ const zt = /* @__PURE__ */ K(Dt, [["render", Pt]]), Lt = {
|
|
|
936
943
|
},
|
|
937
944
|
setup(t) {
|
|
938
945
|
var e;
|
|
939
|
-
const
|
|
940
|
-
const _ = isNaN(
|
|
946
|
+
const o = t, r = oe("requestUpdate"), i = oe("onPaneAdd"), s = oe("horizontal"), d = oe("onPaneRemove"), p = oe("onPaneClick"), c = (e = rt()) == null ? void 0 : e.uid, b = oe("indexedPanes"), S = Z(() => b.value[c]), V = ae(null), w = Z(() => {
|
|
947
|
+
const _ = isNaN(o.size) || o.size === void 0 ? 0 : parseFloat(o.size);
|
|
941
948
|
return Math.max(Math.min(_, E.value), R.value);
|
|
942
|
-
}), R =
|
|
943
|
-
const _ = parseFloat(
|
|
949
|
+
}), R = Z(() => {
|
|
950
|
+
const _ = parseFloat(o.minSize);
|
|
944
951
|
return isNaN(_) ? 0 : _;
|
|
945
|
-
}), E =
|
|
946
|
-
const _ = parseFloat(
|
|
952
|
+
}), E = Z(() => {
|
|
953
|
+
const _ = parseFloat(o.maxSize);
|
|
947
954
|
return isNaN(_) ? 100 : _;
|
|
948
|
-
}),
|
|
955
|
+
}), I = Z(() => {
|
|
949
956
|
var _;
|
|
950
|
-
return `${
|
|
957
|
+
return `${s.value ? "height" : "width"}: ${(_ = S.value) == null ? void 0 : _.size}%`;
|
|
951
958
|
});
|
|
952
959
|
return Re(() => w.value, (_) => r({ uid: c, size: _ })), Re(() => R.value, (_) => r({ uid: c, min: _ })), Re(() => E.value, (_) => r({ uid: c, max: _ })), $e(() => {
|
|
953
960
|
i({
|
|
@@ -956,16 +963,16 @@ const zt = /* @__PURE__ */ K(Dt, [["render", Pt]]), Lt = {
|
|
|
956
963
|
min: R.value,
|
|
957
964
|
max: E.value,
|
|
958
965
|
// The given size (useful to know the user intention).
|
|
959
|
-
givenSize:
|
|
966
|
+
givenSize: o.size === void 0 ? null : w.value,
|
|
960
967
|
size: w.value
|
|
961
968
|
// The computed current size at any time.
|
|
962
969
|
});
|
|
963
|
-
}), et(() => d(c)), (_,
|
|
970
|
+
}), et(() => d(c)), (_, D) => (y(), z("div", {
|
|
964
971
|
ref_key: "paneEl",
|
|
965
972
|
ref: V,
|
|
966
973
|
class: "splitpanes__pane",
|
|
967
|
-
onClick:
|
|
968
|
-
style: fe(
|
|
974
|
+
onClick: D[0] || (D[0] = (G) => at(p)(G, _._.uid)),
|
|
975
|
+
style: fe(I.value)
|
|
969
976
|
}, [
|
|
970
977
|
dt(_.$slots, "default")
|
|
971
978
|
], 4));
|
|
@@ -990,6 +997,7 @@ const zt = /* @__PURE__ */ K(Dt, [["render", Pt]]), Lt = {
|
|
|
990
997
|
},
|
|
991
998
|
modelValue: Boolean
|
|
992
999
|
},
|
|
1000
|
+
emits: ["update:modelValue", "response"],
|
|
993
1001
|
data() {
|
|
994
1002
|
return {
|
|
995
1003
|
inputValue: "",
|
|
@@ -1019,70 +1027,70 @@ const zt = /* @__PURE__ */ K(Dt, [["render", Pt]]), Lt = {
|
|
|
1019
1027
|
}
|
|
1020
1028
|
}
|
|
1021
1029
|
}, Bt = { class: "pa-2" }, Nt = { class: "question" };
|
|
1022
|
-
function Ht(t, e,
|
|
1023
|
-
const d = a("v-spacer"),
|
|
1024
|
-
return
|
|
1025
|
-
modelValue:
|
|
1026
|
-
"onUpdate:modelValue": e[2] || (e[2] = (
|
|
1030
|
+
function Ht(t, e, o, r, i, s) {
|
|
1031
|
+
const d = a("v-spacer"), p = a("v-toolbar"), c = a("v-text-field"), b = a("v-card-text"), S = a("v-btn"), V = a("v-card-actions"), w = a("v-form"), R = a("v-card"), E = a("v-dialog");
|
|
1032
|
+
return y(), T(E, {
|
|
1033
|
+
modelValue: s.show,
|
|
1034
|
+
"onUpdate:modelValue": e[2] || (e[2] = (I) => s.show = I),
|
|
1027
1035
|
persistent: "",
|
|
1028
1036
|
width: "600",
|
|
1029
|
-
onKeydown: Se(
|
|
1037
|
+
onKeydown: Se(s.cancelHandler, ["esc"])
|
|
1030
1038
|
}, {
|
|
1031
1039
|
default: l(() => [
|
|
1032
|
-
|
|
1040
|
+
n(R, null, {
|
|
1033
1041
|
default: l(() => [
|
|
1034
|
-
|
|
1042
|
+
n(w, {
|
|
1035
1043
|
modelValue: i.valid,
|
|
1036
|
-
"onUpdate:modelValue": e[1] || (e[1] = (
|
|
1037
|
-
onSubmit: de(
|
|
1044
|
+
"onUpdate:modelValue": e[1] || (e[1] = (I) => i.valid = I),
|
|
1045
|
+
onSubmit: de(s.submitHandler, ["prevent"])
|
|
1038
1046
|
}, {
|
|
1039
1047
|
default: l(() => [
|
|
1040
|
-
|
|
1048
|
+
n(p, { height: "24" }, {
|
|
1041
1049
|
default: l(() => [
|
|
1042
|
-
|
|
1050
|
+
n(d),
|
|
1043
1051
|
e[3] || (e[3] = x("span", null, " User Input Required ", -1)),
|
|
1044
|
-
|
|
1052
|
+
n(d)
|
|
1045
1053
|
]),
|
|
1046
1054
|
_: 1
|
|
1047
1055
|
}),
|
|
1048
1056
|
x("div", Bt, [
|
|
1049
|
-
|
|
1057
|
+
n(b, null, {
|
|
1050
1058
|
default: l(() => [
|
|
1051
|
-
x("div", Nt, L(
|
|
1052
|
-
|
|
1059
|
+
x("div", Nt, L(o.question), 1),
|
|
1060
|
+
n(c, {
|
|
1053
1061
|
modelValue: i.inputValue,
|
|
1054
|
-
"onUpdate:modelValue": e[0] || (e[0] = (
|
|
1062
|
+
"onUpdate:modelValue": e[0] || (e[0] = (I) => i.inputValue = I),
|
|
1055
1063
|
autofocus: "",
|
|
1056
1064
|
"data-test": "ask-value-input",
|
|
1057
|
-
type:
|
|
1065
|
+
type: o.password ? "password" : "text",
|
|
1058
1066
|
rules: i.rules
|
|
1059
1067
|
}, null, 8, ["modelValue", "type", "rules"])
|
|
1060
1068
|
]),
|
|
1061
1069
|
_: 1
|
|
1062
1070
|
})
|
|
1063
1071
|
]),
|
|
1064
|
-
|
|
1072
|
+
n(V, { class: "px-2" }, {
|
|
1065
1073
|
default: l(() => [
|
|
1066
|
-
|
|
1067
|
-
|
|
1074
|
+
n(d),
|
|
1075
|
+
n(S, {
|
|
1068
1076
|
variant: "outlined",
|
|
1069
1077
|
"data-test": "ask-cancel",
|
|
1070
|
-
onClick:
|
|
1078
|
+
onClick: s.cancelHandler
|
|
1071
1079
|
}, {
|
|
1072
1080
|
default: l(() => [...e[4] || (e[4] = [
|
|
1073
|
-
|
|
1081
|
+
k(" Cancel ", -1)
|
|
1074
1082
|
])]),
|
|
1075
1083
|
_: 1
|
|
1076
1084
|
}, 8, ["onClick"]),
|
|
1077
|
-
|
|
1085
|
+
n(S, {
|
|
1078
1086
|
variant: "flat",
|
|
1079
1087
|
type: "submit",
|
|
1080
1088
|
"data-test": "ask-ok",
|
|
1081
1089
|
disabled: !i.valid,
|
|
1082
|
-
onClick: de(
|
|
1090
|
+
onClick: de(s.submitHandler, ["prevent"])
|
|
1083
1091
|
}, {
|
|
1084
1092
|
default: l(() => [...e[5] || (e[5] = [
|
|
1085
|
-
|
|
1093
|
+
k(" Ok ", -1)
|
|
1086
1094
|
])]),
|
|
1087
1095
|
_: 1
|
|
1088
1096
|
}, 8, ["disabled", "onClick"])
|
|
@@ -1099,7 +1107,7 @@ function Ht(t, e, n, r, i, o) {
|
|
|
1099
1107
|
_: 1
|
|
1100
1108
|
}, 8, ["modelValue", "onKeydown"]);
|
|
1101
1109
|
}
|
|
1102
|
-
const Gt = /* @__PURE__ */ K(Ft, [["render", Ht], ["__scopeId", "data-v-
|
|
1110
|
+
const Gt = /* @__PURE__ */ K(Ft, [["render", Ht], ["__scopeId", "data-v-a7d2ae62"]]), qt = {
|
|
1103
1111
|
props: {
|
|
1104
1112
|
title: {
|
|
1105
1113
|
type: String,
|
|
@@ -1119,6 +1127,7 @@ const Gt = /* @__PURE__ */ K(Ft, [["render", Ht], ["__scopeId", "data-v-eeaa2f66
|
|
|
1119
1127
|
},
|
|
1120
1128
|
modelValue: Boolean
|
|
1121
1129
|
},
|
|
1130
|
+
emits: ["update:modelValue", "response"],
|
|
1122
1131
|
data() {
|
|
1123
1132
|
return {
|
|
1124
1133
|
inputValue: null,
|
|
@@ -1146,64 +1155,64 @@ const Gt = /* @__PURE__ */ K(Ft, [["render", Ht], ["__scopeId", "data-v-eeaa2f66
|
|
|
1146
1155
|
this.$emit("response", "Cancel");
|
|
1147
1156
|
}
|
|
1148
1157
|
}
|
|
1149
|
-
}, Kt = { class: "pa-2" }, jt = { class: "
|
|
1150
|
-
function Jt(t, e,
|
|
1151
|
-
const d = a("v-spacer"),
|
|
1152
|
-
return
|
|
1153
|
-
modelValue:
|
|
1154
|
-
"onUpdate:modelValue": e[2] || (e[2] = (_) =>
|
|
1158
|
+
}, Kt = { class: "pa-2" }, jt = { class: "text-h6" }, Wt = ["textContent"];
|
|
1159
|
+
function Jt(t, e, o, r, i, s) {
|
|
1160
|
+
const d = a("v-spacer"), p = a("v-toolbar"), c = a("v-row"), b = a("v-file-input"), S = a("v-card-text"), V = a("v-btn"), w = a("v-card-actions"), R = a("v-form"), E = a("v-card"), I = a("v-dialog");
|
|
1161
|
+
return y(), T(I, {
|
|
1162
|
+
modelValue: s.show,
|
|
1163
|
+
"onUpdate:modelValue": e[2] || (e[2] = (_) => s.show = _),
|
|
1155
1164
|
persistent: "",
|
|
1156
1165
|
width: "600",
|
|
1157
|
-
onKeydown: Se(
|
|
1166
|
+
onKeydown: Se(s.cancelHandler, ["esc"])
|
|
1158
1167
|
}, {
|
|
1159
1168
|
default: l(() => [
|
|
1160
|
-
|
|
1169
|
+
n(E, null, {
|
|
1161
1170
|
default: l(() => [
|
|
1162
|
-
|
|
1171
|
+
n(R, {
|
|
1163
1172
|
modelValue: i.valid,
|
|
1164
1173
|
"onUpdate:modelValue": e[1] || (e[1] = (_) => i.valid = _),
|
|
1165
|
-
onSubmit: de(
|
|
1174
|
+
onSubmit: de(s.submitHandler, ["prevent"])
|
|
1166
1175
|
}, {
|
|
1167
1176
|
default: l(() => [
|
|
1168
|
-
|
|
1177
|
+
n(p, { height: "24" }, {
|
|
1169
1178
|
default: l(() => [
|
|
1170
|
-
|
|
1179
|
+
n(d),
|
|
1171
1180
|
e[3] || (e[3] = x("span", null, " File Dialog ", -1)),
|
|
1172
|
-
|
|
1181
|
+
n(d)
|
|
1173
1182
|
]),
|
|
1174
1183
|
_: 1
|
|
1175
1184
|
}),
|
|
1176
1185
|
x("div", Kt, [
|
|
1177
|
-
|
|
1186
|
+
n(S, null, {
|
|
1178
1187
|
default: l(() => [
|
|
1179
|
-
|
|
1188
|
+
n(c, null, {
|
|
1180
1189
|
default: l(() => [
|
|
1181
|
-
x("span", jt, L(
|
|
1190
|
+
x("span", jt, L(o.title), 1)
|
|
1182
1191
|
]),
|
|
1183
1192
|
_: 1
|
|
1184
1193
|
}),
|
|
1185
|
-
|
|
1194
|
+
o.message ? (y(), T(c, { key: 0 }, {
|
|
1186
1195
|
default: l(() => [
|
|
1187
1196
|
x("span", {
|
|
1188
1197
|
class: "ma-3",
|
|
1189
1198
|
style: { "white-space": "pre-line" },
|
|
1190
|
-
textContent: L(
|
|
1199
|
+
textContent: L(o.message)
|
|
1191
1200
|
}, null, 8, Wt)
|
|
1192
1201
|
]),
|
|
1193
1202
|
_: 1
|
|
1194
|
-
})) :
|
|
1195
|
-
|
|
1203
|
+
})) : P("", !0),
|
|
1204
|
+
n(c, { class: "my-1" }, {
|
|
1196
1205
|
default: l(() => [
|
|
1197
|
-
|
|
1206
|
+
n(b, {
|
|
1198
1207
|
modelValue: i.inputValue,
|
|
1199
1208
|
"onUpdate:modelValue": e[0] || (e[0] = (_) => i.inputValue = _),
|
|
1200
1209
|
label: "Choose File",
|
|
1201
1210
|
rules: i.rules,
|
|
1202
1211
|
autofocus: "",
|
|
1203
1212
|
"data-test": "file-input",
|
|
1204
|
-
accept:
|
|
1213
|
+
accept: o.filter,
|
|
1205
1214
|
"small-chips": "",
|
|
1206
|
-
multiple:
|
|
1215
|
+
multiple: o.multiple
|
|
1207
1216
|
}, null, 8, ["modelValue", "rules", "accept", "multiple"])
|
|
1208
1217
|
]),
|
|
1209
1218
|
_: 1
|
|
@@ -1212,28 +1221,28 @@ function Jt(t, e, n, r, i, o) {
|
|
|
1212
1221
|
_: 1
|
|
1213
1222
|
})
|
|
1214
1223
|
]),
|
|
1215
|
-
|
|
1224
|
+
n(w, { class: "px-2" }, {
|
|
1216
1225
|
default: l(() => [
|
|
1217
|
-
|
|
1218
|
-
|
|
1226
|
+
n(d),
|
|
1227
|
+
n(V, {
|
|
1219
1228
|
variant: "outlined",
|
|
1220
1229
|
"data-test": "file-cancel",
|
|
1221
|
-
onClick:
|
|
1230
|
+
onClick: s.cancelHandler
|
|
1222
1231
|
}, {
|
|
1223
1232
|
default: l(() => [...e[4] || (e[4] = [
|
|
1224
|
-
|
|
1233
|
+
k(" Cancel ", -1)
|
|
1225
1234
|
])]),
|
|
1226
1235
|
_: 1
|
|
1227
1236
|
}, 8, ["onClick"]),
|
|
1228
|
-
|
|
1237
|
+
n(V, {
|
|
1229
1238
|
variant: "flat",
|
|
1230
1239
|
type: "submit",
|
|
1231
1240
|
"data-test": "file-ok",
|
|
1232
1241
|
disabled: !i.valid,
|
|
1233
|
-
onClick: de(
|
|
1242
|
+
onClick: de(s.submitHandler, ["prevent"])
|
|
1234
1243
|
}, {
|
|
1235
1244
|
default: l(() => [...e[5] || (e[5] = [
|
|
1236
|
-
|
|
1245
|
+
k(" Ok ", -1)
|
|
1237
1246
|
])]),
|
|
1238
1247
|
_: 1
|
|
1239
1248
|
}, 8, ["disabled", "onClick"])
|
|
@@ -1250,7 +1259,7 @@ function Jt(t, e, n, r, i, o) {
|
|
|
1250
1259
|
_: 1
|
|
1251
1260
|
}, 8, ["modelValue", "onKeydown"]);
|
|
1252
1261
|
}
|
|
1253
|
-
const Yt = /* @__PURE__ */ K(qt, [["render", Jt], ["__scopeId", "data-v-
|
|
1262
|
+
const Yt = /* @__PURE__ */ K(qt, [["render", Jt], ["__scopeId", "data-v-24d71dd4"]]), Zt = {
|
|
1254
1263
|
props: {
|
|
1255
1264
|
modelValue: {
|
|
1256
1265
|
type: Boolean,
|
|
@@ -1269,6 +1278,7 @@ const Yt = /* @__PURE__ */ K(qt, [["render", Jt], ["__scopeId", "data-v-6d77dd67
|
|
|
1269
1278
|
required: !0
|
|
1270
1279
|
}
|
|
1271
1280
|
},
|
|
1281
|
+
emits: ["update:modelValue"],
|
|
1272
1282
|
computed: {
|
|
1273
1283
|
show: {
|
|
1274
1284
|
get() {
|
|
@@ -1281,33 +1291,33 @@ const Yt = /* @__PURE__ */ K(qt, [["render", Jt], ["__scopeId", "data-v-6d77dd67
|
|
|
1281
1291
|
},
|
|
1282
1292
|
methods: {}
|
|
1283
1293
|
}, Xt = ["textContent"], Qt = { class: "pa-2" }, $t = ["textContent"];
|
|
1284
|
-
function ei(t, e,
|
|
1285
|
-
const d = a("v-spacer"),
|
|
1286
|
-
return
|
|
1287
|
-
modelValue:
|
|
1288
|
-
"onUpdate:modelValue": e[1] || (e[1] = (E) =>
|
|
1289
|
-
width:
|
|
1294
|
+
function ei(t, e, o, r, i, s) {
|
|
1295
|
+
const d = a("v-spacer"), p = a("v-toolbar"), c = a("v-row"), b = a("v-card-text"), S = a("v-btn"), V = a("v-card-actions"), w = a("v-card"), R = a("v-dialog");
|
|
1296
|
+
return y(), T(R, {
|
|
1297
|
+
modelValue: s.show,
|
|
1298
|
+
"onUpdate:modelValue": e[1] || (e[1] = (E) => s.show = E),
|
|
1299
|
+
width: o.width
|
|
1290
1300
|
}, {
|
|
1291
1301
|
default: l(() => [
|
|
1292
|
-
|
|
1302
|
+
n(w, null, {
|
|
1293
1303
|
default: l(() => [
|
|
1294
|
-
|
|
1304
|
+
n(p, { height: "24" }, {
|
|
1295
1305
|
default: l(() => [
|
|
1296
|
-
|
|
1306
|
+
n(d),
|
|
1297
1307
|
x("span", {
|
|
1298
1308
|
style: { "white-space": "pre" },
|
|
1299
|
-
textContent: L(
|
|
1309
|
+
textContent: L(o.title)
|
|
1300
1310
|
}, null, 8, Xt),
|
|
1301
|
-
|
|
1311
|
+
n(d)
|
|
1302
1312
|
]),
|
|
1303
1313
|
_: 1
|
|
1304
1314
|
}),
|
|
1305
1315
|
x("div", Qt, [
|
|
1306
|
-
|
|
1316
|
+
n(b, null, {
|
|
1307
1317
|
default: l(() => [
|
|
1308
|
-
(
|
|
1309
|
-
|
|
1310
|
-
|
|
1318
|
+
(y(!0), z(ge, null, je(o.text, (E, I) => (y(), T(c, {
|
|
1319
|
+
key: I,
|
|
1320
|
+
"no-gutters": ""
|
|
1311
1321
|
}, {
|
|
1312
1322
|
default: l(() => [
|
|
1313
1323
|
x("span", {
|
|
@@ -1321,15 +1331,15 @@ function ei(t, e, n, r, i, o) {
|
|
|
1321
1331
|
_: 1
|
|
1322
1332
|
})
|
|
1323
1333
|
]),
|
|
1324
|
-
|
|
1334
|
+
n(V, { class: "px-2" }, {
|
|
1325
1335
|
default: l(() => [
|
|
1326
|
-
|
|
1327
|
-
|
|
1336
|
+
n(d),
|
|
1337
|
+
n(S, {
|
|
1328
1338
|
variant: "flat",
|
|
1329
|
-
onClick: e[0] || (e[0] = (E) =>
|
|
1339
|
+
onClick: e[0] || (e[0] = (E) => s.show = !s.show)
|
|
1330
1340
|
}, {
|
|
1331
1341
|
default: l(() => [...e[2] || (e[2] = [
|
|
1332
|
-
|
|
1342
|
+
k(" Ok ", -1)
|
|
1333
1343
|
])]),
|
|
1334
1344
|
_: 1
|
|
1335
1345
|
})
|
|
@@ -1351,6 +1361,7 @@ const ti = /* @__PURE__ */ K(Zt, [["render", ei]]), ii = {
|
|
|
1351
1361
|
required: !0
|
|
1352
1362
|
}
|
|
1353
1363
|
},
|
|
1364
|
+
emits: ["update:modelValue"],
|
|
1354
1365
|
data() {
|
|
1355
1366
|
return {
|
|
1356
1367
|
api: null,
|
|
@@ -1401,7 +1412,7 @@ const ti = /* @__PURE__ */ K(Zt, [["render", ei]]), ii = {
|
|
|
1401
1412
|
e.packet_name,
|
|
1402
1413
|
e.item_name,
|
|
1403
1414
|
"ALL"
|
|
1404
|
-
).then((
|
|
1415
|
+
).then((o) => {
|
|
1405
1416
|
this.overrides = [];
|
|
1406
1417
|
});
|
|
1407
1418
|
},
|
|
@@ -1412,47 +1423,47 @@ const ti = /* @__PURE__ */ K(Zt, [["render", ei]]), ii = {
|
|
|
1412
1423
|
t.item_name,
|
|
1413
1424
|
t.value_type
|
|
1414
1425
|
).then((e) => {
|
|
1415
|
-
let
|
|
1416
|
-
this.overrides.splice(
|
|
1426
|
+
let o = this.overrides.indexOf(t);
|
|
1427
|
+
this.overrides.splice(o, 1);
|
|
1417
1428
|
});
|
|
1418
1429
|
}
|
|
1419
1430
|
}
|
|
1420
1431
|
}, si = { class: "pa-2" };
|
|
1421
|
-
function ni(t, e,
|
|
1422
|
-
const d = a("v-spacer"),
|
|
1423
|
-
return
|
|
1424
|
-
modelValue:
|
|
1425
|
-
"onUpdate:modelValue": e[2] || (e[2] = (_) =>
|
|
1432
|
+
function ni(t, e, o, r, i, s) {
|
|
1433
|
+
const d = a("v-spacer"), p = a("v-toolbar"), c = a("v-btn"), b = a("v-text-field"), S = a("v-row"), V = a("v-data-table"), w = a("v-card-text"), R = a("v-card-actions"), E = a("v-card"), I = a("v-dialog");
|
|
1434
|
+
return y(), T(I, {
|
|
1435
|
+
modelValue: s.show,
|
|
1436
|
+
"onUpdate:modelValue": e[2] || (e[2] = (_) => s.show = _),
|
|
1426
1437
|
width: "1000"
|
|
1427
1438
|
}, {
|
|
1428
1439
|
default: l(() => [
|
|
1429
|
-
|
|
1440
|
+
n(E, null, {
|
|
1430
1441
|
default: l(() => [
|
|
1431
|
-
|
|
1442
|
+
n(p, { height: "24" }, {
|
|
1432
1443
|
default: l(() => [
|
|
1433
|
-
|
|
1444
|
+
n(d),
|
|
1434
1445
|
e[3] || (e[3] = x("span", null, "Overrides", -1)),
|
|
1435
|
-
|
|
1446
|
+
n(d)
|
|
1436
1447
|
]),
|
|
1437
1448
|
_: 1
|
|
1438
1449
|
}),
|
|
1439
1450
|
x("div", si, [
|
|
1440
|
-
|
|
1451
|
+
n(w, null, {
|
|
1441
1452
|
default: l(() => [
|
|
1442
|
-
|
|
1453
|
+
n(S, { class: "ma-1" }, {
|
|
1443
1454
|
default: l(() => [
|
|
1444
|
-
|
|
1455
|
+
n(c, {
|
|
1445
1456
|
color: "primary",
|
|
1446
1457
|
"data-test": "overrides-dialog-clear-all",
|
|
1447
|
-
onClick:
|
|
1458
|
+
onClick: s.clearOverrides
|
|
1448
1459
|
}, {
|
|
1449
1460
|
default: l(() => [...e[4] || (e[4] = [
|
|
1450
|
-
|
|
1461
|
+
k(" Clear All Overrides ", -1)
|
|
1451
1462
|
])]),
|
|
1452
1463
|
_: 1
|
|
1453
1464
|
}, 8, ["onClick"]),
|
|
1454
|
-
|
|
1455
|
-
|
|
1465
|
+
n(d),
|
|
1466
|
+
n(b, {
|
|
1456
1467
|
modelValue: i.search,
|
|
1457
1468
|
"onUpdate:modelValue": e[0] || (e[0] = (_) => i.search = _),
|
|
1458
1469
|
label: "Search",
|
|
@@ -1466,7 +1477,7 @@ function ni(t, e, n, r, i, o) {
|
|
|
1466
1477
|
]),
|
|
1467
1478
|
_: 1
|
|
1468
1479
|
}),
|
|
1469
|
-
|
|
1480
|
+
n(V, {
|
|
1470
1481
|
headers: i.headers,
|
|
1471
1482
|
items: i.overrides,
|
|
1472
1483
|
search: i.search,
|
|
@@ -1475,11 +1486,11 @@ function ni(t, e, n, r, i, o) {
|
|
|
1475
1486
|
density: "compact"
|
|
1476
1487
|
}, {
|
|
1477
1488
|
"item.delete": l(({ item: _ }) => [
|
|
1478
|
-
|
|
1489
|
+
n(c, {
|
|
1479
1490
|
icon: "mdi-delete",
|
|
1480
1491
|
variant: "text",
|
|
1481
1492
|
"aria-label": "Delete Override",
|
|
1482
|
-
onClick: (
|
|
1493
|
+
onClick: (D) => s.deleteOverride(_)
|
|
1483
1494
|
}, null, 8, ["onClick"])
|
|
1484
1495
|
]),
|
|
1485
1496
|
_: 1
|
|
@@ -1488,16 +1499,16 @@ function ni(t, e, n, r, i, o) {
|
|
|
1488
1499
|
_: 1
|
|
1489
1500
|
})
|
|
1490
1501
|
]),
|
|
1491
|
-
|
|
1502
|
+
n(R, { class: "px-2" }, {
|
|
1492
1503
|
default: l(() => [
|
|
1493
|
-
|
|
1494
|
-
|
|
1504
|
+
n(d),
|
|
1505
|
+
n(c, {
|
|
1495
1506
|
variant: "flat",
|
|
1496
1507
|
"data-test": "overrides-dialog-ok",
|
|
1497
|
-
onClick: e[1] || (e[1] = (_) =>
|
|
1508
|
+
onClick: e[1] || (e[1] = (_) => s.show = !s.show)
|
|
1498
1509
|
}, {
|
|
1499
1510
|
default: l(() => [...e[5] || (e[5] = [
|
|
1500
|
-
|
|
1511
|
+
k(" Ok ", -1)
|
|
1501
1512
|
])]),
|
|
1502
1513
|
_: 1
|
|
1503
1514
|
})
|
|
@@ -1545,6 +1556,7 @@ const oi = /* @__PURE__ */ K(ii, [["render", ni]]), li = {
|
|
|
1545
1556
|
},
|
|
1546
1557
|
modelValue: Boolean
|
|
1547
1558
|
},
|
|
1559
|
+
emits: ["update:modelValue", "response"],
|
|
1548
1560
|
data() {
|
|
1549
1561
|
return {
|
|
1550
1562
|
selectOkDisabled: !0,
|
|
@@ -1577,70 +1589,70 @@ const oi = /* @__PURE__ */ K(ii, [["render", ni]]), li = {
|
|
|
1577
1589
|
}
|
|
1578
1590
|
}
|
|
1579
1591
|
}, ri = ["textContent"], ai = { class: "pa-2" }, di = ["textContent"], ui = ["textContent"], ci = { key: 0 }, mi = { key: 1 };
|
|
1580
|
-
function pi(t, e,
|
|
1581
|
-
const d = a("v-spacer"),
|
|
1582
|
-
return
|
|
1583
|
-
modelValue:
|
|
1584
|
-
"onUpdate:modelValue": e[2] || (e[2] = (_) =>
|
|
1592
|
+
function pi(t, e, o, r, i, s) {
|
|
1593
|
+
const d = a("v-spacer"), p = a("v-toolbar"), c = a("v-card-subtitle"), b = a("v-row"), S = a("v-card-text"), V = a("v-select"), w = a("v-btn"), R = a("v-card-actions"), E = a("v-card"), I = a("v-dialog");
|
|
1594
|
+
return y(), T(I, {
|
|
1595
|
+
modelValue: s.show,
|
|
1596
|
+
"onUpdate:modelValue": e[2] || (e[2] = (_) => s.show = _),
|
|
1585
1597
|
persistent: "",
|
|
1586
1598
|
width: "600",
|
|
1587
|
-
onKeydown: Se(
|
|
1599
|
+
onKeydown: Se(s.cancelHandler, ["esc"])
|
|
1588
1600
|
}, {
|
|
1589
1601
|
default: l(() => [
|
|
1590
|
-
|
|
1602
|
+
n(E, null, {
|
|
1591
1603
|
default: l(() => [
|
|
1592
|
-
|
|
1604
|
+
n(p, { height: "24" }, {
|
|
1593
1605
|
default: l(() => [
|
|
1594
|
-
|
|
1606
|
+
n(d),
|
|
1595
1607
|
x("span", {
|
|
1596
1608
|
class: "text",
|
|
1597
|
-
textContent: L(
|
|
1609
|
+
textContent: L(o.title)
|
|
1598
1610
|
}, null, 8, ri),
|
|
1599
|
-
|
|
1611
|
+
n(d)
|
|
1600
1612
|
]),
|
|
1601
1613
|
_: 1
|
|
1602
1614
|
}),
|
|
1603
1615
|
x("div", ai, [
|
|
1604
|
-
|
|
1616
|
+
n(S, { class: "text" }, {
|
|
1605
1617
|
default: l(() => [
|
|
1606
|
-
|
|
1618
|
+
o.subtitle ? (y(), T(b, { key: 0 }, {
|
|
1607
1619
|
default: l(() => [
|
|
1608
|
-
|
|
1620
|
+
n(c, null, {
|
|
1609
1621
|
default: l(() => [
|
|
1610
|
-
|
|
1622
|
+
k(L(o.subtitle), 1)
|
|
1611
1623
|
]),
|
|
1612
1624
|
_: 1
|
|
1613
1625
|
})
|
|
1614
1626
|
]),
|
|
1615
1627
|
_: 1
|
|
1616
|
-
})) :
|
|
1617
|
-
|
|
1628
|
+
})) : P("", !0),
|
|
1629
|
+
n(b, { class: "mt-1" }, {
|
|
1618
1630
|
default: l(() => [
|
|
1619
1631
|
x("span", {
|
|
1620
|
-
textContent: L(
|
|
1632
|
+
textContent: L(o.message)
|
|
1621
1633
|
}, null, 8, di)
|
|
1622
1634
|
]),
|
|
1623
1635
|
_: 1
|
|
1624
1636
|
}),
|
|
1625
|
-
|
|
1637
|
+
o.details ? (y(), T(b, {
|
|
1626
1638
|
key: 1,
|
|
1627
1639
|
class: "mt-1"
|
|
1628
1640
|
}, {
|
|
1629
1641
|
default: l(() => [
|
|
1630
1642
|
x("span", {
|
|
1631
|
-
textContent: L(
|
|
1643
|
+
textContent: L(o.details)
|
|
1632
1644
|
}, null, 8, ui)
|
|
1633
1645
|
]),
|
|
1634
1646
|
_: 1
|
|
1635
|
-
})) :
|
|
1647
|
+
})) : P("", !0)
|
|
1636
1648
|
]),
|
|
1637
1649
|
_: 1
|
|
1638
1650
|
})
|
|
1639
1651
|
]),
|
|
1640
|
-
|
|
1641
|
-
|
|
1652
|
+
o.layout === "combo" ? (y(), z("div", ci, [
|
|
1653
|
+
n(b, { class: "ma-2" }, {
|
|
1642
1654
|
default: l(() => [
|
|
1643
|
-
|
|
1655
|
+
n(V, {
|
|
1644
1656
|
modelValue: i.selectedItem,
|
|
1645
1657
|
"onUpdate:modelValue": [
|
|
1646
1658
|
e[0] || (e[0] = (_) => i.selectedItem = _),
|
|
@@ -1650,63 +1662,63 @@ function pi(t, e, n, r, i, o) {
|
|
|
1650
1662
|
color: "secondary",
|
|
1651
1663
|
class: "ma-1",
|
|
1652
1664
|
"data-test": "prompt-select",
|
|
1653
|
-
items:
|
|
1654
|
-
multiple:
|
|
1665
|
+
items: o.buttons,
|
|
1666
|
+
multiple: o.multiple === !0
|
|
1655
1667
|
}, null, 8, ["modelValue", "items", "multiple"])
|
|
1656
1668
|
]),
|
|
1657
1669
|
_: 1
|
|
1658
1670
|
}),
|
|
1659
|
-
|
|
1671
|
+
n(R, { class: "px-2" }, {
|
|
1660
1672
|
default: l(() => [
|
|
1661
|
-
|
|
1662
|
-
|
|
1673
|
+
n(d),
|
|
1674
|
+
n(w, {
|
|
1663
1675
|
variant: "outlined",
|
|
1664
1676
|
"data-test": "prompt-cancel",
|
|
1665
|
-
onClick:
|
|
1677
|
+
onClick: s.cancelHandler
|
|
1666
1678
|
}, {
|
|
1667
1679
|
default: l(() => [...e[3] || (e[3] = [
|
|
1668
|
-
|
|
1680
|
+
k(" Cancel ", -1)
|
|
1669
1681
|
])]),
|
|
1670
1682
|
_: 1
|
|
1671
1683
|
}, 8, ["onClick"]),
|
|
1672
|
-
|
|
1684
|
+
n(w, {
|
|
1673
1685
|
variant: "flat",
|
|
1674
1686
|
"data-test": "prompt-ok",
|
|
1675
1687
|
disabled: i.selectOkDisabled,
|
|
1676
|
-
onClick:
|
|
1688
|
+
onClick: s.submitHandler
|
|
1677
1689
|
}, {
|
|
1678
1690
|
default: l(() => [...e[4] || (e[4] = [
|
|
1679
|
-
|
|
1691
|
+
k(" Ok ", -1)
|
|
1680
1692
|
])]),
|
|
1681
1693
|
_: 1
|
|
1682
1694
|
}, 8, ["disabled", "onClick"])
|
|
1683
1695
|
]),
|
|
1684
1696
|
_: 1
|
|
1685
1697
|
})
|
|
1686
|
-
])) : (
|
|
1687
|
-
|
|
1688
|
-
class: Ke(
|
|
1698
|
+
])) : (y(), z("div", mi, [
|
|
1699
|
+
n(R, {
|
|
1700
|
+
class: Ke(s.layoutClass)
|
|
1689
1701
|
}, {
|
|
1690
1702
|
default: l(() => [
|
|
1691
|
-
|
|
1692
|
-
|
|
1703
|
+
n(d),
|
|
1704
|
+
n(w, {
|
|
1693
1705
|
variant: "outlined",
|
|
1694
1706
|
"data-test": "prompt-cancel",
|
|
1695
|
-
onClick:
|
|
1707
|
+
onClick: s.cancelHandler
|
|
1696
1708
|
}, {
|
|
1697
1709
|
default: l(() => [...e[5] || (e[5] = [
|
|
1698
|
-
|
|
1710
|
+
k(" Cancel ", -1)
|
|
1699
1711
|
])]),
|
|
1700
1712
|
_: 1
|
|
1701
1713
|
}, 8, ["onClick"]),
|
|
1702
|
-
(
|
|
1703
|
-
|
|
1714
|
+
(y(!0), z(ge, null, je(o.buttons, (_, D) => (y(), z("div", { key: D }, [
|
|
1715
|
+
n(w, {
|
|
1704
1716
|
variant: "flat",
|
|
1705
1717
|
"data-test": `prompt-${_.text}`,
|
|
1706
|
-
onClick: (G) =>
|
|
1718
|
+
onClick: (G) => s.submitWrapper(_.value)
|
|
1707
1719
|
}, {
|
|
1708
1720
|
default: l(() => [
|
|
1709
|
-
|
|
1721
|
+
k(L(_.text), 1)
|
|
1710
1722
|
]),
|
|
1711
1723
|
_: 2
|
|
1712
1724
|
}, 1032, ["data-test", "onClick"])
|
|
@@ -1722,7 +1734,7 @@ function pi(t, e, n, r, i, o) {
|
|
|
1722
1734
|
_: 1
|
|
1723
1735
|
}, 8, ["modelValue", "onKeydown"]);
|
|
1724
1736
|
}
|
|
1725
|
-
const hi = /* @__PURE__ */ K(li, [["render", pi], ["__scopeId", "data-v-
|
|
1737
|
+
const hi = /* @__PURE__ */ K(li, [["render", pi], ["__scopeId", "data-v-2db27529"]]), fi = {
|
|
1726
1738
|
components: {},
|
|
1727
1739
|
props: {
|
|
1728
1740
|
modelValue: {
|
|
@@ -1734,6 +1746,7 @@ const hi = /* @__PURE__ */ K(li, [["render", pi], ["__scopeId", "data-v-97ffc307
|
|
|
1734
1746
|
required: !0
|
|
1735
1747
|
}
|
|
1736
1748
|
},
|
|
1749
|
+
emits: ["update:modelValue"],
|
|
1737
1750
|
computed: {
|
|
1738
1751
|
show: {
|
|
1739
1752
|
get() {
|
|
@@ -1756,63 +1769,63 @@ const hi = /* @__PURE__ */ K(li, [["render", pi], ["__scopeId", "data-v-97ffc307
|
|
|
1756
1769
|
}), e = document.createElement("a");
|
|
1757
1770
|
e.href = URL.createObjectURL(t), e.setAttribute(
|
|
1758
1771
|
"download",
|
|
1759
|
-
|
|
1772
|
+
Oe(Date.now(), "yyyy_MM_dd_HH_mm_ss") + "_suite_results.txt"
|
|
1760
1773
|
), e.click();
|
|
1761
1774
|
}
|
|
1762
1775
|
}
|
|
1763
1776
|
}, gi = { class: "pa-2" };
|
|
1764
|
-
function vi(t, e,
|
|
1765
|
-
const d = a("v-spacer"),
|
|
1766
|
-
return
|
|
1767
|
-
modelValue:
|
|
1768
|
-
"onUpdate:modelValue": e[1] || (e[1] = (E) =>
|
|
1777
|
+
function vi(t, e, o, r, i, s) {
|
|
1778
|
+
const d = a("v-spacer"), p = a("v-toolbar"), c = a("v-textarea"), b = a("v-card-text"), S = a("v-btn"), V = a("v-card-actions"), w = a("v-card"), R = a("v-dialog");
|
|
1779
|
+
return y(), T(R, {
|
|
1780
|
+
modelValue: s.show,
|
|
1781
|
+
"onUpdate:modelValue": e[1] || (e[1] = (E) => s.show = E),
|
|
1769
1782
|
scrollable: "",
|
|
1770
1783
|
width: "800"
|
|
1771
1784
|
}, {
|
|
1772
1785
|
default: l(() => [
|
|
1773
|
-
|
|
1786
|
+
n(w, null, {
|
|
1774
1787
|
default: l(() => [
|
|
1775
|
-
|
|
1788
|
+
n(p, { height: "24" }, {
|
|
1776
1789
|
default: l(() => [
|
|
1777
|
-
|
|
1790
|
+
n(d),
|
|
1778
1791
|
e[2] || (e[2] = x("span", null, " Script Results ", -1)),
|
|
1779
|
-
|
|
1792
|
+
n(d)
|
|
1780
1793
|
]),
|
|
1781
1794
|
_: 1
|
|
1782
1795
|
}),
|
|
1783
1796
|
x("div", gi, [
|
|
1784
|
-
|
|
1797
|
+
n(b, { style: { width: "100%", "max-height": "80vh", overflow: "auto" } }, {
|
|
1785
1798
|
default: l(() => [
|
|
1786
|
-
|
|
1799
|
+
n(c, {
|
|
1787
1800
|
readonly: "",
|
|
1788
1801
|
"hide-details": "",
|
|
1789
1802
|
density: "compact",
|
|
1790
1803
|
"auto-grow": "",
|
|
1791
|
-
"model-value":
|
|
1804
|
+
"model-value": o.text
|
|
1792
1805
|
}, null, 8, ["model-value"])
|
|
1793
1806
|
]),
|
|
1794
1807
|
_: 1
|
|
1795
1808
|
})
|
|
1796
1809
|
]),
|
|
1797
|
-
|
|
1810
|
+
n(V, { class: "px-2" }, {
|
|
1798
1811
|
default: l(() => [
|
|
1799
|
-
|
|
1800
|
-
|
|
1812
|
+
n(d),
|
|
1813
|
+
n(S, {
|
|
1801
1814
|
variant: "outlined",
|
|
1802
|
-
onClick:
|
|
1815
|
+
onClick: s.downloadResults
|
|
1803
1816
|
}, {
|
|
1804
1817
|
default: l(() => [...e[3] || (e[3] = [
|
|
1805
|
-
|
|
1818
|
+
k(" Download ", -1)
|
|
1806
1819
|
])]),
|
|
1807
1820
|
_: 1
|
|
1808
1821
|
}, 8, ["onClick"]),
|
|
1809
|
-
|
|
1822
|
+
n(S, {
|
|
1810
1823
|
ref: "okButton",
|
|
1811
1824
|
variant: "flat",
|
|
1812
|
-
onClick: e[0] || (e[0] = (E) =>
|
|
1825
|
+
onClick: e[0] || (e[0] = (E) => s.show = !s.show)
|
|
1813
1826
|
}, {
|
|
1814
1827
|
default: l(() => [...e[4] || (e[4] = [
|
|
1815
|
-
|
|
1828
|
+
k(" Ok ", -1)
|
|
1816
1829
|
])]),
|
|
1817
1830
|
_: 1
|
|
1818
1831
|
}, 512)
|
|
@@ -1840,6 +1853,7 @@ const _i = /* @__PURE__ */ K(fi, [["render", vi]]), bi = {
|
|
|
1840
1853
|
required: !0
|
|
1841
1854
|
}
|
|
1842
1855
|
},
|
|
1856
|
+
emits: ["update:modelValue", "environment"],
|
|
1843
1857
|
data() {
|
|
1844
1858
|
return {
|
|
1845
1859
|
selected: []
|
|
@@ -1870,30 +1884,30 @@ const _i = /* @__PURE__ */ K(fi, [["render", vi]]), bi = {
|
|
|
1870
1884
|
}
|
|
1871
1885
|
}
|
|
1872
1886
|
}, wi = { class: "pa-2" };
|
|
1873
|
-
function yi(t, e,
|
|
1874
|
-
const d = a("v-spacer"),
|
|
1875
|
-
return
|
|
1876
|
-
modelValue:
|
|
1877
|
-
"onUpdate:modelValue": e[1] || (e[1] = (E) =>
|
|
1887
|
+
function yi(t, e, o, r, i, s) {
|
|
1888
|
+
const d = a("v-spacer"), p = a("v-toolbar"), c = a("environment-chooser"), b = a("v-card-text"), S = a("v-btn"), V = a("v-card-actions"), w = a("v-card"), R = a("v-dialog");
|
|
1889
|
+
return y(), T(R, {
|
|
1890
|
+
modelValue: s.show,
|
|
1891
|
+
"onUpdate:modelValue": e[1] || (e[1] = (E) => s.show = E),
|
|
1878
1892
|
persistent: "",
|
|
1879
1893
|
width: "600",
|
|
1880
|
-
onKeydown: Se(
|
|
1894
|
+
onKeydown: Se(s.cancel, ["esc"])
|
|
1881
1895
|
}, {
|
|
1882
1896
|
default: l(() => [
|
|
1883
|
-
|
|
1897
|
+
n(w, null, {
|
|
1884
1898
|
default: l(() => [
|
|
1885
|
-
|
|
1899
|
+
n(p, { height: "24" }, {
|
|
1886
1900
|
default: l(() => [
|
|
1887
|
-
|
|
1901
|
+
n(d),
|
|
1888
1902
|
e[2] || (e[2] = x("span", null, "Script Environment Variables", -1)),
|
|
1889
|
-
|
|
1903
|
+
n(d)
|
|
1890
1904
|
]),
|
|
1891
1905
|
_: 1
|
|
1892
1906
|
}),
|
|
1893
1907
|
x("div", wi, [
|
|
1894
|
-
|
|
1908
|
+
n(b, null, {
|
|
1895
1909
|
default: l(() => [
|
|
1896
|
-
|
|
1910
|
+
n(c, {
|
|
1897
1911
|
modelValue: i.selected,
|
|
1898
1912
|
"onUpdate:modelValue": e[0] || (e[0] = (E) => i.selected = E)
|
|
1899
1913
|
}, null, 8, ["modelValue"])
|
|
@@ -1901,27 +1915,27 @@ function yi(t, e, n, r, i, o) {
|
|
|
1901
1915
|
_: 1
|
|
1902
1916
|
})
|
|
1903
1917
|
]),
|
|
1904
|
-
|
|
1918
|
+
n(V, { class: "px-2" }, {
|
|
1905
1919
|
default: l(() => [
|
|
1906
|
-
|
|
1907
|
-
|
|
1920
|
+
n(d),
|
|
1921
|
+
n(S, {
|
|
1908
1922
|
variant: "outlined",
|
|
1909
1923
|
"data-test": "environment-dialog-cancel",
|
|
1910
|
-
onClick:
|
|
1924
|
+
onClick: s.cancel
|
|
1911
1925
|
}, {
|
|
1912
1926
|
default: l(() => [...e[3] || (e[3] = [
|
|
1913
|
-
|
|
1927
|
+
k(" Cancel ", -1)
|
|
1914
1928
|
])]),
|
|
1915
1929
|
_: 1
|
|
1916
1930
|
}, 8, ["onClick"]),
|
|
1917
|
-
|
|
1931
|
+
n(S, {
|
|
1918
1932
|
variant: "flat",
|
|
1919
1933
|
"data-test": "environment-dialog-save",
|
|
1920
1934
|
disabled: !!t.inputError,
|
|
1921
|
-
onClick:
|
|
1935
|
+
onClick: s.updateEnvironment
|
|
1922
1936
|
}, {
|
|
1923
1937
|
default: l(() => [...e[4] || (e[4] = [
|
|
1924
|
-
|
|
1938
|
+
k(" Save ", -1)
|
|
1925
1939
|
])]),
|
|
1926
1940
|
_: 1
|
|
1927
1941
|
}, 8, ["disabled", "onClick"])
|
|
@@ -2021,28 +2035,28 @@ const ki = /* @__PURE__ */ K(bi, [["render", yi]]), Si = {
|
|
|
2021
2035
|
}
|
|
2022
2036
|
}
|
|
2023
2037
|
}, xi = { id: "tr-container" };
|
|
2024
|
-
function Ci(t, e,
|
|
2025
|
-
const d = a("v-checkbox"),
|
|
2026
|
-
return
|
|
2038
|
+
function Ci(t, e, o, r, i, s) {
|
|
2039
|
+
const d = a("v-checkbox"), p = a("v-tooltip"), c = a("v-col"), b = a("v-row"), S = a("v-select"), V = a("v-btn");
|
|
2040
|
+
return y(), z("div", null, [
|
|
2027
2041
|
x("div", xi, [
|
|
2028
|
-
|
|
2042
|
+
n(b, {
|
|
2029
2043
|
"no-gutters": "",
|
|
2030
2044
|
align: "center"
|
|
2031
2045
|
}, {
|
|
2032
2046
|
default: l(() => [
|
|
2033
|
-
|
|
2047
|
+
n(c, { cols: "4" }, {
|
|
2034
2048
|
default: l(() => [
|
|
2035
|
-
|
|
2049
|
+
n(b, { "no-gutters": "" }, {
|
|
2036
2050
|
default: l(() => [
|
|
2037
|
-
|
|
2051
|
+
n(c, { cols: "6" }, {
|
|
2038
2052
|
default: l(() => [
|
|
2039
|
-
|
|
2053
|
+
n(p, {
|
|
2040
2054
|
"open-delay": 600,
|
|
2041
2055
|
location: "top"
|
|
2042
2056
|
}, {
|
|
2043
2057
|
activator: l(({ props: w }) => [
|
|
2044
2058
|
x("div", le(re(w)), [
|
|
2045
|
-
|
|
2059
|
+
n(d, {
|
|
2046
2060
|
modelValue: i.options,
|
|
2047
2061
|
"onUpdate:modelValue": e[0] || (e[0] = (R) => i.options = R),
|
|
2048
2062
|
label: "Pause on Error",
|
|
@@ -2054,9 +2068,9 @@ function Ci(t, e, n, r, i, o) {
|
|
|
2054
2068
|
]),
|
|
2055
2069
|
default: l(() => [
|
|
2056
2070
|
e[16] || (e[16] = x("span", null, [
|
|
2057
|
-
|
|
2071
|
+
k(" Checked pauses the script when an error is encountered"),
|
|
2058
2072
|
x("br"),
|
|
2059
|
-
|
|
2073
|
+
k(" Unchecked continues without user interaction ")
|
|
2060
2074
|
], -1))
|
|
2061
2075
|
]),
|
|
2062
2076
|
_: 1
|
|
@@ -2064,15 +2078,15 @@ function Ci(t, e, n, r, i, o) {
|
|
|
2064
2078
|
]),
|
|
2065
2079
|
_: 1
|
|
2066
2080
|
}),
|
|
2067
|
-
|
|
2081
|
+
n(c, { cols: "6" }, {
|
|
2068
2082
|
default: l(() => [
|
|
2069
|
-
|
|
2083
|
+
n(p, {
|
|
2070
2084
|
"open-delay": 600,
|
|
2071
2085
|
location: "top"
|
|
2072
2086
|
}, {
|
|
2073
2087
|
activator: l(({ props: w }) => [
|
|
2074
2088
|
x("div", le(re(w)), [
|
|
2075
|
-
|
|
2089
|
+
n(d, {
|
|
2076
2090
|
modelValue: i.options,
|
|
2077
2091
|
"onUpdate:modelValue": e[1] || (e[1] = (R) => i.options = R),
|
|
2078
2092
|
label: "Manual",
|
|
@@ -2084,9 +2098,9 @@ function Ci(t, e, n, r, i, o) {
|
|
|
2084
2098
|
]),
|
|
2085
2099
|
default: l(() => [
|
|
2086
2100
|
x("span", null, [
|
|
2087
|
-
|
|
2101
|
+
k(L(s.checkedManualTooltip), 1),
|
|
2088
2102
|
e[17] || (e[17] = x("br", null, null, -1)),
|
|
2089
|
-
|
|
2103
|
+
k(" " + L(s.uncheckedManualTooltip), 1)
|
|
2090
2104
|
])
|
|
2091
2105
|
]),
|
|
2092
2106
|
_: 1
|
|
@@ -2100,20 +2114,20 @@ function Ci(t, e, n, r, i, o) {
|
|
|
2100
2114
|
]),
|
|
2101
2115
|
_: 1
|
|
2102
2116
|
}),
|
|
2103
|
-
|
|
2117
|
+
n(c, { cols: "8" }, {
|
|
2104
2118
|
default: l(() => [
|
|
2105
|
-
|
|
2119
|
+
n(b, {
|
|
2106
2120
|
"no-gutters": "",
|
|
2107
2121
|
justify: "end"
|
|
2108
2122
|
}, {
|
|
2109
2123
|
default: l(() => [
|
|
2110
|
-
|
|
2124
|
+
n(c, { cols: "5" }, {
|
|
2111
2125
|
default: l(() => [
|
|
2112
|
-
|
|
2126
|
+
n(S, {
|
|
2113
2127
|
modelValue: i.suite,
|
|
2114
2128
|
"onUpdate:modelValue": [
|
|
2115
2129
|
e[2] || (e[2] = (w) => i.suite = w),
|
|
2116
|
-
|
|
2130
|
+
s.suiteChanged
|
|
2117
2131
|
],
|
|
2118
2132
|
label: "Suite:",
|
|
2119
2133
|
class: "mb-2 mr-2",
|
|
@@ -2126,40 +2140,40 @@ function Ci(t, e, n, r, i, o) {
|
|
|
2126
2140
|
]),
|
|
2127
2141
|
_: 1
|
|
2128
2142
|
}),
|
|
2129
|
-
|
|
2143
|
+
n(c, { cols: "auto" }, {
|
|
2130
2144
|
default: l(() => [
|
|
2131
|
-
|
|
2145
|
+
n(V, {
|
|
2132
2146
|
color: "primary",
|
|
2133
2147
|
class: "mr-2",
|
|
2134
|
-
disabled:
|
|
2148
|
+
disabled: o.disableButtons || !i.userInfo.execute,
|
|
2135
2149
|
"data-test": "start-suite",
|
|
2136
2150
|
onClick: e[3] || (e[3] = (w) => t.$emit("button", { method: "start", suite: i.suite, options: i.options }))
|
|
2137
2151
|
}, {
|
|
2138
2152
|
default: l(() => [...e[18] || (e[18] = [
|
|
2139
|
-
|
|
2153
|
+
k(" Start ", -1)
|
|
2140
2154
|
])]),
|
|
2141
2155
|
_: 1
|
|
2142
2156
|
}, 8, ["disabled"]),
|
|
2143
|
-
|
|
2157
|
+
n(V, {
|
|
2144
2158
|
color: "primary",
|
|
2145
2159
|
class: "mr-2",
|
|
2146
2160
|
"data-test": "setup-suite",
|
|
2147
|
-
disabled:
|
|
2161
|
+
disabled: o.disableButtons || !s.setupSuiteEnabled || !i.userInfo.execute,
|
|
2148
2162
|
onClick: e[4] || (e[4] = (w) => t.$emit("button", { method: "setup", suite: i.suite, options: i.options }))
|
|
2149
2163
|
}, {
|
|
2150
2164
|
default: l(() => [...e[19] || (e[19] = [
|
|
2151
|
-
|
|
2165
|
+
k(" Setup ", -1)
|
|
2152
2166
|
])]),
|
|
2153
2167
|
_: 1
|
|
2154
2168
|
}, 8, ["disabled"]),
|
|
2155
|
-
|
|
2169
|
+
n(V, {
|
|
2156
2170
|
color: "primary",
|
|
2157
2171
|
"data-test": "teardown-suite",
|
|
2158
|
-
disabled:
|
|
2172
|
+
disabled: o.disableButtons || !s.teardownSuiteEnabled || !i.userInfo.execute,
|
|
2159
2173
|
onClick: e[5] || (e[5] = (w) => t.$emit("button", { method: "teardown", suite: i.suite, options: i.options }))
|
|
2160
2174
|
}, {
|
|
2161
2175
|
default: l(() => [...e[20] || (e[20] = [
|
|
2162
|
-
|
|
2176
|
+
k(" Teardown ", -1)
|
|
2163
2177
|
])]),
|
|
2164
2178
|
_: 1
|
|
2165
2179
|
}, 8, ["disabled"])
|
|
@@ -2175,21 +2189,21 @@ function Ci(t, e, n, r, i, o) {
|
|
|
2175
2189
|
]),
|
|
2176
2190
|
_: 1
|
|
2177
2191
|
}),
|
|
2178
|
-
|
|
2192
|
+
n(b, { "no-gutters": "" }, {
|
|
2179
2193
|
default: l(() => [
|
|
2180
|
-
|
|
2194
|
+
n(c, { cols: "4" }, {
|
|
2181
2195
|
default: l(() => [
|
|
2182
|
-
|
|
2196
|
+
n(b, { "no-gutters": "" }, {
|
|
2183
2197
|
default: l(() => [
|
|
2184
|
-
|
|
2198
|
+
n(c, { cols: "6" }, {
|
|
2185
2199
|
default: l(() => [
|
|
2186
|
-
|
|
2200
|
+
n(p, {
|
|
2187
2201
|
"open-delay": 600,
|
|
2188
2202
|
location: "top"
|
|
2189
2203
|
}, {
|
|
2190
2204
|
activator: l(({ props: w }) => [
|
|
2191
2205
|
x("div", le(re(w)), [
|
|
2192
|
-
|
|
2206
|
+
n(d, {
|
|
2193
2207
|
modelValue: i.options,
|
|
2194
2208
|
"onUpdate:modelValue": e[6] || (e[6] = (R) => i.options = R),
|
|
2195
2209
|
label: "Continue after Error",
|
|
@@ -2201,9 +2215,9 @@ function Ci(t, e, n, r, i, o) {
|
|
|
2201
2215
|
]),
|
|
2202
2216
|
default: l(() => [
|
|
2203
2217
|
e[21] || (e[21] = x("span", null, [
|
|
2204
|
-
|
|
2218
|
+
k(" Checked allows the script to continue when an error is encountered"),
|
|
2205
2219
|
x("br"),
|
|
2206
|
-
|
|
2220
|
+
k(" Unchecked forces the current script to end ")
|
|
2207
2221
|
], -1))
|
|
2208
2222
|
]),
|
|
2209
2223
|
_: 1
|
|
@@ -2211,15 +2225,15 @@ function Ci(t, e, n, r, i, o) {
|
|
|
2211
2225
|
]),
|
|
2212
2226
|
_: 1
|
|
2213
2227
|
}),
|
|
2214
|
-
|
|
2228
|
+
n(c, { cols: "6" }, {
|
|
2215
2229
|
default: l(() => [
|
|
2216
|
-
|
|
2230
|
+
n(p, {
|
|
2217
2231
|
"open-delay": 600,
|
|
2218
2232
|
location: "top"
|
|
2219
2233
|
}, {
|
|
2220
2234
|
activator: l(({ props: w }) => [
|
|
2221
2235
|
x("div", le(re(w)), [
|
|
2222
|
-
|
|
2236
|
+
n(d, {
|
|
2223
2237
|
modelValue: i.options,
|
|
2224
2238
|
"onUpdate:modelValue": e[7] || (e[7] = (R) => i.options = R),
|
|
2225
2239
|
label: "Loop",
|
|
@@ -2231,9 +2245,9 @@ function Ci(t, e, n, r, i, o) {
|
|
|
2231
2245
|
]),
|
|
2232
2246
|
default: l(() => [
|
|
2233
2247
|
e[22] || (e[22] = x("span", null, [
|
|
2234
|
-
|
|
2248
|
+
k(" Checked continuously executes until explicitly stopped"),
|
|
2235
2249
|
x("br"),
|
|
2236
|
-
|
|
2250
|
+
k(" Unchecked executes only the started script(s) ")
|
|
2237
2251
|
], -1))
|
|
2238
2252
|
]),
|
|
2239
2253
|
_: 1
|
|
@@ -2247,20 +2261,20 @@ function Ci(t, e, n, r, i, o) {
|
|
|
2247
2261
|
]),
|
|
2248
2262
|
_: 1
|
|
2249
2263
|
}),
|
|
2250
|
-
|
|
2264
|
+
n(c, { cols: "8" }, {
|
|
2251
2265
|
default: l(() => [
|
|
2252
|
-
|
|
2266
|
+
n(b, {
|
|
2253
2267
|
"no-gutters": "",
|
|
2254
2268
|
justify: "end"
|
|
2255
2269
|
}, {
|
|
2256
2270
|
default: l(() => [
|
|
2257
|
-
|
|
2271
|
+
n(c, { cols: "5" }, {
|
|
2258
2272
|
default: l(() => [
|
|
2259
|
-
|
|
2273
|
+
n(S, {
|
|
2260
2274
|
modelValue: i.group,
|
|
2261
2275
|
"onUpdate:modelValue": [
|
|
2262
2276
|
e[8] || (e[8] = (w) => i.group = w),
|
|
2263
|
-
|
|
2277
|
+
s.groupChanged
|
|
2264
2278
|
],
|
|
2265
2279
|
label: "Group:",
|
|
2266
2280
|
class: "mb-2 mr-2",
|
|
@@ -2273,40 +2287,40 @@ function Ci(t, e, n, r, i, o) {
|
|
|
2273
2287
|
]),
|
|
2274
2288
|
_: 1
|
|
2275
2289
|
}),
|
|
2276
|
-
|
|
2290
|
+
n(c, { cols: "auto" }, {
|
|
2277
2291
|
default: l(() => [
|
|
2278
|
-
|
|
2292
|
+
n(V, {
|
|
2279
2293
|
color: "primary",
|
|
2280
2294
|
class: "mr-2",
|
|
2281
|
-
disabled:
|
|
2295
|
+
disabled: o.disableButtons || !i.userInfo.execute,
|
|
2282
2296
|
"data-test": "start-group",
|
|
2283
2297
|
onClick: e[9] || (e[9] = (w) => t.$emit("button", { method: "start", suite: i.suite, group: i.group, options: i.options }))
|
|
2284
2298
|
}, {
|
|
2285
2299
|
default: l(() => [...e[23] || (e[23] = [
|
|
2286
|
-
|
|
2300
|
+
k(" Start ", -1)
|
|
2287
2301
|
])]),
|
|
2288
2302
|
_: 1
|
|
2289
2303
|
}, 8, ["disabled"]),
|
|
2290
|
-
|
|
2304
|
+
n(V, {
|
|
2291
2305
|
color: "primary",
|
|
2292
2306
|
class: "mr-2",
|
|
2293
2307
|
"data-test": "setup-group",
|
|
2294
|
-
disabled:
|
|
2308
|
+
disabled: o.disableButtons || !s.setupGroupEnabled || !i.userInfo.execute,
|
|
2295
2309
|
onClick: e[10] || (e[10] = (w) => t.$emit("button", { method: "setup", suite: i.suite, group: i.group, options: i.options }))
|
|
2296
2310
|
}, {
|
|
2297
2311
|
default: l(() => [...e[24] || (e[24] = [
|
|
2298
|
-
|
|
2312
|
+
k(" Setup ", -1)
|
|
2299
2313
|
])]),
|
|
2300
2314
|
_: 1
|
|
2301
2315
|
}, 8, ["disabled"]),
|
|
2302
|
-
|
|
2316
|
+
n(V, {
|
|
2303
2317
|
color: "primary",
|
|
2304
2318
|
"data-test": "teardown-group",
|
|
2305
|
-
disabled:
|
|
2319
|
+
disabled: o.disableButtons || !s.teardownGroupEnabled || !i.userInfo.execute,
|
|
2306
2320
|
onClick: e[11] || (e[11] = (w) => t.$emit("button", { method: "teardown", suite: i.suite, group: i.group, options: i.options }))
|
|
2307
2321
|
}, {
|
|
2308
2322
|
default: l(() => [...e[25] || (e[25] = [
|
|
2309
|
-
|
|
2323
|
+
k(" Teardown ", -1)
|
|
2310
2324
|
])]),
|
|
2311
2325
|
_: 1
|
|
2312
2326
|
}, 8, ["disabled"])
|
|
@@ -2322,21 +2336,21 @@ function Ci(t, e, n, r, i, o) {
|
|
|
2322
2336
|
]),
|
|
2323
2337
|
_: 1
|
|
2324
2338
|
}),
|
|
2325
|
-
|
|
2339
|
+
n(b, { "no-gutters": "" }, {
|
|
2326
2340
|
default: l(() => [
|
|
2327
|
-
|
|
2341
|
+
n(c, { cols: "4" }, {
|
|
2328
2342
|
default: l(() => [
|
|
2329
|
-
|
|
2343
|
+
n(b, { "no-gutters": "" }, {
|
|
2330
2344
|
default: l(() => [
|
|
2331
|
-
|
|
2345
|
+
n(c, { cols: "6" }, {
|
|
2332
2346
|
default: l(() => [
|
|
2333
|
-
|
|
2347
|
+
n(p, {
|
|
2334
2348
|
"open-delay": 600,
|
|
2335
2349
|
location: "top"
|
|
2336
2350
|
}, {
|
|
2337
2351
|
activator: l(({ props: w }) => [
|
|
2338
2352
|
x("div", le(re(w)), [
|
|
2339
|
-
|
|
2353
|
+
n(d, {
|
|
2340
2354
|
modelValue: i.options,
|
|
2341
2355
|
"onUpdate:modelValue": e[12] || (e[12] = (R) => i.options = R),
|
|
2342
2356
|
label: "Abort after Error",
|
|
@@ -2348,9 +2362,9 @@ function Ci(t, e, n, r, i, o) {
|
|
|
2348
2362
|
]),
|
|
2349
2363
|
default: l(() => [
|
|
2350
2364
|
e[26] || (e[26] = x("span", null, [
|
|
2351
|
-
|
|
2365
|
+
k(" Checked stops additional script execution when an error is encountered"),
|
|
2352
2366
|
x("br"),
|
|
2353
|
-
|
|
2367
|
+
k(" Unchecked allows additional scripts to execute ")
|
|
2354
2368
|
], -1))
|
|
2355
2369
|
]),
|
|
2356
2370
|
_: 1
|
|
@@ -2358,15 +2372,15 @@ function Ci(t, e, n, r, i, o) {
|
|
|
2358
2372
|
]),
|
|
2359
2373
|
_: 1
|
|
2360
2374
|
}),
|
|
2361
|
-
|
|
2375
|
+
n(c, { cols: "6" }, {
|
|
2362
2376
|
default: l(() => [
|
|
2363
|
-
|
|
2377
|
+
n(p, {
|
|
2364
2378
|
"open-delay": 600,
|
|
2365
2379
|
location: "top"
|
|
2366
2380
|
}, {
|
|
2367
2381
|
activator: l(({ props: w }) => [
|
|
2368
2382
|
x("div", le(re(w)), [
|
|
2369
|
-
|
|
2383
|
+
n(d, {
|
|
2370
2384
|
modelValue: i.options,
|
|
2371
2385
|
"onUpdate:modelValue": e[13] || (e[13] = (R) => i.options = R),
|
|
2372
2386
|
disabled: !i.options.includes("loop"),
|
|
@@ -2379,11 +2393,11 @@ function Ci(t, e, n, r, i, o) {
|
|
|
2379
2393
|
]),
|
|
2380
2394
|
default: l(() => [
|
|
2381
2395
|
e[27] || (e[27] = x("span", null, [
|
|
2382
|
-
|
|
2396
|
+
k(" Checked breaks the loop option when an error is encountered"),
|
|
2383
2397
|
x("br"),
|
|
2384
|
-
|
|
2398
|
+
k(" Unchecked allows the loop to run continuously"),
|
|
2385
2399
|
x("br"),
|
|
2386
|
-
|
|
2400
|
+
k(" Note: Abort after Error still breaks the loop ")
|
|
2387
2401
|
], -1))
|
|
2388
2402
|
]),
|
|
2389
2403
|
_: 1
|
|
@@ -2397,27 +2411,27 @@ function Ci(t, e, n, r, i, o) {
|
|
|
2397
2411
|
]),
|
|
2398
2412
|
_: 1
|
|
2399
2413
|
}),
|
|
2400
|
-
|
|
2414
|
+
n(c, { cols: "8" }, {
|
|
2401
2415
|
default: l(() => [
|
|
2402
|
-
|
|
2416
|
+
n(b, {
|
|
2403
2417
|
"no-gutters": "",
|
|
2404
2418
|
justify: "end"
|
|
2405
2419
|
}, {
|
|
2406
2420
|
default: l(() => [
|
|
2407
|
-
|
|
2421
|
+
n(c, { cols: "5" }, {
|
|
2408
2422
|
default: l(() => [
|
|
2409
|
-
|
|
2423
|
+
n(S, {
|
|
2410
2424
|
modelValue: i.script,
|
|
2411
2425
|
"onUpdate:modelValue": [
|
|
2412
2426
|
e[14] || (e[14] = (w) => i.script = w),
|
|
2413
|
-
|
|
2427
|
+
s.scriptChanged
|
|
2414
2428
|
],
|
|
2415
2429
|
label: "Script:",
|
|
2416
2430
|
class: "mb-2 mr-2",
|
|
2417
2431
|
"hide-details": "",
|
|
2418
2432
|
density: "compact",
|
|
2419
2433
|
variant: "outlined",
|
|
2420
|
-
items:
|
|
2434
|
+
items: s.scriptNames,
|
|
2421
2435
|
"item-title": "title",
|
|
2422
2436
|
"item-value": "value",
|
|
2423
2437
|
"data-test": "select-script"
|
|
@@ -2425,12 +2439,12 @@ function Ci(t, e, n, r, i, o) {
|
|
|
2425
2439
|
]),
|
|
2426
2440
|
_: 1
|
|
2427
2441
|
}),
|
|
2428
|
-
|
|
2442
|
+
n(c, { cols: "auto" }, {
|
|
2429
2443
|
default: l(() => [
|
|
2430
|
-
|
|
2444
|
+
n(V, {
|
|
2431
2445
|
color: "primary",
|
|
2432
2446
|
class: "mr-2",
|
|
2433
|
-
disabled:
|
|
2447
|
+
disabled: o.disableButtons || !i.userInfo.execute,
|
|
2434
2448
|
"data-test": "start-script",
|
|
2435
2449
|
onClick: e[15] || (e[15] = (w) => t.$emit("button", {
|
|
2436
2450
|
method: "start",
|
|
@@ -2441,25 +2455,25 @@ function Ci(t, e, n, r, i, o) {
|
|
|
2441
2455
|
}))
|
|
2442
2456
|
}, {
|
|
2443
2457
|
default: l(() => [...e[28] || (e[28] = [
|
|
2444
|
-
|
|
2458
|
+
k(" Start ", -1)
|
|
2445
2459
|
])]),
|
|
2446
2460
|
_: 1
|
|
2447
2461
|
}, 8, ["disabled"]),
|
|
2448
|
-
|
|
2462
|
+
n(V, {
|
|
2449
2463
|
color: "primary",
|
|
2450
2464
|
class: "mr-2 invisible"
|
|
2451
2465
|
}, {
|
|
2452
2466
|
default: l(() => [...e[29] || (e[29] = [
|
|
2453
|
-
|
|
2467
|
+
k(" Setup ", -1)
|
|
2454
2468
|
])]),
|
|
2455
2469
|
_: 1
|
|
2456
2470
|
}),
|
|
2457
|
-
|
|
2471
|
+
n(V, {
|
|
2458
2472
|
color: "primary",
|
|
2459
2473
|
class: "invisible"
|
|
2460
2474
|
}, {
|
|
2461
2475
|
default: l(() => [...e[30] || (e[30] = [
|
|
2462
|
-
|
|
2476
|
+
k(" Teardown ", -1)
|
|
2463
2477
|
])]),
|
|
2464
2478
|
_: 1
|
|
2465
2479
|
})
|
|
@@ -2478,30 +2492,30 @@ function Ci(t, e, n, r, i, o) {
|
|
|
2478
2492
|
])
|
|
2479
2493
|
]);
|
|
2480
2494
|
}
|
|
2481
|
-
const Vi = /* @__PURE__ */ K(Si, [["render", Ci], ["__scopeId", "data-v-6be22c34"]]), qe = (t) =>
|
|
2495
|
+
const Vi = /* @__PURE__ */ K(Si, [["render", Ci], ["__scopeId", "data-v-6be22c34"]]), qe = (t) => O.get(`/openc3-api/autocomplete/keywords/${t}`), Ei = (t) => O.get(`/openc3-api/autocomplete/data/${t}`), Ze = (t, e) => t.reduce((o, r) => {
|
|
2482
2496
|
const i = e(r);
|
|
2483
|
-
return
|
|
2497
|
+
return o[i] ? o[i].push(r) : o[i] = [r], o;
|
|
2484
2498
|
}, {}), Ri = (t) => {
|
|
2485
|
-
const e = "(^|[{\\(\\s])",
|
|
2486
|
-
return new RegExp(`${e}${t}${
|
|
2499
|
+
const e = "(^|[{\\(\\s])", o = `[\\s\\(]f?['"]`, r = "(\\S+\\s?){0,3}";
|
|
2500
|
+
return new RegExp(`${e}${t}${o}${r}$`);
|
|
2487
2501
|
};
|
|
2488
2502
|
class tt {
|
|
2489
|
-
constructor(e,
|
|
2503
|
+
constructor(e, o = () => {
|
|
2490
2504
|
}, r = () => {
|
|
2491
2505
|
}) {
|
|
2492
2506
|
this.keywordExpressions = [], this.autocompleteData = [], qe(e).then((i) => {
|
|
2493
2507
|
this.keywordExpressions = i.data.map(Ri), r();
|
|
2494
2508
|
}), Ei(e).then((i) => {
|
|
2495
|
-
this.autocompleteData = i.data,
|
|
2509
|
+
this.autocompleteData = i.data, o();
|
|
2496
2510
|
});
|
|
2497
2511
|
}
|
|
2498
|
-
getCompletions(e,
|
|
2512
|
+
getCompletions(e, o, r, i, s) {
|
|
2499
2513
|
let d = [];
|
|
2500
|
-
const
|
|
2514
|
+
const p = o.doc.$lines[r.row].slice(
|
|
2501
2515
|
0,
|
|
2502
2516
|
r.column
|
|
2503
2517
|
);
|
|
2504
|
-
this.keywordExpressions.some((c) =>
|
|
2518
|
+
this.keywordExpressions.some((c) => p.match(c)) && (d = this.autocompleteData), s(null, [
|
|
2505
2519
|
...d
|
|
2506
2520
|
// Uncomment to also return the built-in autocomplete words (but I found they're not very good and just get in the way when using live autocomplete)
|
|
2507
2521
|
// ...session.$mode.$highlightRules.$keywordList.map((word) => ({
|
|
@@ -2512,21 +2526,21 @@ class tt {
|
|
|
2512
2526
|
]);
|
|
2513
2527
|
}
|
|
2514
2528
|
}
|
|
2515
|
-
class
|
|
2529
|
+
class Oi extends tt {
|
|
2516
2530
|
constructor() {
|
|
2517
2531
|
super("cmd");
|
|
2518
2532
|
}
|
|
2519
2533
|
}
|
|
2520
|
-
class
|
|
2534
|
+
class Mi extends tt {
|
|
2521
2535
|
constructor() {
|
|
2522
2536
|
super("tlm", () => {
|
|
2523
|
-
this.groupedPacketData = this.autocompleteData.reduce((e,
|
|
2524
|
-
const r =
|
|
2537
|
+
this.groupedPacketData = this.autocompleteData.reduce((e, o) => {
|
|
2538
|
+
const r = o.caption.match(/\S+\s\S+/)[0], i = o.snippet.replace(`${r} `, ""), s = {
|
|
2525
2539
|
caption: i,
|
|
2526
2540
|
snippet: i,
|
|
2527
2541
|
meta: "item"
|
|
2528
2542
|
};
|
|
2529
|
-
return e[r] ? e[r].push(
|
|
2543
|
+
return e[r] ? e[r].push(s) : e[r] = [s], e;
|
|
2530
2544
|
}, {}), this.packets = Object.keys(this.groupedPacketData).map((e) => ({
|
|
2531
2545
|
caption: e,
|
|
2532
2546
|
snippet: e,
|
|
@@ -2535,30 +2549,30 @@ class Oi extends tt {
|
|
|
2535
2549
|
});
|
|
2536
2550
|
}
|
|
2537
2551
|
// Override the parent's getCompletions to take advantage of the grouping by packet done in the constructor
|
|
2538
|
-
getCompletions(e,
|
|
2552
|
+
getCompletions(e, o, r, i, s) {
|
|
2539
2553
|
let d = [];
|
|
2540
|
-
const
|
|
2554
|
+
const p = o.doc.$lines[r.row].slice(
|
|
2541
2555
|
0,
|
|
2542
2556
|
r.column
|
|
2543
2557
|
);
|
|
2544
|
-
if (this.keywordExpressions.some((c) =>
|
|
2558
|
+
if (this.keywordExpressions.some((c) => p.match(c))) {
|
|
2545
2559
|
const c = Object.keys(this.groupedPacketData).find(
|
|
2546
|
-
(b) =>
|
|
2560
|
+
(b) => p.includes(b)
|
|
2547
2561
|
);
|
|
2548
2562
|
c ? d = this.groupedPacketData[c] : d = this.packets;
|
|
2549
2563
|
}
|
|
2550
|
-
|
|
2564
|
+
s(null, d);
|
|
2551
2565
|
}
|
|
2552
2566
|
}
|
|
2553
2567
|
const Xe = (t) => {
|
|
2554
|
-
const e = "(^|[{\\(\\s])",
|
|
2555
|
-
return new RegExp(`${e}${t}${
|
|
2568
|
+
const e = "(^|[{\\(\\s])", o = "((\\s.+)|(\\(.+\\)))";
|
|
2569
|
+
return new RegExp(`${e}${t}${o}`);
|
|
2556
2570
|
}, Ti = /\{/, Ii = /['"],\s?['"]/;
|
|
2557
2571
|
class Ui {
|
|
2558
2572
|
constructor() {
|
|
2559
2573
|
this.api = new Ie(), this.targets = {}, this.api.get_target_names().then((e) => {
|
|
2560
|
-
e.forEach((
|
|
2561
|
-
this.targets[
|
|
2574
|
+
e.forEach((o) => {
|
|
2575
|
+
this.targets[o] = {
|
|
2562
2576
|
cmd: null,
|
|
2563
2577
|
tlm: null
|
|
2564
2578
|
};
|
|
@@ -2570,76 +2584,76 @@ class Ui {
|
|
|
2570
2584
|
});
|
|
2571
2585
|
}
|
|
2572
2586
|
async checkText(e) {
|
|
2573
|
-
const { linesToCheck:
|
|
2587
|
+
const { linesToCheck: o, linesToSkip: r } = e.split(`
|
|
2574
2588
|
`).reduce(
|
|
2575
|
-
(
|
|
2589
|
+
(s, d, p) => {
|
|
2576
2590
|
if (d = d.trim(), d.match(/^#/))
|
|
2577
|
-
return
|
|
2578
|
-
const c = this.cmdKeywordExpressions.reduce((_,
|
|
2591
|
+
return s;
|
|
2592
|
+
const c = this.cmdKeywordExpressions.reduce((_, D) => _ || d.match(D), null), b = this.tlmKeywordExpressions.reduce((_, D) => _ || d.match(D), null);
|
|
2579
2593
|
if (!c && !b)
|
|
2580
|
-
return
|
|
2581
|
-
let
|
|
2582
|
-
|
|
2583
|
-
const w =
|
|
2594
|
+
return s;
|
|
2595
|
+
let S = c || b, V = S.length;
|
|
2596
|
+
S = S[V - 1];
|
|
2597
|
+
const w = S.substring(S.match(/[\(\s)]/).index + 1).replace(/\)+.*$/, "");
|
|
2584
2598
|
if (w.match(Ti))
|
|
2585
|
-
return
|
|
2599
|
+
return s.linesToSkip.push(p + 1), s;
|
|
2586
2600
|
const R = !!w.match(Ii), E = w.split(
|
|
2587
2601
|
R ? "," : " "
|
|
2588
2602
|
);
|
|
2589
2603
|
if (E.length < 2)
|
|
2590
|
-
return
|
|
2591
|
-
const
|
|
2604
|
+
return s;
|
|
2605
|
+
const I = {
|
|
2592
2606
|
target: E[0],
|
|
2593
2607
|
packet: E[1]
|
|
2594
2608
|
};
|
|
2595
2609
|
if (b)
|
|
2596
|
-
|
|
2610
|
+
I.item = E[2];
|
|
2597
2611
|
else {
|
|
2598
2612
|
const _ = E.slice(2);
|
|
2599
|
-
R ?
|
|
2600
|
-
(
|
|
2601
|
-
) :
|
|
2613
|
+
R ? I.params = _.map(
|
|
2614
|
+
(D) => D.split("=>")[0]
|
|
2615
|
+
) : I.params = _.filter((D, G) => G % 2);
|
|
2602
2616
|
}
|
|
2603
|
-
for (const _ in
|
|
2604
|
-
typeof
|
|
2605
|
-
(
|
|
2617
|
+
for (const _ in I)
|
|
2618
|
+
typeof I[_] == "string" ? I[_] = I[_].replace(/['"]/g, "").trim() : I[_] = I[_].map(
|
|
2619
|
+
(D) => D.replace(/['"]/g, "").trim()
|
|
2606
2620
|
);
|
|
2607
|
-
return
|
|
2621
|
+
return s.linesToCheck.push({
|
|
2608
2622
|
line: d,
|
|
2609
|
-
mnemonic:
|
|
2610
|
-
lineNumber:
|
|
2611
|
-
}),
|
|
2623
|
+
mnemonic: I,
|
|
2624
|
+
lineNumber: p + 1
|
|
2625
|
+
}), s;
|
|
2612
2626
|
},
|
|
2613
2627
|
{ linesToCheck: [], linesToSkip: [] }
|
|
2614
|
-
), i = await this._checkLines(
|
|
2628
|
+
), i = await this._checkLines(o);
|
|
2615
2629
|
return {
|
|
2616
2630
|
skipped: r.sort(),
|
|
2617
|
-
problems: i.sort((
|
|
2631
|
+
problems: i.sort((s, d) => s.lineNumber - d.lineNumber)
|
|
2618
2632
|
};
|
|
2619
2633
|
}
|
|
2620
2634
|
async _checkLines(e) {
|
|
2621
|
-
const
|
|
2635
|
+
const o = [], r = Ze(
|
|
2622
2636
|
e,
|
|
2623
2637
|
(i) => i.mnemonic.target
|
|
2624
2638
|
);
|
|
2625
2639
|
for (const i in r) {
|
|
2626
2640
|
if (!this.targets[i]) {
|
|
2627
2641
|
for (const d of r[i])
|
|
2628
|
-
|
|
2642
|
+
o.push({
|
|
2629
2643
|
...d,
|
|
2630
2644
|
error: `Target "${i}" does not exist.`
|
|
2631
2645
|
});
|
|
2632
2646
|
continue;
|
|
2633
2647
|
}
|
|
2634
|
-
const
|
|
2648
|
+
const s = Ze(
|
|
2635
2649
|
r[i],
|
|
2636
2650
|
(d) => d.mnemonic.packet
|
|
2637
2651
|
);
|
|
2638
|
-
for (const d in
|
|
2639
|
-
for (const
|
|
2640
|
-
const c =
|
|
2652
|
+
for (const d in s)
|
|
2653
|
+
for (const p of s[d]) {
|
|
2654
|
+
const c = p.mnemonic.item ? "tlm" : "cmd";
|
|
2641
2655
|
if (!this.targets[i][c]) {
|
|
2642
|
-
const
|
|
2656
|
+
const S = p.mnemonic.item ? "get_all_tlm" : "get_all_cmds", V = await this.api[S](i);
|
|
2643
2657
|
this.targets[i][c] = V.reduce(
|
|
2644
2658
|
(w, R) => (w[R.packet_name] = R.items.map(
|
|
2645
2659
|
(E) => E.name
|
|
@@ -2649,109 +2663,109 @@ class Ui {
|
|
|
2649
2663
|
}
|
|
2650
2664
|
const b = this.targets[i][c][d];
|
|
2651
2665
|
if (!b) {
|
|
2652
|
-
|
|
2653
|
-
...
|
|
2666
|
+
o.push({
|
|
2667
|
+
...p,
|
|
2654
2668
|
error: `${c === "tlm" ? "Packet" : "Command"} "${i} ${d}" does not exist.`
|
|
2655
2669
|
});
|
|
2656
2670
|
continue;
|
|
2657
2671
|
}
|
|
2658
|
-
if (
|
|
2659
|
-
if (!b.some((
|
|
2660
|
-
|
|
2661
|
-
...
|
|
2662
|
-
error: `Item "${i} ${d} ${
|
|
2672
|
+
if (p.mnemonic.item) {
|
|
2673
|
+
if (!b.some((S) => S === p.mnemonic.item)) {
|
|
2674
|
+
o.push({
|
|
2675
|
+
...p,
|
|
2676
|
+
error: `Item "${i} ${d} ${p.mnemonic.item}" does not exist.`
|
|
2663
2677
|
});
|
|
2664
2678
|
continue;
|
|
2665
2679
|
}
|
|
2666
2680
|
} else
|
|
2667
|
-
for (const
|
|
2668
|
-
if (!b.some((V) => V ===
|
|
2669
|
-
|
|
2670
|
-
...
|
|
2671
|
-
error: `Command "${i} ${d}" param "${
|
|
2681
|
+
for (const S of p.mnemonic.params)
|
|
2682
|
+
if (!b.some((V) => V === S)) {
|
|
2683
|
+
o.push({
|
|
2684
|
+
...p,
|
|
2685
|
+
error: `Command "${i} ${d}" param "${S}" does not exist.`
|
|
2672
2686
|
});
|
|
2673
2687
|
continue;
|
|
2674
2688
|
}
|
|
2675
2689
|
}
|
|
2676
2690
|
}
|
|
2677
|
-
return
|
|
2691
|
+
return o;
|
|
2678
2692
|
}
|
|
2679
2693
|
}
|
|
2680
|
-
var ee, ve, _e, be, we,
|
|
2694
|
+
var ee, ve, _e, be, we, Me, ye, ke, Te;
|
|
2681
2695
|
class Di {
|
|
2682
|
-
constructor(e, { pattern:
|
|
2696
|
+
constructor(e, { pattern: o, text: r, type: i }) {
|
|
2683
2697
|
// TODO: the eslint parser errors on these because of the #
|
|
2684
2698
|
// Not sure if this naming is needed for the Ace editor or something?
|
|
2685
|
-
|
|
2686
|
-
|
|
2687
|
-
|
|
2688
|
-
|
|
2689
|
-
|
|
2699
|
+
J(this, ee);
|
|
2700
|
+
J(this, ve);
|
|
2701
|
+
J(this, _e);
|
|
2702
|
+
J(this, be);
|
|
2703
|
+
J(this, we);
|
|
2690
2704
|
// Re-annotate the entire document
|
|
2691
2705
|
Ne(this, "refresh", () => {
|
|
2692
2706
|
const e = B(this, ve).session;
|
|
2693
2707
|
B(this, Te).call(this, e);
|
|
2694
|
-
const
|
|
2708
|
+
const o = {
|
|
2695
2709
|
lines: e.doc.$lines,
|
|
2696
2710
|
action: "insert",
|
|
2697
2711
|
start: { row: 0 },
|
|
2698
2712
|
end: { row: e.doc.$lines.length }
|
|
2699
2713
|
};
|
|
2700
|
-
this.annotate(
|
|
2714
|
+
this.annotate(o, e);
|
|
2701
2715
|
});
|
|
2702
2716
|
// Update annotations for the changed lines
|
|
2703
|
-
Ne(this, "annotate", (e,
|
|
2717
|
+
Ne(this, "annotate", (e, o) => {
|
|
2704
2718
|
var r, i;
|
|
2705
2719
|
if (e.lines.length > 1)
|
|
2706
2720
|
switch (e.action) {
|
|
2707
2721
|
case "insert":
|
|
2708
|
-
B(this, ke).call(this,
|
|
2722
|
+
B(this, ke).call(this, o, e.start.row, e.lines.length - 1);
|
|
2709
2723
|
break;
|
|
2710
2724
|
case "remove":
|
|
2711
|
-
B(this, ke).call(this,
|
|
2725
|
+
B(this, ke).call(this, o, e.start.row + 1, -e.lines.length + 1);
|
|
2712
2726
|
break;
|
|
2713
2727
|
}
|
|
2714
|
-
for (let
|
|
2715
|
-
let d = (i = (r =
|
|
2716
|
-
d !== void 0 ? (d !== 0 && (d += 1), B(this,
|
|
2717
|
-
row:
|
|
2728
|
+
for (let s = e.start.row; s <= e.end.row; s++) {
|
|
2729
|
+
let d = (i = (r = o.doc.$lines[s]) == null ? void 0 : r.match(B(this, _e))) == null ? void 0 : i.index;
|
|
2730
|
+
d !== void 0 ? (d !== 0 && (d += 1), B(this, Me).call(this, o, {
|
|
2731
|
+
row: s,
|
|
2718
2732
|
column: d,
|
|
2719
2733
|
// I don't think our editor theme shows the column for annotations, but others do
|
|
2720
2734
|
text: B(this, be),
|
|
2721
2735
|
type: B(this, we),
|
|
2722
2736
|
openc3Id: B(this, ee)
|
|
2723
|
-
})) : e.action === "remove" && B(this, ye).call(this,
|
|
2737
|
+
})) : e.action === "remove" && B(this, ye).call(this, o, s);
|
|
2724
2738
|
}
|
|
2725
2739
|
});
|
|
2726
|
-
|
|
2727
|
-
B(this, ye).call(this, e,
|
|
2740
|
+
J(this, Me, (e, o) => {
|
|
2741
|
+
B(this, ye).call(this, e, o.row), e.setAnnotations([...e.getAnnotations(), o]);
|
|
2728
2742
|
});
|
|
2729
|
-
|
|
2743
|
+
J(this, ye, (e, o) => {
|
|
2730
2744
|
e.setAnnotations(
|
|
2731
2745
|
e.getAnnotations().filter(
|
|
2732
|
-
(r) => r.openc3Id !== B(this, ee) || r.row !==
|
|
2746
|
+
(r) => r.openc3Id !== B(this, ee) || r.row !== o
|
|
2733
2747
|
)
|
|
2734
2748
|
);
|
|
2735
2749
|
});
|
|
2736
|
-
|
|
2750
|
+
J(this, ke, (e, o, r) => {
|
|
2737
2751
|
e.setAnnotations(
|
|
2738
|
-
e.getAnnotations().map((i) => (i.row >
|
|
2752
|
+
e.getAnnotations().map((i) => (i.row > o && (i.row += r), i))
|
|
2739
2753
|
);
|
|
2740
2754
|
});
|
|
2741
|
-
|
|
2755
|
+
J(this, Te, (e) => {
|
|
2742
2756
|
e.setAnnotations(
|
|
2743
|
-
e.getAnnotations().filter((
|
|
2757
|
+
e.getAnnotations().filter((o) => o.openc3Id !== B(this, ee))
|
|
2744
2758
|
);
|
|
2745
2759
|
});
|
|
2746
|
-
ne(this, ee, `regexAnnotator-${Math.floor(Math.random() * 1e7)}`), ne(this, ve, e), ne(this, _e,
|
|
2760
|
+
ne(this, ee, `regexAnnotator-${Math.floor(Math.random() * 1e7)}`), ne(this, ve, e), ne(this, _e, o), ne(this, be, r), ne(this, we, i);
|
|
2747
2761
|
}
|
|
2748
2762
|
}
|
|
2749
|
-
ee = new WeakMap(), ve = new WeakMap(), _e = new WeakMap(), be = new WeakMap(), we = new WeakMap(),
|
|
2763
|
+
ee = new WeakMap(), ve = new WeakMap(), _e = new WeakMap(), be = new WeakMap(), we = new WeakMap(), Me = new WeakMap(), ye = new WeakMap(), ke = new WeakMap(), Te = new WeakMap();
|
|
2750
2764
|
class Pi extends Di {
|
|
2751
2765
|
constructor(e) {
|
|
2752
|
-
const
|
|
2766
|
+
const o = "(^|[{\\s])", r = "sleep", i = "[\\(\\s]";
|
|
2753
2767
|
super(e, {
|
|
2754
|
-
pattern: new RegExp(`${
|
|
2768
|
+
pattern: new RegExp(`${o}${r}${i}`),
|
|
2755
2769
|
text: "Use `wait` instead of `sleep` in OpenC3 scripts",
|
|
2756
2770
|
// because we override wait to make it work better, but not sleep
|
|
2757
2771
|
type: "warning"
|
|
@@ -2782,8 +2796,8 @@ const Qe = "__TEMP__", q = "<Untitled>", Ge = "Start", zi = "Go", he = "Pause",
|
|
|
2782
2796
|
CommandEditor: wt
|
|
2783
2797
|
},
|
|
2784
2798
|
mixins: [ft, Et],
|
|
2785
|
-
beforeRouteUpdate: function(t, e,
|
|
2786
|
-
t.params.id ? this.tryLoadRunningScript(t.params.id).then(
|
|
2799
|
+
beforeRouteUpdate: function(t, e, o) {
|
|
2800
|
+
t.params.id ? this.tryLoadRunningScript(t.params.id).then(o) : o();
|
|
2787
2801
|
},
|
|
2788
2802
|
props: {
|
|
2789
2803
|
inline: {
|
|
@@ -2922,6 +2936,7 @@ const Qe = "__TEMP__", q = "<Untitled>", Ge = "Start", zi = "Go", he = "Pause",
|
|
|
2922
2936
|
mnemonicChecker: new Ui(),
|
|
2923
2937
|
showScripts: !1,
|
|
2924
2938
|
showOverrides: !1,
|
|
2939
|
+
overridesCount: 0,
|
|
2925
2940
|
commandEditor: {
|
|
2926
2941
|
show: !1,
|
|
2927
2942
|
targetName: null,
|
|
@@ -3229,17 +3244,20 @@ const Qe = "__TEMP__", q = "<Untitled>", Ge = "Start", zi = "Go", he = "Pause",
|
|
|
3229
3244
|
},
|
|
3230
3245
|
readOnlyUser: function(t) {
|
|
3231
3246
|
this.editor && (t ? (this.editor.setReadOnly(!0), this.editor.renderer.$cursorLayer.element.style.display = "none") : (this.editor.setReadOnly(!1), this.editor.renderer.$cursorLayer.element.style.display = null));
|
|
3247
|
+
},
|
|
3248
|
+
showOverrides: function(t, e) {
|
|
3249
|
+
e && !t && this.updateOverridesCount();
|
|
3232
3250
|
}
|
|
3233
3251
|
},
|
|
3234
3252
|
created: async function() {
|
|
3235
|
-
this.api = new Ie(), this.api.ensure_offline_access(), this.api.get_setting("time_zone").then((
|
|
3236
|
-
|
|
3237
|
-
}).catch((
|
|
3238
|
-
}), this.NEW_FILENAME = q;
|
|
3253
|
+
this.api = new Ie(), this.api.ensure_offline_access(), this.api.get_setting("time_zone").then((o) => {
|
|
3254
|
+
o && (this.timeZone = o);
|
|
3255
|
+
}).catch((o) => {
|
|
3256
|
+
}), this.updateOverridesCount(), this.NEW_FILENAME = q;
|
|
3239
3257
|
let t = OpenC3Auth.user(), e = OpenC3Auth.userroles();
|
|
3240
3258
|
this.readOnlyUser = !0, this.executeUser = !1;
|
|
3241
|
-
for (let
|
|
3242
|
-
|
|
3259
|
+
for (let o of e)
|
|
3260
|
+
o != "viewer" && (o == "admin" || o == "operator" ? (this.readOnlyUser = !1, this.executeUser = !0) : o == "runner" ? this.executeUser = !0 : await O.get(`/openc3-api/roles/${o}`).then((r) => {
|
|
3243
3261
|
r.data !== null && r.data.permissions !== void 0 && (r.data.permissions.some(
|
|
3244
3262
|
(i) => i.permission == "script_edit"
|
|
3245
3263
|
) && (this.readOnlyUser = !1), r.data.permissions.some(
|
|
@@ -3252,27 +3270,27 @@ const Qe = "__TEMP__", q = "<Untitled>", Ge = "Start", zi = "Go", he = "Pause",
|
|
|
3252
3270
|
execute: this.executeUser
|
|
3253
3271
|
})), this.readOnlyUser == !0) {
|
|
3254
3272
|
this.alertType = "info";
|
|
3255
|
-
let
|
|
3256
|
-
this.executeUser && (
|
|
3273
|
+
let o = `User ${t.preferred_username} is read only`;
|
|
3274
|
+
this.executeUser && (o += " but can execute scripts"), this.alertText = o, this.showAlert = !0;
|
|
3257
3275
|
}
|
|
3258
|
-
|
|
3259
|
-
this.screenKeywords =
|
|
3276
|
+
O.get("/openc3-api/autocomplete/keywords/screen").then((o) => {
|
|
3277
|
+
this.screenKeywords = o.data;
|
|
3260
3278
|
}), this.inline && (this.readOnly = !0);
|
|
3261
3279
|
},
|
|
3262
3280
|
mounted: async function() {
|
|
3263
|
-
var i,
|
|
3281
|
+
var i, s;
|
|
3264
3282
|
this.editor = ace.edit(this.$refs.editor), this.editor.setTheme("ace/theme/twilight");
|
|
3265
3283
|
const t = this.buildRubyMode(), e = this.buildPythonMode();
|
|
3266
|
-
this.rubyMode = new t(), this.pythonMode = new e(), Ee.getDefaultScriptingLanguage() === "python" ? this.editor.session.setMode(this.pythonMode) : this.editor.session.setMode(this.rubyMode), this.editor.session.setTabSize(2), this.editor.session.setUseWrapMode(!0), this.editor.$blockScrolling = 1 / 0, this.editor.setOption("enableBasicAutocompletion", !0), this.editor.setOption("enableLiveAutocompletion", !0), this.editor.completers = [new
|
|
3284
|
+
this.rubyMode = new t(), this.pythonMode = new e(), Ee.getDefaultScriptingLanguage() === "python" ? this.editor.session.setMode(this.pythonMode) : this.editor.session.setMode(this.rubyMode), this.editor.session.setTabSize(2), this.editor.session.setUseWrapMode(!0), this.editor.$blockScrolling = 1 / 0, this.editor.setOption("enableBasicAutocompletion", !0), this.editor.setOption("enableLiveAutocompletion", !0), this.editor.completers = [new Oi(), new Mi()], this.editor.setHighlightActiveLine(!1), Ee.applyVimModeIfEnabled(this.editor, { saveFn: this.saveFile }), this.editor.focus(), this.editor.on("guttermousedown", this.toggleBreakpoint), this.editor.session.on("tokenizerUpdate", this.onChange), this.readOnlyUser && (this.editor.setReadOnly(!0), this.editor.renderer.$cursorLayer.element.style.display = "none");
|
|
3267
3285
|
const r = new Pi(this.editor);
|
|
3268
|
-
this.editor.session.on("change", (d,
|
|
3269
|
-
r.annotate(d,
|
|
3286
|
+
this.editor.session.on("change", (d, p) => {
|
|
3287
|
+
r.annotate(d, p), this.updateBreakpoints(d, p);
|
|
3270
3288
|
}), this.editor.container.addEventListener("resize", this.doResize), this.editor.container.addEventListener("keydown", this.keydown), this.cable = new nt("/script-api/cable"), !this.inline && localStorage.script_runner__recent && (this.recent = JSON.parse(localStorage.script_runner__recent), this.recent = this.recent.map((d) => ({
|
|
3271
3289
|
...d,
|
|
3272
|
-
command: async (
|
|
3273
|
-
this.filename =
|
|
3290
|
+
command: async (p) => {
|
|
3291
|
+
this.filename = p.label, await this.reloadFile();
|
|
3274
3292
|
}
|
|
3275
|
-
}))), this.inline ? this.body && (this.editor.setValue(this.body), this.editor.clearSelection()) : (i = this.$route.query) != null && i.file ? (this.filename = this.$route.query.file, await this.reloadFile()) : (
|
|
3293
|
+
}))), this.inline ? this.body && (this.editor.setValue(this.body), this.editor.clearSelection()) : (i = this.$route.query) != null && i.file ? (this.filename = this.$route.query.file, await this.reloadFile()) : (s = this.$route.params) != null && s.id ? await this.tryLoadRunningScript(this.$route.params.id) : (this.scriptId = sessionStorage.getItem("script_runner__script_id"), this.scriptId ? await this.tryLoadRunningScript(this.scriptId) : localStorage.script_runner__filename && (this.filename = localStorage.script_runner__filename, await this.reloadFile(!1))), this.updateInterval = setInterval(async () => {
|
|
3276
3294
|
this.processReceived();
|
|
3277
3295
|
}, 100);
|
|
3278
3296
|
},
|
|
@@ -3283,6 +3301,11 @@ const Qe = "__TEMP__", q = "<Untitled>", Ge = "Start", zi = "Go", he = "Pause",
|
|
|
3283
3301
|
this.unlockFile(), this.updateInterval != null && clearInterval(this.updateInterval), this.subscription && (this.subscription.unsubscribe(), this.subscription = null), this.cable.disconnect();
|
|
3284
3302
|
},
|
|
3285
3303
|
methods: {
|
|
3304
|
+
updateOverridesCount: function() {
|
|
3305
|
+
this.api.get_overrides().then((t) => {
|
|
3306
|
+
this.overridesCount = t.length;
|
|
3307
|
+
});
|
|
3308
|
+
},
|
|
3286
3309
|
toggleVimMode() {
|
|
3287
3310
|
Ee.toggleVimMode(this.editor);
|
|
3288
3311
|
},
|
|
@@ -3290,8 +3313,8 @@ const Qe = "__TEMP__", q = "<Untitled>", Ge = "Start", zi = "Go", he = "Pause",
|
|
|
3290
3313
|
this.executeSelectionMenu = !1;
|
|
3291
3314
|
const t = this.editor.getCursorPosition(), e = this.editor.session.getLine(t.row);
|
|
3292
3315
|
if (this.currentLineHasCommand) {
|
|
3293
|
-
const
|
|
3294
|
-
this.commandEditor.cmdString =
|
|
3316
|
+
const o = this.parseCommandFromLine(e);
|
|
3317
|
+
this.commandEditor.cmdString = o, this.commandEditor.isEditing = !0, this.commandEditor.editLine = t.row;
|
|
3295
3318
|
} else
|
|
3296
3319
|
this.commandEditor.cmdString = null, this.commandEditor.isEditing = !1, this.commandEditor.editLine = null;
|
|
3297
3320
|
this.commandEditor.show = !0, this.commandEditor.dialogError = null;
|
|
@@ -3300,26 +3323,26 @@ const Qe = "__TEMP__", q = "<Untitled>", Ge = "Start", zi = "Go", he = "Pause",
|
|
|
3300
3323
|
let e = "";
|
|
3301
3324
|
try {
|
|
3302
3325
|
e = this.$refs.commandEditor.getCmdString();
|
|
3303
|
-
let
|
|
3304
|
-
this.commandEditor.targetName =
|
|
3305
|
-
} catch (
|
|
3306
|
-
this.commandEditor.dialogError =
|
|
3326
|
+
let o = e.split(" ");
|
|
3327
|
+
this.commandEditor.targetName = o[0], this.commandEditor.commandName = o[1];
|
|
3328
|
+
} catch (o) {
|
|
3329
|
+
this.commandEditor.dialogError = o.message || "Please fix command parameters";
|
|
3307
3330
|
return;
|
|
3308
3331
|
}
|
|
3309
3332
|
if (this.commandEditor.isEditing && this.commandEditor.editLine !== null) {
|
|
3310
|
-
const
|
|
3333
|
+
const o = this.editor.session.getLine(this.commandEditor.editLine), r = o.match(/^\s*/)[0], i = o.match(/\s+#.*$/), s = i ? i[0] : "", d = `${r}cmd("${e}")${s}`, p = this.Range;
|
|
3311
3334
|
this.editor.session.replace(
|
|
3312
|
-
new
|
|
3335
|
+
new p(
|
|
3313
3336
|
this.commandEditor.editLine,
|
|
3314
3337
|
0,
|
|
3315
3338
|
this.commandEditor.editLine,
|
|
3316
|
-
|
|
3339
|
+
o.length
|
|
3317
3340
|
),
|
|
3318
3341
|
d
|
|
3319
3342
|
);
|
|
3320
3343
|
} else {
|
|
3321
|
-
const
|
|
3322
|
-
this.editor.session.insert(
|
|
3344
|
+
const o = this.editor.getCursorPosition();
|
|
3345
|
+
this.editor.session.insert(o, `cmd("${e}")
|
|
3323
3346
|
`);
|
|
3324
3347
|
}
|
|
3325
3348
|
this.fileModified = !0, this.commandEditor.show = !1;
|
|
@@ -3334,7 +3357,7 @@ const Qe = "__TEMP__", q = "<Untitled>", Ge = "Start", zi = "Go", he = "Pause",
|
|
|
3334
3357
|
this.subscription && (this.subscription.unsubscribe(), this.subscription = null), this.receivedEvents.length = 0;
|
|
3335
3358
|
},
|
|
3336
3359
|
showMetadata() {
|
|
3337
|
-
|
|
3360
|
+
O.get("/openc3-api/metadata").then((t) => {
|
|
3338
3361
|
this.inputMetadata.events = t.data.map((e) => ({
|
|
3339
3362
|
name: "Metadata",
|
|
3340
3363
|
start: new Date(e.start * 1e3),
|
|
@@ -3364,10 +3387,10 @@ const Qe = "__TEMP__", q = "<Untitled>", Ge = "Start", zi = "Go", he = "Pause",
|
|
|
3364
3387
|
), this.editor.gotoLine(this.files[t].lineNo);
|
|
3365
3388
|
},
|
|
3366
3389
|
tryLoadRunningScript: function(t) {
|
|
3367
|
-
return
|
|
3390
|
+
return O.get(`/script-api/running-script/${t}`).then((e) => {
|
|
3368
3391
|
if (e.data) {
|
|
3369
|
-
let
|
|
3370
|
-
|
|
3392
|
+
let o = e.data.state;
|
|
3393
|
+
o !== "completed" && o !== "completed_errors" && o !== "stopped" && o !== "crashed" && o !== "killed" ? (this.filename = e.data.filename, this.tryLoadSuites(e), this.initScriptStart(), this.scriptStart(t)) : (this.$notify.caution({
|
|
3371
3394
|
title: `Script ${t} has already completed`,
|
|
3372
3395
|
body: "Check the Completed Scripts below ..."
|
|
3373
3396
|
}), this.scriptComplete(), this.showScripts = !0);
|
|
@@ -3385,8 +3408,8 @@ const Qe = "__TEMP__", q = "<Untitled>", Ge = "Start", zi = "Go", he = "Pause",
|
|
|
3385
3408
|
},
|
|
3386
3409
|
showExecuteSelectionMenu: function(t) {
|
|
3387
3410
|
this.menuX = t.pageX, this.menuY = t.pageY;
|
|
3388
|
-
const e = this.editor.getCursorPosition(),
|
|
3389
|
-
this.currentLineHasCommand = this.isCommandLine(
|
|
3411
|
+
const e = this.editor.getCursorPosition(), o = this.editor.session.getLine(e.row);
|
|
3412
|
+
this.currentLineHasCommand = this.isCommandLine(o), this.executeSelectionMenu = !0;
|
|
3390
3413
|
},
|
|
3391
3414
|
isCommandLine: function(t) {
|
|
3392
3415
|
const e = t.trim();
|
|
@@ -3398,7 +3421,7 @@ const Qe = "__TEMP__", q = "<Untitled>", Ge = "Start", zi = "Go", he = "Pause",
|
|
|
3398
3421
|
},
|
|
3399
3422
|
runFromCursor: function() {
|
|
3400
3423
|
const t = this.editor.getCursorPosition().row + 1;
|
|
3401
|
-
this.scriptId ?
|
|
3424
|
+
this.scriptId ? O.post(
|
|
3402
3425
|
`/script-api/running-script/${this.scriptId}/executewhilepaused`,
|
|
3403
3426
|
{
|
|
3404
3427
|
data: {
|
|
@@ -3409,15 +3432,15 @@ const Qe = "__TEMP__", q = "<Untitled>", Ge = "Start", zi = "Go", he = "Pause",
|
|
|
3409
3432
|
},
|
|
3410
3433
|
executeSelection: function() {
|
|
3411
3434
|
const t = this.editor.getSelectionRange();
|
|
3412
|
-
let e = t.start.row + 1,
|
|
3413
|
-
t.end.column === 0 && (
|
|
3435
|
+
let e = t.start.row + 1, o = t.end.row + 1;
|
|
3436
|
+
t.end.column === 0 && (o -= 1), this.scriptId ? O.post(
|
|
3414
3437
|
`/script-api/running-script/${this.scriptId}/executewhilepaused`,
|
|
3415
3438
|
{
|
|
3416
3439
|
data: {
|
|
3417
|
-
args: [this.filenameSelect, e,
|
|
3440
|
+
args: [this.filenameSelect, e, o]
|
|
3418
3441
|
}
|
|
3419
3442
|
}
|
|
3420
|
-
) : this.start(null, null, e,
|
|
3443
|
+
) : this.start(null, null, e, o);
|
|
3421
3444
|
},
|
|
3422
3445
|
clearBreakpoints: function() {
|
|
3423
3446
|
this.editor.session.clearBreakpoints();
|
|
@@ -3431,38 +3454,38 @@ const Qe = "__TEMP__", q = "<Untitled>", Ge = "Start", zi = "Go", he = "Pause",
|
|
|
3431
3454
|
updateBreakpoints: function(t, e) {
|
|
3432
3455
|
if (t.lines.length <= 1)
|
|
3433
3456
|
return;
|
|
3434
|
-
const
|
|
3435
|
-
(
|
|
3457
|
+
const o = this.getBreakpointRows(e).filter(
|
|
3458
|
+
(s) => t.start.column === 0 && s === t.start.row || s > t.start.row
|
|
3436
3459
|
);
|
|
3437
3460
|
let r = [], i = 0;
|
|
3438
3461
|
switch (t.action) {
|
|
3439
3462
|
case "insert":
|
|
3440
|
-
i = t.lines.length - 1,
|
|
3463
|
+
i = t.lines.length - 1, o.reverse();
|
|
3441
3464
|
break;
|
|
3442
3465
|
case "remove":
|
|
3443
3466
|
i = -t.lines.length + 1, r = [...Array(t.lines.length).keys()].map(
|
|
3444
|
-
(
|
|
3467
|
+
(s) => s + t.start.row
|
|
3445
3468
|
);
|
|
3446
3469
|
break;
|
|
3447
3470
|
}
|
|
3448
|
-
|
|
3449
|
-
e.clearBreakpoint(
|
|
3471
|
+
o.forEach((s) => {
|
|
3472
|
+
e.clearBreakpoint(s), r.includes(s) || e.setBreakpoint(s + i);
|
|
3450
3473
|
});
|
|
3451
3474
|
},
|
|
3452
3475
|
getBreakpointRows: function(t = this.editor.session) {
|
|
3453
|
-
return t.getBreakpoints().map((e,
|
|
3476
|
+
return t.getBreakpoints().map((e, o) => e && o).filter(Number.isInteger);
|
|
3454
3477
|
},
|
|
3455
3478
|
restoreBreakpoints: function(t) {
|
|
3456
3479
|
var e;
|
|
3457
|
-
this.clearBreakpoints(), (e = this.breakpoints[t]) == null || e.forEach((
|
|
3458
|
-
this.editor.session.setBreakpoint(
|
|
3480
|
+
this.clearBreakpoints(), (e = this.breakpoints[t]) == null || e.forEach((o) => {
|
|
3481
|
+
this.editor.session.setBreakpoint(o);
|
|
3459
3482
|
});
|
|
3460
3483
|
},
|
|
3461
3484
|
deleteAllBreakpoints: function() {
|
|
3462
3485
|
this.$dialog.confirm("Permanently delete all breakpoints for ALL scripts?", {
|
|
3463
3486
|
okText: "Delete",
|
|
3464
3487
|
cancelText: "Cancel"
|
|
3465
|
-
}).then((t) =>
|
|
3488
|
+
}).then((t) => O.delete("/script-api/breakpoints/delete/all")).then((t) => {
|
|
3466
3489
|
this.clearBreakpoints();
|
|
3467
3490
|
});
|
|
3468
3491
|
},
|
|
@@ -3477,19 +3500,19 @@ const Qe = "__TEMP__", q = "<Untitled>", Ge = "Start", zi = "Go", he = "Pause",
|
|
|
3477
3500
|
},
|
|
3478
3501
|
checkMnemonics: function() {
|
|
3479
3502
|
let t = this.filename;
|
|
3480
|
-
this.filename !== q && (t.endsWith(".rb") || t.endsWith(".py") ||
|
|
3503
|
+
this.filename !== q && (t.endsWith(".rb") || t.endsWith(".py") || O.post(`/script-api/scripts/${this.filename}/mnemonics`, {
|
|
3481
3504
|
data: this.editor.getValue(),
|
|
3482
3505
|
headers: {
|
|
3483
3506
|
Accept: "application/json",
|
|
3484
3507
|
"Content-Type": "plain/text"
|
|
3485
3508
|
}
|
|
3486
3509
|
}).then((e) => {
|
|
3487
|
-
let
|
|
3488
|
-
|
|
3489
|
-
})), this.mnemonicChecker.checkText(this.editor.getValue()).then(({ skipped: e, problems:
|
|
3510
|
+
let o = "";
|
|
3511
|
+
o += `<strong>${e.data.title}</strong><br/><br/>`, o += JSON.parse(e.data.description), this.$dialog.alert(o.trim(), { html: !0 });
|
|
3512
|
+
})), this.mnemonicChecker.checkText(this.editor.getValue()).then(({ skipped: e, problems: o }) => {
|
|
3490
3513
|
let r = "";
|
|
3491
|
-
if (
|
|
3492
|
-
const i =
|
|
3514
|
+
if (o.length) {
|
|
3515
|
+
const i = o.map((s) => `${s.lineNumber}: ${s.error}`).join("<br/>");
|
|
3493
3516
|
r += `<strong>The following lines have problems:</strong><br/>${i}<br/><br/>`;
|
|
3494
3517
|
}
|
|
3495
3518
|
e.length && (r += "<strong>Mnemonics with string interpolation were not checked.</strong>"), r === "" && (r = "<strong>Everything looks good!</strong>"), this.$dialog.alert(r.trim(), { html: !0 });
|
|
@@ -3513,7 +3536,7 @@ const Qe = "__TEMP__", q = "<Untitled>", Ge = "Start", zi = "Go", he = "Pause",
|
|
|
3513
3536
|
});
|
|
3514
3537
|
},
|
|
3515
3538
|
async scriptComplete() {
|
|
3516
|
-
this.scriptId = null, sessionStorage.removeItem("script_runner__script_id"), this.currentFilename = null, this.files = {}, this.subscription && (await this.subscription.unsubscribe(), this.subscription = null), this.receivedEvents.length = 0, await this.reloadFile(), this.editor.session.getUndoManager().reset(), this.readOnlyUser == !1 && this.editor.setReadOnly(!1), this.disableSuiteButtons = !1, this.startOrGoButton = Ge, this.pauseOrRetryButton = he, this.startOrGoDisabled = this.suiteRunner, this.envDisabled = !1, this.pauseOrRetryDisabled = !0, this.stopDisabled = !0;
|
|
3539
|
+
this.scriptId = null, sessionStorage.removeItem("script_runner__script_id"), this.currentFilename = null, this.files = {}, this.subscription && (await this.subscription.unsubscribe(), this.subscription = null), this.receivedEvents.length = 0, await this.reloadFile(), this.editor.session.getUndoManager().reset(), this.readOnlyUser == !1 && this.editor.setReadOnly(!1), this.disableSuiteButtons = !1, this.startOrGoButton = Ge, this.pauseOrRetryButton = he, this.startOrGoDisabled = this.suiteRunner, this.envDisabled = !1, this.pauseOrRetryDisabled = !0, this.stopDisabled = !0, this.updateOverridesCount();
|
|
3517
3540
|
},
|
|
3518
3541
|
environmentHandler: function(t) {
|
|
3519
3542
|
this.scriptEnvironment.env = t;
|
|
@@ -3521,37 +3544,37 @@ const Qe = "__TEMP__", q = "<Untitled>", Ge = "Start", zi = "Go", he = "Pause",
|
|
|
3521
3544
|
startHandler: function() {
|
|
3522
3545
|
this.start();
|
|
3523
3546
|
},
|
|
3524
|
-
async start(t = null, e = null,
|
|
3547
|
+
async start(t = null, e = null, o = null, r = null) {
|
|
3525
3548
|
this.initScriptStart(), await this.saveFile("start"), this.saveAllowed = !1;
|
|
3526
3549
|
let i = this.filename;
|
|
3527
3550
|
this.filename === q && (i = this.tempFilename);
|
|
3528
|
-
let
|
|
3529
|
-
this.showDisconnect && (
|
|
3551
|
+
let s = `/script-api/scripts/${i}/run`;
|
|
3552
|
+
this.showDisconnect && (s += "/disconnect");
|
|
3530
3553
|
let d = this.scriptEnvironment.env;
|
|
3531
3554
|
this.enableStackTraces && (d = d.concat({
|
|
3532
3555
|
key: "OPENC3_FULL_BACKTRACE",
|
|
3533
3556
|
value: "1"
|
|
3534
3557
|
}));
|
|
3535
|
-
let
|
|
3558
|
+
let p = {
|
|
3536
3559
|
environment: d
|
|
3537
3560
|
};
|
|
3538
|
-
e && (
|
|
3561
|
+
e && (p.suiteRunner = t), o !== null && (p.line_no = o), r !== null && (p.end_line_no = r), O.post(s, { data: p }).then((c) => {
|
|
3539
3562
|
this.scriptStart(c.data);
|
|
3540
3563
|
}).catch((c) => {
|
|
3541
3564
|
this.scriptComplete();
|
|
3542
3565
|
});
|
|
3543
3566
|
},
|
|
3544
3567
|
go() {
|
|
3545
|
-
this.filenameSelect = this.currentFilename, this.fileNameChanged(this.currentFilename),
|
|
3568
|
+
this.filenameSelect = this.currentFilename, this.fileNameChanged(this.currentFilename), O.post(`/script-api/running-script/${this.scriptId}/go`);
|
|
3546
3569
|
},
|
|
3547
3570
|
pauseOrRetry() {
|
|
3548
|
-
this.pauseOrRetryButton === he ?
|
|
3571
|
+
this.pauseOrRetryButton === he ? O.post(`/script-api/running-script/${this.scriptId}/pause`) : (this.pauseOrRetryButton = he, O.post(`/script-api/running-script/${this.scriptId}/retry`));
|
|
3549
3572
|
},
|
|
3550
3573
|
stop() {
|
|
3551
|
-
|
|
3574
|
+
O.post(`/script-api/running-script/${this.scriptId}/stop`);
|
|
3552
3575
|
},
|
|
3553
3576
|
step() {
|
|
3554
|
-
|
|
3577
|
+
O.post(`/script-api/running-script/${this.scriptId}/step`);
|
|
3555
3578
|
},
|
|
3556
3579
|
// This is called by processLine no matter the current state
|
|
3557
3580
|
handleWaiting() {
|
|
@@ -3567,12 +3590,12 @@ const Qe = "__TEMP__", q = "<Untitled>", Ge = "Start", zi = "Go", he = "Pause",
|
|
|
3567
3590
|
this.waitingTime = 0, clearInterval(this.waitingInterval), this.waitingInterval = null;
|
|
3568
3591
|
},
|
|
3569
3592
|
processLine(t) {
|
|
3570
|
-
t.filename && t.filename !== this.currentFilename && (this.files[t.filename] ? (this.currentFilename = t.filename, this.editor.setValue(this.files[t.filename].content), this.restoreBreakpoints(t.filename), this.editor.clearSelection()) : (this.files[t.filename] = { content: "", lineNo: 0 },
|
|
3593
|
+
t.filename && t.filename !== this.currentFilename && (this.files[t.filename] ? (this.currentFilename = t.filename, this.editor.setValue(this.files[t.filename].content), this.restoreBreakpoints(t.filename), this.editor.clearSelection()) : (this.files[t.filename] = { content: "", lineNo: 0 }, O.get(`/script-api/scripts/${t.filename}`).then((o) => {
|
|
3571
3594
|
this.files[t.filename] = {
|
|
3572
|
-
content:
|
|
3595
|
+
content: o.data.contents,
|
|
3573
3596
|
lineNo: 0
|
|
3574
|
-
}, this.breakpoints[t.filename] =
|
|
3575
|
-
}).catch((
|
|
3597
|
+
}, this.breakpoints[t.filename] = o.data.breakpoints, this.restoreBreakpoints(t.filename), this.currentFilename = null;
|
|
3598
|
+
}).catch((o) => {
|
|
3576
3599
|
this.files[t.filename] = null;
|
|
3577
3600
|
}))), this.state = t.state;
|
|
3578
3601
|
const e = this.editor.session.getMarkers();
|
|
@@ -3621,7 +3644,7 @@ const Qe = "__TEMP__", q = "<Untitled>", Ge = "Start", zi = "Go", he = "Pause",
|
|
|
3621
3644
|
let t = 0;
|
|
3622
3645
|
for (let e of this.receivedEvents) {
|
|
3623
3646
|
t += 1;
|
|
3624
|
-
let
|
|
3647
|
+
let o = 0;
|
|
3625
3648
|
switch (e.type) {
|
|
3626
3649
|
case "file":
|
|
3627
3650
|
this.files[e.filename] = { content: e.text, lineNo: 0 }, this.breakpoints[e.filename] = e.breakpoints, this.currentFilename === e.filename && this.restoreBreakpoints(e.filename);
|
|
@@ -3630,9 +3653,11 @@ const Qe = "__TEMP__", q = "<Untitled>", Ge = "Start", zi = "Go", he = "Pause",
|
|
|
3630
3653
|
this.processLine(e);
|
|
3631
3654
|
break;
|
|
3632
3655
|
case "output":
|
|
3633
|
-
|
|
3656
|
+
let r = e.line;
|
|
3657
|
+
r == null ? r = "" : typeof r == "object" ? r = JSON.stringify(r) : r = String(r);
|
|
3658
|
+
for (const p of r.split(`
|
|
3634
3659
|
`))
|
|
3635
|
-
|
|
3660
|
+
p && (this.messagesNewestOnTop ? this.messages.unshift({ message: p }) : this.messages.push({ message: p }));
|
|
3636
3661
|
for (; this.messages.length > this.maxArrayLength; )
|
|
3637
3662
|
this.messages.pop();
|
|
3638
3663
|
break;
|
|
@@ -3649,31 +3674,31 @@ const Qe = "__TEMP__", q = "<Untitled>", Ge = "Start", zi = "Go", he = "Pause",
|
|
|
3649
3674
|
this.showDebug = !0;
|
|
3650
3675
|
break;
|
|
3651
3676
|
case "screen":
|
|
3652
|
-
let
|
|
3677
|
+
let i = !1, s = {};
|
|
3653
3678
|
for (screen of this.screens) {
|
|
3654
3679
|
if (screen.target == e.target_name && screen.screen == e.screen_name) {
|
|
3655
|
-
|
|
3680
|
+
s = screen, i = !0;
|
|
3656
3681
|
break;
|
|
3657
3682
|
}
|
|
3658
|
-
|
|
3683
|
+
o += 1;
|
|
3659
3684
|
}
|
|
3660
|
-
|
|
3685
|
+
s.target = e.target_name, s.screen = e.screen_name, s.definition = e.definition, e.x ? s.left = e.x : s.left = 0, e.y ? s.top = e.y : s.top = 0, s.count = this.updateCounter++, i ? this.screens[o] = s : (s.id = this.idCounter++, this.screens[this.screens.length] = s);
|
|
3661
3686
|
break;
|
|
3662
3687
|
case "clearscreen":
|
|
3663
3688
|
for (screen of this.screens) {
|
|
3664
3689
|
if (screen.target == e.target_name && screen.screen == e.screen_name) {
|
|
3665
|
-
this.screens.splice(
|
|
3690
|
+
this.screens.splice(o, 1);
|
|
3666
3691
|
break;
|
|
3667
3692
|
}
|
|
3668
|
-
|
|
3693
|
+
o += 1;
|
|
3669
3694
|
}
|
|
3670
3695
|
break;
|
|
3671
3696
|
case "clearallscreens":
|
|
3672
3697
|
this.screens = [];
|
|
3673
3698
|
break;
|
|
3674
3699
|
case "downloadfile":
|
|
3675
|
-
const
|
|
3676
|
-
|
|
3700
|
+
const d = document.createElement("a");
|
|
3701
|
+
d.href = window.location.origin + e.url, d.setAttribute("download", e.filename), d.click();
|
|
3677
3702
|
break;
|
|
3678
3703
|
}
|
|
3679
3704
|
}
|
|
@@ -3683,7 +3708,7 @@ const Qe = "__TEMP__", q = "<Untitled>", Ge = "Start", zi = "Go", he = "Pause",
|
|
|
3683
3708
|
this.cable.recordPing(), this.receivedEvents.push(t);
|
|
3684
3709
|
},
|
|
3685
3710
|
promptDialogCallback(t) {
|
|
3686
|
-
this.prompt.show = !1,
|
|
3711
|
+
this.prompt.show = !1, O.post(`/script-api/running-script/${this.scriptId}/prompt`, {
|
|
3687
3712
|
data: {
|
|
3688
3713
|
method: this.prompt.method,
|
|
3689
3714
|
answer: t,
|
|
@@ -3701,14 +3726,14 @@ const Qe = "__TEMP__", q = "<Untitled>", Ge = "Start", zi = "Go", he = "Pause",
|
|
|
3701
3726
|
case "ask":
|
|
3702
3727
|
case "ask_string":
|
|
3703
3728
|
this.ask.default = null, this.ask.answerRequired = !0, this.ask.password = !1, this.ask.question = t.args[0], t.args[1] && t.args[1] !== !0 && t.args[1] !== !1 ? this.ask.default = t.args[1].toString() : t.args[1] === !0 && (this.ask.answerRequired = !1), t.args[2] === !0 && (this.ask.password = !0), this.ask.callback = (e) => {
|
|
3704
|
-
this.ask.show = !1, this.ask.password ?
|
|
3729
|
+
this.ask.show = !1, this.ask.password ? O.post(`/script-api/running-script/${this.scriptId}/prompt`, {
|
|
3705
3730
|
data: {
|
|
3706
3731
|
method: t.method,
|
|
3707
3732
|
password: e,
|
|
3708
3733
|
// Using password as a key automatically filters it from rails logs
|
|
3709
3734
|
prompt_id: this.activePromptId
|
|
3710
3735
|
}
|
|
3711
|
-
}) :
|
|
3736
|
+
}) : O.post(`/script-api/running-script/${this.scriptId}/prompt`, {
|
|
3712
3737
|
data: {
|
|
3713
3738
|
method: t.method,
|
|
3714
3739
|
answer: e,
|
|
@@ -3742,7 +3767,7 @@ const Qe = "__TEMP__", q = "<Untitled>", Ge = "Start", zi = "Go", he = "Pause",
|
|
|
3742
3767
|
break;
|
|
3743
3768
|
case "metadata_input":
|
|
3744
3769
|
this.inputMetadata.callback = (e) => {
|
|
3745
|
-
this.inputMetadata.show = !1,
|
|
3770
|
+
this.inputMetadata.show = !1, O.post(`/script-api/running-script/${this.scriptId}/prompt`, {
|
|
3746
3771
|
data: {
|
|
3747
3772
|
method: t.method,
|
|
3748
3773
|
answer: e,
|
|
@@ -3759,15 +3784,15 @@ const Qe = "__TEMP__", q = "<Untitled>", Ge = "Start", zi = "Go", he = "Pause",
|
|
|
3759
3784
|
}
|
|
3760
3785
|
},
|
|
3761
3786
|
async fileDialogCallback(t) {
|
|
3762
|
-
let e = "Cancel",
|
|
3787
|
+
let e = "Cancel", o = [];
|
|
3763
3788
|
t != "Cancel" && (e = [], t.forEach((r) => {
|
|
3764
|
-
e.push(r.name),
|
|
3765
|
-
|
|
3789
|
+
e.push(r.name), o.push(
|
|
3790
|
+
O.get(
|
|
3766
3791
|
`/openc3-api/storage/upload/${encodeURIComponent(
|
|
3767
3792
|
`${window.openc3Scope}/tmp/${r.name}`
|
|
3768
3793
|
)}?bucket=OPENC3_CONFIG_BUCKET`
|
|
3769
3794
|
).then((i) => {
|
|
3770
|
-
|
|
3795
|
+
o.push(
|
|
3771
3796
|
gt({
|
|
3772
3797
|
...i.data,
|
|
3773
3798
|
data: r
|
|
@@ -3775,8 +3800,8 @@ const Qe = "__TEMP__", q = "<Untitled>", Ge = "Start", zi = "Go", he = "Pause",
|
|
|
3775
3800
|
);
|
|
3776
3801
|
})
|
|
3777
3802
|
);
|
|
3778
|
-
})), Promise.all(
|
|
3779
|
-
|
|
3803
|
+
})), Promise.all(o).then((r) => {
|
|
3804
|
+
O.post(`/script-api/running-script/${this.scriptId}/prompt`, {
|
|
3780
3805
|
data: {
|
|
3781
3806
|
method: this.file.multiple ? "open_files_dialog" : "open_file_dialog",
|
|
3782
3807
|
answer: e,
|
|
@@ -3894,12 +3919,12 @@ class TestSuite(Suite):
|
|
|
3894
3919
|
`), await this.saveFile("auto"));
|
|
3895
3920
|
},
|
|
3896
3921
|
addToRecent(t) {
|
|
3897
|
-
let e = this.recent.findIndex((
|
|
3922
|
+
let e = this.recent.findIndex((o) => o.label === t);
|
|
3898
3923
|
e !== -1 && this.recent.splice(e, 1), this.recent.unshift({
|
|
3899
3924
|
label: t,
|
|
3900
3925
|
icon: yt(t),
|
|
3901
|
-
command: async (
|
|
3902
|
-
await this.confirmUnsavedChanges() && (this.filename =
|
|
3926
|
+
command: async (o) => {
|
|
3927
|
+
await this.confirmUnsavedChanges() && (this.filename = o.label, await this.reloadFile());
|
|
3903
3928
|
}
|
|
3904
3929
|
}), this.recent.length > 8 && this.recent.pop(), this.inline || (localStorage.script_runner__recent = JSON.stringify(this.recent));
|
|
3905
3930
|
},
|
|
@@ -3913,19 +3938,19 @@ class TestSuite(Suite):
|
|
|
3913
3938
|
this.fileOpen = !0;
|
|
3914
3939
|
},
|
|
3915
3940
|
async reloadFile(t = !0) {
|
|
3916
|
-
this.saveAllowed = !1, this.startOrGoDisabled = !0, await
|
|
3941
|
+
this.saveAllowed = !1, this.startOrGoDisabled = !0, await O.get(`/script-api/scripts/${this.filename}`, {
|
|
3917
3942
|
headers: {
|
|
3918
3943
|
Accept: "application/json",
|
|
3919
3944
|
"Ignore-Errors": "404"
|
|
3920
3945
|
}
|
|
3921
3946
|
}).then((e) => {
|
|
3922
|
-
const
|
|
3947
|
+
const o = {
|
|
3923
3948
|
name: this.filename,
|
|
3924
3949
|
contents: e.data.contents
|
|
3925
3950
|
};
|
|
3926
|
-
e.data.suites && (
|
|
3951
|
+
e.data.suites && (o.suites = JSON.parse(e.data.suites)), e.data.error && (o.error = e.data.error), e.data.success && (o.success = e.data.success);
|
|
3927
3952
|
const r = e.data.locked, i = e.data.breakpoints;
|
|
3928
|
-
this.setFile({ file:
|
|
3953
|
+
this.setFile({ file: o, locked: r, breakpoints: i }, !0), this.saveAllowed = !0;
|
|
3929
3954
|
}).catch((e) => {
|
|
3930
3955
|
t === !0 && this.$notify.caution({
|
|
3931
3956
|
title: "File Open Error",
|
|
@@ -3934,7 +3959,7 @@ class TestSuite(Suite):
|
|
|
3934
3959
|
});
|
|
3935
3960
|
},
|
|
3936
3961
|
// Called by the FileOpenDialog to set the file contents
|
|
3937
|
-
setFile({ file: t, locked: e, breakpoints:
|
|
3962
|
+
setFile({ file: t, locked: e, breakpoints: o }, r = !1) {
|
|
3938
3963
|
this.files = {};
|
|
3939
3964
|
let i = t.name.split("*")[0];
|
|
3940
3965
|
if (r === !1 && this.filename !== i && (this.unlockFile(), this.lockedBy = e), this.filename = i, !this.inline) {
|
|
@@ -3945,10 +3970,10 @@ class TestSuite(Suite):
|
|
|
3945
3970
|
}
|
|
3946
3971
|
}).catch((d) => {
|
|
3947
3972
|
});
|
|
3948
|
-
let
|
|
3949
|
-
document.title = `${
|
|
3973
|
+
let s = this.filename.split("/");
|
|
3974
|
+
document.title = `${s.pop()} (${s.join("/")})`;
|
|
3950
3975
|
}
|
|
3951
|
-
this.filename.split(".").pop() === "py" ? this.editor.session.setMode(this.pythonMode) : this.editor.session.setMode(this.rubyMode), this.currentFilename = null, this.editor.session.setValue(t.contents), this.breakpoints[this.filename] =
|
|
3976
|
+
this.filename.split(".").pop() === "py" ? this.editor.session.setMode(this.pythonMode) : this.editor.session.setMode(this.rubyMode), this.currentFilename = null, this.editor.session.setValue(t.contents), this.breakpoints[this.filename] = o, this.restoreBreakpoints(this.filename), this.fileModified = "", this.envDisabled = !1, this.addToRecent(this.filename), t.suites ? (this.suiteRunner = !0, this.suiteMap = t.suites, this.startOrGoDisabled = !0) : (this.suiteRunner = !1, this.startOrGoDisabled = !1), t.error && (this.suiteError = t.error, this.showSuiteError = !0), this.disableSuiteButtons = t.success == !1, this.doResize();
|
|
3952
3977
|
},
|
|
3953
3978
|
clearTemp() {
|
|
3954
3979
|
this.recent = this.recent.filter(
|
|
@@ -3956,20 +3981,20 @@ class TestSuite(Suite):
|
|
|
3956
3981
|
), this.inline || (localStorage.script_runner__recent = JSON.stringify(this.recent));
|
|
3957
3982
|
},
|
|
3958
3983
|
detectLanguage() {
|
|
3959
|
-
let t = new RegExp("^\\s*(require|load|puts) "), e = new RegExp("^\\s*(import|from) "),
|
|
3984
|
+
let t = new RegExp("^\\s*(require|load|puts) "), e = new RegExp("^\\s*(import|from) "), o = new RegExp("^\\s*end\\s*$"), r = new RegExp(
|
|
3960
3985
|
"^\\s*(if|def|while|else|elif|class).*:\\s*$"
|
|
3961
|
-
), i = /\(f"/,
|
|
3986
|
+
), i = /\(f"/, s = /\(.*\w+:\s+.+\)(?!:)$/, p = this.editor.getValue().split(`
|
|
3962
3987
|
`);
|
|
3963
|
-
for (let c of
|
|
3988
|
+
for (let c of p) {
|
|
3964
3989
|
if (c.match(t))
|
|
3965
3990
|
return "ruby";
|
|
3966
3991
|
if (c.match(e))
|
|
3967
3992
|
return "python";
|
|
3968
|
-
if (c.match(
|
|
3993
|
+
if (c.match(o))
|
|
3969
3994
|
return "ruby";
|
|
3970
3995
|
if (c.match(r) || c.match(i))
|
|
3971
3996
|
return "python";
|
|
3972
|
-
if (c.match(
|
|
3997
|
+
if (c.match(s))
|
|
3973
3998
|
return "ruby";
|
|
3974
3999
|
}
|
|
3975
4000
|
return "unknown";
|
|
@@ -3985,28 +4010,28 @@ class TestSuite(Suite):
|
|
|
3985
4010
|
this.saveAs();
|
|
3986
4011
|
return;
|
|
3987
4012
|
} else if (this.tempFilename === null) {
|
|
3988
|
-
let
|
|
3989
|
-
if (
|
|
3990
|
-
this.tempFilename = Qe + "/" +
|
|
3991
|
-
else if (
|
|
3992
|
-
this.tempFilename = Qe + "/" +
|
|
4013
|
+
let o = this.detectLanguage();
|
|
4014
|
+
if (o === "unknown" && (o = Ee.getDefaultScriptingLanguage()), o === "ruby")
|
|
4015
|
+
this.tempFilename = Qe + "/" + Oe(Date.now(), "yyyy_MM_dd_HH_mm_ss_SSS") + "_temp.rb";
|
|
4016
|
+
else if (o === "python")
|
|
4017
|
+
this.tempFilename = Qe + "/" + Oe(Date.now(), "yyyy_MM_dd_HH_mm_ss_SSS") + "_temp.py";
|
|
3993
4018
|
else
|
|
3994
4019
|
return;
|
|
3995
4020
|
this.filename = this.tempFilename, this.addToRecent(this.filename);
|
|
3996
4021
|
}
|
|
3997
4022
|
}
|
|
3998
|
-
this.showSave = !0, await
|
|
4023
|
+
this.showSave = !0, await O.post(`/script-api/scripts/${this.filename}`, {
|
|
3999
4024
|
data: {
|
|
4000
4025
|
text: this.editor.getValue(),
|
|
4001
4026
|
// Pass in the raw file text
|
|
4002
4027
|
breakpoints: e
|
|
4003
4028
|
}
|
|
4004
|
-
}).then((
|
|
4005
|
-
|
|
4029
|
+
}).then((o) => {
|
|
4030
|
+
o.status == 200 ? (o.data.suites ? (this.startOrGoDisabled = !0, this.suiteRunner = !0, this.suiteMap = JSON.parse(o.data.suites)) : (this.startOrGoDisabled = !1, this.suiteRunner = !1, this.suiteMap = {}), o.data.error && (this.suiteError = o.data.error, this.showSuiteError = !0), this.fileModified = "", setTimeout(() => {
|
|
4006
4031
|
this.showSave = !1;
|
|
4007
|
-
}, 2e3)) : (this.showSave = !1, this.alertType = "error", this.alertText = `Error saving file. Code: ${
|
|
4008
|
-
}).catch(({ response:
|
|
4009
|
-
this.showSave = !1,
|
|
4032
|
+
}, 2e3)) : (this.showSave = !1, this.alertType = "error", this.alertText = `Error saving file. Code: ${o.status} Text: ${o.statusText}`, this.showAlert = !0), this.lockFile(), this.doResize();
|
|
4033
|
+
}).catch(({ response: o }) => {
|
|
4034
|
+
this.showSave = !1, o.status == 422 ? (this.alertType = "error", this.alertText = o.data.suites) : (this.alertType = "error", this.alertText = `Error saving file. Code: ${o.status} Text: ${o.statusText}`), this.showAlert = !0;
|
|
4010
4035
|
});
|
|
4011
4036
|
} else
|
|
4012
4037
|
this.setError("Attempt to save file when not allowed");
|
|
@@ -4015,24 +4040,24 @@ class TestSuite(Suite):
|
|
|
4015
4040
|
this.showSaveAs = !0;
|
|
4016
4041
|
},
|
|
4017
4042
|
async saveAsFilename(t) {
|
|
4018
|
-
this.filename = t.split("*")[0], this.currentFilename = null, this.tempFilename && (
|
|
4043
|
+
this.filename = t.split("*")[0], this.currentFilename = null, this.tempFilename && (O.post(`/script-api/scripts/${this.tempFilename}/delete`), this.tempFilename = null), await this.saveFile("menu");
|
|
4019
4044
|
},
|
|
4020
4045
|
delete() {
|
|
4021
4046
|
let t = this.filename;
|
|
4022
4047
|
this.tempFilename && (t = this.tempFilename), this.$dialog.confirm(`Permanently delete file: ${t}`, {
|
|
4023
4048
|
okText: "Delete",
|
|
4024
4049
|
cancelText: "Cancel"
|
|
4025
|
-
}).then((e) =>
|
|
4050
|
+
}).then((e) => O.post(`/script-api/scripts/${t}/delete`, {
|
|
4026
4051
|
data: {}
|
|
4027
4052
|
})).then((e) => {
|
|
4028
4053
|
this.removeFromRecent(t), this.newFile();
|
|
4029
4054
|
}).catch((e) => {
|
|
4030
4055
|
if (e !== !0) {
|
|
4031
|
-
const
|
|
4056
|
+
const o = {
|
|
4032
4057
|
text: `Failed Multi-Delete. ${e}`,
|
|
4033
4058
|
type: "error"
|
|
4034
4059
|
};
|
|
4035
|
-
this.$emit("alert",
|
|
4060
|
+
this.$emit("alert", o);
|
|
4036
4061
|
}
|
|
4037
4062
|
});
|
|
4038
4063
|
},
|
|
@@ -4044,7 +4069,7 @@ class TestSuite(Suite):
|
|
|
4044
4069
|
},
|
|
4045
4070
|
// ScriptRunner Script menu actions
|
|
4046
4071
|
syntaxCheck() {
|
|
4047
|
-
|
|
4072
|
+
O.post(`/script-api/scripts/${this.filename}/syntax`, {
|
|
4048
4073
|
data: this.editor.getValue(),
|
|
4049
4074
|
headers: {
|
|
4050
4075
|
Accept: "application/json",
|
|
@@ -4055,7 +4080,7 @@ class TestSuite(Suite):
|
|
|
4055
4080
|
});
|
|
4056
4081
|
},
|
|
4057
4082
|
showInstrumented() {
|
|
4058
|
-
|
|
4083
|
+
O.post(`/script-api/scripts/${this.filename}/instrumented`, {
|
|
4059
4084
|
data: this.editor.getValue(),
|
|
4060
4085
|
headers: {
|
|
4061
4086
|
Accept: "application/json",
|
|
@@ -4066,7 +4091,7 @@ class TestSuite(Suite):
|
|
|
4066
4091
|
});
|
|
4067
4092
|
},
|
|
4068
4093
|
showCallStack() {
|
|
4069
|
-
|
|
4094
|
+
O.post(`/script-api/running-script/${this.scriptId}/backtrace`);
|
|
4070
4095
|
},
|
|
4071
4096
|
toggleDebug() {
|
|
4072
4097
|
this.showDebug = !this.showDebug, this.showDebug && this.$nextTick(() => {
|
|
@@ -4077,7 +4102,7 @@ class TestSuite(Suite):
|
|
|
4077
4102
|
this.showDisconnect = !this.showDisconnect;
|
|
4078
4103
|
},
|
|
4079
4104
|
debugKeydown(t) {
|
|
4080
|
-
t.key === "Escape" ? (this.debug = "", this.debugHistoryIndex = this.debugHistory.length) : t.key === "Enter" ? (this.debugHistory.push(this.debug), this.debugHistoryIndex = this.debugHistory.length,
|
|
4105
|
+
t.key === "Escape" ? (this.debug = "", this.debugHistoryIndex = this.debugHistory.length) : t.key === "Enter" ? (this.debugHistory.push(this.debug), this.debugHistoryIndex = this.debugHistory.length, O.post(`/script-api/running-script/${this.scriptId}/debug`, {
|
|
4081
4106
|
data: {
|
|
4082
4107
|
args: this.debug
|
|
4083
4108
|
}
|
|
@@ -4098,10 +4123,10 @@ class TestSuite(Suite):
|
|
|
4098
4123
|
},
|
|
4099
4124
|
lockFile: function() {
|
|
4100
4125
|
if (!this.readOnlyUser)
|
|
4101
|
-
return
|
|
4126
|
+
return O.post(`/script-api/scripts/${this.filename}/lock`);
|
|
4102
4127
|
},
|
|
4103
4128
|
unlockFile: function() {
|
|
4104
|
-
this.filename !== q && !this.readOnly && !this.readOnlyUser &&
|
|
4129
|
+
this.filename !== q && !this.readOnly && !this.readOnlyUser && O.post(`/script-api/scripts/${this.filename}/unlock`);
|
|
4105
4130
|
},
|
|
4106
4131
|
backToNewScript: async function() {
|
|
4107
4132
|
this.scriptDisconnect(), this.removeAllMarkers(), await this.scriptComplete(), this.newFile();
|
|
@@ -4135,22 +4160,22 @@ class TestSuite(Suite):
|
|
|
4135
4160
|
key: 0,
|
|
4136
4161
|
class: "error-message"
|
|
4137
4162
|
}, ts = { class: "flex-grow-1" };
|
|
4138
|
-
function is(t, e,
|
|
4139
|
-
const d = a("top-bar"),
|
|
4140
|
-
return
|
|
4141
|
-
|
|
4142
|
-
|
|
4163
|
+
function is(t, e, o, r, i, s) {
|
|
4164
|
+
const d = a("top-bar"), p = a("v-icon"), c = a("v-btn"), b = a("v-snackbar"), S = a("openc3-screen"), V = a("suite-runner"), w = a("v-tooltip"), R = a("v-select"), E = a("v-text-field"), I = a("v-progress-circular"), _ = a("v-spacer"), D = a("v-badge"), G = a("v-row"), Q = a("v-card-text"), te = a("v-card"), j = a("v-list-item"), ie = a("v-divider"), U = a("v-list"), F = a("v-menu"), ue = a("pane"), X = a("script-log-messages"), Ue = a("splitpanes"), xe = a("v-tab"), De = a("v-tabs"), ce = a("v-col"), Ce = a("v-tabs-window-item"), se = a("v-tabs-window"), Ve = a("file-open-save-dialog"), Pe = a("environment-dialog"), ze = a("ask-dialog"), me = a("file-dialog"), Le = a("information-dialog"), Ae = a("event-list-dialog"), Fe = a("overrides-dialog"), pe = a("prompt-dialog"), N = a("results-dialog"), Be = a("script-environment-dialog"), u = a("simple-text-dialog"), h = a("critical-cmd-dialog"), v = a("v-card-title"), f = a("command-editor"), g = a("v-card-actions"), C = a("v-dialog"), M = a("running-scripts"), A = a("v-sheet"), H = a("v-bottom-sheet");
|
|
4165
|
+
return y(), z(ge, null, [
|
|
4166
|
+
o.inline ? (y(), z("div", Zi, [
|
|
4167
|
+
n(De, {
|
|
4143
4168
|
modelValue: i.inlineTab,
|
|
4144
|
-
"onUpdate:modelValue": e[
|
|
4169
|
+
"onUpdate:modelValue": e[16] || (e[16] = (m) => i.inlineTab = m),
|
|
4145
4170
|
density: "compact"
|
|
4146
4171
|
}, {
|
|
4147
4172
|
default: l(() => [
|
|
4148
|
-
|
|
4173
|
+
n(xe, {
|
|
4149
4174
|
value: "script",
|
|
4150
4175
|
text: "Script",
|
|
4151
4176
|
"data-test": "script-tab"
|
|
4152
4177
|
}),
|
|
4153
|
-
|
|
4178
|
+
n(xe, {
|
|
4154
4179
|
value: "messages",
|
|
4155
4180
|
text: "Messages",
|
|
4156
4181
|
"data-test": "messages-tab"
|
|
@@ -4158,16 +4183,16 @@ function is(t, e, n, r, i, o) {
|
|
|
4158
4183
|
]),
|
|
4159
4184
|
_: 1
|
|
4160
4185
|
}, 8, ["modelValue"]),
|
|
4161
|
-
|
|
4186
|
+
n(se, {
|
|
4162
4187
|
modelValue: i.inlineTab,
|
|
4163
|
-
"onUpdate:modelValue": e[
|
|
4188
|
+
"onUpdate:modelValue": e[19] || (e[19] = (m) => i.inlineTab = m)
|
|
4164
4189
|
}, {
|
|
4165
4190
|
default: l(() => [
|
|
4166
|
-
|
|
4191
|
+
n(Ce, { value: "script" }, {
|
|
4167
4192
|
default: l(() => [
|
|
4168
|
-
|
|
4193
|
+
n(G, null, {
|
|
4169
4194
|
default: l(() => [
|
|
4170
|
-
|
|
4195
|
+
n(ce, {
|
|
4171
4196
|
class: "v-col-10",
|
|
4172
4197
|
style: { margin: "15px 0px 0px 0px", padding: "0px" }
|
|
4173
4198
|
}, {
|
|
@@ -4176,50 +4201,50 @@ function is(t, e, n, r, i, o) {
|
|
|
4176
4201
|
ref: "editor",
|
|
4177
4202
|
class: "editor",
|
|
4178
4203
|
style: { height: "200px" },
|
|
4179
|
-
onContextmenu: e[
|
|
4204
|
+
onContextmenu: e[17] || (e[17] = de((...m) => s.showExecuteSelectionMenu && s.showExecuteSelectionMenu(...m), ["prevent"]))
|
|
4180
4205
|
}, null, 544)
|
|
4181
4206
|
]),
|
|
4182
4207
|
_: 1
|
|
4183
4208
|
}),
|
|
4184
|
-
|
|
4209
|
+
n(ce, {
|
|
4185
4210
|
class: "v-col-2",
|
|
4186
4211
|
style: { display: "flex", "justify-content": "center", "align-items": "center", "background-color": "var(--color-background-surface-default)" }
|
|
4187
4212
|
}, {
|
|
4188
4213
|
default: l(() => [
|
|
4189
|
-
i.startOrGoButton === "Start" ? (
|
|
4190
|
-
|
|
4214
|
+
i.startOrGoButton === "Start" ? (y(), z("div", Xi, [
|
|
4215
|
+
n(c, {
|
|
4191
4216
|
class: "mx-1",
|
|
4192
4217
|
color: "primary",
|
|
4193
4218
|
text: "Start",
|
|
4194
4219
|
"data-test": "start-button",
|
|
4195
4220
|
disabled: i.startOrGoDisabled || !i.executeUser,
|
|
4196
4221
|
hidden: i.suiteRunner,
|
|
4197
|
-
onClick:
|
|
4222
|
+
onClick: s.startHandler
|
|
4198
4223
|
}, null, 8, ["disabled", "hidden", "onClick"])
|
|
4199
|
-
])) : (
|
|
4200
|
-
|
|
4224
|
+
])) : (y(), z("div", Qi, [
|
|
4225
|
+
n(c, {
|
|
4201
4226
|
color: "primary",
|
|
4202
4227
|
class: "ma-2",
|
|
4203
4228
|
text: "Go",
|
|
4204
4229
|
disabled: i.startOrGoDisabled,
|
|
4205
4230
|
"data-test": "go-button",
|
|
4206
|
-
onClick:
|
|
4231
|
+
onClick: s.go
|
|
4207
4232
|
}, null, 8, ["disabled", "onClick"]),
|
|
4208
|
-
|
|
4233
|
+
n(c, {
|
|
4209
4234
|
color: "primary",
|
|
4210
4235
|
class: "ma-2",
|
|
4211
4236
|
text: i.pauseOrRetryButton,
|
|
4212
4237
|
disabled: i.pauseOrRetryDisabled,
|
|
4213
4238
|
"data-test": "pause-retry-button",
|
|
4214
|
-
onClick:
|
|
4239
|
+
onClick: s.pauseOrRetry
|
|
4215
4240
|
}, null, 8, ["text", "disabled", "onClick"]),
|
|
4216
|
-
|
|
4241
|
+
n(c, {
|
|
4217
4242
|
color: "primary",
|
|
4218
4243
|
class: "ma-2",
|
|
4219
4244
|
text: "Stop",
|
|
4220
4245
|
"data-test": "stop-button",
|
|
4221
4246
|
disabled: i.stopDisabled,
|
|
4222
|
-
onClick:
|
|
4247
|
+
onClick: s.stop
|
|
4223
4248
|
}, null, 8, ["disabled", "onClick"])
|
|
4224
4249
|
]))
|
|
4225
4250
|
]),
|
|
@@ -4231,12 +4256,12 @@ function is(t, e, n, r, i, o) {
|
|
|
4231
4256
|
]),
|
|
4232
4257
|
_: 1
|
|
4233
4258
|
}),
|
|
4234
|
-
|
|
4259
|
+
n(Ce, { value: "messages" }, {
|
|
4235
4260
|
default: l(() => [
|
|
4236
4261
|
x("div", $i, [
|
|
4237
|
-
|
|
4262
|
+
n(X, {
|
|
4238
4263
|
modelValue: i.messages,
|
|
4239
|
-
"onUpdate:modelValue": e[
|
|
4264
|
+
"onUpdate:modelValue": e[18] || (e[18] = (m) => i.messages = m),
|
|
4240
4265
|
"newest-on-top": i.messagesNewestOnTop,
|
|
4241
4266
|
onMessageOrderChanged: t.messageOrderChanged
|
|
4242
4267
|
}, null, 8, ["modelValue", "newest-on-top", "onMessageOrderChanged"])
|
|
@@ -4247,18 +4272,18 @@ function is(t, e, n, r, i, o) {
|
|
|
4247
4272
|
]),
|
|
4248
4273
|
_: 1
|
|
4249
4274
|
}, 8, ["modelValue"])
|
|
4250
|
-
])) : (
|
|
4275
|
+
])) : (y(), z("div", {
|
|
4251
4276
|
key: 0,
|
|
4252
4277
|
class: "d-flex flex-column overflow-hidden",
|
|
4253
4278
|
style: fe({
|
|
4254
4279
|
height: r.containerHeight
|
|
4255
4280
|
})
|
|
4256
4281
|
}, [
|
|
4257
|
-
|
|
4258
|
-
menus:
|
|
4282
|
+
n(d, {
|
|
4283
|
+
menus: s.menus,
|
|
4259
4284
|
title: i.title
|
|
4260
4285
|
}, null, 8, ["menus", "title"]),
|
|
4261
|
-
|
|
4286
|
+
n(b, {
|
|
4262
4287
|
modelValue: i.showAlert,
|
|
4263
4288
|
"onUpdate:modelValue": e[1] || (e[1] = (m) => i.showAlert = m),
|
|
4264
4289
|
absolute: "",
|
|
@@ -4268,25 +4293,25 @@ function is(t, e, n, r, i, o) {
|
|
|
4268
4293
|
style: fe(t.classificationStyles)
|
|
4269
4294
|
}, {
|
|
4270
4295
|
actions: l(({ attrs: m }) => [
|
|
4271
|
-
|
|
4296
|
+
n(c, Y({
|
|
4272
4297
|
variant: "text",
|
|
4273
4298
|
text: "Close"
|
|
4274
4299
|
}, m, {
|
|
4275
|
-
onClick: e[0] || (e[0] = (
|
|
4300
|
+
onClick: e[0] || (e[0] = (W) => i.showAlert = !1)
|
|
4276
4301
|
}), null, 16)
|
|
4277
4302
|
]),
|
|
4278
4303
|
default: l(() => [
|
|
4279
|
-
|
|
4304
|
+
n(p, null, {
|
|
4280
4305
|
default: l(() => [
|
|
4281
|
-
|
|
4306
|
+
k(" mdi-" + L(i.alertType), 1)
|
|
4282
4307
|
]),
|
|
4283
4308
|
_: 1
|
|
4284
4309
|
}),
|
|
4285
|
-
|
|
4310
|
+
k(" " + L(i.alertText) + " ", 1)
|
|
4286
4311
|
]),
|
|
4287
4312
|
_: 1
|
|
4288
4313
|
}, 8, ["modelValue", "color", "style"]),
|
|
4289
|
-
|
|
4314
|
+
n(b, {
|
|
4290
4315
|
modelValue: i.showEditingToast,
|
|
4291
4316
|
"onUpdate:modelValue": e[3] || (e[3] = (m) => i.showEditingToast = m),
|
|
4292
4317
|
absolute: "",
|
|
@@ -4296,13 +4321,13 @@ function is(t, e, n, r, i, o) {
|
|
|
4296
4321
|
color: "orange"
|
|
4297
4322
|
}, {
|
|
4298
4323
|
actions: l(({ attrs: m }) => [
|
|
4299
|
-
|
|
4324
|
+
n(c, Y({ variant: "text" }, m, {
|
|
4300
4325
|
color: "danger",
|
|
4301
4326
|
text: "Unlock",
|
|
4302
4327
|
"data-test": "unlock-button",
|
|
4303
|
-
onClick:
|
|
4328
|
+
onClick: s.confirmLocalUnlock
|
|
4304
4329
|
}), null, 16, ["onClick"]),
|
|
4305
|
-
|
|
4330
|
+
n(c, Y({
|
|
4306
4331
|
variant: "text",
|
|
4307
4332
|
text: "Dismiss"
|
|
4308
4333
|
}, m, {
|
|
@@ -4312,26 +4337,26 @@ function is(t, e, n, r, i, o) {
|
|
|
4312
4337
|
}), null, 16)
|
|
4313
4338
|
]),
|
|
4314
4339
|
default: l(() => [
|
|
4315
|
-
|
|
4316
|
-
default: l(() => [...e[
|
|
4317
|
-
|
|
4340
|
+
n(p, null, {
|
|
4341
|
+
default: l(() => [...e[45] || (e[45] = [
|
|
4342
|
+
k(" mdi-pencil-off ", -1)
|
|
4318
4343
|
])]),
|
|
4319
4344
|
_: 1
|
|
4320
4345
|
}),
|
|
4321
|
-
|
|
4346
|
+
k(" " + L(i.lockedBy) + " is editing this script. Editor is in read-only mode ", 1)
|
|
4322
4347
|
]),
|
|
4323
4348
|
_: 1
|
|
4324
4349
|
}, 8, ["modelValue", "style"]),
|
|
4325
4350
|
x("div", Fi, [
|
|
4326
|
-
(
|
|
4327
|
-
id:
|
|
4351
|
+
(y(!0), z(ge, null, je(i.screens, (m) => (y(), z("div", {
|
|
4352
|
+
id: s.screenId(m.id),
|
|
4328
4353
|
key: m.id,
|
|
4329
4354
|
ref_for: !0,
|
|
4330
4355
|
ref: "gridItem",
|
|
4331
4356
|
class: "item"
|
|
4332
4357
|
}, [
|
|
4333
4358
|
x("div", Ni, [
|
|
4334
|
-
|
|
4359
|
+
n(S, {
|
|
4335
4360
|
target: m.target,
|
|
4336
4361
|
screen: m.screen,
|
|
4337
4362
|
definition: m.definition,
|
|
@@ -4343,83 +4368,83 @@ function is(t, e, n, r, i, o) {
|
|
|
4343
4368
|
"min-z": 3,
|
|
4344
4369
|
"fix-floated": !0,
|
|
4345
4370
|
count: m.count,
|
|
4346
|
-
onCloseScreen: (
|
|
4347
|
-
onDeleteScreen: (
|
|
4371
|
+
onCloseScreen: (W) => s.closeScreen(m.id),
|
|
4372
|
+
onDeleteScreen: (W) => s.closeScreen(m.id)
|
|
4348
4373
|
}, null, 8, ["target", "screen", "definition", "keywords", "initial-top", "initial-left", "count", "onCloseScreen", "onDeleteScreen"])
|
|
4349
4374
|
])
|
|
4350
4375
|
], 8, Bi))), 128))
|
|
4351
4376
|
]),
|
|
4352
|
-
|
|
4377
|
+
n(te, { class: "flex-shrink-0" }, {
|
|
4353
4378
|
default: l(() => [
|
|
4354
|
-
|
|
4379
|
+
n(Q, null, {
|
|
4355
4380
|
default: l(() => [
|
|
4356
|
-
i.suiteRunner ? (
|
|
4381
|
+
i.suiteRunner ? (y(), T(V, {
|
|
4357
4382
|
key: 0,
|
|
4358
4383
|
class: "suite-runner",
|
|
4359
4384
|
"suite-map": i.suiteMap,
|
|
4360
4385
|
"disable-buttons": i.disableSuiteButtons,
|
|
4361
|
-
filename:
|
|
4362
|
-
onButton:
|
|
4363
|
-
onLoaded:
|
|
4364
|
-
}, null, 8, ["suite-map", "disable-buttons", "filename", "onButton", "onLoaded"])) :
|
|
4386
|
+
filename: s.fullFilename,
|
|
4387
|
+
onButton: s.suiteRunnerButton,
|
|
4388
|
+
onLoaded: s.doResize
|
|
4389
|
+
}, null, 8, ["suite-map", "disable-buttons", "filename", "onButton", "onLoaded"])) : P("", !0),
|
|
4365
4390
|
x("div", Hi, [
|
|
4366
|
-
|
|
4391
|
+
n(G, {
|
|
4367
4392
|
"no-gutters": "",
|
|
4368
4393
|
justify: "space-between"
|
|
4369
4394
|
}, {
|
|
4370
4395
|
default: l(() => [
|
|
4371
|
-
i.showDisconnect ? (
|
|
4396
|
+
i.showDisconnect ? (y(), T(p, {
|
|
4372
4397
|
key: 0,
|
|
4373
4398
|
class: "mt-2",
|
|
4374
4399
|
color: "red"
|
|
4375
4400
|
}, {
|
|
4376
|
-
default: l(() => [...e[
|
|
4377
|
-
|
|
4401
|
+
default: l(() => [...e[46] || (e[46] = [
|
|
4402
|
+
k(" mdi-connection ", -1)
|
|
4378
4403
|
])]),
|
|
4379
4404
|
_: 1
|
|
4380
|
-
})) :
|
|
4405
|
+
})) : P("", !0),
|
|
4381
4406
|
x("div", Gi, [
|
|
4382
|
-
|
|
4407
|
+
n(w, {
|
|
4383
4408
|
"open-delay": 600,
|
|
4384
4409
|
location: "top"
|
|
4385
4410
|
}, {
|
|
4386
4411
|
activator: l(({ props: m }) => [
|
|
4387
|
-
i.scriptId ? (
|
|
4412
|
+
i.scriptId ? (y(), T(c, Y({ key: 1 }, m, {
|
|
4388
4413
|
icon: "mdi-arrow-left",
|
|
4389
4414
|
variant: "text",
|
|
4390
4415
|
density: "compact",
|
|
4391
|
-
onClick:
|
|
4392
|
-
}), null, 16, ["onClick"])) : (
|
|
4416
|
+
onClick: s.backToNewScript
|
|
4417
|
+
}), null, 16, ["onClick"])) : (y(), T(c, Y({ key: 0 }, m, {
|
|
4393
4418
|
icon: "mdi-cached",
|
|
4394
4419
|
variant: "text",
|
|
4395
4420
|
density: "compact",
|
|
4396
4421
|
disabled: i.filename === t.NEW_FILENAME,
|
|
4397
4422
|
"aria-label": "Reload File",
|
|
4398
|
-
onClick:
|
|
4423
|
+
onClick: s.reloadFile
|
|
4399
4424
|
}), null, 16, ["disabled", "onClick"]))
|
|
4400
4425
|
]),
|
|
4401
4426
|
default: l(() => [
|
|
4402
|
-
i.scriptId ? (
|
|
4427
|
+
i.scriptId ? (y(), z("span", Ki, " Back to New Script ")) : (y(), z("span", qi, " Reload File "))
|
|
4403
4428
|
]),
|
|
4404
4429
|
_: 1
|
|
4405
4430
|
})
|
|
4406
4431
|
]),
|
|
4407
|
-
|
|
4432
|
+
n(w, {
|
|
4408
4433
|
location: "bottom",
|
|
4409
4434
|
text: i.filenameSelect,
|
|
4410
4435
|
disabled: !i.filenameSelect || i.filenameSelect.length <= 45
|
|
4411
4436
|
}, {
|
|
4412
4437
|
activator: l(({ props: m }) => [
|
|
4413
|
-
x("div",
|
|
4414
|
-
|
|
4438
|
+
x("div", Y(m, { style: { width: "32rem" } }), [
|
|
4439
|
+
n(R, {
|
|
4415
4440
|
id: "filename",
|
|
4416
4441
|
modelValue: i.filenameSelect,
|
|
4417
4442
|
"onUpdate:modelValue": [
|
|
4418
|
-
e[4] || (e[4] = (
|
|
4419
|
-
|
|
4443
|
+
e[4] || (e[4] = (W) => i.filenameSelect = W),
|
|
4444
|
+
s.fileNameChanged
|
|
4420
4445
|
],
|
|
4421
|
-
items:
|
|
4422
|
-
disabled:
|
|
4446
|
+
items: s.fileList,
|
|
4447
|
+
disabled: s.fileList.length <= 1,
|
|
4423
4448
|
label: "Filename",
|
|
4424
4449
|
"data-test": "filename",
|
|
4425
4450
|
density: "compact",
|
|
@@ -4430,7 +4455,7 @@ function is(t, e, n, r, i, o) {
|
|
|
4430
4455
|
]),
|
|
4431
4456
|
_: 1
|
|
4432
4457
|
}, 8, ["text", "disabled"]),
|
|
4433
|
-
|
|
4458
|
+
n(E, {
|
|
4434
4459
|
modelValue: i.scriptId,
|
|
4435
4460
|
"onUpdate:modelValue": e[5] || (e[5] = (m) => i.scriptId = m),
|
|
4436
4461
|
label: "Script ID",
|
|
@@ -4442,33 +4467,68 @@ function is(t, e, n, r, i, o) {
|
|
|
4442
4467
|
readonly: "",
|
|
4443
4468
|
"hide-details": ""
|
|
4444
4469
|
}, null, 8, ["modelValue"]),
|
|
4445
|
-
|
|
4446
|
-
modelValue:
|
|
4447
|
-
"onUpdate:modelValue": e[6] || (e[6] = (m) =>
|
|
4470
|
+
n(E, {
|
|
4471
|
+
modelValue: s.stateTimer,
|
|
4472
|
+
"onUpdate:modelValue": e[6] || (e[6] = (m) => s.stateTimer = m),
|
|
4448
4473
|
label: "Script State",
|
|
4449
4474
|
"data-test": "state",
|
|
4450
|
-
class: Ke(["shrink", "ml-2", "script-state",
|
|
4475
|
+
class: Ke(["shrink", "ml-2", "script-state", s.stateColorClass]),
|
|
4451
4476
|
style: { "max-width": "120px" },
|
|
4452
4477
|
density: "compact",
|
|
4453
4478
|
variant: "outlined",
|
|
4454
4479
|
readonly: "",
|
|
4455
4480
|
"hide-details": ""
|
|
4456
4481
|
}, null, 8, ["modelValue", "class"]),
|
|
4457
|
-
i.state === "Connecting..." ? (
|
|
4482
|
+
i.state === "Connecting..." ? (y(), T(I, {
|
|
4458
4483
|
key: 1,
|
|
4459
4484
|
size: 40,
|
|
4460
4485
|
class: "mx-2",
|
|
4461
4486
|
indeterminate: "",
|
|
4462
4487
|
color: "primary"
|
|
4463
|
-
})) : (
|
|
4464
|
-
|
|
4465
|
-
i.startOrGoButton === "Start" ? (
|
|
4466
|
-
|
|
4488
|
+
})) : (y(), z("div", ji)),
|
|
4489
|
+
n(_),
|
|
4490
|
+
i.startOrGoButton === "Start" ? (y(), z("div", Wi, [
|
|
4491
|
+
i.overridesCount > 0 ? (y(), T(w, {
|
|
4492
|
+
key: 0,
|
|
4493
|
+
"open-delay": 600,
|
|
4494
|
+
location: "top"
|
|
4495
|
+
}, {
|
|
4496
|
+
activator: l(({ props: m }) => [
|
|
4497
|
+
n(c, Y(m, {
|
|
4498
|
+
class: "mr-4",
|
|
4499
|
+
icon: "",
|
|
4500
|
+
variant: "text",
|
|
4501
|
+
density: "compact",
|
|
4502
|
+
"data-test": "tlm-override-button",
|
|
4503
|
+
"aria-label": "TLM Overrides",
|
|
4504
|
+
onClick: e[7] || (e[7] = (W) => i.showOverrides = !i.showOverrides)
|
|
4505
|
+
}), {
|
|
4506
|
+
default: l(() => [
|
|
4507
|
+
n(D, {
|
|
4508
|
+
content: i.overridesCount > 99 ? "99+" : i.overridesCount,
|
|
4509
|
+
floating: "",
|
|
4510
|
+
color: "primary"
|
|
4511
|
+
}, {
|
|
4512
|
+
default: l(() => [
|
|
4513
|
+
n(p, { icon: "mdi-application-cog-outline" })
|
|
4514
|
+
]),
|
|
4515
|
+
_: 1
|
|
4516
|
+
}, 8, ["content"])
|
|
4517
|
+
]),
|
|
4518
|
+
_: 1
|
|
4519
|
+
}, 16)
|
|
4520
|
+
]),
|
|
4521
|
+
default: l(() => [
|
|
4522
|
+
x("span", null, " TLM Overrides (" + L(i.overridesCount) + ") ", 1)
|
|
4523
|
+
]),
|
|
4524
|
+
_: 1
|
|
4525
|
+
})) : P("", !0),
|
|
4526
|
+
n(w, {
|
|
4467
4527
|
"open-delay": 600,
|
|
4468
4528
|
location: "top"
|
|
4469
4529
|
}, {
|
|
4470
4530
|
activator: l(({ props: m }) => [
|
|
4471
|
-
|
|
4531
|
+
n(c, Y(m, {
|
|
4472
4532
|
class: "mr-2",
|
|
4473
4533
|
icon: "",
|
|
4474
4534
|
variant: "text",
|
|
@@ -4476,17 +4536,17 @@ function is(t, e, n, r, i, o) {
|
|
|
4476
4536
|
disabled: i.envDisabled,
|
|
4477
4537
|
"data-test": "env-button",
|
|
4478
4538
|
"aria-label": "Script Environment",
|
|
4479
|
-
onClick: e[
|
|
4539
|
+
onClick: e[9] || (e[9] = (W) => i.scriptEnvironment.show = !i.scriptEnvironment.show)
|
|
4480
4540
|
}), {
|
|
4481
4541
|
default: l(() => [
|
|
4482
|
-
|
|
4483
|
-
modelValue:
|
|
4484
|
-
"onUpdate:modelValue": e[
|
|
4542
|
+
n(D, {
|
|
4543
|
+
modelValue: s.environmentModified,
|
|
4544
|
+
"onUpdate:modelValue": e[8] || (e[8] = (W) => s.environmentModified = W),
|
|
4485
4545
|
floating: "",
|
|
4486
4546
|
dot: ""
|
|
4487
4547
|
}, {
|
|
4488
4548
|
default: l(() => [
|
|
4489
|
-
|
|
4549
|
+
n(p, { icon: "mdi-application-variable" })
|
|
4490
4550
|
]),
|
|
4491
4551
|
_: 1
|
|
4492
4552
|
}, 8, ["modelValue"])
|
|
@@ -4496,46 +4556,46 @@ function is(t, e, n, r, i, o) {
|
|
|
4496
4556
|
]),
|
|
4497
4557
|
default: l(() => [
|
|
4498
4558
|
x("span", null, [
|
|
4499
|
-
e[
|
|
4500
|
-
|
|
4501
|
-
|
|
4502
|
-
], 64)) :
|
|
4559
|
+
e[47] || (e[47] = k(" Script Environment ", -1)),
|
|
4560
|
+
s.environmentModified ? (y(), z(ge, { key: 0 }, [
|
|
4561
|
+
k(" (modified) ")
|
|
4562
|
+
], 64)) : P("", !0)
|
|
4503
4563
|
])
|
|
4504
4564
|
]),
|
|
4505
4565
|
_: 1
|
|
4506
4566
|
}),
|
|
4507
|
-
|
|
4567
|
+
n(c, {
|
|
4508
4568
|
class: "mx-1",
|
|
4509
4569
|
color: "primary",
|
|
4510
4570
|
text: "Start",
|
|
4511
4571
|
"data-test": "start-button",
|
|
4512
4572
|
disabled: i.startOrGoDisabled || !i.executeUser,
|
|
4513
4573
|
hidden: i.suiteRunner,
|
|
4514
|
-
onClick:
|
|
4574
|
+
onClick: s.startHandler
|
|
4515
4575
|
}, null, 8, ["disabled", "hidden", "onClick"])
|
|
4516
|
-
])) : (
|
|
4517
|
-
|
|
4576
|
+
])) : (y(), z("div", Ji, [
|
|
4577
|
+
n(c, {
|
|
4518
4578
|
color: "primary",
|
|
4519
4579
|
class: "mr-2",
|
|
4520
4580
|
text: "Go",
|
|
4521
4581
|
disabled: i.startOrGoDisabled,
|
|
4522
4582
|
"data-test": "go-button",
|
|
4523
|
-
onClick:
|
|
4583
|
+
onClick: s.go
|
|
4524
4584
|
}, null, 8, ["disabled", "onClick"]),
|
|
4525
|
-
|
|
4585
|
+
n(c, {
|
|
4526
4586
|
color: "primary",
|
|
4527
4587
|
class: "mr-2",
|
|
4528
4588
|
text: i.pauseOrRetryButton,
|
|
4529
4589
|
disabled: i.pauseOrRetryDisabled,
|
|
4530
4590
|
"data-test": "pause-retry-button",
|
|
4531
|
-
onClick:
|
|
4591
|
+
onClick: s.pauseOrRetry
|
|
4532
4592
|
}, null, 8, ["text", "disabled", "onClick"]),
|
|
4533
|
-
|
|
4593
|
+
n(c, {
|
|
4534
4594
|
color: "primary",
|
|
4535
4595
|
text: "Stop",
|
|
4536
4596
|
"data-test": "stop-button",
|
|
4537
4597
|
disabled: i.stopDisabled,
|
|
4538
|
-
onClick:
|
|
4598
|
+
onClick: s.stop
|
|
4539
4599
|
}, null, 8, ["disabled", "onClick"])
|
|
4540
4600
|
]))
|
|
4541
4601
|
]),
|
|
@@ -4548,73 +4608,73 @@ function is(t, e, n, r, i, o) {
|
|
|
4548
4608
|
]),
|
|
4549
4609
|
_: 1
|
|
4550
4610
|
}),
|
|
4551
|
-
|
|
4611
|
+
n(Ue, {
|
|
4552
4612
|
horizontal: "",
|
|
4553
4613
|
class: "flex-grow-1 overflow-hidden",
|
|
4554
|
-
onResize: e[
|
|
4614
|
+
onResize: e[15] || (e[15] = ({ prevPane: m }) => i.editorBoxSize = m.size)
|
|
4555
4615
|
}, {
|
|
4556
4616
|
default: l(() => [
|
|
4557
|
-
|
|
4617
|
+
n(ue, {
|
|
4558
4618
|
class: "editorbox",
|
|
4559
4619
|
size: i.editorBoxSize
|
|
4560
4620
|
}, {
|
|
4561
4621
|
default: l(() => [
|
|
4562
|
-
|
|
4622
|
+
n(b, {
|
|
4563
4623
|
modelValue: i.showSave,
|
|
4564
|
-
"onUpdate:modelValue": e[
|
|
4624
|
+
"onUpdate:modelValue": e[10] || (e[10] = (m) => i.showSave = m),
|
|
4565
4625
|
absolute: "",
|
|
4566
4626
|
location: "right",
|
|
4567
4627
|
timeout: -1,
|
|
4568
4628
|
class: "saving apply-top",
|
|
4569
4629
|
style: fe(t.classificationStyles)
|
|
4570
4630
|
}, {
|
|
4571
|
-
default: l(() => [...e[
|
|
4572
|
-
|
|
4631
|
+
default: l(() => [...e[48] || (e[48] = [
|
|
4632
|
+
k(" Saving... ", -1)
|
|
4573
4633
|
])]),
|
|
4574
4634
|
_: 1
|
|
4575
4635
|
}, 8, ["modelValue", "style"]),
|
|
4576
4636
|
x("pre", {
|
|
4577
4637
|
ref: "editor",
|
|
4578
4638
|
class: "editor",
|
|
4579
|
-
onContextmenu: e[
|
|
4639
|
+
onContextmenu: e[11] || (e[11] = de((...m) => s.showExecuteSelectionMenu && s.showExecuteSelectionMenu(...m), ["prevent"]))
|
|
4580
4640
|
}, null, 544),
|
|
4581
|
-
|
|
4641
|
+
n(F, {
|
|
4582
4642
|
modelValue: i.executeSelectionMenu,
|
|
4583
|
-
"onUpdate:modelValue": e[
|
|
4643
|
+
"onUpdate:modelValue": e[12] || (e[12] = (m) => i.executeSelectionMenu = m),
|
|
4584
4644
|
target: [i.menuX, i.menuY]
|
|
4585
4645
|
}, {
|
|
4586
4646
|
default: l(() => [
|
|
4587
|
-
|
|
4647
|
+
n(U, null, {
|
|
4588
4648
|
default: l(() => [
|
|
4589
|
-
|
|
4649
|
+
n(j, {
|
|
4590
4650
|
title: i.currentLineHasCommand ? "Edit Command" : "Insert Command",
|
|
4591
|
-
onClick:
|
|
4651
|
+
onClick: s.openCommandEditor
|
|
4592
4652
|
}, null, 8, ["title", "onClick"]),
|
|
4593
|
-
|
|
4594
|
-
|
|
4653
|
+
n(ie),
|
|
4654
|
+
n(j, {
|
|
4595
4655
|
title: "Execute Selection",
|
|
4596
|
-
onClick:
|
|
4656
|
+
onClick: s.executeSelection
|
|
4597
4657
|
}, null, 8, ["onClick"]),
|
|
4598
|
-
i.scriptId ? (
|
|
4658
|
+
i.scriptId ? (y(), T(j, {
|
|
4599
4659
|
key: 0,
|
|
4600
4660
|
title: "Goto Line",
|
|
4601
|
-
onClick:
|
|
4602
|
-
}, null, 8, ["onClick"])) :
|
|
4603
|
-
i.scriptId ?
|
|
4661
|
+
onClick: s.runFromCursor
|
|
4662
|
+
}, null, 8, ["onClick"])) : P("", !0),
|
|
4663
|
+
i.scriptId ? P("", !0) : (y(), T(j, {
|
|
4604
4664
|
key: 1,
|
|
4605
4665
|
title: "Run From Line",
|
|
4606
|
-
onClick:
|
|
4666
|
+
onClick: s.runFromCursor
|
|
4607
4667
|
}, null, 8, ["onClick"])),
|
|
4608
|
-
i.scriptId ?
|
|
4668
|
+
i.scriptId ? P("", !0) : (y(), T(j, {
|
|
4609
4669
|
key: 2,
|
|
4610
4670
|
title: "Clear Local Breakpoints",
|
|
4611
|
-
onClick:
|
|
4671
|
+
onClick: s.clearBreakpoints
|
|
4612
4672
|
}, null, 8, ["onClick"])),
|
|
4613
|
-
|
|
4614
|
-
|
|
4673
|
+
n(ie),
|
|
4674
|
+
n(j, {
|
|
4615
4675
|
title: "Toggle Vim mode",
|
|
4616
4676
|
"prepend-icon": "extras:vim",
|
|
4617
|
-
onClick:
|
|
4677
|
+
onClick: s.toggleVimMode
|
|
4618
4678
|
}, null, 8, ["onClick"])
|
|
4619
4679
|
]),
|
|
4620
4680
|
_: 1
|
|
@@ -4625,16 +4685,16 @@ function is(t, e, n, r, i, o) {
|
|
|
4625
4685
|
]),
|
|
4626
4686
|
_: 1
|
|
4627
4687
|
}, 8, ["size"]),
|
|
4628
|
-
|
|
4688
|
+
n(ue, {
|
|
4629
4689
|
id: "messages",
|
|
4630
4690
|
class: "mt-2",
|
|
4631
4691
|
size: 100 - i.editorBoxSize
|
|
4632
4692
|
}, {
|
|
4633
4693
|
default: l(() => [
|
|
4634
|
-
i.showDebug ? (
|
|
4635
|
-
|
|
4694
|
+
i.showDebug ? (y(), z("div", Yi, [
|
|
4695
|
+
n(G, { "no-gutters": "" }, {
|
|
4636
4696
|
default: l(() => [
|
|
4637
|
-
|
|
4697
|
+
n(c, {
|
|
4638
4698
|
color: "primary",
|
|
4639
4699
|
style: { width: "100px" },
|
|
4640
4700
|
class: "mr-4",
|
|
@@ -4642,29 +4702,29 @@ function is(t, e, n, r, i, o) {
|
|
|
4642
4702
|
"append-icon": "mdi-step-forward",
|
|
4643
4703
|
disabled: !i.scriptId,
|
|
4644
4704
|
"data-test": "step-button",
|
|
4645
|
-
onClick:
|
|
4705
|
+
onClick: s.step
|
|
4646
4706
|
}, null, 8, ["disabled", "onClick"]),
|
|
4647
|
-
|
|
4707
|
+
n(E, {
|
|
4648
4708
|
ref: "debug",
|
|
4649
4709
|
modelValue: i.debug,
|
|
4650
|
-
"onUpdate:modelValue": e[
|
|
4710
|
+
"onUpdate:modelValue": e[13] || (e[13] = (m) => i.debug = m),
|
|
4651
4711
|
class: "mb-2",
|
|
4652
4712
|
variant: "outlined",
|
|
4653
4713
|
density: "compact",
|
|
4654
4714
|
"hide-details": "",
|
|
4655
4715
|
label: "Debug",
|
|
4656
4716
|
"data-test": "debug-text",
|
|
4657
|
-
onKeydown:
|
|
4717
|
+
onKeydown: s.debugKeydown
|
|
4658
4718
|
}, null, 8, ["modelValue", "onKeydown"])
|
|
4659
4719
|
]),
|
|
4660
4720
|
_: 1
|
|
4661
4721
|
})
|
|
4662
|
-
])) :
|
|
4663
|
-
|
|
4722
|
+
])) : P("", !0),
|
|
4723
|
+
n(X, {
|
|
4664
4724
|
id: "log-messages",
|
|
4665
4725
|
modelValue: i.messages,
|
|
4666
|
-
"onUpdate:modelValue": e[
|
|
4667
|
-
onSort:
|
|
4726
|
+
"onUpdate:modelValue": e[14] || (e[14] = (m) => i.messages = m),
|
|
4727
|
+
onSort: s.messageSortOrder
|
|
4668
4728
|
}, null, 8, ["modelValue", "onSort"])
|
|
4669
4729
|
]),
|
|
4670
4730
|
_: 1
|
|
@@ -4673,79 +4733,79 @@ function is(t, e, n, r, i, o) {
|
|
|
4673
4733
|
_: 1
|
|
4674
4734
|
})
|
|
4675
4735
|
], 4)),
|
|
4676
|
-
i.fileOpen ? (
|
|
4736
|
+
i.fileOpen ? (y(), T(Ve, {
|
|
4677
4737
|
key: 2,
|
|
4678
4738
|
modelValue: i.fileOpen,
|
|
4679
|
-
"onUpdate:modelValue": e[
|
|
4739
|
+
"onUpdate:modelValue": e[20] || (e[20] = (m) => i.fileOpen = m),
|
|
4680
4740
|
type: "open",
|
|
4681
4741
|
"api-url": "/script-api/scripts",
|
|
4682
|
-
onFile: e[
|
|
4683
|
-
onError: e[
|
|
4684
|
-
onClearTemp: e[
|
|
4685
|
-
}, null, 8, ["modelValue"])) :
|
|
4686
|
-
i.showSaveAs ? (
|
|
4742
|
+
onFile: e[21] || (e[21] = (m) => s.setFile(m)),
|
|
4743
|
+
onError: e[22] || (e[22] = (m) => s.setError(m)),
|
|
4744
|
+
onClearTemp: e[23] || (e[23] = (m) => s.clearTemp(m))
|
|
4745
|
+
}, null, 8, ["modelValue"])) : P("", !0),
|
|
4746
|
+
i.showSaveAs ? (y(), T(Ve, {
|
|
4687
4747
|
key: 3,
|
|
4688
4748
|
modelValue: i.showSaveAs,
|
|
4689
|
-
"onUpdate:modelValue": e[
|
|
4749
|
+
"onUpdate:modelValue": e[24] || (e[24] = (m) => i.showSaveAs = m),
|
|
4690
4750
|
type: "save",
|
|
4691
4751
|
"api-url": "/script-api/scripts",
|
|
4692
4752
|
"require-target-parent-dir": "",
|
|
4693
|
-
"input-filename":
|
|
4694
|
-
onFilename: e[
|
|
4695
|
-
onError: e[
|
|
4696
|
-
onClearTemp: e[
|
|
4697
|
-
}, null, 8, ["modelValue", "input-filename"])) :
|
|
4698
|
-
i.showEnvironment ? (
|
|
4753
|
+
"input-filename": s.filenameOrBlank,
|
|
4754
|
+
onFilename: e[25] || (e[25] = (m) => s.saveAsFilename(m)),
|
|
4755
|
+
onError: e[26] || (e[26] = (m) => s.setError(m)),
|
|
4756
|
+
onClearTemp: e[27] || (e[27] = (m) => s.clearTemp(m))
|
|
4757
|
+
}, null, 8, ["modelValue", "input-filename"])) : P("", !0),
|
|
4758
|
+
i.showEnvironment ? (y(), T(Pe, {
|
|
4699
4759
|
key: 4,
|
|
4700
4760
|
modelValue: i.showEnvironment,
|
|
4701
|
-
"onUpdate:modelValue": e[
|
|
4702
|
-
}, null, 8, ["modelValue"])) :
|
|
4703
|
-
i.ask.show ? (
|
|
4761
|
+
"onUpdate:modelValue": e[28] || (e[28] = (m) => i.showEnvironment = m)
|
|
4762
|
+
}, null, 8, ["modelValue"])) : P("", !0),
|
|
4763
|
+
i.ask.show ? (y(), T(ze, {
|
|
4704
4764
|
key: 5,
|
|
4705
4765
|
modelValue: i.ask.show,
|
|
4706
|
-
"onUpdate:modelValue": e[
|
|
4766
|
+
"onUpdate:modelValue": e[29] || (e[29] = (m) => i.ask.show = m),
|
|
4707
4767
|
question: i.ask.question,
|
|
4708
4768
|
default: i.ask.default,
|
|
4709
4769
|
password: i.ask.password,
|
|
4710
4770
|
"answer-required": i.ask.answerRequired,
|
|
4711
4771
|
onResponse: i.ask.callback
|
|
4712
|
-
}, null, 8, ["modelValue", "question", "default", "password", "answer-required", "onResponse"])) :
|
|
4713
|
-
i.file.show ? (
|
|
4772
|
+
}, null, 8, ["modelValue", "question", "default", "password", "answer-required", "onResponse"])) : P("", !0),
|
|
4773
|
+
i.file.show ? (y(), T(me, {
|
|
4714
4774
|
key: 6,
|
|
4715
4775
|
modelValue: i.file.show,
|
|
4716
|
-
"onUpdate:modelValue": e[
|
|
4776
|
+
"onUpdate:modelValue": e[30] || (e[30] = (m) => i.file.show = m),
|
|
4717
4777
|
title: i.file.title,
|
|
4718
4778
|
message: i.file.message,
|
|
4719
4779
|
multiple: i.file.multiple,
|
|
4720
4780
|
filter: i.file.filter,
|
|
4721
|
-
onResponse:
|
|
4722
|
-
}, null, 8, ["modelValue", "title", "message", "multiple", "filter", "onResponse"])) :
|
|
4723
|
-
i.information.show ? (
|
|
4781
|
+
onResponse: s.fileDialogCallback
|
|
4782
|
+
}, null, 8, ["modelValue", "title", "message", "multiple", "filter", "onResponse"])) : P("", !0),
|
|
4783
|
+
i.information.show ? (y(), T(Le, {
|
|
4724
4784
|
key: 7,
|
|
4725
4785
|
modelValue: i.information.show,
|
|
4726
|
-
"onUpdate:modelValue": e[
|
|
4786
|
+
"onUpdate:modelValue": e[31] || (e[31] = (m) => i.information.show = m),
|
|
4727
4787
|
title: i.information.title,
|
|
4728
4788
|
text: i.information.text,
|
|
4729
4789
|
width: i.information.width
|
|
4730
|
-
}, null, 8, ["modelValue", "title", "text", "width"])) :
|
|
4731
|
-
i.inputMetadata.show ? (
|
|
4790
|
+
}, null, 8, ["modelValue", "title", "text", "width"])) : P("", !0),
|
|
4791
|
+
i.inputMetadata.show ? (y(), T(Ae, {
|
|
4732
4792
|
key: 8,
|
|
4733
4793
|
modelValue: i.inputMetadata.show,
|
|
4734
|
-
"onUpdate:modelValue": e[
|
|
4794
|
+
"onUpdate:modelValue": e[32] || (e[32] = (m) => i.inputMetadata.show = m),
|
|
4735
4795
|
events: i.inputMetadata.events,
|
|
4736
4796
|
"time-zone": i.timeZone,
|
|
4737
4797
|
"new-metadata": "",
|
|
4738
4798
|
onClose: i.inputMetadata.callback
|
|
4739
|
-
}, null, 8, ["modelValue", "events", "time-zone", "onClose"])) :
|
|
4740
|
-
i.showOverrides ? (
|
|
4799
|
+
}, null, 8, ["modelValue", "events", "time-zone", "onClose"])) : P("", !0),
|
|
4800
|
+
i.showOverrides ? (y(), T(Fe, {
|
|
4741
4801
|
key: 9,
|
|
4742
4802
|
modelValue: i.showOverrides,
|
|
4743
|
-
"onUpdate:modelValue": e[
|
|
4744
|
-
}, null, 8, ["modelValue"])) :
|
|
4745
|
-
i.prompt.show ? (
|
|
4803
|
+
"onUpdate:modelValue": e[33] || (e[33] = (m) => i.showOverrides = m)
|
|
4804
|
+
}, null, 8, ["modelValue"])) : P("", !0),
|
|
4805
|
+
i.prompt.show ? (y(), T(pe, {
|
|
4746
4806
|
key: 10,
|
|
4747
4807
|
modelValue: i.prompt.show,
|
|
4748
|
-
"onUpdate:modelValue": e[
|
|
4808
|
+
"onUpdate:modelValue": e[34] || (e[34] = (m) => i.prompt.show = m),
|
|
4749
4809
|
title: i.prompt.title,
|
|
4750
4810
|
subtitle: i.prompt.subtitle,
|
|
4751
4811
|
message: i.prompt.message,
|
|
@@ -4754,112 +4814,112 @@ function is(t, e, n, r, i, o) {
|
|
|
4754
4814
|
layout: i.prompt.layout,
|
|
4755
4815
|
multiple: i.prompt.multiple,
|
|
4756
4816
|
onResponse: i.prompt.callback
|
|
4757
|
-
}, null, 8, ["modelValue", "title", "subtitle", "message", "details", "buttons", "layout", "multiple", "onResponse"])) :
|
|
4758
|
-
i.results.show ? (
|
|
4817
|
+
}, null, 8, ["modelValue", "title", "subtitle", "message", "details", "buttons", "layout", "multiple", "onResponse"])) : P("", !0),
|
|
4818
|
+
i.results.show ? (y(), T(N, {
|
|
4759
4819
|
key: 11,
|
|
4760
4820
|
modelValue: i.results.show,
|
|
4761
|
-
"onUpdate:modelValue": e[
|
|
4821
|
+
"onUpdate:modelValue": e[35] || (e[35] = (m) => i.results.show = m),
|
|
4762
4822
|
text: i.results.text
|
|
4763
|
-
}, null, 8, ["modelValue", "text"])) :
|
|
4764
|
-
i.scriptEnvironment.show ? (
|
|
4823
|
+
}, null, 8, ["modelValue", "text"])) : P("", !0),
|
|
4824
|
+
i.scriptEnvironment.show ? (y(), T(Be, {
|
|
4765
4825
|
key: 12,
|
|
4766
4826
|
modelValue: i.scriptEnvironment.show,
|
|
4767
|
-
"onUpdate:modelValue": e[
|
|
4827
|
+
"onUpdate:modelValue": e[36] || (e[36] = (m) => i.scriptEnvironment.show = m),
|
|
4768
4828
|
"input-environment": i.scriptEnvironment.env,
|
|
4769
|
-
onEnvironment:
|
|
4770
|
-
}, null, 8, ["modelValue", "input-environment", "onEnvironment"])) :
|
|
4771
|
-
|
|
4829
|
+
onEnvironment: s.environmentHandler
|
|
4830
|
+
}, null, 8, ["modelValue", "input-environment", "onEnvironment"])) : P("", !0),
|
|
4831
|
+
n(u, {
|
|
4772
4832
|
modelValue: i.showSuiteError,
|
|
4773
|
-
"onUpdate:modelValue": e[
|
|
4833
|
+
"onUpdate:modelValue": e[37] || (e[37] = (m) => i.showSuiteError = m),
|
|
4774
4834
|
title: "Suite Analysis Error",
|
|
4775
4835
|
text: i.suiteError,
|
|
4776
4836
|
width: 1e3
|
|
4777
4837
|
}, null, 8, ["modelValue", "text"]),
|
|
4778
|
-
|
|
4838
|
+
n(h, {
|
|
4779
4839
|
modelValue: i.displayCriticalCmd,
|
|
4780
|
-
"onUpdate:modelValue": e[
|
|
4840
|
+
"onUpdate:modelValue": e[38] || (e[38] = (m) => i.displayCriticalCmd = m),
|
|
4781
4841
|
uuid: i.criticalCmdUuid,
|
|
4782
4842
|
"cmd-string": i.criticalCmdString,
|
|
4783
4843
|
"cmd-user": i.criticalCmdUser,
|
|
4784
4844
|
persistent: !0,
|
|
4785
|
-
onStatus:
|
|
4845
|
+
onStatus: s.promptDialogCallback
|
|
4786
4846
|
}, null, 8, ["modelValue", "uuid", "cmd-string", "cmd-user", "onStatus"]),
|
|
4787
|
-
|
|
4847
|
+
n(C, {
|
|
4788
4848
|
modelValue: i.commandEditor.show,
|
|
4789
|
-
"onUpdate:modelValue": e[
|
|
4849
|
+
"onUpdate:modelValue": e[42] || (e[42] = (m) => i.commandEditor.show = m),
|
|
4790
4850
|
"max-width": "1200",
|
|
4791
4851
|
persistent: "",
|
|
4792
4852
|
scrollable: "",
|
|
4793
|
-
onKeydown: Se(
|
|
4853
|
+
onKeydown: Se(s.closeCommandDialog, ["esc"])
|
|
4794
4854
|
}, {
|
|
4795
4855
|
default: l(() => [
|
|
4796
|
-
|
|
4856
|
+
n(te, null, {
|
|
4797
4857
|
default: l(() => [
|
|
4798
|
-
|
|
4858
|
+
n(v, { class: "d-flex align-center" }, {
|
|
4799
4859
|
default: l(() => [
|
|
4800
|
-
e[
|
|
4801
|
-
|
|
4802
|
-
|
|
4860
|
+
e[49] || (e[49] = x("span", null, "Insert Command", -1)),
|
|
4861
|
+
n(_),
|
|
4862
|
+
n(c, {
|
|
4803
4863
|
icon: "mdi-close",
|
|
4804
4864
|
variant: "text",
|
|
4805
|
-
onClick:
|
|
4865
|
+
onClick: s.closeCommandDialog
|
|
4806
4866
|
}, null, 8, ["onClick"])
|
|
4807
4867
|
]),
|
|
4808
4868
|
_: 1
|
|
4809
4869
|
}),
|
|
4810
|
-
|
|
4870
|
+
n(Q, { class: "pa-0" }, {
|
|
4811
4871
|
default: l(() => [
|
|
4812
|
-
i.commandEditor.dialogError ? (
|
|
4813
|
-
|
|
4872
|
+
i.commandEditor.dialogError ? (y(), z("div", es, [
|
|
4873
|
+
n(p, {
|
|
4814
4874
|
class: "mr-2",
|
|
4815
4875
|
color: "error"
|
|
4816
4876
|
}, {
|
|
4817
|
-
default: l(() => [...e[
|
|
4818
|
-
|
|
4877
|
+
default: l(() => [...e[50] || (e[50] = [
|
|
4878
|
+
k("mdi-alert-circle", -1)
|
|
4819
4879
|
])]),
|
|
4820
4880
|
_: 1
|
|
4821
4881
|
}),
|
|
4822
4882
|
x("span", ts, L(i.commandEditor.dialogError), 1),
|
|
4823
|
-
|
|
4883
|
+
n(c, {
|
|
4824
4884
|
icon: "mdi-close",
|
|
4825
4885
|
size: "small",
|
|
4826
4886
|
variant: "text",
|
|
4827
4887
|
color: "error",
|
|
4828
4888
|
class: "ml-2",
|
|
4829
|
-
onClick: e[
|
|
4889
|
+
onClick: e[39] || (e[39] = (m) => i.commandEditor.dialogError = null)
|
|
4830
4890
|
})
|
|
4831
|
-
])) :
|
|
4832
|
-
|
|
4891
|
+
])) : P("", !0),
|
|
4892
|
+
n(f, {
|
|
4833
4893
|
ref: "commandEditor",
|
|
4834
4894
|
"initial-target-name": i.commandEditor.targetName,
|
|
4835
4895
|
"initial-packet-name": i.commandEditor.packetName,
|
|
4836
4896
|
"cmd-string": i.commandEditor.cmdString,
|
|
4837
4897
|
"send-disabled": !1,
|
|
4838
4898
|
"show-command-button": !1,
|
|
4839
|
-
onBuildCmd: e[
|
|
4899
|
+
onBuildCmd: e[40] || (e[40] = (m) => s.insertCommand(m))
|
|
4840
4900
|
}, null, 8, ["initial-target-name", "initial-packet-name", "cmd-string"])
|
|
4841
4901
|
]),
|
|
4842
4902
|
_: 1
|
|
4843
4903
|
}),
|
|
4844
|
-
|
|
4904
|
+
n(g, null, {
|
|
4845
4905
|
default: l(() => [
|
|
4846
|
-
|
|
4847
|
-
|
|
4906
|
+
n(_),
|
|
4907
|
+
n(c, {
|
|
4848
4908
|
variant: "outlined",
|
|
4849
|
-
onClick:
|
|
4909
|
+
onClick: s.closeCommandDialog
|
|
4850
4910
|
}, {
|
|
4851
|
-
default: l(() => [...e[
|
|
4852
|
-
|
|
4911
|
+
default: l(() => [...e[51] || (e[51] = [
|
|
4912
|
+
k(" Cancel ", -1)
|
|
4853
4913
|
])]),
|
|
4854
4914
|
_: 1
|
|
4855
4915
|
}, 8, ["onClick"]),
|
|
4856
|
-
|
|
4916
|
+
n(c, {
|
|
4857
4917
|
color: "primary",
|
|
4858
4918
|
variant: "flat",
|
|
4859
|
-
onClick: e[
|
|
4919
|
+
onClick: e[41] || (e[41] = (m) => s.insertCommand())
|
|
4860
4920
|
}, {
|
|
4861
|
-
default: l(() => [...e[
|
|
4862
|
-
|
|
4921
|
+
default: l(() => [...e[52] || (e[52] = [
|
|
4922
|
+
k(" Insert Command ", -1)
|
|
4863
4923
|
])]),
|
|
4864
4924
|
_: 1
|
|
4865
4925
|
})
|
|
@@ -4872,21 +4932,21 @@ function is(t, e, n, r, i, o) {
|
|
|
4872
4932
|
]),
|
|
4873
4933
|
_: 1
|
|
4874
4934
|
}, 8, ["modelValue", "onKeydown"]),
|
|
4875
|
-
|
|
4935
|
+
n(H, {
|
|
4876
4936
|
modelValue: i.showScripts,
|
|
4877
|
-
"onUpdate:modelValue": e[
|
|
4937
|
+
"onUpdate:modelValue": e[44] || (e[44] = (m) => i.showScripts = m)
|
|
4878
4938
|
}, {
|
|
4879
4939
|
default: l(() => [
|
|
4880
|
-
|
|
4940
|
+
n(A, { class: "pb-11 pt-5 px-5" }, {
|
|
4881
4941
|
default: l(() => [
|
|
4882
|
-
i.showScripts ? (
|
|
4942
|
+
i.showScripts ? (y(), T(M, {
|
|
4883
4943
|
key: 0,
|
|
4884
4944
|
"connect-in-new-tab": !!i.fileModified,
|
|
4885
|
-
onDisconnect:
|
|
4886
|
-
onClose: e[
|
|
4945
|
+
onDisconnect: s.scriptDisconnect,
|
|
4946
|
+
onClose: e[43] || (e[43] = () => {
|
|
4887
4947
|
i.showScripts = !1;
|
|
4888
4948
|
})
|
|
4889
|
-
}, null, 8, ["connect-in-new-tab", "onDisconnect"])) :
|
|
4949
|
+
}, null, 8, ["connect-in-new-tab", "onDisconnect"])) : P("", !0)
|
|
4890
4950
|
]),
|
|
4891
4951
|
_: 1
|
|
4892
4952
|
})
|
|
@@ -4895,7 +4955,7 @@ function is(t, e, n, r, i, o) {
|
|
|
4895
4955
|
}, 8, ["modelValue"])
|
|
4896
4956
|
], 64);
|
|
4897
4957
|
}
|
|
4898
|
-
const ks = /* @__PURE__ */ K(Ai, [["render", is], ["__scopeId", "data-v-
|
|
4958
|
+
const ks = /* @__PURE__ */ K(Ai, [["render", is], ["__scopeId", "data-v-214cd38d"]]);
|
|
4899
4959
|
export {
|
|
4900
4960
|
Ut as RunningScripts,
|
|
4901
4961
|
zt as ScriptLogMessages,
|