@openc3/vue-common 6.8.0 → 6.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{ArrayWidget-DaONH8Iv.cjs → ArrayWidget-DJkuPBFS.cjs} +2 -2
- package/dist/{ArrayWidget-DaONH8Iv.cjs.map → ArrayWidget-DJkuPBFS.cjs.map} +1 -1
- package/dist/{ArrayWidget-j3ncPuPx.js → ArrayWidget-DLfNWDzN.js} +4 -4
- package/dist/{ArrayWidget-j3ncPuPx.js.map → ArrayWidget-DLfNWDzN.js.map} +1 -1
- package/dist/{ArrayplotWidget-DPMVlst7.cjs → ArrayplotWidget-COGxmBEP.cjs} +2 -2
- package/dist/{ArrayplotWidget-DPMVlst7.cjs.map → ArrayplotWidget-COGxmBEP.cjs.map} +1 -1
- package/dist/{ArrayplotWidget-DuLaiGa9.js → ArrayplotWidget-CoRsUxHG.js} +7 -7
- package/dist/{ArrayplotWidget-DuLaiGa9.js.map → ArrayplotWidget-CoRsUxHG.js.map} +1 -1
- package/dist/{BarColumn-CchXr_ex.cjs → BarColumn-BaPaYtki.cjs} +2 -2
- package/dist/{BarColumn-CchXr_ex.cjs.map → BarColumn-BaPaYtki.cjs.map} +1 -1
- package/dist/{BarColumn-BWJ0Dd4O.js → BarColumn-DHP-zQ4R.js} +3 -3
- package/dist/{BarColumn-BWJ0Dd4O.js.map → BarColumn-DHP-zQ4R.js.map} +1 -1
- package/dist/{BlockWidget-Bf5Dd6Cr.js → BlockWidget-BmHSFvOq.js} +4 -4
- package/dist/{BlockWidget-Bf5Dd6Cr.js.map → BlockWidget-BmHSFvOq.js.map} +1 -1
- package/dist/{BlockWidget-CeDueZQ0.cjs → BlockWidget-DLncsLLX.cjs} +2 -2
- package/dist/{BlockWidget-CeDueZQ0.cjs.map → BlockWidget-DLncsLLX.cjs.map} +1 -1
- package/dist/{ButtonWidget-BZulfQct.cjs → ButtonWidget-BLePbTf_.cjs} +3 -3
- package/dist/{ButtonWidget-BZulfQct.cjs.map → ButtonWidget-BLePbTf_.cjs.map} +1 -1
- package/dist/{ButtonWidget-bl_mGFYh.js → ButtonWidget-C3ZWRjZZ.js} +6 -6
- package/dist/{ButtonWidget-bl_mGFYh.js.map → ButtonWidget-C3ZWRjZZ.js.map} +1 -1
- package/dist/{CanvasWidget-DwAXTAyn.cjs → CanvasWidget-C8Sy9t9G.cjs} +2 -2
- package/dist/{CanvasWidget-DwAXTAyn.cjs.map → CanvasWidget-C8Sy9t9G.cjs.map} +1 -1
- package/dist/{CanvasWidget-boDemgx1.js → CanvasWidget-CL-XzPF4.js} +2 -2
- package/dist/{CanvasWidget-boDemgx1.js.map → CanvasWidget-CL-XzPF4.js.map} +1 -1
- package/dist/{CanvasdotWidget-ByJp9ZIa.cjs → CanvasdotWidget-6MPKD5iZ.cjs} +2 -2
- package/dist/{CanvasdotWidget-ByJp9ZIa.cjs.map → CanvasdotWidget-6MPKD5iZ.cjs.map} +1 -1
- package/dist/{CanvasdotWidget-BZBbJcER.js → CanvasdotWidget-D8Y9DgVE.js} +2 -2
- package/dist/{CanvasdotWidget-BZBbJcER.js.map → CanvasdotWidget-D8Y9DgVE.js.map} +1 -1
- package/dist/{CanvasimageWidget-6ywvT5jd.js → CanvasimageWidget-DHSGK_tD.js} +3 -3
- package/dist/{CanvasimageWidget-6ywvT5jd.js.map → CanvasimageWidget-DHSGK_tD.js.map} +1 -1
- package/dist/{CanvasimageWidget-BDprHuH3.cjs → CanvasimageWidget-DYUaf3zy.cjs} +2 -2
- package/dist/{CanvasimageWidget-BDprHuH3.cjs.map → CanvasimageWidget-DYUaf3zy.cjs.map} +1 -1
- package/dist/{CanvasimagevalueWidget-DjWrA3gX.js → CanvasimagevalueWidget-Btt_fQfC.js} +3 -3
- package/dist/{CanvasimagevalueWidget-DjWrA3gX.js.map → CanvasimagevalueWidget-Btt_fQfC.js.map} +1 -1
- package/dist/{CanvasimagevalueWidget-Cl_EuzNC.cjs → CanvasimagevalueWidget-Bu1ECOWl.cjs} +2 -2
- package/dist/{CanvasimagevalueWidget-Cl_EuzNC.cjs.map → CanvasimagevalueWidget-Bu1ECOWl.cjs.map} +1 -1
- package/dist/{CanvaslabelWidget-Bq4V2BQh.js → CanvaslabelWidget-BF_8RTjv.js} +2 -2
- package/dist/{CanvaslabelWidget-Bq4V2BQh.js.map → CanvaslabelWidget-BF_8RTjv.js.map} +1 -1
- package/dist/{CanvaslabelWidget-aalWFBxK.cjs → CanvaslabelWidget-Dik-ld55.cjs} +2 -2
- package/dist/{CanvaslabelWidget-aalWFBxK.cjs.map → CanvaslabelWidget-Dik-ld55.cjs.map} +1 -1
- package/dist/{CanvaslabelvalueWidget-DIO0fADo.cjs → CanvaslabelvalueWidget-BBlKBoZO.cjs} +2 -2
- package/dist/{CanvaslabelvalueWidget-DIO0fADo.cjs.map → CanvaslabelvalueWidget-BBlKBoZO.cjs.map} +1 -1
- package/dist/{CanvaslabelvalueWidget-C8oNcFLi.js → CanvaslabelvalueWidget-scbwaujI.js} +2 -2
- package/dist/{CanvaslabelvalueWidget-C8oNcFLi.js.map → CanvaslabelvalueWidget-scbwaujI.js.map} +1 -1
- package/dist/{CanvaslineWidget-CqNOzV_A.cjs → CanvaslineWidget-DN0ojc37.cjs} +2 -2
- package/dist/{CanvaslineWidget-CqNOzV_A.cjs.map → CanvaslineWidget-DN0ojc37.cjs.map} +1 -1
- package/dist/{CanvaslineWidget-nvbL2GoL.js → CanvaslineWidget-gRvm_-TT.js} +2 -2
- package/dist/{CanvaslineWidget-nvbL2GoL.js.map → CanvaslineWidget-gRvm_-TT.js.map} +1 -1
- package/dist/{CanvaslinevalueWidget-ZACQedKx.js → CanvaslinevalueWidget-CljziRek.js} +2 -2
- package/dist/{CanvaslinevalueWidget-ZACQedKx.js.map → CanvaslinevalueWidget-CljziRek.js.map} +1 -1
- package/dist/{CanvaslinevalueWidget-D0kOhxXn.cjs → CanvaslinevalueWidget-Cz1XYp0r.cjs} +2 -2
- package/dist/{CanvaslinevalueWidget-D0kOhxXn.cjs.map → CanvaslinevalueWidget-Cz1XYp0r.cjs.map} +1 -1
- package/dist/{CheckbuttonWidget-L9xyRwfS.cjs → CheckbuttonWidget-B5jOzhZ4.cjs} +2 -2
- package/dist/{CheckbuttonWidget-L9xyRwfS.cjs.map → CheckbuttonWidget-B5jOzhZ4.cjs.map} +1 -1
- package/dist/{CheckbuttonWidget-B82UE8AB.js → CheckbuttonWidget-BOabI_jE.js} +2 -2
- package/dist/{CheckbuttonWidget-B82UE8AB.js.map → CheckbuttonWidget-BOabI_jE.js.map} +1 -1
- package/dist/{ClassificationBanners-jiqWjTAZ.js → ClassificationBanners-BGDnMx4r.js} +2 -2
- package/dist/{ClassificationBanners-jiqWjTAZ.js.map → ClassificationBanners-BGDnMx4r.js.map} +1 -1
- package/dist/{ClassificationBanners-ZF9Ab7D0.cjs → ClassificationBanners-CbcQDr3v.cjs} +2 -2
- package/dist/{ClassificationBanners-ZF9Ab7D0.cjs.map → ClassificationBanners-CbcQDr3v.cjs.map} +1 -1
- package/dist/{ComboboxWidget-4OFiSkI6.js → ComboboxWidget-BLXNYFiY.js} +2 -2
- package/dist/{ComboboxWidget-4OFiSkI6.js.map → ComboboxWidget-BLXNYFiY.js.map} +1 -1
- package/dist/{ComboboxWidget-6hmnB_mK.cjs → ComboboxWidget-_lxTm8Wb.cjs} +2 -2
- package/dist/{ComboboxWidget-6hmnB_mK.cjs.map → ComboboxWidget-_lxTm8Wb.cjs.map} +1 -1
- package/dist/{CriticalCmdDialog-FhXDdBn4.js → CriticalCmdDialog-CnNlsHRX.js} +3 -3
- package/dist/{CriticalCmdDialog-FhXDdBn4.js.map → CriticalCmdDialog-CnNlsHRX.js.map} +1 -1
- package/dist/{CriticalCmdDialog-C-UGhtjE.cjs → CriticalCmdDialog-niBmkudw.cjs} +2 -2
- package/dist/{CriticalCmdDialog-C-UGhtjE.cjs.map → CriticalCmdDialog-niBmkudw.cjs.map} +1 -1
- package/dist/{DateWidget-BmwtdirF.js → DateWidget-BTqLCtLS.js} +2 -2
- package/dist/{DateWidget-BmwtdirF.js.map → DateWidget-BTqLCtLS.js.map} +1 -1
- package/dist/{DateWidget-CmSp7svA.cjs → DateWidget-BvabEAhO.cjs} +2 -2
- package/dist/{DateWidget-CmSp7svA.cjs.map → DateWidget-BvabEAhO.cjs.map} +1 -1
- package/dist/{DetailsDialog-CLKEfU0s.js → DetailsDialog-BNCS3QAe.js} +2 -2
- package/dist/{DetailsDialog-CLKEfU0s.js.map → DetailsDialog-BNCS3QAe.js.map} +1 -1
- package/dist/{DetailsDialog-DEicfRO1.cjs → DetailsDialog-DgN9Jcio.cjs} +2 -2
- package/dist/{DetailsDialog-DEicfRO1.cjs.map → DetailsDialog-DgN9Jcio.cjs.map} +1 -1
- package/dist/EventListDialog-B8rnN9Zi.cjs +2 -0
- package/dist/EventListDialog-B8rnN9Zi.cjs.map +1 -0
- package/dist/{EventListDialog-BvSMSn7J.js → EventListDialog-C2pwmD0d.js} +554 -389
- package/dist/EventListDialog-C2pwmD0d.js.map +1 -0
- package/dist/{FormatvalueWidget-C8exC3bj.js → FormatvalueWidget-CLYx8qbg.js} +3 -3
- package/dist/{FormatvalueWidget-C8exC3bj.js.map → FormatvalueWidget-CLYx8qbg.js.map} +1 -1
- package/dist/{FormatvalueWidget-auKALSPC.cjs → FormatvalueWidget-ulLzg1E-.cjs} +2 -2
- package/dist/{FormatvalueWidget-auKALSPC.cjs.map → FormatvalueWidget-ulLzg1E-.cjs.map} +1 -1
- package/dist/{Graph-CWcrowaT.js → Graph-BliBYJxD.js} +486 -1050
- package/dist/Graph-BliBYJxD.js.map +1 -0
- package/dist/Graph-DxC2MPYf.cjs +2 -0
- package/dist/Graph-DxC2MPYf.cjs.map +1 -0
- package/dist/{GraphWidget-CvzxZYVx.js → GraphWidget-Cb6Ozf54.js} +2 -2
- package/dist/GraphWidget-Cb6Ozf54.js.map +1 -0
- package/dist/{GraphWidget-BroqS0SO.cjs → GraphWidget-g-0vO4_S.cjs} +2 -2
- package/dist/GraphWidget-g-0vO4_S.cjs.map +1 -0
- package/dist/{HorizontalWidget-Ck151zVw.js → HorizontalWidget-AY2M01qP.js} +2 -2
- package/dist/{HorizontalWidget-Ck151zVw.js.map → HorizontalWidget-AY2M01qP.js.map} +1 -1
- package/dist/{HorizontalWidget-DBeyBZCp.cjs → HorizontalWidget-BiEZZpZQ.cjs} +2 -2
- package/dist/{HorizontalWidget-DBeyBZCp.cjs.map → HorizontalWidget-BiEZZpZQ.cjs.map} +1 -1
- package/dist/{HorizontalboxWidget-D3P-cl9V.js → HorizontalboxWidget-2MEKvq_C.js} +5 -5
- package/dist/{HorizontalboxWidget-D3P-cl9V.js.map → HorizontalboxWidget-2MEKvq_C.js.map} +1 -1
- package/dist/{HorizontalboxWidget-CuWtYdgh.cjs → HorizontalboxWidget-CWq4ej6k.cjs} +2 -2
- package/dist/{HorizontalboxWidget-CuWtYdgh.cjs.map → HorizontalboxWidget-CWq4ej6k.cjs.map} +1 -1
- package/dist/{HorizontallineWidget-BE1TjPU8.js → HorizontallineWidget-DgpOPA7q.js} +2 -2
- package/dist/{HorizontallineWidget-BE1TjPU8.js.map → HorizontallineWidget-DgpOPA7q.js.map} +1 -1
- package/dist/{HorizontallineWidget-QUFjdOSu.cjs → HorizontallineWidget-Dm5G1l4A.cjs} +2 -2
- package/dist/{HorizontallineWidget-QUFjdOSu.cjs.map → HorizontallineWidget-Dm5G1l4A.cjs.map} +1 -1
- package/dist/{IframeWidget-DOZ1YyS2.cjs → IframeWidget-DDw5t7eV.cjs} +2 -2
- package/dist/IframeWidget-DDw5t7eV.cjs.map +1 -0
- package/dist/{IframeWidget-BgJCgues.js → IframeWidget-UKKUl7k5.js} +2 -2
- package/dist/IframeWidget-UKKUl7k5.js.map +1 -0
- package/dist/{ImageLoader-AGF0VbZ5.cjs → ImageLoader-9TCd0KxL.cjs} +2 -2
- package/dist/{ImageLoader-AGF0VbZ5.cjs.map → ImageLoader-9TCd0KxL.cjs.map} +1 -1
- package/dist/{ImageLoader-CWn-PLOk.js → ImageLoader-C-CIL4YD.js} +2 -2
- package/dist/{ImageLoader-CWn-PLOk.js.map → ImageLoader-C-CIL4YD.js.map} +1 -1
- package/dist/{ImageviewerWidget-BlhFZD2f.js → ImageviewerWidget-DhuQH5Io.js} +2 -2
- package/dist/{ImageviewerWidget-BlhFZD2f.js.map → ImageviewerWidget-DhuQH5Io.js.map} +1 -1
- package/dist/{ImageviewerWidget-DnmhYP68.cjs → ImageviewerWidget-DpXzLOpF.cjs} +2 -2
- package/dist/{ImageviewerWidget-DnmhYP68.cjs.map → ImageviewerWidget-DpXzLOpF.cjs.map} +1 -1
- package/dist/{InterfacesTab-76UJTIwF.cjs → InterfacesTab-CiVfsUia.cjs} +2 -2
- package/dist/{InterfacesTab-76UJTIwF.cjs.map → InterfacesTab-CiVfsUia.cjs.map} +1 -1
- package/dist/{InterfacesTab-Cwz-zG7j.js → InterfacesTab-Dq3oAKqz.js} +6 -6
- package/dist/{InterfacesTab-Cwz-zG7j.js.map → InterfacesTab-Dq3oAKqz.js.map} +1 -1
- package/dist/{LabelWidget-C0DhD9Mn.cjs → LabelWidget-D-m2gFIZ.cjs} +2 -2
- package/dist/{LabelWidget-C0DhD9Mn.cjs.map → LabelWidget-D-m2gFIZ.cjs.map} +1 -1
- package/dist/{LabelWidget-Cwosk4x2.js → LabelWidget-SO9zqcNN.js} +2 -2
- package/dist/{LabelWidget-Cwosk4x2.js.map → LabelWidget-SO9zqcNN.js.map} +1 -1
- package/dist/{LabelledWidget-D8-aKfA_.cjs → LabelledWidget-BFfsD2wz.cjs} +2 -2
- package/dist/{LabelledWidget-D8-aKfA_.cjs.map → LabelledWidget-BFfsD2wz.cjs.map} +1 -1
- package/dist/{LabelledWidget-Dl6rAFTQ.js → LabelledWidget-DWoM5AJ5.js} +4 -4
- package/dist/{LabelledWidget-Dl6rAFTQ.js.map → LabelledWidget-DWoM5AJ5.js.map} +1 -1
- package/dist/{LabelprogressbarWidget-DosPhvaY.cjs → LabelprogressbarWidget-B8x5YimU.cjs} +2 -2
- package/dist/{LabelprogressbarWidget-DosPhvaY.cjs.map → LabelprogressbarWidget-B8x5YimU.cjs.map} +1 -1
- package/dist/{LabelprogressbarWidget-MuAKesOz.js → LabelprogressbarWidget-D3vnkvQZ.js} +4 -4
- package/dist/{LabelprogressbarWidget-MuAKesOz.js.map → LabelprogressbarWidget-D3vnkvQZ.js.map} +1 -1
- package/dist/{LabelsparklineWidget-6LA6Ox3d.js → LabelsparklineWidget-DO0T-Jot.js} +4 -4
- package/dist/{LabelsparklineWidget-6LA6Ox3d.js.map → LabelsparklineWidget-DO0T-Jot.js.map} +1 -1
- package/dist/{LabelsparklineWidget-CLU8722I.cjs → LabelsparklineWidget-DyPaUfc9.cjs} +2 -2
- package/dist/{LabelsparklineWidget-CLU8722I.cjs.map → LabelsparklineWidget-DyPaUfc9.cjs.map} +1 -1
- package/dist/{LabelvalueWidget-BxAXx-Tf.js → LabelvalueWidget-B6BbNFnk.js} +4 -4
- package/dist/{LabelvalueWidget-BxAXx-Tf.js.map → LabelvalueWidget-B6BbNFnk.js.map} +1 -1
- package/dist/{LabelvalueWidget-WP4gK29n.cjs → LabelvalueWidget-cTPG6Xqi.cjs} +2 -2
- package/dist/{LabelvalueWidget-WP4gK29n.cjs.map → LabelvalueWidget-cTPG6Xqi.cjs.map} +1 -1
- package/dist/{LabelvaluedescWidget-BQ-6OXHc.cjs → LabelvaluedescWidget-C4sIZ0md.cjs} +2 -2
- package/dist/{LabelvaluedescWidget-BQ-6OXHc.cjs.map → LabelvaluedescWidget-C4sIZ0md.cjs.map} +1 -1
- package/dist/{LabelvaluedescWidget-Dwwlnd1g.js → LabelvaluedescWidget-CxfL-H9C.js} +10 -10
- package/dist/{LabelvaluedescWidget-Dwwlnd1g.js.map → LabelvaluedescWidget-CxfL-H9C.js.map} +1 -1
- package/dist/{LabelvaluelimitsbarWidget-Dv8Qk8kK.js → LabelvaluelimitsbarWidget-BT5k9mHv.js} +4 -4
- package/dist/{LabelvaluelimitsbarWidget-Dv8Qk8kK.js.map → LabelvaluelimitsbarWidget-BT5k9mHv.js.map} +1 -1
- package/dist/{LabelvaluelimitsbarWidget-Z_7ARnvo.cjs → LabelvaluelimitsbarWidget-CBnU6Afl.cjs} +2 -2
- package/dist/{LabelvaluelimitsbarWidget-Z_7ARnvo.cjs.map → LabelvaluelimitsbarWidget-CBnU6Afl.cjs.map} +1 -1
- package/dist/{LabelvaluelimitscolumnWidget-DiO1b01N.cjs → LabelvaluelimitscolumnWidget-CwoMfO0P.cjs} +2 -2
- package/dist/{LabelvaluelimitscolumnWidget-DiO1b01N.cjs.map → LabelvaluelimitscolumnWidget-CwoMfO0P.cjs.map} +1 -1
- package/dist/{LabelvaluelimitscolumnWidget-D-_gl6fq.js → LabelvaluelimitscolumnWidget-DUbmxh4p.js} +5 -5
- package/dist/{LabelvaluelimitscolumnWidget-D-_gl6fq.js.map → LabelvaluelimitscolumnWidget-DUbmxh4p.js.map} +1 -1
- package/dist/{LabelvaluerangebarWidget-DtajHP0b.cjs → LabelvaluerangebarWidget-DB4gw6Rd.cjs} +2 -2
- package/dist/{LabelvaluerangebarWidget-DtajHP0b.cjs.map → LabelvaluerangebarWidget-DB4gw6Rd.cjs.map} +1 -1
- package/dist/{LabelvaluerangebarWidget-B3MKT-3Y.js → LabelvaluerangebarWidget-DexAc2UB.js} +4 -4
- package/dist/{LabelvaluerangebarWidget-B3MKT-3Y.js.map → LabelvaluerangebarWidget-DexAc2UB.js.map} +1 -1
- package/dist/{Layout-Bkb6VP3e.js → Layout-Dd6dRf3R.js} +2 -2
- package/dist/{Layout-Bkb6VP3e.js.map → Layout-Dd6dRf3R.js.map} +1 -1
- package/dist/Layout-DvBekli8.cjs +2 -0
- package/dist/{Layout-CSbYbZWA.cjs.map → Layout-DvBekli8.cjs.map} +1 -1
- package/dist/{LedWidget-DOuDD8LI.js → LedWidget-D1RwHb_V.js} +4 -4
- package/dist/{LedWidget-DOuDD8LI.js.map → LedWidget-D1RwHb_V.js.map} +1 -1
- package/dist/{LedWidget-DeREi8-u.cjs → LedWidget-a99ygZOA.cjs} +2 -2
- package/dist/{LedWidget-DeREi8-u.cjs.map → LedWidget-a99ygZOA.cjs.map} +1 -1
- package/dist/{LimitsbarWidget-D1U6SvVL.js → LimitsbarWidget-ClOmoV50.js} +2 -2
- package/dist/{LimitsbarWidget-D1U6SvVL.js.map → LimitsbarWidget-ClOmoV50.js.map} +1 -1
- package/dist/{LimitsbarWidget-BHr3IcIx.cjs → LimitsbarWidget-DaHpj-rM.cjs} +2 -2
- package/dist/{LimitsbarWidget-BHr3IcIx.cjs.map → LimitsbarWidget-DaHpj-rM.cjs.map} +1 -1
- package/dist/{LimitscolorWidget-iSMGusqt.js → LimitscolorWidget-CBUoEYKp.js} +2 -2
- package/dist/{LimitscolorWidget-iSMGusqt.js.map → LimitscolorWidget-CBUoEYKp.js.map} +1 -1
- package/dist/{LimitscolorWidget-BUkKRrSL.cjs → LimitscolorWidget-D4nPHQlI.cjs} +2 -2
- package/dist/{LimitscolorWidget-BUkKRrSL.cjs.map → LimitscolorWidget-D4nPHQlI.cjs.map} +1 -1
- package/dist/{LimitscolumnWidget-DjxZTt_r.js → LimitscolumnWidget-hsHkmY-_.js} +2 -2
- package/dist/{LimitscolumnWidget-DjxZTt_r.js.map → LimitscolumnWidget-hsHkmY-_.js.map} +1 -1
- package/dist/{LimitscolumnWidget-COfNnb6f.cjs → LimitscolumnWidget-wIx0L9hb.cjs} +2 -2
- package/dist/{LimitscolumnWidget-COfNnb6f.cjs.map → LimitscolumnWidget-wIx0L9hb.cjs.map} +1 -1
- package/dist/{LinegraphWidget-RleSRWKa.cjs → LinegraphWidget-BRnwhfEQ.cjs} +2 -2
- package/dist/{LinegraphWidget-RleSRWKa.cjs.map → LinegraphWidget-BRnwhfEQ.cjs.map} +1 -1
- package/dist/{LinegraphWidget-BHKU6zlT.js → LinegraphWidget-CXrKtxOo.js} +4 -4
- package/dist/{LinegraphWidget-BHKU6zlT.js.map → LinegraphWidget-CXrKtxOo.js.map} +1 -1
- package/dist/{MatrixbycolumnsWidget-DWouVj7A.cjs → MatrixbycolumnsWidget-3jldaS14.cjs} +2 -2
- package/dist/{MatrixbycolumnsWidget-DWouVj7A.cjs.map → MatrixbycolumnsWidget-3jldaS14.cjs.map} +1 -1
- package/dist/{MatrixbycolumnsWidget-BKO-A2QD.js → MatrixbycolumnsWidget-CsogVU9c.js} +3 -3
- package/dist/{MatrixbycolumnsWidget-BKO-A2QD.js.map → MatrixbycolumnsWidget-CsogVU9c.js.map} +1 -1
- package/dist/{MicroservicesTab-L6qMAy4x.cjs → MicroservicesTab-3pNZZ5I0.cjs} +2 -2
- package/dist/{MicroservicesTab-L6qMAy4x.cjs.map → MicroservicesTab-3pNZZ5I0.cjs.map} +1 -1
- package/dist/{MicroservicesTab-xLup6THU.js → MicroservicesTab-DzEvbxlM.js} +3 -3
- package/dist/{MicroservicesTab-xLup6THU.js.map → MicroservicesTab-DzEvbxlM.js.map} +1 -1
- package/dist/{Openc3Screen-BHHnSEoI.cjs → Openc3Screen-CD3C_EUo.cjs} +4 -4
- package/dist/{Openc3Screen-BHHnSEoI.cjs.map → Openc3Screen-CD3C_EUo.cjs.map} +1 -1
- package/dist/{Openc3Screen-1rQ_Dbp4.js → Openc3Screen-Cqm5Xtd-.js} +3 -3
- package/dist/{Openc3Screen-1rQ_Dbp4.js.map → Openc3Screen-Cqm5Xtd-.js.map} +1 -1
- package/dist/{OutputDialog-Ut5cXGxQ.js → OutputDialog-7M4L50tA.js} +9 -9
- package/dist/{OutputDialog-Ut5cXGxQ.js.map → OutputDialog-7M4L50tA.js.map} +1 -1
- package/dist/{OutputDialog-DgM7aoa-.cjs → OutputDialog-CnDQxHTZ.cjs} +2 -2
- package/dist/{OutputDialog-DgM7aoa-.cjs.map → OutputDialog-CnDQxHTZ.cjs.map} +1 -1
- package/dist/{PackagesTab-jqsRJEcJ.cjs → PackagesTab-DPPXZvoV.cjs} +2 -2
- package/dist/{PackagesTab-jqsRJEcJ.cjs.map → PackagesTab-DPPXZvoV.cjs.map} +1 -1
- package/dist/{PackagesTab-ChJDyU3Z.js → PackagesTab-N4SD1Pxj.js} +3 -3
- package/dist/{PackagesTab-ChJDyU3Z.js.map → PackagesTab-N4SD1Pxj.js.map} +1 -1
- package/dist/{PluginsTab-CayzDij0.js → PluginsTab-C7PH2Wym.js} +4 -4
- package/dist/{PluginsTab-CayzDij0.js.map → PluginsTab-C7PH2Wym.js.map} +1 -1
- package/dist/{PluginsTab-DYEv8EPg.cjs → PluginsTab-xzPlEMYj.cjs} +4 -4
- package/dist/{PluginsTab-DYEv8EPg.cjs.map → PluginsTab-xzPlEMYj.cjs.map} +1 -1
- package/dist/{ProgressbarWidget-fbr2qu_N.js → ProgressbarWidget-CO6CEkxP.js} +2 -2
- package/dist/{ProgressbarWidget-fbr2qu_N.js.map → ProgressbarWidget-CO6CEkxP.js.map} +1 -1
- package/dist/{ProgressbarWidget-Xba7gDbW.cjs → ProgressbarWidget-CPeGR-Az.cjs} +2 -2
- package/dist/{ProgressbarWidget-Xba7gDbW.cjs.map → ProgressbarWidget-CPeGR-Az.cjs.map} +1 -1
- package/dist/{RadiobuttonWidget-DL08zcQT.js → RadiobuttonWidget-DrxUclws.js} +2 -2
- package/dist/{RadiobuttonWidget-DL08zcQT.js.map → RadiobuttonWidget-DrxUclws.js.map} +1 -1
- package/dist/{RadiobuttonWidget-CdpKw7jr.cjs → RadiobuttonWidget-DucgkAYD.cjs} +2 -2
- package/dist/{RadiobuttonWidget-CdpKw7jr.cjs.map → RadiobuttonWidget-DucgkAYD.cjs.map} +1 -1
- package/dist/{RadiogroupWidget-DSA8ENmw.cjs → RadiogroupWidget-C7oVFRf3.cjs} +2 -2
- package/dist/{RadiogroupWidget-DSA8ENmw.cjs.map → RadiogroupWidget-C7oVFRf3.cjs.map} +1 -1
- package/dist/{RadiogroupWidget-DW9Xpj3c.js → RadiogroupWidget-DN9C38cg.js} +2 -2
- package/dist/{RadiogroupWidget-DW9Xpj3c.js.map → RadiogroupWidget-DN9C38cg.js.map} +1 -1
- package/dist/{RangebarWidget-o9q55kjc.js → RangebarWidget-5uQTfLMP.js} +2 -2
- package/dist/{RangebarWidget-o9q55kjc.js.map → RangebarWidget-5uQTfLMP.js.map} +1 -1
- package/dist/{RangebarWidget-B4oRyUwG.cjs → RangebarWidget-Da9S3KMB.cjs} +2 -2
- package/dist/{RangebarWidget-B4oRyUwG.cjs.map → RangebarWidget-Da9S3KMB.cjs.map} +1 -1
- package/dist/{RedisTab-Uqcfgux1.cjs → RedisTab-BFTaPNRc.cjs} +2 -2
- package/dist/{RedisTab-Uqcfgux1.cjs.map → RedisTab-BFTaPNRc.cjs.map} +1 -1
- package/dist/{RedisTab-BGz2ZN9T.js → RedisTab-Cyrr_g9k.js} +11 -11
- package/dist/{RedisTab-BGz2ZN9T.js.map → RedisTab-Cyrr_g9k.js.map} +1 -1
- package/dist/{RollupWidget-BHnjj-DF.js → RollupWidget-B0DCULnu.js} +2 -2
- package/dist/{RollupWidget-BHnjj-DF.js.map → RollupWidget-B0DCULnu.js.map} +1 -1
- package/dist/{RollupWidget-43v3NX_Z.cjs → RollupWidget-DK0eFASs.cjs} +2 -2
- package/dist/{RollupWidget-43v3NX_Z.cjs.map → RollupWidget-DK0eFASs.cjs.map} +1 -1
- package/dist/{RoutersTab-Be53r61Y.cjs → RoutersTab-B8JIxjdI.cjs} +2 -2
- package/dist/{RoutersTab-Be53r61Y.cjs.map → RoutersTab-B8JIxjdI.cjs.map} +1 -1
- package/dist/{RoutersTab-CCEPlZ_Y.js → RoutersTab-BAfpG8k3.js} +6 -6
- package/dist/{RoutersTab-CCEPlZ_Y.js.map → RoutersTab-BAfpG8k3.js.map} +1 -1
- package/dist/ScriptChooser-ahp4Tu3O.js +573 -0
- package/dist/ScriptChooser-ahp4Tu3O.js.map +1 -0
- package/dist/ScriptChooser-ma6P0WuM.cjs +2 -0
- package/dist/ScriptChooser-ma6P0WuM.cjs.map +1 -0
- package/dist/{ScrollwindowWidget-D-QVwztC.js → ScrollwindowWidget-BOkZQgtf.js} +3 -3
- package/dist/{ScrollwindowWidget-D-QVwztC.js.map → ScrollwindowWidget-BOkZQgtf.js.map} +1 -1
- package/dist/{ScrollwindowWidget-D6ZHZr3o.cjs → ScrollwindowWidget-xM_R_Arq.cjs} +2 -2
- package/dist/{ScrollwindowWidget-D6ZHZr3o.cjs.map → ScrollwindowWidget-xM_R_Arq.cjs.map} +1 -1
- package/dist/{SecretsTab-vVy356vr.js → SecretsTab-D5RxHYVp.js} +7 -7
- package/dist/{SecretsTab-vVy356vr.js.map → SecretsTab-D5RxHYVp.js.map} +1 -1
- package/dist/{SecretsTab-DDZ1VoUf.cjs → SecretsTab-DoHYppoO.cjs} +2 -2
- package/dist/{SecretsTab-DDZ1VoUf.cjs.map → SecretsTab-DoHYppoO.cjs.map} +1 -1
- package/dist/{SettingsTab-CbWrf7U9.js → SettingsTab-CKGQEwd_.js} +137 -121
- package/dist/SettingsTab-CKGQEwd_.js.map +1 -0
- package/dist/{SettingsTab-DsIVE5UL.cjs → SettingsTab-Dvnzqzdp.cjs} +3 -3
- package/dist/SettingsTab-Dvnzqzdp.cjs.map +1 -0
- package/dist/{SignalWidget-CysAE9ZG.cjs → SignalWidget-BWKgNMdV.cjs} +2 -2
- package/dist/{SignalWidget-CysAE9ZG.cjs.map → SignalWidget-BWKgNMdV.cjs.map} +1 -1
- package/dist/{SignalWidget-CsWuufdx.js → SignalWidget-Cis0Xkea.js} +2 -2
- package/dist/{SignalWidget-CsWuufdx.js.map → SignalWidget-Cis0Xkea.js.map} +1 -1
- package/dist/{SimpleTextDialog-CU6G5CBY.cjs → SimpleTextDialog-BCNn5FZh.cjs} +2 -2
- package/dist/{SimpleTextDialog-CU6G5CBY.cjs.map → SimpleTextDialog-BCNn5FZh.cjs.map} +1 -1
- package/dist/{SimpleTextDialog-ChV5vRcV.js → SimpleTextDialog-D2mEDvGY.js} +2 -2
- package/dist/{SimpleTextDialog-ChV5vRcV.js.map → SimpleTextDialog-D2mEDvGY.js.map} +1 -1
- package/dist/{SpacerWidget-Di9-qunj.js → SpacerWidget-CLcqC2Qk.js} +2 -2
- package/dist/{SpacerWidget-Di9-qunj.js.map → SpacerWidget-CLcqC2Qk.js.map} +1 -1
- package/dist/{SpacerWidget-ChNk5TFU.cjs → SpacerWidget-_daU5QnM.cjs} +2 -2
- package/dist/{SpacerWidget-ChNk5TFU.cjs.map → SpacerWidget-_daU5QnM.cjs.map} +1 -1
- package/dist/{SparklineWidget-B6-zhdPW.js → SparklineWidget-CTp83eZ-.js} +4 -4
- package/dist/{SparklineWidget-B6-zhdPW.js.map → SparklineWidget-CTp83eZ-.js.map} +1 -1
- package/dist/{SparklineWidget-D1tVqSRL.cjs → SparklineWidget-qRnlPzJ_.cjs} +2 -2
- package/dist/{SparklineWidget-D1tVqSRL.cjs.map → SparklineWidget-qRnlPzJ_.cjs.map} +1 -1
- package/dist/{TabbookWidget-Btg-Axid.cjs → TabbookWidget-C0Fvv-o5.cjs} +2 -2
- package/dist/{TabbookWidget-Btg-Axid.cjs.map → TabbookWidget-C0Fvv-o5.cjs.map} +1 -1
- package/dist/{TabbookWidget-B1E1_mzA.js → TabbookWidget-uucd-zsX.js} +2 -2
- package/dist/{TabbookWidget-B1E1_mzA.js.map → TabbookWidget-uucd-zsX.js.map} +1 -1
- package/dist/TargetPacketItemChooser-CAl-fNql.cjs +2 -0
- package/dist/TargetPacketItemChooser-CAl-fNql.cjs.map +1 -0
- package/dist/TargetPacketItemChooser-CXpSx-eA.js +572 -0
- package/dist/TargetPacketItemChooser-CXpSx-eA.js.map +1 -0
- package/dist/{TargetsTab-DbbQcBuK.js → TargetsTab-CM4ABe5y.js} +6 -6
- package/dist/{TargetsTab-DbbQcBuK.js.map → TargetsTab-CM4ABe5y.js.map} +1 -1
- package/dist/{TargetsTab-pbmAAkOA.cjs → TargetsTab-Ixql3xzm.cjs} +2 -2
- package/dist/{TargetsTab-pbmAAkOA.cjs.map → TargetsTab-Ixql3xzm.cjs.map} +1 -1
- package/dist/{TextboxWidget-CBVEXPw_.js → TextboxWidget-C2n38ti5.js} +4 -4
- package/dist/{TextboxWidget-CBVEXPw_.js.map → TextboxWidget-C2n38ti5.js.map} +1 -1
- package/dist/{TextboxWidget-CHXcR8lA.cjs → TextboxWidget-DrdMC0EB.cjs} +2 -2
- package/dist/{TextboxWidget-CHXcR8lA.cjs.map → TextboxWidget-DrdMC0EB.cjs.map} +1 -1
- package/dist/{TextfieldWidget-DZMHrtQa.js → TextfieldWidget--HTv9ddk.js} +2 -2
- package/dist/{TextfieldWidget-DZMHrtQa.js.map → TextfieldWidget--HTv9ddk.js.map} +1 -1
- package/dist/{TextfieldWidget-vSJ9CtKs.cjs → TextfieldWidget-VeOem1w3.cjs} +2 -2
- package/dist/{TextfieldWidget-vSJ9CtKs.cjs.map → TextfieldWidget-VeOem1w3.cjs.map} +1 -1
- package/dist/{TimeWidget-ClkxS_oo.cjs → TimeWidget-C9ltUWFh.cjs} +2 -2
- package/dist/{TimeWidget-ClkxS_oo.cjs.map → TimeWidget-C9ltUWFh.cjs.map} +1 -1
- package/dist/{TimeWidget-K4MNmJ7J.js → TimeWidget-CPNVZaUM.js} +2 -2
- package/dist/{TimeWidget-K4MNmJ7J.js.map → TimeWidget-CPNVZaUM.js.map} +1 -1
- package/dist/{TitleWidget-8IcwweFE.js → TitleWidget-Cp0cb6V8.js} +2 -2
- package/dist/{TitleWidget-8IcwweFE.js.map → TitleWidget-Cp0cb6V8.js.map} +1 -1
- package/dist/{TitleWidget-DJJ17ATm.cjs → TitleWidget-IuUVZkLh.cjs} +2 -2
- package/dist/{TitleWidget-DJJ17ATm.cjs.map → TitleWidget-IuUVZkLh.cjs.map} +1 -1
- package/dist/ToolsTab-Bgrj0eGr.cjs +7 -0
- package/dist/ToolsTab-Bgrj0eGr.cjs.map +1 -0
- package/dist/{ToolsTab-tkganPCk.js → ToolsTab-DGjyBWkp.js} +5 -5
- package/dist/ToolsTab-DGjyBWkp.js.map +1 -0
- package/dist/{TopBar-BoI8SRaF.js → TopBar-B48yYbtR.js} +79 -65
- package/dist/{TopBar-BoI8SRaF.js.map → TopBar-B48yYbtR.js.map} +1 -1
- package/dist/TopBar-DLz-U85G.cjs +2 -0
- package/dist/{TopBar-zJvwq8pr.cjs.map → TopBar-DLz-U85G.cjs.map} +1 -1
- package/dist/{UpgradeToEnterpriseDialog-BYz9YoyY.js → UpgradeToEnterpriseDialog-C2Ggr_Xd.js} +2 -2
- package/dist/{UpgradeToEnterpriseDialog-BYz9YoyY.js.map → UpgradeToEnterpriseDialog-C2Ggr_Xd.js.map} +1 -1
- package/dist/{UpgradeToEnterpriseDialog-BxHUptQB.cjs → UpgradeToEnterpriseDialog-DtckZO3_.cjs} +2 -2
- package/dist/{UpgradeToEnterpriseDialog-BxHUptQB.cjs.map → UpgradeToEnterpriseDialog-DtckZO3_.cjs.map} +1 -1
- package/dist/UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_2c757408_lang-B1Hzjyj0.cjs +1498 -0
- package/dist/UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_2c757408_lang-B1Hzjyj0.cjs.map +1 -0
- package/dist/{UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_2c757408_lang-quWsUlLr.js → UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_2c757408_lang-JEZNdnan.js} +7305 -7207
- package/dist/UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_2c757408_lang-JEZNdnan.js.map +1 -0
- package/dist/{VWidget-3ziiUuPM.cjs → VWidget-Cf9MXbCl.cjs} +2 -2
- package/dist/{VWidget-3ziiUuPM.cjs.map → VWidget-Cf9MXbCl.cjs.map} +1 -1
- package/dist/{VWidget-CoIgX3hM.js → VWidget-DQGJRgAk.js} +3 -3
- package/dist/{VWidget-CoIgX3hM.js.map → VWidget-DQGJRgAk.js.map} +1 -1
- package/dist/{ValueWidget-BvT1ASar.js → ValueWidget-Bk1RFjks.js} +4 -4
- package/dist/{ValueWidget-BvT1ASar.js.map → ValueWidget-Bk1RFjks.js.map} +1 -1
- package/dist/{ValueWidget-RU-vFOh9.cjs → ValueWidget-BmXm9dYt.cjs} +2 -2
- package/dist/{ValueWidget-RU-vFOh9.cjs.map → ValueWidget-BmXm9dYt.cjs.map} +1 -1
- package/dist/{ValuelimitsbarWidget-C5lBnUmB.js → ValuelimitsbarWidget-C0HIBYh2.js} +4 -4
- package/dist/{ValuelimitsbarWidget-C5lBnUmB.js.map → ValuelimitsbarWidget-C0HIBYh2.js.map} +1 -1
- package/dist/{ValuelimitsbarWidget-B5UtwjJW.cjs → ValuelimitsbarWidget-PjCpjhsr.cjs} +2 -2
- package/dist/{ValuelimitsbarWidget-B5UtwjJW.cjs.map → ValuelimitsbarWidget-PjCpjhsr.cjs.map} +1 -1
- package/dist/{ValuelimitscolumnWidget-BruOZb26.cjs → ValuelimitscolumnWidget-BGiDDUI_.cjs} +2 -2
- package/dist/{ValuelimitscolumnWidget-BruOZb26.cjs.map → ValuelimitscolumnWidget-BGiDDUI_.cjs.map} +1 -1
- package/dist/{ValuelimitscolumnWidget-DHYI0WBL.js → ValuelimitscolumnWidget-BTT90uyX.js} +4 -4
- package/dist/{ValuelimitscolumnWidget-DHYI0WBL.js.map → ValuelimitscolumnWidget-BTT90uyX.js.map} +1 -1
- package/dist/{ValuerangebarWidget-BSszZhlE.js → ValuerangebarWidget-CcQw_XK9.js} +4 -4
- package/dist/{ValuerangebarWidget-BSszZhlE.js.map → ValuerangebarWidget-CcQw_XK9.js.map} +1 -1
- package/dist/{ValuerangebarWidget-BhQVRHhm.cjs → ValuerangebarWidget-ClmX-qH_.cjs} +2 -2
- package/dist/{ValuerangebarWidget-BhQVRHhm.cjs.map → ValuerangebarWidget-ClmX-qH_.cjs.map} +1 -1
- package/dist/{VerticalWidget-XZrIw9zV.cjs → VerticalWidget-BeDWsvP6.cjs} +2 -2
- package/dist/{VerticalWidget-XZrIw9zV.cjs.map → VerticalWidget-BeDWsvP6.cjs.map} +1 -1
- package/dist/{VerticalWidget-1GhgYrC3.js → VerticalWidget-CNtFQv3R.js} +2 -2
- package/dist/{VerticalWidget-1GhgYrC3.js.map → VerticalWidget-CNtFQv3R.js.map} +1 -1
- package/dist/{VerticalboxWidget-BV-onQ8m.cjs → VerticalboxWidget-DlokKDBD.cjs} +2 -2
- package/dist/{VerticalboxWidget-BV-onQ8m.cjs.map → VerticalboxWidget-DlokKDBD.cjs.map} +1 -1
- package/dist/{VerticalboxWidget-DYHJqEzd.js → VerticalboxWidget-Yxmz1SnU.js} +5 -5
- package/dist/{VerticalboxWidget-DYHJqEzd.js.map → VerticalboxWidget-Yxmz1SnU.js.map} +1 -1
- package/dist/{Widget-Blq-k5SB.cjs → Widget-HC1_yuQg.cjs} +2 -2
- package/dist/{Widget-Blq-k5SB.cjs.map → Widget-HC1_yuQg.cjs.map} +1 -1
- package/dist/{Widget-B8t93Oid.js → Widget-LsyjS7ZS.js} +2 -2
- package/dist/{Widget-B8t93Oid.js.map → Widget-LsyjS7ZS.js.map} +1 -1
- package/dist/addMonths-BtG7uZLJ.js.map +1 -1
- package/dist/addMonths-n1tnl3ab.cjs.map +1 -1
- package/dist/components.cjs +3 -3
- package/dist/components.cjs.map +1 -1
- package/dist/components.js +229 -622
- package/dist/components.js.map +1 -1
- package/dist/format-B22VpiOS.cjs.map +1 -1
- package/dist/format-CVeawcIv.js.map +1 -1
- package/dist/getDefaultOptions-Batab9o8.cjs.map +1 -1
- package/dist/getDefaultOptions-BhSDk-Jo.js.map +1 -1
- package/dist/index-DS1ACWVr.js +1755 -0
- package/dist/index-DS1ACWVr.js.map +1 -0
- package/dist/index-Nd4O4kac.cjs +7 -0
- package/dist/index-Nd4O4kac.cjs.map +1 -0
- package/dist/parse-DnkEsW-3.js.map +1 -1
- package/dist/parse-DwfgQboe.cjs.map +1 -1
- package/dist/plugins.cjs +2 -2
- package/dist/plugins.cjs.map +1 -1
- package/dist/plugins.js +87 -83
- package/dist/plugins.js.map +1 -1
- package/dist/purify.es-GHnZTJ9O.cjs +3 -0
- package/dist/purify.es-GHnZTJ9O.cjs.map +1 -0
- package/dist/purify.es-eYFoHPwR.js +529 -0
- package/dist/purify.es-eYFoHPwR.js.map +1 -0
- package/dist/{settings-UZsgbUSr.js → settings-DCxXjkio.js} +2 -2
- package/dist/{settings-UZsgbUSr.js.map → settings-DCxXjkio.js.map} +1 -1
- package/dist/{settings-DyvFSj59.cjs → settings-zRw8EylV.cjs} +2 -2
- package/dist/{settings-DyvFSj59.cjs.map → settings-zRw8EylV.cjs.map} +1 -1
- package/dist/timeFilters-BKnCM4rv.js.map +1 -1
- package/dist/timeFilters-CJFxfjqN.cjs.map +1 -1
- package/dist/tools/admin.cjs +1 -1
- package/dist/tools/admin.cjs.map +1 -1
- package/dist/tools/admin.js +13 -13
- 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 +324 -320
- 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 -7
- package/dist/tools/scriptrunner.cjs.map +1 -1
- package/dist/tools/scriptrunner.js +1468 -1259
- package/dist/tools/scriptrunner.js.map +1 -1
- package/dist/vue-common.css +1 -1
- package/dist/widgets.cjs +1 -1
- package/dist/widgets.js +63 -63
- package/package.json +6 -3
- package/dist/EventListDialog-BvSMSn7J.js.map +0 -1
- package/dist/EventListDialog-Em1RcH7I.cjs +0 -2
- package/dist/EventListDialog-Em1RcH7I.cjs.map +0 -1
- package/dist/Graph-BJqtVAaV.cjs +0 -2
- package/dist/Graph-BJqtVAaV.cjs.map +0 -1
- package/dist/Graph-CWcrowaT.js.map +0 -1
- package/dist/GraphWidget-BroqS0SO.cjs.map +0 -1
- package/dist/GraphWidget-CvzxZYVx.js.map +0 -1
- package/dist/IframeWidget-BgJCgues.js.map +0 -1
- package/dist/IframeWidget-DOZ1YyS2.cjs.map +0 -1
- package/dist/Layout-CSbYbZWA.cjs +0 -2
- package/dist/ScriptChooser-B6TGFTBN.cjs +0 -2
- package/dist/ScriptChooser-B6TGFTBN.cjs.map +0 -1
- package/dist/ScriptChooser-CXjcm3bN.js +0 -176
- package/dist/ScriptChooser-CXjcm3bN.js.map +0 -1
- package/dist/SettingsTab-CbWrf7U9.js.map +0 -1
- package/dist/SettingsTab-DsIVE5UL.cjs.map +0 -1
- package/dist/ToolsTab-BkabqeR_.cjs +0 -7
- package/dist/ToolsTab-BkabqeR_.cjs.map +0 -1
- package/dist/ToolsTab-tkganPCk.js.map +0 -1
- package/dist/TopBar-zJvwq8pr.cjs +0 -2
- package/dist/UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_2c757408_lang-BflJrsRh.cjs +0 -1498
- package/dist/UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_2c757408_lang-BflJrsRh.cjs.map +0 -1
- package/dist/UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_2c757408_lang-quWsUlLr.js.map +0 -1
- package/dist/index-DDjz5VQq.js +0 -1721
- package/dist/index-DDjz5VQq.js.map +0 -1
- package/dist/index-DZh4NjG5.cjs +0 -7
- package/dist/index-DZh4NjG5.cjs.map +0 -1
|
@@ -1,29 +1,30 @@
|
|
|
1
1
|
var tt = Object.defineProperty;
|
|
2
|
-
var
|
|
2
|
+
var Ke = (t) => {
|
|
3
3
|
throw TypeError(t);
|
|
4
4
|
};
|
|
5
|
-
var it = (t, e,
|
|
6
|
-
var
|
|
7
|
-
var B = (t, e,
|
|
8
|
-
import {
|
|
9
|
-
import { resolveComponent as
|
|
10
|
-
import { _ as
|
|
11
|
-
import { T as
|
|
5
|
+
var it = (t, e, s) => e in t ? tt(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s;
|
|
6
|
+
var Be = (t, e, s) => it(t, typeof e != "symbol" ? e + "" : e, s), We = (t, e, s) => e.has(t) || Ke("Cannot " + s);
|
|
7
|
+
var B = (t, e, s) => (We(t, e, "read from private field"), s ? s.call(t) : e.get(t)), W = (t, e, s) => e.has(t) ? Ke("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, s), ne = (t, e, s, r) => (We(t, e, "write to private field"), r ? r.call(t, s) : e.set(t, s), s);
|
|
8
|
+
import { h as O, g as Te, p as st } from "../UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_2c757408_lang-JEZNdnan.js";
|
|
9
|
+
import { resolveComponent as a, createElementBlock as P, openBlock as S, createVNode as n, createBlock as D, createCommentVNode as U, withCtx as l, createTextVNode as y, createElementVNode as x, withDirectives as nt, vShow as ot, toDisplayString as L, mergeProps as X, normalizeClass as Xe, inject as oe, getCurrentInstance as lt, computed as Y, ref as ae, watch as Ve, onMounted as Qe, onBeforeUnmount as $e, normalizeStyle as Ee, unref as rt, renderSlot as at, useSlots as dt, provide as $, resolveDynamicComponent as ut, nextTick as Ne, h as ct, withModifiers as ue, Fragment as de, renderList as qe, normalizeProps as le, guardReactiveProps as re } from "vue";
|
|
10
|
+
import { _ as j } from "../CustomIcon-h5X7369N.js";
|
|
11
|
+
import { T as mt } from "../timeFilters-BKnCM4rv.js";
|
|
12
12
|
import "single-spa";
|
|
13
|
-
import { O as
|
|
14
|
-
import { f as
|
|
15
|
-
import { a as ft } from "../index-
|
|
16
|
-
import { T as gt, A as
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
13
|
+
import { O as pt, A as ht } from "../OutputDialog-7M4L50tA.js";
|
|
14
|
+
import { f as Re } from "../format-CVeawcIv.js";
|
|
15
|
+
import { a as ft } from "../index-DS1ACWVr.js";
|
|
16
|
+
import { T as gt, A as Ce } from "../TopBar-B48yYbtR.js";
|
|
17
|
+
import { E as vt, C as _t } from "../ScriptChooser-ahp4Tu3O.js";
|
|
18
|
+
import { f as bt } from "../fileIcon-DqRHb1_Z.js";
|
|
19
|
+
import { C as wt } from "../CriticalCmdDialog-CnNlsHRX.js";
|
|
20
|
+
import { a as yt, O as kt, F as St } from "../Openc3Screen-Cqm5Xtd-.js";
|
|
21
|
+
import { S as xt } from "../SimpleTextDialog-D2mEDvGY.js";
|
|
22
|
+
import { _ as Ct } from "../ClassificationBanners-BGDnMx4r.js";
|
|
23
|
+
import "../purify.es-eYFoHPwR.js";
|
|
24
|
+
import { E as Vt } from "../EventListDialog-C2pwmD0d.js";
|
|
25
|
+
const Et = {
|
|
26
|
+
components: { OutputDialog: pt },
|
|
27
|
+
mixins: [mt],
|
|
27
28
|
props: {
|
|
28
29
|
tabId: Number,
|
|
29
30
|
curTab: Number,
|
|
@@ -102,7 +103,7 @@ const Vt = {
|
|
|
102
103
|
}
|
|
103
104
|
},
|
|
104
105
|
created() {
|
|
105
|
-
this.api = new
|
|
106
|
+
this.api = new Te(), this.api.get_setting("time_zone").then((t) => {
|
|
106
107
|
t && (this.timeZone = t);
|
|
107
108
|
}).catch((t) => {
|
|
108
109
|
}), this.getRunningScripts(), this.getCompletedScripts(), this.refreshTimer = setInterval(() => {
|
|
@@ -119,12 +120,12 @@ const Vt = {
|
|
|
119
120
|
O.get(
|
|
120
121
|
`/script-api/running-script?scope=DEFAULT&offset=${t}&limit=${this.runningItemsPerPage}`
|
|
121
122
|
).then((e) => {
|
|
122
|
-
const
|
|
123
|
-
|
|
123
|
+
const s = e.data.items || [], r = /* @__PURE__ */ new Date();
|
|
124
|
+
s.forEach((i) => {
|
|
124
125
|
if (i.user_display = `${i.user_full_name} (${i.username})`, i.start_time) {
|
|
125
|
-
const
|
|
126
|
+
const o = new Date(i.start_time), d = r - o;
|
|
126
127
|
if (i.start_time_formatted = this.formatDateTimeHMS(
|
|
127
|
-
|
|
128
|
+
o,
|
|
128
129
|
this.timeZone
|
|
129
130
|
), d < 0)
|
|
130
131
|
i.duration = "N/A";
|
|
@@ -133,15 +134,15 @@ const Vt = {
|
|
|
133
134
|
else if (d < 6e4)
|
|
134
135
|
i.duration = `${Math.round(d / 1e3)}s`;
|
|
135
136
|
else if (d < 36e5) {
|
|
136
|
-
const
|
|
137
|
-
i.duration = `${
|
|
137
|
+
const h = Math.floor(d / 6e4), c = Math.round(d % 6e4 / 1e3);
|
|
138
|
+
i.duration = `${h}m ${c}s`;
|
|
138
139
|
} else {
|
|
139
|
-
const
|
|
140
|
-
i.duration = `${
|
|
140
|
+
const h = Math.floor(d / 36e5), c = Math.floor(d % 36e5 / 6e4), b = Math.round(d % 6e4 / 1e3);
|
|
141
|
+
i.duration = `${h}h ${c}m ${b}s`;
|
|
141
142
|
}
|
|
142
143
|
} else
|
|
143
144
|
i.duration = "N/A";
|
|
144
|
-
}), this.runningScripts =
|
|
145
|
+
}), this.runningScripts = s, this.runningTotal = e.data.total || s.length, this.runningLoading = !1;
|
|
145
146
|
}).catch((e) => {
|
|
146
147
|
this.runningLoading = !1, this.$notify.caution({
|
|
147
148
|
title: "Error Loading Running Scripts",
|
|
@@ -161,29 +162,29 @@ const Vt = {
|
|
|
161
162
|
O.get(
|
|
162
163
|
`/script-api/completed-scripts?scope=DEFAULT&offset=${t}&limit=${this.completedItemsPerPage}`
|
|
163
164
|
).then((e) => {
|
|
164
|
-
const
|
|
165
|
-
|
|
166
|
-
if (
|
|
167
|
-
const i = new Date(
|
|
168
|
-
if (
|
|
165
|
+
const s = e.data.items || [];
|
|
166
|
+
s.forEach((r) => {
|
|
167
|
+
if (r.user_display = `${r.user_full_name} (${r.username})`, r.start_time && r.end_time) {
|
|
168
|
+
const i = new Date(r.start_time), d = new Date(r.end_time) - i;
|
|
169
|
+
if (r.start_time_formatted = this.formatDateTimeHMS(
|
|
169
170
|
i,
|
|
170
171
|
this.timeZone
|
|
171
172
|
), d < 0)
|
|
172
|
-
|
|
173
|
+
r.duration = "N/A";
|
|
173
174
|
else if (d < 1e3)
|
|
174
|
-
|
|
175
|
+
r.duration = "< 1s";
|
|
175
176
|
else if (d < 6e4)
|
|
176
|
-
|
|
177
|
+
r.duration = `${Math.round(d / 1e3)}s`;
|
|
177
178
|
else if (d < 36e5) {
|
|
178
|
-
const
|
|
179
|
-
|
|
179
|
+
const h = Math.floor(d / 6e4), c = Math.round(d % 6e4 / 1e3);
|
|
180
|
+
r.duration = `${h}m ${c}s`;
|
|
180
181
|
} else {
|
|
181
|
-
const
|
|
182
|
-
|
|
182
|
+
const h = Math.floor(d / 36e5), c = Math.floor(d % 36e5 / 6e4), b = Math.round(d % 6e4 / 1e3);
|
|
183
|
+
r.duration = `${h}h ${c}m ${b}s`;
|
|
183
184
|
}
|
|
184
185
|
} else
|
|
185
|
-
|
|
186
|
-
}), this.completedScripts =
|
|
186
|
+
r.duration = "N/A";
|
|
187
|
+
}), this.completedScripts = s, this.completedTotal = e.data.total || s.length, this.completedLoading = !1;
|
|
187
188
|
}).catch((e) => {
|
|
188
189
|
this.completedLoading = !1, this.$notify.caution({
|
|
189
190
|
title: "Error Loading Completed Scripts",
|
|
@@ -207,8 +208,8 @@ const Vt = {
|
|
|
207
208
|
params: { id: t.name }
|
|
208
209
|
};
|
|
209
210
|
if (this.connectInNewTab) {
|
|
210
|
-
let { href:
|
|
211
|
-
window.open(
|
|
211
|
+
let { href: s } = this.$router.resolve(e);
|
|
212
|
+
window.open(s, "_blank");
|
|
212
213
|
} else
|
|
213
214
|
this.$router.push(e), this.$emit("close");
|
|
214
215
|
},
|
|
@@ -231,102 +232,102 @@ const Vt = {
|
|
|
231
232
|
});
|
|
232
233
|
},
|
|
233
234
|
viewScriptLog: function(t, e) {
|
|
234
|
-
let
|
|
235
|
-
e === "report" ? (this.dialogName = "Report",
|
|
235
|
+
let s = null;
|
|
236
|
+
e === "report" ? (this.dialogName = "Report", s = t.report) : (this.dialogName = "Log", s = t.log), O.get(
|
|
236
237
|
`/openc3-api/storage/download_file/${encodeURIComponent(
|
|
237
|
-
|
|
238
|
+
s
|
|
238
239
|
)}?bucket=OPENC3_LOGS_BUCKET`
|
|
239
|
-
).then((
|
|
240
|
-
const i =
|
|
241
|
-
this.dialogFilename = i[i.length - 1], this.dialogContent = window.atob(
|
|
240
|
+
).then((r) => {
|
|
241
|
+
const i = s.split("/");
|
|
242
|
+
this.dialogFilename = i[i.length - 1], this.dialogContent = window.atob(r.data.contents), this.showDialog = !0;
|
|
242
243
|
});
|
|
243
244
|
},
|
|
244
|
-
downloadScriptLog: function(t, e,
|
|
245
|
-
let
|
|
246
|
-
e === "report" ? (this.dialogName = "Report",
|
|
245
|
+
downloadScriptLog: function(t, e, s = "text") {
|
|
246
|
+
let r = null;
|
|
247
|
+
e === "report" ? (this.dialogName = "Report", r = t.report) : (this.dialogName = "Log", r = t.log), this.downloadScript = t, s === "ctrf" && e === "report" ? O.get(
|
|
247
248
|
`/openc3-api/storage/download_file/${encodeURIComponent(
|
|
248
|
-
|
|
249
|
+
r
|
|
249
250
|
)}?bucket=OPENC3_LOGS_BUCKET&format=ctrf`
|
|
250
251
|
).then((i) => {
|
|
251
|
-
const
|
|
252
|
+
const o = new Blob([window.atob(i.data.contents)], {
|
|
252
253
|
type: "application/json"
|
|
253
254
|
}), d = document.createElement("a");
|
|
254
|
-
d.href = URL.createObjectURL(
|
|
255
|
+
d.href = URL.createObjectURL(o), d.setAttribute("download", i.data.filename), d.click(), this.downloadScript = null;
|
|
255
256
|
}).catch(() => {
|
|
256
257
|
this.$notify.caution({
|
|
257
|
-
title: `Unable to download log ${
|
|
258
|
-
body: `You may be able to download this log manually from the 'logs' bucket at ${
|
|
258
|
+
title: `Unable to download log ${r}`,
|
|
259
|
+
body: `You may be able to download this log manually from the 'logs' bucket at ${r}`
|
|
259
260
|
}), this.downloadScript = null;
|
|
260
261
|
}) : O.get(
|
|
261
262
|
`/openc3-api/storage/download/${encodeURIComponent(
|
|
262
|
-
|
|
263
|
+
r
|
|
263
264
|
)}?bucket=OPENC3_LOGS_BUCKET`
|
|
264
265
|
).then((i) => {
|
|
265
|
-
const
|
|
266
|
-
|
|
266
|
+
const o = r.split("/"), d = o[o.length - 1], h = document.createElement("a");
|
|
267
|
+
h.href = i.data.url, h.setAttribute("download", d), h.click(), this.downloadScript = null;
|
|
267
268
|
}).catch(() => {
|
|
268
269
|
this.$notify.caution({
|
|
269
|
-
title: `Unable to download log ${
|
|
270
|
-
body: `You may be able to download this log manually from the 'logs' bucket at ${
|
|
270
|
+
title: `Unable to download log ${r}`,
|
|
271
|
+
body: `You may be able to download this log manually from the 'logs' bucket at ${r}`
|
|
271
272
|
}), this.downloadScript = null;
|
|
272
273
|
});
|
|
273
274
|
}
|
|
274
275
|
}
|
|
275
276
|
}, Rt = { key: 0 }, Ot = { key: 1 };
|
|
276
|
-
function
|
|
277
|
-
const d =
|
|
278
|
-
return
|
|
279
|
-
|
|
277
|
+
function Mt(t, e, s, r, i, o) {
|
|
278
|
+
const d = a("v-tab"), h = a("v-tabs"), c = a("v-spacer"), b = a("v-btn"), k = a("v-text-field"), V = a("v-row"), w = a("v-card-title"), R = a("v-icon"), E = a("v-data-table-server"), T = a("v-window-item"), _ = a("v-list-item-title"), z = a("v-list-item"), G = a("v-list"), Q = a("v-menu"), te = a("v-window"), K = a("v-card"), ie = a("output-dialog");
|
|
279
|
+
return S(), P("div", null, [
|
|
280
|
+
n(K, {
|
|
280
281
|
flat: "",
|
|
281
282
|
class: "tab-card"
|
|
282
283
|
}, {
|
|
283
284
|
default: l(() => [
|
|
284
|
-
|
|
285
|
+
n(h, {
|
|
285
286
|
modelValue: i.activeTab,
|
|
286
|
-
"onUpdate:modelValue": e[0] || (e[0] = (
|
|
287
|
+
"onUpdate:modelValue": e[0] || (e[0] = (I) => i.activeTab = I),
|
|
287
288
|
"bg-color": "var(--color-background-base-default)"
|
|
288
289
|
}, {
|
|
289
290
|
default: l(() => [
|
|
290
|
-
|
|
291
|
+
n(d, { value: "running" }, {
|
|
291
292
|
default: l(() => [...e[6] || (e[6] = [
|
|
292
|
-
|
|
293
|
+
y("Running Scripts", -1)
|
|
293
294
|
])]),
|
|
294
295
|
_: 1
|
|
295
296
|
}),
|
|
296
|
-
|
|
297
|
+
n(d, { value: "completed" }, {
|
|
297
298
|
default: l(() => [...e[7] || (e[7] = [
|
|
298
|
-
|
|
299
|
+
y("Completed Scripts", -1)
|
|
299
300
|
])]),
|
|
300
301
|
_: 1
|
|
301
302
|
})
|
|
302
303
|
]),
|
|
303
304
|
_: 1
|
|
304
305
|
}, 8, ["modelValue"]),
|
|
305
|
-
|
|
306
|
+
n(te, {
|
|
306
307
|
modelValue: i.activeTab,
|
|
307
|
-
"onUpdate:modelValue": e[3] || (e[3] = (
|
|
308
|
+
"onUpdate:modelValue": e[3] || (e[3] = (I) => i.activeTab = I)
|
|
308
309
|
}, {
|
|
309
310
|
default: l(() => [
|
|
310
|
-
|
|
311
|
+
n(T, { value: "running" }, {
|
|
311
312
|
default: l(() => [
|
|
312
|
-
|
|
313
|
+
n(w, null, {
|
|
313
314
|
default: l(() => [
|
|
314
|
-
|
|
315
|
+
n(V, { dense: "" }, {
|
|
315
316
|
default: l(() => [
|
|
316
|
-
|
|
317
|
-
|
|
317
|
+
n(c),
|
|
318
|
+
n(b, {
|
|
318
319
|
class: "mr-3",
|
|
319
320
|
color: "primary",
|
|
320
|
-
onClick:
|
|
321
|
+
onClick: o.getRunningScripts
|
|
321
322
|
}, {
|
|
322
323
|
default: l(() => [...e[8] || (e[8] = [
|
|
323
|
-
|
|
324
|
+
y("Refresh", -1)
|
|
324
325
|
])]),
|
|
325
326
|
_: 1
|
|
326
327
|
}, 8, ["onClick"]),
|
|
327
|
-
|
|
328
|
+
n(k, {
|
|
328
329
|
modelValue: i.runningSearch,
|
|
329
|
-
"onUpdate:modelValue": e[1] || (e[1] = (
|
|
330
|
+
"onUpdate:modelValue": e[1] || (e[1] = (I) => i.runningSearch = I),
|
|
330
331
|
class: "pt-0 search",
|
|
331
332
|
label: "Search",
|
|
332
333
|
"prepend-inner-icon": "mdi-magnify",
|
|
@@ -344,7 +345,7 @@ function Et(t, e, n, a, i, s) {
|
|
|
344
345
|
]),
|
|
345
346
|
_: 1
|
|
346
347
|
}),
|
|
347
|
-
|
|
348
|
+
n(E, {
|
|
348
349
|
headers: i.runningHeaders,
|
|
349
350
|
items: i.runningScripts,
|
|
350
351
|
"items-length": i.runningTotal,
|
|
@@ -356,50 +357,50 @@ function Et(t, e, n, a, i, s) {
|
|
|
356
357
|
page: i.runningPage,
|
|
357
358
|
"items-per-page-options": [10, 25, 50],
|
|
358
359
|
class: "script-table",
|
|
359
|
-
"onUpdate:page":
|
|
360
|
-
"onUpdate:itemsPerPage":
|
|
360
|
+
"onUpdate:page": o.updateRunningPage,
|
|
361
|
+
"onUpdate:itemsPerPage": o.updateRunningItemsPerPage
|
|
361
362
|
}, {
|
|
362
|
-
"item.name": l(({ item:
|
|
363
|
-
|
|
363
|
+
"item.name": l(({ item: I }) => [
|
|
364
|
+
n(b, {
|
|
364
365
|
color: "primary",
|
|
365
366
|
density: "comfortable",
|
|
366
|
-
onClick: (F) =>
|
|
367
|
+
onClick: (F) => o.showScript(I)
|
|
367
368
|
}, {
|
|
368
369
|
default: l(() => [
|
|
369
|
-
|
|
370
|
+
y(L(I.name), 1)
|
|
370
371
|
]),
|
|
371
372
|
_: 2
|
|
372
373
|
}, 1032, ["onClick"])
|
|
373
374
|
]),
|
|
374
|
-
"item.connect": l(({ item:
|
|
375
|
-
|
|
375
|
+
"item.connect": l(({ item: I }) => [
|
|
376
|
+
n(b, {
|
|
376
377
|
color: "primary",
|
|
377
|
-
onClick: (F) =>
|
|
378
|
+
onClick: (F) => o.connectScript(I)
|
|
378
379
|
}, {
|
|
379
380
|
default: l(() => [
|
|
380
|
-
e[10] || (e[10] =
|
|
381
|
-
nt(
|
|
381
|
+
e[10] || (e[10] = x("span", null, "Connect", -1)),
|
|
382
|
+
nt(n(R, { end: "" }, {
|
|
382
383
|
default: l(() => [...e[9] || (e[9] = [
|
|
383
|
-
|
|
384
|
+
y(" mdi-open-in-new ", -1)
|
|
384
385
|
])]),
|
|
385
386
|
_: 1
|
|
386
387
|
}, 512), [
|
|
387
|
-
[ot,
|
|
388
|
+
[ot, s.connectInNewTab]
|
|
388
389
|
])
|
|
389
390
|
]),
|
|
390
391
|
_: 1
|
|
391
392
|
}, 8, ["onClick"])
|
|
392
393
|
]),
|
|
393
|
-
"item.stop": l(({ item:
|
|
394
|
-
|
|
394
|
+
"item.stop": l(({ item: I }) => [
|
|
395
|
+
n(b, {
|
|
395
396
|
color: "primary",
|
|
396
|
-
onClick: (F) =>
|
|
397
|
+
onClick: (F) => o.deleteScript(I)
|
|
397
398
|
}, {
|
|
398
399
|
default: l(() => [
|
|
399
|
-
e[12] || (e[12] =
|
|
400
|
-
|
|
400
|
+
e[12] || (e[12] = x("span", null, "Stop", -1)),
|
|
401
|
+
n(R, { end: "" }, {
|
|
401
402
|
default: l(() => [...e[11] || (e[11] = [
|
|
402
|
-
|
|
403
|
+
y(" mdi-close-circle-outline ", -1)
|
|
403
404
|
])]),
|
|
404
405
|
_: 1
|
|
405
406
|
})
|
|
@@ -412,26 +413,26 @@ function Et(t, e, n, a, i, s) {
|
|
|
412
413
|
]),
|
|
413
414
|
_: 1
|
|
414
415
|
}),
|
|
415
|
-
|
|
416
|
+
n(T, { value: "completed" }, {
|
|
416
417
|
default: l(() => [
|
|
417
|
-
|
|
418
|
+
n(w, null, {
|
|
418
419
|
default: l(() => [
|
|
419
|
-
|
|
420
|
+
n(V, { dense: "" }, {
|
|
420
421
|
default: l(() => [
|
|
421
|
-
|
|
422
|
-
|
|
422
|
+
n(c),
|
|
423
|
+
n(b, {
|
|
423
424
|
class: "mr-3",
|
|
424
425
|
color: "primary",
|
|
425
|
-
onClick:
|
|
426
|
+
onClick: o.getCompletedScripts
|
|
426
427
|
}, {
|
|
427
428
|
default: l(() => [...e[13] || (e[13] = [
|
|
428
|
-
|
|
429
|
+
y("Refresh", -1)
|
|
429
430
|
])]),
|
|
430
431
|
_: 1
|
|
431
432
|
}, 8, ["onClick"]),
|
|
432
|
-
|
|
433
|
+
n(k, {
|
|
433
434
|
modelValue: i.completedSearch,
|
|
434
|
-
"onUpdate:modelValue": e[2] || (e[2] = (
|
|
435
|
+
"onUpdate:modelValue": e[2] || (e[2] = (I) => i.completedSearch = I),
|
|
435
436
|
class: "pt-0 search",
|
|
436
437
|
label: "Search",
|
|
437
438
|
"prepend-inner-icon": "mdi-magnify",
|
|
@@ -448,7 +449,7 @@ function Et(t, e, n, a, i, s) {
|
|
|
448
449
|
]),
|
|
449
450
|
_: 1
|
|
450
451
|
}),
|
|
451
|
-
|
|
452
|
+
n(E, {
|
|
452
453
|
headers: i.completedHeaders,
|
|
453
454
|
items: i.completedScripts,
|
|
454
455
|
"items-length": i.completedTotal,
|
|
@@ -460,78 +461,78 @@ function Et(t, e, n, a, i, s) {
|
|
|
460
461
|
page: i.completedPage,
|
|
461
462
|
"items-per-page-options": [10, 25, 50],
|
|
462
463
|
class: "script-table",
|
|
463
|
-
"onUpdate:page":
|
|
464
|
-
"onUpdate:itemsPerPage":
|
|
464
|
+
"onUpdate:page": o.updateCompletedPage,
|
|
465
|
+
"onUpdate:itemsPerPage": o.updateCompletedItemsPerPage
|
|
465
466
|
}, {
|
|
466
|
-
"item.name": l(({ item:
|
|
467
|
-
|
|
467
|
+
"item.name": l(({ item: I }) => [
|
|
468
|
+
n(b, {
|
|
468
469
|
color: "primary",
|
|
469
470
|
density: "comfortable",
|
|
470
|
-
onClick: (F) =>
|
|
471
|
+
onClick: (F) => o.showScript(I)
|
|
471
472
|
}, {
|
|
472
473
|
default: l(() => [
|
|
473
|
-
|
|
474
|
+
y(L(I.name), 1)
|
|
474
475
|
]),
|
|
475
476
|
_: 2
|
|
476
477
|
}, 1032, ["onClick"])
|
|
477
478
|
]),
|
|
478
|
-
"item.log": l(({ item:
|
|
479
|
-
|
|
479
|
+
"item.log": l(({ item: I }) => [
|
|
480
|
+
n(b, {
|
|
480
481
|
color: "primary",
|
|
481
482
|
density: "comfortable",
|
|
482
483
|
icon: "mdi-eye",
|
|
483
|
-
onClick: (F) =>
|
|
484
|
+
onClick: (F) => o.viewScriptLog(I, "log")
|
|
484
485
|
}, null, 8, ["onClick"]),
|
|
485
|
-
|
|
486
|
+
n(b, {
|
|
486
487
|
color: "primary",
|
|
487
488
|
density: "comfortable",
|
|
488
489
|
icon: "mdi-file-download-outline",
|
|
489
490
|
disabled: i.downloadScript,
|
|
490
|
-
loading: i.downloadScript && i.downloadScript.name ===
|
|
491
|
-
onClick: (F) =>
|
|
491
|
+
loading: i.downloadScript && i.downloadScript.name === I.name,
|
|
492
|
+
onClick: (F) => o.downloadScriptLog(I, "log")
|
|
492
493
|
}, null, 8, ["disabled", "loading", "onClick"])
|
|
493
494
|
]),
|
|
494
|
-
"item.report": l(({ item:
|
|
495
|
-
|
|
496
|
-
|
|
495
|
+
"item.report": l(({ item: I }) => [
|
|
496
|
+
I.report ? (S(), P("div", Ot, [
|
|
497
|
+
n(b, {
|
|
497
498
|
color: "primary",
|
|
498
499
|
density: "comfortable",
|
|
499
500
|
icon: "mdi-eye",
|
|
500
|
-
onClick: (F) =>
|
|
501
|
+
onClick: (F) => o.viewScriptLog(I, "report")
|
|
501
502
|
}, null, 8, ["onClick"]),
|
|
502
|
-
|
|
503
|
+
n(Q, null, {
|
|
503
504
|
activator: l(({ props: F }) => [
|
|
504
|
-
|
|
505
|
+
n(b, X({
|
|
505
506
|
color: "primary",
|
|
506
507
|
density: "comfortable",
|
|
507
508
|
icon: "mdi-file-download-outline",
|
|
508
509
|
disabled: i.downloadScript,
|
|
509
|
-
loading: i.downloadScript && i.downloadScript.name ===
|
|
510
|
+
loading: i.downloadScript && i.downloadScript.name === I.name
|
|
510
511
|
}, F), null, 16, ["disabled", "loading"])
|
|
511
512
|
]),
|
|
512
513
|
default: l(() => [
|
|
513
|
-
|
|
514
|
+
n(G, null, {
|
|
514
515
|
default: l(() => [
|
|
515
|
-
|
|
516
|
-
onClick: (F) =>
|
|
516
|
+
n(z, {
|
|
517
|
+
onClick: (F) => o.downloadScriptLog(I, "report", "text")
|
|
517
518
|
}, {
|
|
518
519
|
default: l(() => [
|
|
519
|
-
|
|
520
|
+
n(_, null, {
|
|
520
521
|
default: l(() => [...e[15] || (e[15] = [
|
|
521
|
-
|
|
522
|
+
y("Download as Text", -1)
|
|
522
523
|
])]),
|
|
523
524
|
_: 1
|
|
524
525
|
})
|
|
525
526
|
]),
|
|
526
527
|
_: 1
|
|
527
528
|
}, 8, ["onClick"]),
|
|
528
|
-
|
|
529
|
-
onClick: (F) =>
|
|
529
|
+
n(z, {
|
|
530
|
+
onClick: (F) => o.downloadScriptLog(I, "report", "ctrf")
|
|
530
531
|
}, {
|
|
531
532
|
default: l(() => [
|
|
532
|
-
|
|
533
|
+
n(_, null, {
|
|
533
534
|
default: l(() => [...e[16] || (e[16] = [
|
|
534
|
-
|
|
535
|
+
y("Download as CTRF", -1)
|
|
535
536
|
])]),
|
|
536
537
|
_: 1
|
|
537
538
|
})
|
|
@@ -544,8 +545,8 @@ function Et(t, e, n, a, i, s) {
|
|
|
544
545
|
]),
|
|
545
546
|
_: 2
|
|
546
547
|
}, 1024)
|
|
547
|
-
])) : (
|
|
548
|
-
|
|
548
|
+
])) : (S(), P("div", Rt, [...e[14] || (e[14] = [
|
|
549
|
+
x("span", null, "N/A", -1)
|
|
549
550
|
])]))
|
|
550
551
|
]),
|
|
551
552
|
_: 1
|
|
@@ -559,19 +560,19 @@ function Et(t, e, n, a, i, s) {
|
|
|
559
560
|
]),
|
|
560
561
|
_: 1
|
|
561
562
|
}),
|
|
562
|
-
i.showDialog ? (
|
|
563
|
+
i.showDialog ? (S(), D(ie, {
|
|
563
564
|
key: 0,
|
|
564
565
|
modelValue: i.showDialog,
|
|
565
|
-
"onUpdate:modelValue": e[4] || (e[4] = (
|
|
566
|
+
"onUpdate:modelValue": e[4] || (e[4] = (I) => i.showDialog = I),
|
|
566
567
|
content: i.dialogContent,
|
|
567
568
|
type: "Script",
|
|
568
569
|
name: i.dialogName,
|
|
569
570
|
filename: i.dialogFilename,
|
|
570
|
-
onSubmit: e[5] || (e[5] = (
|
|
571
|
-
}, null, 8, ["modelValue", "content", "name", "filename"])) :
|
|
571
|
+
onSubmit: e[5] || (e[5] = (I) => i.showDialog = !1)
|
|
572
|
+
}, null, 8, ["modelValue", "content", "name", "filename"])) : U("", !0)
|
|
572
573
|
]);
|
|
573
574
|
}
|
|
574
|
-
const
|
|
575
|
+
const Tt = /* @__PURE__ */ j(Et, [["render", Mt]]), It = {
|
|
575
576
|
props: {
|
|
576
577
|
modelValue: {
|
|
577
578
|
type: Array,
|
|
@@ -609,14 +610,14 @@ const Mt = /* @__PURE__ */ q(Vt, [["render", Et]]), Tt = {
|
|
|
609
610
|
) ? "openc3-red" : "";
|
|
610
611
|
},
|
|
611
612
|
downloadLog() {
|
|
612
|
-
const t = this.messages.map((
|
|
613
|
+
const t = this.messages.map((r) => r.message).join(`
|
|
613
614
|
`), e = new Blob([t], {
|
|
614
615
|
type: "text/plain"
|
|
615
|
-
}),
|
|
616
|
-
|
|
616
|
+
}), s = document.createElement("a");
|
|
617
|
+
s.href = URL.createObjectURL(e), s.setAttribute(
|
|
617
618
|
"download",
|
|
618
|
-
|
|
619
|
-
),
|
|
619
|
+
Re(Date.now(), "yyyy_MM_dd_HH_mm_ss") + "_sr_message_log.txt"
|
|
620
|
+
), s.click();
|
|
620
621
|
},
|
|
621
622
|
clearLog: function() {
|
|
622
623
|
this.$dialog.confirm("Are you sure you want to clear the log?", {
|
|
@@ -629,26 +630,26 @@ const Mt = /* @__PURE__ */ q(Vt, [["render", Et]]), Tt = {
|
|
|
629
630
|
}
|
|
630
631
|
}
|
|
631
632
|
};
|
|
632
|
-
function
|
|
633
|
-
const d =
|
|
634
|
-
return
|
|
633
|
+
function Dt(t, e, s, r, i, o) {
|
|
634
|
+
const d = a("v-btn"), h = a("v-spacer"), c = a("v-select"), b = a("v-text-field"), k = a("v-card-title"), V = a("v-data-table"), w = a("v-card-text"), R = a("v-card");
|
|
635
|
+
return S(), D(R, null, {
|
|
635
636
|
default: l(() => [
|
|
636
|
-
|
|
637
|
+
n(k, { class: "d-flex align-center" }, {
|
|
637
638
|
default: l(() => [
|
|
638
|
-
|
|
639
|
+
n(d, {
|
|
639
640
|
class: "mx-2",
|
|
640
641
|
icon: "mdi-download",
|
|
641
642
|
variant: "text",
|
|
642
643
|
density: "compact",
|
|
643
644
|
"data-test": "download-log",
|
|
644
645
|
"aria-label": "Download Log",
|
|
645
|
-
onClick:
|
|
646
|
+
onClick: o.downloadLog
|
|
646
647
|
}, null, 8, ["onClick"]),
|
|
647
|
-
e[2] || (e[2] =
|
|
648
|
-
|
|
649
|
-
|
|
648
|
+
e[2] || (e[2] = y(" Script Messages ", -1)),
|
|
649
|
+
n(h),
|
|
650
|
+
n(c, {
|
|
650
651
|
modelValue: i.messageOrder,
|
|
651
|
-
"onUpdate:modelValue": e[0] || (e[0] = (
|
|
652
|
+
"onUpdate:modelValue": e[0] || (e[0] = (E) => i.messageOrder = E),
|
|
652
653
|
density: "compact",
|
|
653
654
|
"hide-details": "",
|
|
654
655
|
variant: "outlined",
|
|
@@ -657,10 +658,10 @@ function It(t, e, n, a, i, s) {
|
|
|
657
658
|
style: { "max-width": "200px" },
|
|
658
659
|
"data-test": "message-order"
|
|
659
660
|
}, null, 8, ["modelValue", "items"]),
|
|
660
|
-
|
|
661
|
-
|
|
661
|
+
n(h),
|
|
662
|
+
n(b, {
|
|
662
663
|
modelValue: i.search,
|
|
663
|
-
"onUpdate:modelValue": e[1] || (e[1] = (
|
|
664
|
+
"onUpdate:modelValue": e[1] || (e[1] = (E) => i.search = E),
|
|
664
665
|
label: "Search",
|
|
665
666
|
"prepend-inner-icon": "mdi-magnify",
|
|
666
667
|
clearable: "",
|
|
@@ -671,35 +672,35 @@ function It(t, e, n, a, i, s) {
|
|
|
671
672
|
class: "search",
|
|
672
673
|
"data-test": "search-messages"
|
|
673
674
|
}, null, 8, ["modelValue"]),
|
|
674
|
-
|
|
675
|
+
n(d, {
|
|
675
676
|
class: "mx-2",
|
|
676
677
|
icon: "mdi-delete-sweep",
|
|
677
678
|
variant: "text",
|
|
678
679
|
density: "compact",
|
|
679
680
|
"data-test": "clear-log",
|
|
680
681
|
"aria-label": "Clear Log",
|
|
681
|
-
onClick:
|
|
682
|
+
onClick: o.clearLog
|
|
682
683
|
}, null, 8, ["onClick"])
|
|
683
684
|
]),
|
|
684
685
|
_: 1
|
|
685
686
|
}),
|
|
686
|
-
|
|
687
|
+
n(w, null, {
|
|
687
688
|
default: l(() => [
|
|
688
|
-
|
|
689
|
+
n(V, {
|
|
689
690
|
id: "script-log-messages",
|
|
690
691
|
style: { overflow: "auto" },
|
|
691
692
|
headers: i.headers,
|
|
692
|
-
items:
|
|
693
|
+
items: o.messages,
|
|
693
694
|
search: i.search,
|
|
694
695
|
"items-per-page": -1,
|
|
695
696
|
"hide-default-footer": "",
|
|
696
697
|
density: "compact",
|
|
697
698
|
"data-test": "output-messages"
|
|
698
699
|
}, {
|
|
699
|
-
"item.message": l(({ item:
|
|
700
|
-
|
|
701
|
-
class:
|
|
702
|
-
},
|
|
700
|
+
"item.message": l(({ item: E }) => [
|
|
701
|
+
x("div", {
|
|
702
|
+
class: Xe(o.messageClass(E.message))
|
|
703
|
+
}, L(E.message), 3)
|
|
703
704
|
]),
|
|
704
705
|
_: 1
|
|
705
706
|
}, 8, ["headers", "items", "search"])
|
|
@@ -710,7 +711,7 @@ function It(t, e, n, a, i, s) {
|
|
|
710
711
|
_: 1
|
|
711
712
|
});
|
|
712
713
|
}
|
|
713
|
-
const
|
|
714
|
+
const Ut = /* @__PURE__ */ j(It, [["render", Dt]]), Pt = {
|
|
714
715
|
__name: "splitpanes",
|
|
715
716
|
props: {
|
|
716
717
|
horizontal: { type: Boolean, default: !1 },
|
|
@@ -733,200 +734,200 @@ const Dt = /* @__PURE__ */ q(Tt, [["render", It]]), Ut = {
|
|
|
733
734
|
"splitter-dblclick"
|
|
734
735
|
],
|
|
735
736
|
setup(t, { emit: e }) {
|
|
736
|
-
const
|
|
737
|
+
const s = e, r = t, i = dt(), o = ae([]), d = Y(() => o.value.reduce((u, p) => (u[~~p.id] = p) && u, {})), h = Y(() => o.value.length), c = ae(null), b = ae(!1), k = ae({
|
|
737
738
|
mouseDown: !1,
|
|
738
739
|
dragging: !1,
|
|
739
740
|
activeSplitter: null,
|
|
740
741
|
cursorOffset: 0
|
|
741
742
|
// Cursor offset within the splitter.
|
|
742
|
-
}),
|
|
743
|
+
}), V = ae({
|
|
743
744
|
// Used to detect double click on touch devices.
|
|
744
745
|
splitter: null,
|
|
745
746
|
timeoutId: null
|
|
746
|
-
}),
|
|
747
|
-
[`splitpanes splitpanes--${
|
|
748
|
-
"splitpanes--dragging":
|
|
747
|
+
}), w = Y(() => ({
|
|
748
|
+
[`splitpanes splitpanes--${r.horizontal ? "horizontal" : "vertical"}`]: !0,
|
|
749
|
+
"splitpanes--dragging": k.value.dragging
|
|
749
750
|
})), R = () => {
|
|
750
|
-
document.addEventListener("mousemove", _, { passive: !1 }), document.addEventListener("mouseup",
|
|
751
|
-
},
|
|
752
|
-
document.removeEventListener("mousemove", _, { passive: !1 }), document.removeEventListener("mouseup",
|
|
753
|
-
},
|
|
754
|
-
const
|
|
755
|
-
if (
|
|
756
|
-
const { left: f, top: g } =
|
|
757
|
-
|
|
751
|
+
document.addEventListener("mousemove", _, { passive: !1 }), document.addEventListener("mouseup", z), "ontouchstart" in window && (document.addEventListener("touchmove", _, { passive: !1 }), document.addEventListener("touchend", z));
|
|
752
|
+
}, E = () => {
|
|
753
|
+
document.removeEventListener("mousemove", _, { passive: !1 }), document.removeEventListener("mouseup", z), "ontouchstart" in window && (document.removeEventListener("touchmove", _, { passive: !1 }), document.removeEventListener("touchend", z));
|
|
754
|
+
}, T = (u, p) => {
|
|
755
|
+
const v = u.target.closest(".splitpanes__splitter");
|
|
756
|
+
if (v) {
|
|
757
|
+
const { left: f, top: g } = v.getBoundingClientRect(), { clientX: C, clientY: M } = "ontouchstart" in window && u.touches ? u.touches[0] : u;
|
|
758
|
+
k.value.cursorOffset = r.horizontal ? M - g : C - f;
|
|
758
759
|
}
|
|
759
|
-
R(),
|
|
760
|
-
}, _ = (
|
|
761
|
-
|
|
762
|
-
|
|
760
|
+
R(), k.value.mouseDown = !0, k.value.activeSplitter = p;
|
|
761
|
+
}, _ = (u) => {
|
|
762
|
+
k.value.mouseDown && (u.preventDefault(), k.value.dragging = !0, requestAnimationFrame(() => {
|
|
763
|
+
I(K(u)), N("resize", { event: u }, !0);
|
|
763
764
|
}));
|
|
764
|
-
},
|
|
765
|
-
|
|
766
|
-
|
|
765
|
+
}, z = (u) => {
|
|
766
|
+
k.value.dragging && (window.getSelection().removeAllRanges(), N("resized", { event: u }, !0)), k.value.mouseDown = !1, k.value.activeSplitter = null, setTimeout(() => {
|
|
767
|
+
k.value.dragging = !1, E();
|
|
767
768
|
}, 100);
|
|
768
|
-
},
|
|
769
|
-
"ontouchstart" in window && (
|
|
770
|
-
}, Q = (
|
|
771
|
-
if (
|
|
772
|
-
let
|
|
773
|
-
|
|
769
|
+
}, G = (u, p) => {
|
|
770
|
+
"ontouchstart" in window && (u.preventDefault(), V.value.splitter === p ? (clearTimeout(V.value.timeoutId), V.value.timeoutId = null, Q(u, p), V.value.splitter = null) : (V.value.splitter = p, V.value.timeoutId = setTimeout(() => V.value.splitter = null, 500))), k.value.dragging || N("splitter-click", { event: u, index: p }, !0);
|
|
771
|
+
}, Q = (u, p) => {
|
|
772
|
+
if (N("splitter-dblclick", { event: u, index: p }, !0), r.maximizePanes) {
|
|
773
|
+
let v = 0;
|
|
774
|
+
o.value = o.value.map((f, g) => (f.size = g === p ? f.max : f.min, g !== p && (v += f.min), f)), o.value[p].size -= v, N("pane-maximize", { event: u, index: p, pane: o.value[p] }), N("resized", { event: u, index: p }, !0);
|
|
774
775
|
}
|
|
775
|
-
},
|
|
776
|
-
|
|
777
|
-
event:
|
|
778
|
-
index: d.value[
|
|
779
|
-
pane: d.value[
|
|
776
|
+
}, te = (u, p) => {
|
|
777
|
+
N("pane-click", {
|
|
778
|
+
event: u,
|
|
779
|
+
index: d.value[p].index,
|
|
780
|
+
pane: d.value[p]
|
|
780
781
|
});
|
|
781
|
-
}, K = (
|
|
782
|
-
const
|
|
782
|
+
}, K = (u) => {
|
|
783
|
+
const p = c.value.getBoundingClientRect(), { clientX: v, clientY: f } = "ontouchstart" in window && u.touches ? u.touches[0] : u;
|
|
783
784
|
return {
|
|
784
|
-
x:
|
|
785
|
-
y: f - (
|
|
785
|
+
x: v - (r.horizontal ? 0 : k.value.cursorOffset) - p.left,
|
|
786
|
+
y: f - (r.horizontal ? k.value.cursorOffset : 0) - p.top
|
|
786
787
|
};
|
|
787
|
-
},
|
|
788
|
-
|
|
789
|
-
const
|
|
790
|
-
return
|
|
791
|
-
},
|
|
792
|
-
const
|
|
793
|
-
let
|
|
794
|
-
prevPanesSize:
|
|
795
|
-
nextPanesSize:
|
|
788
|
+
}, ie = (u) => {
|
|
789
|
+
u = u[r.horizontal ? "y" : "x"];
|
|
790
|
+
const p = c.value[r.horizontal ? "clientHeight" : "clientWidth"];
|
|
791
|
+
return r.rtl && !r.horizontal && (u = p - u), u * 100 / p;
|
|
792
|
+
}, I = (u) => {
|
|
793
|
+
const p = k.value.activeSplitter;
|
|
794
|
+
let v = {
|
|
795
|
+
prevPanesSize: ce(p),
|
|
796
|
+
nextPanesSize: Z(p),
|
|
796
797
|
prevReachedMinPanes: 0,
|
|
797
798
|
nextReachedMinPanes: 0
|
|
798
799
|
};
|
|
799
|
-
const f = 0 + (
|
|
800
|
-
let
|
|
801
|
-
const
|
|
802
|
-
if (
|
|
803
|
-
|
|
800
|
+
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 M = [p, p + 1], A = o.value[M[0]] || null, H = o.value[M[1]] || null;
|
|
802
|
+
const m = A.max < 100 && C >= A.max + v.prevPanesSize, J = H.max < 100 && C <= 100 - (H.max + Z(p + 1));
|
|
803
|
+
if (m || J) {
|
|
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 - Z(p + 1), 0), H.size = H.max);
|
|
804
805
|
return;
|
|
805
806
|
}
|
|
806
|
-
if (
|
|
807
|
-
const
|
|
808
|
-
if (!
|
|
809
|
-
({ sums:
|
|
807
|
+
if (r.pushOtherPanes) {
|
|
808
|
+
const je = F(v, C);
|
|
809
|
+
if (!je) return;
|
|
810
|
+
({ sums: v, panesToResize: M } = je), A = o.value[M[0]] || null, H = o.value[M[1]] || null;
|
|
810
811
|
}
|
|
811
|
-
A !== null && (A.size = Math.min(Math.max(
|
|
812
|
-
}, F = (
|
|
813
|
-
const
|
|
814
|
-
return
|
|
815
|
-
|
|
816
|
-
}),
|
|
817
|
-
|
|
818
|
-
}),
|
|
819
|
-
|
|
820
|
-
}),
|
|
821
|
-
|
|
822
|
-
}),
|
|
823
|
-
},
|
|
824
|
-
var
|
|
825
|
-
const
|
|
826
|
-
for (const
|
|
827
|
-
const f =
|
|
828
|
-
!f && !g && (
|
|
812
|
+
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, p) => {
|
|
814
|
+
const v = k.value.activeSplitter, f = [v, v + 1];
|
|
815
|
+
return p < u.prevPanesSize + o.value[f[0]].min && (f[0] = Ie(v).index, u.prevReachedMinPanes = 0, f[0] < v && o.value.forEach((g, C) => {
|
|
816
|
+
C > f[0] && C <= v && (g.size = g.min, u.prevReachedMinPanes += g.min);
|
|
817
|
+
}), u.prevPanesSize = ce(f[0]), f[0] === void 0) ? (u.prevReachedMinPanes = 0, o.value[0].size = o.value[0].min, o.value.forEach((g, C) => {
|
|
818
|
+
C > 0 && C <= v && (g.size = g.min, u.prevReachedMinPanes += g.min);
|
|
819
|
+
}), o.value[f[1]].size = 100 - u.prevReachedMinPanes - o.value[0].min - u.prevPanesSize - u.nextPanesSize, null) : p > 100 - u.nextPanesSize - o.value[f[1]].min && (f[1] = ke(v).index, u.nextReachedMinPanes = 0, f[1] > v + 1 && o.value.forEach((g, C) => {
|
|
820
|
+
C > v && C < f[1] && (g.size = g.min, u.nextReachedMinPanes += g.min);
|
|
821
|
+
}), u.nextPanesSize = Z(f[1] - 1), f[1] === void 0) ? (u.nextReachedMinPanes = 0, o.value.forEach((g, C) => {
|
|
822
|
+
C < h.value - 1 && C >= v + 1 && (g.size = g.min, u.nextReachedMinPanes += g.min);
|
|
823
|
+
}), o.value[f[0]].size = 100 - u.prevPanesSize - Z(f[0] - 1), null) : { sums: u, panesToResize: f };
|
|
824
|
+
}, ce = (u) => o.value.reduce((p, v, f) => p + (f < u ? v.size : 0), 0), Z = (u) => o.value.reduce((p, v, f) => p + (f > u + 1 ? v.size : 0), 0), Ie = (u) => [...o.value].reverse().find((p) => p.index < u && p.size > p.min) || {}, ke = (u) => o.value.find((p) => p.index > u + 1 && p.size > p.min) || {}, De = () => {
|
|
825
|
+
var u;
|
|
826
|
+
const p = Array.from(((u = c.value) == null ? void 0 : u.children) || []);
|
|
827
|
+
for (const v of p) {
|
|
828
|
+
const f = v.classList.contains("splitpanes__pane"), g = v.classList.contains("splitpanes__splitter");
|
|
829
|
+
!f && !g && (v.remove(), console.warn("Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed."));
|
|
829
830
|
}
|
|
830
|
-
},
|
|
831
|
-
const f =
|
|
832
|
-
g.classList.add("splitpanes__splitter"),
|
|
833
|
-
},
|
|
834
|
-
|
|
835
|
-
},
|
|
836
|
-
var
|
|
837
|
-
const
|
|
838
|
-
for (const f of
|
|
839
|
-
f.className.includes("splitpanes__splitter") &&
|
|
840
|
-
let
|
|
841
|
-
for (const f of
|
|
842
|
-
f.className.includes("splitpanes__pane") && (!
|
|
843
|
-
},
|
|
844
|
-
const
|
|
845
|
-
for (const [f, g] of Object.entries(
|
|
846
|
-
},
|
|
847
|
-
var
|
|
848
|
-
let
|
|
849
|
-
Array.from(((
|
|
850
|
-
|
|
831
|
+
}, me = (u, p, v = !1) => {
|
|
832
|
+
const f = u - 1, g = document.createElement("div");
|
|
833
|
+
g.classList.add("splitpanes__splitter"), v || (g.onmousedown = (C) => T(C, f), typeof window < "u" && "ontouchstart" in window && (g.ontouchstart = (C) => T(C, f)), g.onclick = (C) => G(C, f + 1)), g.ondblclick = (C) => Q(C, f + 1), p.parentNode.insertBefore(g, p);
|
|
834
|
+
}, Se = (u) => {
|
|
835
|
+
u.onmousedown = void 0, u.onclick = void 0, u.ondblclick = void 0, u.remove();
|
|
836
|
+
}, se = () => {
|
|
837
|
+
var u;
|
|
838
|
+
const p = Array.from(((u = c.value) == null ? void 0 : u.children) || []);
|
|
839
|
+
for (const f of p)
|
|
840
|
+
f.className.includes("splitpanes__splitter") && Se(f);
|
|
841
|
+
let v = 0;
|
|
842
|
+
for (const f of p)
|
|
843
|
+
f.className.includes("splitpanes__pane") && (!v && r.firstSplitter ? me(v, f, !0) : v && me(v, f), v++);
|
|
844
|
+
}, xe = ({ uid: u, ...p }) => {
|
|
845
|
+
const v = d.value[u];
|
|
846
|
+
for (const [f, g] of Object.entries(p)) v[f] = g;
|
|
847
|
+
}, Ue = (u) => {
|
|
848
|
+
var p;
|
|
849
|
+
let v = -1;
|
|
850
|
+
Array.from(((p = c.value) == null ? void 0 : p.children) || []).some((f) => (f.className.includes("splitpanes__pane") && v++, f.isSameNode(u.el))), o.value.splice(v, 0, { ...u, index: v }), o.value.forEach((f, g) => f.index = g), b.value && Ne(() => {
|
|
851
|
+
se(), pe({ addedPane: o.value[v] }), N("pane-add", { pane: o.value[v] });
|
|
851
852
|
});
|
|
852
|
-
},
|
|
853
|
-
const
|
|
854
|
-
|
|
855
|
-
const
|
|
856
|
-
|
|
857
|
-
|
|
853
|
+
}, Pe = (u) => {
|
|
854
|
+
const p = o.value.findIndex((f) => f.id === u);
|
|
855
|
+
o.value[p].el = null;
|
|
856
|
+
const v = o.value.splice(p, 1)[0];
|
|
857
|
+
o.value.forEach((f, g) => f.index = g), Ne(() => {
|
|
858
|
+
se(), N("pane-remove", { pane: v }), pe({ removedPane: { ...v } });
|
|
858
859
|
});
|
|
859
|
-
},
|
|
860
|
-
!
|
|
861
|
-
},
|
|
862
|
-
const
|
|
863
|
-
let
|
|
864
|
-
const
|
|
865
|
-
for (const g of
|
|
866
|
-
g.size = Math.max(Math.min(
|
|
867
|
-
|
|
868
|
-
},
|
|
869
|
-
let
|
|
870
|
-
const
|
|
860
|
+
}, pe = (u = {}) => {
|
|
861
|
+
!u.addedPane && !u.removedPane ? Le() : o.value.some((p) => p.givenSize !== null || p.min || p.max < 100) ? Ae(u) : ze(), b.value && N("resized");
|
|
862
|
+
}, ze = () => {
|
|
863
|
+
const u = 100 / h.value;
|
|
864
|
+
let p = 0;
|
|
865
|
+
const v = [], f = [];
|
|
866
|
+
for (const g of o.value)
|
|
867
|
+
g.size = Math.max(Math.min(u, g.max), g.min), p -= g.size, g.size >= g.max && v.push(g.id), g.size <= g.min && f.push(g.id);
|
|
868
|
+
p > 0.1 && he(p, v, f);
|
|
869
|
+
}, Le = () => {
|
|
870
|
+
let u = 100;
|
|
871
|
+
const p = [], v = [];
|
|
871
872
|
let f = 0;
|
|
872
|
-
for (const
|
|
873
|
-
|
|
873
|
+
for (const C of o.value)
|
|
874
|
+
u -= C.size, C.givenSize !== null && f++, C.size >= C.max && p.push(C.id), C.size <= C.min && v.push(C.id);
|
|
874
875
|
let g = 100;
|
|
875
|
-
if (
|
|
876
|
-
for (const
|
|
877
|
-
|
|
878
|
-
g > 0.1 &&
|
|
876
|
+
if (u > 0.1) {
|
|
877
|
+
for (const C of o.value)
|
|
878
|
+
C.givenSize === null && (C.size = Math.max(Math.min(u / (h.value - f), C.max), C.min)), g -= C.size;
|
|
879
|
+
g > 0.1 && he(g, p, v);
|
|
879
880
|
}
|
|
880
|
-
},
|
|
881
|
-
let
|
|
882
|
-
const g = [],
|
|
883
|
-
((
|
|
884
|
-
for (const
|
|
885
|
-
f -=
|
|
881
|
+
}, Ae = ({ addedPane: u, removedPane: p } = {}) => {
|
|
882
|
+
let v = 100 / h.value, f = 0;
|
|
883
|
+
const g = [], C = [];
|
|
884
|
+
((u == null ? void 0 : u.givenSize) ?? null) !== null && (v = (100 - u.givenSize) / (h.value - 1));
|
|
885
|
+
for (const M of o.value)
|
|
886
|
+
f -= M.size, M.size >= M.max && g.push(M.id), M.size <= M.min && C.push(M.id);
|
|
886
887
|
if (!(Math.abs(f) < 0.1)) {
|
|
887
|
-
for (const
|
|
888
|
-
(
|
|
889
|
-
f > 0.1 &&
|
|
888
|
+
for (const M of o.value)
|
|
889
|
+
(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
|
+
f > 0.1 && he(f, g, C);
|
|
890
891
|
}
|
|
891
|
-
},
|
|
892
|
+
}, he = (u, p, v) => {
|
|
892
893
|
let f;
|
|
893
|
-
|
|
894
|
-
if (
|
|
895
|
-
const
|
|
896
|
-
|
|
897
|
-
} else if (!
|
|
898
|
-
const
|
|
899
|
-
|
|
894
|
+
u > 0 ? f = u / (h.value - p.length) : f = u / (h.value - v.length), o.value.forEach((g, C) => {
|
|
895
|
+
if (u > 0 && !p.includes(g.id)) {
|
|
896
|
+
const M = Math.max(Math.min(g.size + f, g.max), g.min), A = M - g.size;
|
|
897
|
+
u -= A, g.size = M;
|
|
898
|
+
} else if (!v.includes(g.id)) {
|
|
899
|
+
const M = Math.max(Math.min(g.size + f, g.max), g.min), A = M - g.size;
|
|
900
|
+
u -= A, g.size = M;
|
|
900
901
|
}
|
|
901
|
-
}), Math.abs(
|
|
902
|
-
|
|
902
|
+
}), Math.abs(u) > 0.1 && Ne(() => {
|
|
903
|
+
b.value && console.warn("Splitpanes: Could not resize panes correctly due to their constraints.");
|
|
903
904
|
});
|
|
904
|
-
},
|
|
905
|
-
const f = (
|
|
906
|
-
|
|
907
|
-
...
|
|
905
|
+
}, N = (u, p = void 0, v = !1) => {
|
|
906
|
+
const f = (p == null ? void 0 : p.index) ?? k.value.activeSplitter ?? null;
|
|
907
|
+
s(u, {
|
|
908
|
+
...p,
|
|
908
909
|
...f !== null && { index: f },
|
|
909
|
-
...
|
|
910
|
-
prevPane:
|
|
911
|
-
nextPane:
|
|
910
|
+
...v && f !== null && {
|
|
911
|
+
prevPane: o.value[f - (r.firstSplitter ? 1 : 0)],
|
|
912
|
+
nextPane: o.value[f + (r.firstSplitter ? 0 : 1)]
|
|
912
913
|
},
|
|
913
|
-
panes:
|
|
914
|
+
panes: o.value.map((g) => ({ min: g.min, max: g.max, size: g.size }))
|
|
914
915
|
});
|
|
915
916
|
};
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
}),
|
|
919
|
-
const
|
|
920
|
-
var
|
|
917
|
+
Ve(() => r.firstSplitter, () => se()), Qe(() => {
|
|
918
|
+
De(), se(), pe(), N("ready"), b.value = !0;
|
|
919
|
+
}), $e(() => b.value = !1);
|
|
920
|
+
const Fe = () => {
|
|
921
|
+
var u;
|
|
921
922
|
return ct(
|
|
922
923
|
"div",
|
|
923
|
-
{ ref:
|
|
924
|
-
(
|
|
924
|
+
{ ref: c, class: w.value },
|
|
925
|
+
(u = i.default) == null ? void 0 : u.call(i)
|
|
925
926
|
);
|
|
926
927
|
};
|
|
927
|
-
return
|
|
928
|
+
return $("panes", o), $("indexedPanes", d), $("horizontal", Y(() => r.horizontal)), $("requestUpdate", xe), $("onPaneAdd", Ue), $("onPaneRemove", Pe), $("onPaneClick", te), (u, p) => (S(), D(ut(Fe)));
|
|
928
929
|
}
|
|
929
|
-
},
|
|
930
|
+
}, zt = {
|
|
930
931
|
__name: "pane",
|
|
931
932
|
props: {
|
|
932
933
|
size: { type: [Number, String] },
|
|
@@ -935,41 +936,41 @@ const Dt = /* @__PURE__ */ q(Tt, [["render", It]]), Ut = {
|
|
|
935
936
|
},
|
|
936
937
|
setup(t) {
|
|
937
938
|
var e;
|
|
938
|
-
const
|
|
939
|
-
const _ = isNaN(
|
|
940
|
-
return Math.max(Math.min(_,
|
|
941
|
-
}), R =
|
|
942
|
-
const _ = parseFloat(
|
|
939
|
+
const s = t, r = oe("requestUpdate"), i = oe("onPaneAdd"), o = oe("horizontal"), d = oe("onPaneRemove"), h = oe("onPaneClick"), c = (e = lt()) == null ? void 0 : e.uid, b = oe("indexedPanes"), k = Y(() => b.value[c]), V = ae(null), w = Y(() => {
|
|
940
|
+
const _ = isNaN(s.size) || s.size === void 0 ? 0 : parseFloat(s.size);
|
|
941
|
+
return Math.max(Math.min(_, E.value), R.value);
|
|
942
|
+
}), R = Y(() => {
|
|
943
|
+
const _ = parseFloat(s.minSize);
|
|
943
944
|
return isNaN(_) ? 0 : _;
|
|
944
|
-
}),
|
|
945
|
-
const _ = parseFloat(
|
|
945
|
+
}), E = Y(() => {
|
|
946
|
+
const _ = parseFloat(s.maxSize);
|
|
946
947
|
return isNaN(_) ? 100 : _;
|
|
947
|
-
}),
|
|
948
|
+
}), T = Y(() => {
|
|
948
949
|
var _;
|
|
949
|
-
return `${
|
|
950
|
+
return `${o.value ? "height" : "width"}: ${(_ = k.value) == null ? void 0 : _.size}%`;
|
|
950
951
|
});
|
|
951
|
-
return
|
|
952
|
+
return Ve(() => w.value, (_) => r({ uid: c, size: _ })), Ve(() => R.value, (_) => r({ uid: c, min: _ })), Ve(() => E.value, (_) => r({ uid: c, max: _ })), Qe(() => {
|
|
952
953
|
i({
|
|
953
|
-
id:
|
|
954
|
-
el:
|
|
954
|
+
id: c,
|
|
955
|
+
el: V.value,
|
|
955
956
|
min: R.value,
|
|
956
|
-
max:
|
|
957
|
+
max: E.value,
|
|
957
958
|
// The given size (useful to know the user intention).
|
|
958
|
-
givenSize:
|
|
959
|
-
size:
|
|
959
|
+
givenSize: s.size === void 0 ? null : w.value,
|
|
960
|
+
size: w.value
|
|
960
961
|
// The computed current size at any time.
|
|
961
962
|
});
|
|
962
|
-
}),
|
|
963
|
+
}), $e(() => d(c)), (_, z) => (S(), P("div", {
|
|
963
964
|
ref_key: "paneEl",
|
|
964
|
-
ref:
|
|
965
|
+
ref: V,
|
|
965
966
|
class: "splitpanes__pane",
|
|
966
|
-
onClick:
|
|
967
|
-
style:
|
|
967
|
+
onClick: z[0] || (z[0] = (G) => rt(h)(G, _._.uid)),
|
|
968
|
+
style: Ee(T.value)
|
|
968
969
|
}, [
|
|
969
970
|
at(_.$slots, "default")
|
|
970
971
|
], 4));
|
|
971
972
|
}
|
|
972
|
-
},
|
|
973
|
+
}, Lt = {
|
|
973
974
|
props: {
|
|
974
975
|
question: {
|
|
975
976
|
type: String,
|
|
@@ -1018,69 +1019,69 @@ const Dt = /* @__PURE__ */ q(Tt, [["render", It]]), Ut = {
|
|
|
1018
1019
|
}
|
|
1019
1020
|
}
|
|
1020
1021
|
}, At = { class: "pa-2" }, Ft = { class: "question" };
|
|
1021
|
-
function Bt(t, e,
|
|
1022
|
-
const d =
|
|
1023
|
-
return
|
|
1024
|
-
modelValue:
|
|
1025
|
-
"onUpdate:modelValue": e[2] || (e[2] = (
|
|
1022
|
+
function Bt(t, e, s, r, i, o) {
|
|
1023
|
+
const d = a("v-spacer"), h = a("v-toolbar"), c = a("v-text-field"), b = a("v-card-text"), k = a("v-btn"), V = a("v-card-actions"), w = a("v-form"), R = a("v-card"), E = a("v-dialog");
|
|
1024
|
+
return S(), D(E, {
|
|
1025
|
+
modelValue: o.show,
|
|
1026
|
+
"onUpdate:modelValue": e[2] || (e[2] = (T) => o.show = T),
|
|
1026
1027
|
persistent: "",
|
|
1027
1028
|
width: "600"
|
|
1028
1029
|
}, {
|
|
1029
1030
|
default: l(() => [
|
|
1030
|
-
|
|
1031
|
+
n(R, null, {
|
|
1031
1032
|
default: l(() => [
|
|
1032
|
-
|
|
1033
|
+
n(w, {
|
|
1033
1034
|
modelValue: i.valid,
|
|
1034
|
-
"onUpdate:modelValue": e[1] || (e[1] = (
|
|
1035
|
-
onSubmit:
|
|
1035
|
+
"onUpdate:modelValue": e[1] || (e[1] = (T) => i.valid = T),
|
|
1036
|
+
onSubmit: ue(o.submitHandler, ["prevent"])
|
|
1036
1037
|
}, {
|
|
1037
1038
|
default: l(() => [
|
|
1038
|
-
|
|
1039
|
+
n(h, { height: "24" }, {
|
|
1039
1040
|
default: l(() => [
|
|
1040
|
-
|
|
1041
|
-
e[3] || (e[3] =
|
|
1042
|
-
|
|
1041
|
+
n(d),
|
|
1042
|
+
e[3] || (e[3] = x("span", null, " User Input Required ", -1)),
|
|
1043
|
+
n(d)
|
|
1043
1044
|
]),
|
|
1044
1045
|
_: 1
|
|
1045
1046
|
}),
|
|
1046
|
-
|
|
1047
|
-
|
|
1047
|
+
x("div", At, [
|
|
1048
|
+
n(b, null, {
|
|
1048
1049
|
default: l(() => [
|
|
1049
|
-
|
|
1050
|
-
|
|
1050
|
+
x("div", Ft, L(s.question), 1),
|
|
1051
|
+
n(c, {
|
|
1051
1052
|
modelValue: i.inputValue,
|
|
1052
|
-
"onUpdate:modelValue": e[0] || (e[0] = (
|
|
1053
|
+
"onUpdate:modelValue": e[0] || (e[0] = (T) => i.inputValue = T),
|
|
1053
1054
|
autofocus: "",
|
|
1054
1055
|
"data-test": "ask-value-input",
|
|
1055
|
-
type:
|
|
1056
|
+
type: s.password ? "password" : "text",
|
|
1056
1057
|
rules: i.rules
|
|
1057
1058
|
}, null, 8, ["modelValue", "type", "rules"])
|
|
1058
1059
|
]),
|
|
1059
1060
|
_: 1
|
|
1060
1061
|
})
|
|
1061
1062
|
]),
|
|
1062
|
-
|
|
1063
|
+
n(V, { class: "px-2" }, {
|
|
1063
1064
|
default: l(() => [
|
|
1064
|
-
|
|
1065
|
-
|
|
1065
|
+
n(d),
|
|
1066
|
+
n(k, {
|
|
1066
1067
|
variant: "outlined",
|
|
1067
1068
|
"data-test": "ask-cancel",
|
|
1068
|
-
onClick:
|
|
1069
|
+
onClick: o.cancelHandler
|
|
1069
1070
|
}, {
|
|
1070
1071
|
default: l(() => [...e[4] || (e[4] = [
|
|
1071
|
-
|
|
1072
|
+
y(" Cancel ", -1)
|
|
1072
1073
|
])]),
|
|
1073
1074
|
_: 1
|
|
1074
1075
|
}, 8, ["onClick"]),
|
|
1075
|
-
|
|
1076
|
+
n(k, {
|
|
1076
1077
|
variant: "flat",
|
|
1077
1078
|
type: "submit",
|
|
1078
1079
|
"data-test": "ask-ok",
|
|
1079
1080
|
disabled: !i.valid,
|
|
1080
|
-
onClick:
|
|
1081
|
+
onClick: ue(o.submitHandler, ["prevent"])
|
|
1081
1082
|
}, {
|
|
1082
1083
|
default: l(() => [...e[5] || (e[5] = [
|
|
1083
|
-
|
|
1084
|
+
y(" Ok ", -1)
|
|
1084
1085
|
])]),
|
|
1085
1086
|
_: 1
|
|
1086
1087
|
}, 8, ["disabled", "onClick"])
|
|
@@ -1097,7 +1098,7 @@ function Bt(t, e, n, a, i, s) {
|
|
|
1097
1098
|
_: 1
|
|
1098
1099
|
}, 8, ["modelValue"]);
|
|
1099
1100
|
}
|
|
1100
|
-
const
|
|
1101
|
+
const Nt = /* @__PURE__ */ j(Lt, [["render", Bt], ["__scopeId", "data-v-ae138b51"]]), Ht = {
|
|
1101
1102
|
props: {
|
|
1102
1103
|
title: {
|
|
1103
1104
|
type: String,
|
|
@@ -1144,63 +1145,63 @@ const Lt = /* @__PURE__ */ q(zt, [["render", Bt], ["__scopeId", "data-v-ae138b51
|
|
|
1144
1145
|
this.$emit("response", "Cancel");
|
|
1145
1146
|
}
|
|
1146
1147
|
}
|
|
1147
|
-
},
|
|
1148
|
-
function
|
|
1149
|
-
const d =
|
|
1150
|
-
return
|
|
1151
|
-
modelValue:
|
|
1152
|
-
"onUpdate:modelValue": e[2] || (e[2] = (_) =>
|
|
1148
|
+
}, Gt = { class: "pa-2" }, qt = { class: "title" }, jt = ["textContent"];
|
|
1149
|
+
function Kt(t, e, s, r, i, o) {
|
|
1150
|
+
const d = a("v-spacer"), h = a("v-toolbar"), c = a("v-row"), b = a("v-file-input"), k = a("v-card-text"), V = a("v-btn"), w = a("v-card-actions"), R = a("v-form"), E = a("v-card"), T = a("v-dialog");
|
|
1151
|
+
return S(), D(T, {
|
|
1152
|
+
modelValue: o.show,
|
|
1153
|
+
"onUpdate:modelValue": e[2] || (e[2] = (_) => o.show = _),
|
|
1153
1154
|
persistent: "",
|
|
1154
1155
|
width: "600"
|
|
1155
1156
|
}, {
|
|
1156
1157
|
default: l(() => [
|
|
1157
|
-
|
|
1158
|
+
n(E, null, {
|
|
1158
1159
|
default: l(() => [
|
|
1159
|
-
|
|
1160
|
+
n(R, {
|
|
1160
1161
|
modelValue: i.valid,
|
|
1161
1162
|
"onUpdate:modelValue": e[1] || (e[1] = (_) => i.valid = _),
|
|
1162
|
-
onSubmit:
|
|
1163
|
+
onSubmit: ue(o.submitHandler, ["prevent"])
|
|
1163
1164
|
}, {
|
|
1164
1165
|
default: l(() => [
|
|
1165
|
-
|
|
1166
|
+
n(h, { height: "24" }, {
|
|
1166
1167
|
default: l(() => [
|
|
1167
|
-
|
|
1168
|
-
e[3] || (e[3] =
|
|
1169
|
-
|
|
1168
|
+
n(d),
|
|
1169
|
+
e[3] || (e[3] = x("span", null, " File Dialog ", -1)),
|
|
1170
|
+
n(d)
|
|
1170
1171
|
]),
|
|
1171
1172
|
_: 1
|
|
1172
1173
|
}),
|
|
1173
|
-
|
|
1174
|
-
|
|
1174
|
+
x("div", Gt, [
|
|
1175
|
+
n(k, null, {
|
|
1175
1176
|
default: l(() => [
|
|
1176
|
-
|
|
1177
|
+
n(c, null, {
|
|
1177
1178
|
default: l(() => [
|
|
1178
|
-
|
|
1179
|
+
x("span", qt, L(s.title), 1)
|
|
1179
1180
|
]),
|
|
1180
1181
|
_: 1
|
|
1181
1182
|
}),
|
|
1182
|
-
|
|
1183
|
+
s.message ? (S(), D(c, { key: 0 }, {
|
|
1183
1184
|
default: l(() => [
|
|
1184
|
-
|
|
1185
|
+
x("span", {
|
|
1185
1186
|
class: "ma-3",
|
|
1186
1187
|
style: { "white-space": "pre-line" },
|
|
1187
|
-
textContent:
|
|
1188
|
-
}, null, 8,
|
|
1188
|
+
textContent: L(s.message)
|
|
1189
|
+
}, null, 8, jt)
|
|
1189
1190
|
]),
|
|
1190
1191
|
_: 1
|
|
1191
|
-
})) :
|
|
1192
|
-
|
|
1192
|
+
})) : U("", !0),
|
|
1193
|
+
n(c, { class: "my-1" }, {
|
|
1193
1194
|
default: l(() => [
|
|
1194
|
-
|
|
1195
|
+
n(b, {
|
|
1195
1196
|
modelValue: i.inputValue,
|
|
1196
1197
|
"onUpdate:modelValue": e[0] || (e[0] = (_) => i.inputValue = _),
|
|
1197
1198
|
label: "Choose File",
|
|
1198
1199
|
rules: i.rules,
|
|
1199
1200
|
autofocus: "",
|
|
1200
1201
|
"data-test": "file-input",
|
|
1201
|
-
accept:
|
|
1202
|
+
accept: s.filter,
|
|
1202
1203
|
"small-chips": "",
|
|
1203
|
-
multiple:
|
|
1204
|
+
multiple: s.multiple
|
|
1204
1205
|
}, null, 8, ["modelValue", "rules", "accept", "multiple"])
|
|
1205
1206
|
]),
|
|
1206
1207
|
_: 1
|
|
@@ -1209,28 +1210,28 @@ function jt(t, e, n, a, i, s) {
|
|
|
1209
1210
|
_: 1
|
|
1210
1211
|
})
|
|
1211
1212
|
]),
|
|
1212
|
-
|
|
1213
|
+
n(w, { class: "px-2" }, {
|
|
1213
1214
|
default: l(() => [
|
|
1214
|
-
|
|
1215
|
-
|
|
1215
|
+
n(d),
|
|
1216
|
+
n(V, {
|
|
1216
1217
|
variant: "outlined",
|
|
1217
1218
|
"data-test": "file-cancel",
|
|
1218
|
-
onClick:
|
|
1219
|
+
onClick: o.cancelHandler
|
|
1219
1220
|
}, {
|
|
1220
1221
|
default: l(() => [...e[4] || (e[4] = [
|
|
1221
|
-
|
|
1222
|
+
y(" Cancel ", -1)
|
|
1222
1223
|
])]),
|
|
1223
1224
|
_: 1
|
|
1224
1225
|
}, 8, ["onClick"]),
|
|
1225
|
-
|
|
1226
|
+
n(V, {
|
|
1226
1227
|
variant: "flat",
|
|
1227
1228
|
type: "submit",
|
|
1228
1229
|
"data-test": "file-ok",
|
|
1229
1230
|
disabled: !i.valid,
|
|
1230
|
-
onClick:
|
|
1231
|
+
onClick: ue(o.submitHandler, ["prevent"])
|
|
1231
1232
|
}, {
|
|
1232
1233
|
default: l(() => [...e[5] || (e[5] = [
|
|
1233
|
-
|
|
1234
|
+
y(" Ok ", -1)
|
|
1234
1235
|
])]),
|
|
1235
1236
|
_: 1
|
|
1236
1237
|
}, 8, ["disabled", "onClick"])
|
|
@@ -1247,7 +1248,7 @@ function jt(t, e, n, a, i, s) {
|
|
|
1247
1248
|
_: 1
|
|
1248
1249
|
}, 8, ["modelValue"]);
|
|
1249
1250
|
}
|
|
1250
|
-
const
|
|
1251
|
+
const Wt = /* @__PURE__ */ j(Ht, [["render", Kt], ["__scopeId", "data-v-40c2cac1"]]), Jt = {
|
|
1251
1252
|
props: {
|
|
1252
1253
|
modelValue: {
|
|
1253
1254
|
type: Boolean,
|
|
@@ -1277,40 +1278,40 @@ const Kt = /* @__PURE__ */ q(Nt, [["render", jt], ["__scopeId", "data-v-40c2cac1
|
|
|
1277
1278
|
}
|
|
1278
1279
|
},
|
|
1279
1280
|
methods: {}
|
|
1280
|
-
},
|
|
1281
|
-
function
|
|
1282
|
-
const d =
|
|
1283
|
-
return
|
|
1284
|
-
modelValue:
|
|
1285
|
-
"onUpdate:modelValue": e[1] || (e[1] = (
|
|
1286
|
-
width:
|
|
1281
|
+
}, Yt = ["textContent"], Zt = { class: "pa-2" }, Xt = ["textContent"];
|
|
1282
|
+
function Qt(t, e, s, r, i, o) {
|
|
1283
|
+
const d = a("v-spacer"), h = a("v-toolbar"), c = a("v-row"), b = a("v-card-text"), k = a("v-btn"), V = a("v-card-actions"), w = a("v-card"), R = a("v-dialog");
|
|
1284
|
+
return S(), D(R, {
|
|
1285
|
+
modelValue: o.show,
|
|
1286
|
+
"onUpdate:modelValue": e[1] || (e[1] = (E) => o.show = E),
|
|
1287
|
+
width: s.width
|
|
1287
1288
|
}, {
|
|
1288
1289
|
default: l(() => [
|
|
1289
|
-
|
|
1290
|
+
n(w, null, {
|
|
1290
1291
|
default: l(() => [
|
|
1291
|
-
|
|
1292
|
+
n(h, { height: "24" }, {
|
|
1292
1293
|
default: l(() => [
|
|
1293
|
-
|
|
1294
|
-
|
|
1294
|
+
n(d),
|
|
1295
|
+
x("span", {
|
|
1295
1296
|
style: { "white-space": "pre" },
|
|
1296
|
-
textContent:
|
|
1297
|
-
}, null, 8,
|
|
1298
|
-
|
|
1297
|
+
textContent: L(s.title)
|
|
1298
|
+
}, null, 8, Yt),
|
|
1299
|
+
n(d)
|
|
1299
1300
|
]),
|
|
1300
1301
|
_: 1
|
|
1301
1302
|
}),
|
|
1302
|
-
|
|
1303
|
-
|
|
1303
|
+
x("div", Zt, [
|
|
1304
|
+
n(b, null, {
|
|
1304
1305
|
default: l(() => [
|
|
1305
|
-
(
|
|
1306
|
+
(S(!0), P(de, null, qe(s.text, (E, T) => (S(), D(c, {
|
|
1306
1307
|
"no-gutters": "",
|
|
1307
|
-
key:
|
|
1308
|
+
key: T
|
|
1308
1309
|
}, {
|
|
1309
1310
|
default: l(() => [
|
|
1310
|
-
|
|
1311
|
+
x("span", {
|
|
1311
1312
|
style: { "white-space": "pre" },
|
|
1312
|
-
textContent:
|
|
1313
|
-
}, null, 8,
|
|
1313
|
+
textContent: L(E)
|
|
1314
|
+
}, null, 8, Xt)
|
|
1314
1315
|
]),
|
|
1315
1316
|
_: 2
|
|
1316
1317
|
}, 1024))), 128))
|
|
@@ -1318,15 +1319,15 @@ function Xt(t, e, n, a, i, s) {
|
|
|
1318
1319
|
_: 1
|
|
1319
1320
|
})
|
|
1320
1321
|
]),
|
|
1321
|
-
|
|
1322
|
+
n(V, { class: "px-2" }, {
|
|
1322
1323
|
default: l(() => [
|
|
1323
|
-
|
|
1324
|
-
|
|
1324
|
+
n(d),
|
|
1325
|
+
n(k, {
|
|
1325
1326
|
variant: "flat",
|
|
1326
|
-
onClick: e[0] || (e[0] = (
|
|
1327
|
+
onClick: e[0] || (e[0] = (E) => o.show = !o.show)
|
|
1327
1328
|
}, {
|
|
1328
1329
|
default: l(() => [...e[2] || (e[2] = [
|
|
1329
|
-
|
|
1330
|
+
y(" Ok ", -1)
|
|
1330
1331
|
])]),
|
|
1331
1332
|
_: 1
|
|
1332
1333
|
})
|
|
@@ -1340,7 +1341,7 @@ function Xt(t, e, n, a, i, s) {
|
|
|
1340
1341
|
_: 1
|
|
1341
1342
|
}, 8, ["modelValue", "width"]);
|
|
1342
1343
|
}
|
|
1343
|
-
const
|
|
1344
|
+
const $t = /* @__PURE__ */ j(Jt, [["render", Qt]]), ei = {
|
|
1344
1345
|
components: {},
|
|
1345
1346
|
props: {
|
|
1346
1347
|
modelValue: {
|
|
@@ -1374,7 +1375,7 @@ const Qt = /* @__PURE__ */ q(Wt, [["render", Xt]]), $t = {
|
|
|
1374
1375
|
}
|
|
1375
1376
|
},
|
|
1376
1377
|
created: function() {
|
|
1377
|
-
this.api = new
|
|
1378
|
+
this.api = new Te(), this.getOverrides();
|
|
1378
1379
|
},
|
|
1379
1380
|
methods: {
|
|
1380
1381
|
getOverrides: function() {
|
|
@@ -1398,7 +1399,7 @@ const Qt = /* @__PURE__ */ q(Wt, [["render", Xt]]), $t = {
|
|
|
1398
1399
|
e.packet_name,
|
|
1399
1400
|
e.item_name,
|
|
1400
1401
|
"ALL"
|
|
1401
|
-
).then((
|
|
1402
|
+
).then((s) => {
|
|
1402
1403
|
this.overrides = [];
|
|
1403
1404
|
});
|
|
1404
1405
|
},
|
|
@@ -1409,47 +1410,47 @@ const Qt = /* @__PURE__ */ q(Wt, [["render", Xt]]), $t = {
|
|
|
1409
1410
|
t.item_name,
|
|
1410
1411
|
t.value_type
|
|
1411
1412
|
).then((e) => {
|
|
1412
|
-
let
|
|
1413
|
-
this.overrides.splice(
|
|
1413
|
+
let s = this.overrides.indexOf(t);
|
|
1414
|
+
this.overrides.splice(s, 1);
|
|
1414
1415
|
});
|
|
1415
1416
|
}
|
|
1416
1417
|
}
|
|
1417
|
-
},
|
|
1418
|
-
function
|
|
1419
|
-
const d =
|
|
1420
|
-
return
|
|
1421
|
-
modelValue:
|
|
1422
|
-
"onUpdate:modelValue": e[2] || (e[2] = (_) =>
|
|
1418
|
+
}, ti = { class: "pa-2" };
|
|
1419
|
+
function ii(t, e, s, r, i, o) {
|
|
1420
|
+
const d = a("v-spacer"), h = a("v-toolbar"), c = a("v-btn"), b = a("v-text-field"), k = a("v-row"), V = a("v-data-table"), w = a("v-card-text"), R = a("v-card-actions"), E = a("v-card"), T = a("v-dialog");
|
|
1421
|
+
return S(), D(T, {
|
|
1422
|
+
modelValue: o.show,
|
|
1423
|
+
"onUpdate:modelValue": e[2] || (e[2] = (_) => o.show = _),
|
|
1423
1424
|
width: "1000"
|
|
1424
1425
|
}, {
|
|
1425
1426
|
default: l(() => [
|
|
1426
|
-
|
|
1427
|
+
n(E, null, {
|
|
1427
1428
|
default: l(() => [
|
|
1428
|
-
|
|
1429
|
+
n(h, { height: "24" }, {
|
|
1429
1430
|
default: l(() => [
|
|
1430
|
-
|
|
1431
|
-
e[3] || (e[3] =
|
|
1432
|
-
|
|
1431
|
+
n(d),
|
|
1432
|
+
e[3] || (e[3] = x("span", null, "Overrides", -1)),
|
|
1433
|
+
n(d)
|
|
1433
1434
|
]),
|
|
1434
1435
|
_: 1
|
|
1435
1436
|
}),
|
|
1436
|
-
|
|
1437
|
-
|
|
1437
|
+
x("div", ti, [
|
|
1438
|
+
n(w, null, {
|
|
1438
1439
|
default: l(() => [
|
|
1439
|
-
|
|
1440
|
+
n(k, { class: "ma-1" }, {
|
|
1440
1441
|
default: l(() => [
|
|
1441
|
-
|
|
1442
|
+
n(c, {
|
|
1442
1443
|
color: "primary",
|
|
1443
1444
|
"data-test": "overrides-dialog-clear-all",
|
|
1444
|
-
onClick:
|
|
1445
|
+
onClick: o.clearOverrides
|
|
1445
1446
|
}, {
|
|
1446
1447
|
default: l(() => [...e[4] || (e[4] = [
|
|
1447
|
-
|
|
1448
|
+
y(" Clear All Overrides ", -1)
|
|
1448
1449
|
])]),
|
|
1449
1450
|
_: 1
|
|
1450
1451
|
}, 8, ["onClick"]),
|
|
1451
|
-
|
|
1452
|
-
|
|
1452
|
+
n(d),
|
|
1453
|
+
n(b, {
|
|
1453
1454
|
modelValue: i.search,
|
|
1454
1455
|
"onUpdate:modelValue": e[0] || (e[0] = (_) => i.search = _),
|
|
1455
1456
|
label: "Search",
|
|
@@ -1463,7 +1464,7 @@ function ti(t, e, n, a, i, s) {
|
|
|
1463
1464
|
]),
|
|
1464
1465
|
_: 1
|
|
1465
1466
|
}),
|
|
1466
|
-
|
|
1467
|
+
n(V, {
|
|
1467
1468
|
headers: i.headers,
|
|
1468
1469
|
items: i.overrides,
|
|
1469
1470
|
search: i.search,
|
|
@@ -1472,11 +1473,11 @@ function ti(t, e, n, a, i, s) {
|
|
|
1472
1473
|
density: "compact"
|
|
1473
1474
|
}, {
|
|
1474
1475
|
"item.delete": l(({ item: _ }) => [
|
|
1475
|
-
|
|
1476
|
+
n(c, {
|
|
1476
1477
|
icon: "mdi-delete",
|
|
1477
1478
|
variant: "text",
|
|
1478
1479
|
"aria-label": "Delete Override",
|
|
1479
|
-
onClick: (
|
|
1480
|
+
onClick: (z) => o.deleteOverride(_)
|
|
1480
1481
|
}, null, 8, ["onClick"])
|
|
1481
1482
|
]),
|
|
1482
1483
|
_: 1
|
|
@@ -1485,16 +1486,16 @@ function ti(t, e, n, a, i, s) {
|
|
|
1485
1486
|
_: 1
|
|
1486
1487
|
})
|
|
1487
1488
|
]),
|
|
1488
|
-
|
|
1489
|
+
n(R, { class: "px-2" }, {
|
|
1489
1490
|
default: l(() => [
|
|
1490
|
-
|
|
1491
|
-
|
|
1491
|
+
n(d),
|
|
1492
|
+
n(c, {
|
|
1492
1493
|
variant: "flat",
|
|
1493
1494
|
"data-test": "overrides-dialog-ok",
|
|
1494
|
-
onClick: e[1] || (e[1] = (_) =>
|
|
1495
|
+
onClick: e[1] || (e[1] = (_) => o.show = !o.show)
|
|
1495
1496
|
}, {
|
|
1496
1497
|
default: l(() => [...e[5] || (e[5] = [
|
|
1497
|
-
|
|
1498
|
+
y(" Ok ", -1)
|
|
1498
1499
|
])]),
|
|
1499
1500
|
_: 1
|
|
1500
1501
|
})
|
|
@@ -1508,7 +1509,7 @@ function ti(t, e, n, a, i, s) {
|
|
|
1508
1509
|
_: 1
|
|
1509
1510
|
}, 8, ["modelValue"]);
|
|
1510
1511
|
}
|
|
1511
|
-
const
|
|
1512
|
+
const si = /* @__PURE__ */ j(ei, [["render", ii]]), ni = {
|
|
1512
1513
|
props: {
|
|
1513
1514
|
title: {
|
|
1514
1515
|
type: String,
|
|
@@ -1573,70 +1574,70 @@ const ii = /* @__PURE__ */ q($t, [["render", ti]]), si = {
|
|
|
1573
1574
|
this.$emit("response", "Cancel");
|
|
1574
1575
|
}
|
|
1575
1576
|
}
|
|
1576
|
-
},
|
|
1577
|
-
function
|
|
1578
|
-
const d =
|
|
1579
|
-
return
|
|
1580
|
-
modelValue:
|
|
1581
|
-
"onUpdate:modelValue": e[2] || (e[2] = (_) =>
|
|
1577
|
+
}, oi = ["textContent"], li = { class: "pa-2" }, ri = ["textContent"], ai = ["textContent"], di = { key: 0 }, ui = { key: 1 };
|
|
1578
|
+
function ci(t, e, s, r, i, o) {
|
|
1579
|
+
const d = a("v-spacer"), h = a("v-toolbar"), c = a("v-card-subtitle"), b = a("v-row"), k = a("v-card-text"), V = a("v-select"), w = a("v-btn"), R = a("v-card-actions"), E = a("v-card"), T = a("v-dialog");
|
|
1580
|
+
return S(), D(T, {
|
|
1581
|
+
modelValue: o.show,
|
|
1582
|
+
"onUpdate:modelValue": e[2] || (e[2] = (_) => o.show = _),
|
|
1582
1583
|
persistent: "",
|
|
1583
1584
|
width: "600"
|
|
1584
1585
|
}, {
|
|
1585
1586
|
default: l(() => [
|
|
1586
|
-
|
|
1587
|
+
n(E, null, {
|
|
1587
1588
|
default: l(() => [
|
|
1588
|
-
|
|
1589
|
+
n(h, { height: "24" }, {
|
|
1589
1590
|
default: l(() => [
|
|
1590
|
-
|
|
1591
|
-
|
|
1591
|
+
n(d),
|
|
1592
|
+
x("span", {
|
|
1592
1593
|
class: "text",
|
|
1593
|
-
textContent:
|
|
1594
|
-
}, null, 8,
|
|
1595
|
-
|
|
1594
|
+
textContent: L(s.title)
|
|
1595
|
+
}, null, 8, oi),
|
|
1596
|
+
n(d)
|
|
1596
1597
|
]),
|
|
1597
1598
|
_: 1
|
|
1598
1599
|
}),
|
|
1599
|
-
|
|
1600
|
-
|
|
1600
|
+
x("div", li, [
|
|
1601
|
+
n(k, { class: "text" }, {
|
|
1601
1602
|
default: l(() => [
|
|
1602
|
-
|
|
1603
|
+
s.subtitle ? (S(), D(b, { key: 0 }, {
|
|
1603
1604
|
default: l(() => [
|
|
1604
|
-
|
|
1605
|
+
n(c, null, {
|
|
1605
1606
|
default: l(() => [
|
|
1606
|
-
|
|
1607
|
+
y(L(s.subtitle), 1)
|
|
1607
1608
|
]),
|
|
1608
1609
|
_: 1
|
|
1609
1610
|
})
|
|
1610
1611
|
]),
|
|
1611
1612
|
_: 1
|
|
1612
|
-
})) :
|
|
1613
|
-
|
|
1613
|
+
})) : U("", !0),
|
|
1614
|
+
n(b, { class: "mt-1" }, {
|
|
1614
1615
|
default: l(() => [
|
|
1615
|
-
|
|
1616
|
-
textContent:
|
|
1617
|
-
}, null, 8,
|
|
1616
|
+
x("span", {
|
|
1617
|
+
textContent: L(s.message)
|
|
1618
|
+
}, null, 8, ri)
|
|
1618
1619
|
]),
|
|
1619
1620
|
_: 1
|
|
1620
1621
|
}),
|
|
1621
|
-
|
|
1622
|
+
s.details ? (S(), D(b, {
|
|
1622
1623
|
key: 1,
|
|
1623
1624
|
class: "mt-1"
|
|
1624
1625
|
}, {
|
|
1625
1626
|
default: l(() => [
|
|
1626
|
-
|
|
1627
|
-
textContent:
|
|
1628
|
-
}, null, 8,
|
|
1627
|
+
x("span", {
|
|
1628
|
+
textContent: L(s.details)
|
|
1629
|
+
}, null, 8, ai)
|
|
1629
1630
|
]),
|
|
1630
1631
|
_: 1
|
|
1631
|
-
})) :
|
|
1632
|
+
})) : U("", !0)
|
|
1632
1633
|
]),
|
|
1633
1634
|
_: 1
|
|
1634
1635
|
})
|
|
1635
1636
|
]),
|
|
1636
|
-
|
|
1637
|
-
|
|
1637
|
+
s.layout === "combo" ? (S(), P("div", di, [
|
|
1638
|
+
n(b, { class: "ma-2" }, {
|
|
1638
1639
|
default: l(() => [
|
|
1639
|
-
|
|
1640
|
+
n(V, {
|
|
1640
1641
|
modelValue: i.selectedItem,
|
|
1641
1642
|
"onUpdate:modelValue": [
|
|
1642
1643
|
e[0] || (e[0] = (_) => i.selectedItem = _),
|
|
@@ -1646,63 +1647,63 @@ function di(t, e, n, a, i, s) {
|
|
|
1646
1647
|
color: "secondary",
|
|
1647
1648
|
class: "ma-1",
|
|
1648
1649
|
"data-test": "prompt-select",
|
|
1649
|
-
items:
|
|
1650
|
-
multiple:
|
|
1650
|
+
items: s.buttons,
|
|
1651
|
+
multiple: s.multiple === !0
|
|
1651
1652
|
}, null, 8, ["modelValue", "items", "multiple"])
|
|
1652
1653
|
]),
|
|
1653
1654
|
_: 1
|
|
1654
1655
|
}),
|
|
1655
|
-
|
|
1656
|
+
n(R, { class: "px-2" }, {
|
|
1656
1657
|
default: l(() => [
|
|
1657
|
-
|
|
1658
|
-
|
|
1658
|
+
n(d),
|
|
1659
|
+
n(w, {
|
|
1659
1660
|
variant: "outlined",
|
|
1660
1661
|
"data-test": "prompt-cancel",
|
|
1661
|
-
onClick:
|
|
1662
|
+
onClick: o.cancelHandler
|
|
1662
1663
|
}, {
|
|
1663
1664
|
default: l(() => [...e[3] || (e[3] = [
|
|
1664
|
-
|
|
1665
|
+
y(" Cancel ", -1)
|
|
1665
1666
|
])]),
|
|
1666
1667
|
_: 1
|
|
1667
1668
|
}, 8, ["onClick"]),
|
|
1668
|
-
|
|
1669
|
+
n(w, {
|
|
1669
1670
|
variant: "flat",
|
|
1670
1671
|
"data-test": "prompt-ok",
|
|
1671
1672
|
disabled: i.selectOkDisabled,
|
|
1672
|
-
onClick:
|
|
1673
|
+
onClick: o.submitHandler
|
|
1673
1674
|
}, {
|
|
1674
1675
|
default: l(() => [...e[4] || (e[4] = [
|
|
1675
|
-
|
|
1676
|
+
y(" Ok ", -1)
|
|
1676
1677
|
])]),
|
|
1677
1678
|
_: 1
|
|
1678
1679
|
}, 8, ["disabled", "onClick"])
|
|
1679
1680
|
]),
|
|
1680
1681
|
_: 1
|
|
1681
1682
|
})
|
|
1682
|
-
])) : (
|
|
1683
|
-
|
|
1684
|
-
class:
|
|
1683
|
+
])) : (S(), P("div", ui, [
|
|
1684
|
+
n(R, {
|
|
1685
|
+
class: Xe(o.layoutClass)
|
|
1685
1686
|
}, {
|
|
1686
1687
|
default: l(() => [
|
|
1687
|
-
|
|
1688
|
-
|
|
1688
|
+
n(d),
|
|
1689
|
+
n(w, {
|
|
1689
1690
|
variant: "outlined",
|
|
1690
1691
|
"data-test": "prompt-cancel",
|
|
1691
|
-
onClick:
|
|
1692
|
+
onClick: o.cancelHandler
|
|
1692
1693
|
}, {
|
|
1693
1694
|
default: l(() => [...e[5] || (e[5] = [
|
|
1694
|
-
|
|
1695
|
+
y(" Cancel ", -1)
|
|
1695
1696
|
])]),
|
|
1696
1697
|
_: 1
|
|
1697
1698
|
}, 8, ["onClick"]),
|
|
1698
|
-
(
|
|
1699
|
-
|
|
1699
|
+
(S(!0), P(de, null, qe(s.buttons, (_, z) => (S(), P("div", { key: z }, [
|
|
1700
|
+
n(w, {
|
|
1700
1701
|
variant: "flat",
|
|
1701
1702
|
"data-test": `prompt-${_.text}`,
|
|
1702
|
-
onClick: (
|
|
1703
|
+
onClick: (G) => o.submitWrapper(_.value)
|
|
1703
1704
|
}, {
|
|
1704
1705
|
default: l(() => [
|
|
1705
|
-
|
|
1706
|
+
y(L(_.text), 1)
|
|
1706
1707
|
]),
|
|
1707
1708
|
_: 2
|
|
1708
1709
|
}, 1032, ["data-test", "onClick"])
|
|
@@ -1718,7 +1719,7 @@ function di(t, e, n, a, i, s) {
|
|
|
1718
1719
|
_: 1
|
|
1719
1720
|
}, 8, ["modelValue"]);
|
|
1720
1721
|
}
|
|
1721
|
-
const
|
|
1722
|
+
const mi = /* @__PURE__ */ j(ni, [["render", ci], ["__scopeId", "data-v-3c1d359a"]]), pi = {
|
|
1722
1723
|
components: {},
|
|
1723
1724
|
props: {
|
|
1724
1725
|
modelValue: {
|
|
@@ -1752,63 +1753,63 @@ const ci = /* @__PURE__ */ q(si, [["render", di], ["__scopeId", "data-v-3c1d359a
|
|
|
1752
1753
|
}), e = document.createElement("a");
|
|
1753
1754
|
e.href = URL.createObjectURL(t), e.setAttribute(
|
|
1754
1755
|
"download",
|
|
1755
|
-
|
|
1756
|
+
Re(Date.now(), "yyyy_MM_dd_HH_mm_ss") + "_suite_results.txt"
|
|
1756
1757
|
), e.click();
|
|
1757
1758
|
}
|
|
1758
1759
|
}
|
|
1759
|
-
},
|
|
1760
|
-
function
|
|
1761
|
-
const d =
|
|
1762
|
-
return
|
|
1763
|
-
modelValue:
|
|
1764
|
-
"onUpdate:modelValue": e[1] || (e[1] = (
|
|
1760
|
+
}, hi = { class: "pa-2" };
|
|
1761
|
+
function fi(t, e, s, r, i, o) {
|
|
1762
|
+
const d = a("v-spacer"), h = a("v-toolbar"), c = a("v-textarea"), b = a("v-card-text"), k = a("v-btn"), V = a("v-card-actions"), w = a("v-card"), R = a("v-dialog");
|
|
1763
|
+
return S(), D(R, {
|
|
1764
|
+
modelValue: o.show,
|
|
1765
|
+
"onUpdate:modelValue": e[1] || (e[1] = (E) => o.show = E),
|
|
1765
1766
|
scrollable: "",
|
|
1766
1767
|
width: "800"
|
|
1767
1768
|
}, {
|
|
1768
1769
|
default: l(() => [
|
|
1769
|
-
|
|
1770
|
+
n(w, null, {
|
|
1770
1771
|
default: l(() => [
|
|
1771
|
-
|
|
1772
|
+
n(h, { height: "24" }, {
|
|
1772
1773
|
default: l(() => [
|
|
1773
|
-
|
|
1774
|
-
e[2] || (e[2] =
|
|
1775
|
-
|
|
1774
|
+
n(d),
|
|
1775
|
+
e[2] || (e[2] = x("span", null, " Script Results ", -1)),
|
|
1776
|
+
n(d)
|
|
1776
1777
|
]),
|
|
1777
1778
|
_: 1
|
|
1778
1779
|
}),
|
|
1779
|
-
|
|
1780
|
-
|
|
1780
|
+
x("div", hi, [
|
|
1781
|
+
n(b, { style: { width: "100%", "max-height": "80vh", overflow: "auto" } }, {
|
|
1781
1782
|
default: l(() => [
|
|
1782
|
-
|
|
1783
|
+
n(c, {
|
|
1783
1784
|
readonly: "",
|
|
1784
1785
|
"hide-details": "",
|
|
1785
1786
|
density: "compact",
|
|
1786
1787
|
"auto-grow": "",
|
|
1787
|
-
"model-value":
|
|
1788
|
+
"model-value": s.text
|
|
1788
1789
|
}, null, 8, ["model-value"])
|
|
1789
1790
|
]),
|
|
1790
1791
|
_: 1
|
|
1791
1792
|
})
|
|
1792
1793
|
]),
|
|
1793
|
-
|
|
1794
|
+
n(V, { class: "px-2" }, {
|
|
1794
1795
|
default: l(() => [
|
|
1795
|
-
|
|
1796
|
-
|
|
1796
|
+
n(d),
|
|
1797
|
+
n(k, {
|
|
1797
1798
|
variant: "outlined",
|
|
1798
|
-
onClick:
|
|
1799
|
+
onClick: o.downloadResults
|
|
1799
1800
|
}, {
|
|
1800
1801
|
default: l(() => [...e[3] || (e[3] = [
|
|
1801
|
-
|
|
1802
|
+
y(" Download ", -1)
|
|
1802
1803
|
])]),
|
|
1803
1804
|
_: 1
|
|
1804
1805
|
}, 8, ["onClick"]),
|
|
1805
|
-
|
|
1806
|
+
n(k, {
|
|
1806
1807
|
ref: "okButton",
|
|
1807
1808
|
variant: "flat",
|
|
1808
|
-
onClick: e[0] || (e[0] = (
|
|
1809
|
+
onClick: e[0] || (e[0] = (E) => o.show = !o.show)
|
|
1809
1810
|
}, {
|
|
1810
1811
|
default: l(() => [...e[4] || (e[4] = [
|
|
1811
|
-
|
|
1812
|
+
y(" Ok ", -1)
|
|
1812
1813
|
])]),
|
|
1813
1814
|
_: 1
|
|
1814
1815
|
}, 512)
|
|
@@ -1822,9 +1823,9 @@ function hi(t, e, n, a, i, s) {
|
|
|
1822
1823
|
_: 1
|
|
1823
1824
|
}, 8, ["modelValue"]);
|
|
1824
1825
|
}
|
|
1825
|
-
const
|
|
1826
|
+
const gi = /* @__PURE__ */ j(pi, [["render", fi]]), vi = {
|
|
1826
1827
|
components: {
|
|
1827
|
-
EnvironmentChooser:
|
|
1828
|
+
EnvironmentChooser: vt
|
|
1828
1829
|
},
|
|
1829
1830
|
props: {
|
|
1830
1831
|
modelValue: {
|
|
@@ -1865,57 +1866,57 @@ const fi = /* @__PURE__ */ q(pi, [["render", hi]]), gi = {
|
|
|
1865
1866
|
this.show = !this.show;
|
|
1866
1867
|
}
|
|
1867
1868
|
}
|
|
1868
|
-
},
|
|
1869
|
-
function
|
|
1870
|
-
const d =
|
|
1871
|
-
return
|
|
1872
|
-
modelValue:
|
|
1873
|
-
"onUpdate:modelValue": e[1] || (e[1] = (
|
|
1869
|
+
}, _i = { class: "pa-2" };
|
|
1870
|
+
function bi(t, e, s, r, i, o) {
|
|
1871
|
+
const d = a("v-spacer"), h = a("v-toolbar"), c = a("environment-chooser"), b = a("v-card-text"), k = a("v-btn"), V = a("v-card-actions"), w = a("v-card"), R = a("v-dialog");
|
|
1872
|
+
return S(), D(R, {
|
|
1873
|
+
modelValue: o.show,
|
|
1874
|
+
"onUpdate:modelValue": e[1] || (e[1] = (E) => o.show = E),
|
|
1874
1875
|
width: "600"
|
|
1875
1876
|
}, {
|
|
1876
1877
|
default: l(() => [
|
|
1877
|
-
|
|
1878
|
+
n(w, null, {
|
|
1878
1879
|
default: l(() => [
|
|
1879
|
-
|
|
1880
|
+
n(h, { height: "24" }, {
|
|
1880
1881
|
default: l(() => [
|
|
1881
|
-
|
|
1882
|
-
e[2] || (e[2] =
|
|
1883
|
-
|
|
1882
|
+
n(d),
|
|
1883
|
+
e[2] || (e[2] = x("span", null, "Script Environment Variables", -1)),
|
|
1884
|
+
n(d)
|
|
1884
1885
|
]),
|
|
1885
1886
|
_: 1
|
|
1886
1887
|
}),
|
|
1887
|
-
|
|
1888
|
-
|
|
1888
|
+
x("div", _i, [
|
|
1889
|
+
n(b, null, {
|
|
1889
1890
|
default: l(() => [
|
|
1890
|
-
|
|
1891
|
+
n(c, {
|
|
1891
1892
|
modelValue: i.selected,
|
|
1892
|
-
"onUpdate:modelValue": e[0] || (e[0] = (
|
|
1893
|
+
"onUpdate:modelValue": e[0] || (e[0] = (E) => i.selected = E)
|
|
1893
1894
|
}, null, 8, ["modelValue"])
|
|
1894
1895
|
]),
|
|
1895
1896
|
_: 1
|
|
1896
1897
|
})
|
|
1897
1898
|
]),
|
|
1898
|
-
|
|
1899
|
+
n(V, { class: "px-2" }, {
|
|
1899
1900
|
default: l(() => [
|
|
1900
|
-
|
|
1901
|
-
|
|
1901
|
+
n(d),
|
|
1902
|
+
n(k, {
|
|
1902
1903
|
variant: "outlined",
|
|
1903
1904
|
"data-test": "environment-dialog-cancel",
|
|
1904
|
-
onClick:
|
|
1905
|
+
onClick: o.cancel
|
|
1905
1906
|
}, {
|
|
1906
1907
|
default: l(() => [...e[3] || (e[3] = [
|
|
1907
|
-
|
|
1908
|
+
y(" Cancel ", -1)
|
|
1908
1909
|
])]),
|
|
1909
1910
|
_: 1
|
|
1910
1911
|
}, 8, ["onClick"]),
|
|
1911
|
-
|
|
1912
|
+
n(k, {
|
|
1912
1913
|
variant: "flat",
|
|
1913
1914
|
"data-test": "environment-dialog-save",
|
|
1914
1915
|
disabled: !!t.inputError,
|
|
1915
|
-
onClick:
|
|
1916
|
+
onClick: o.updateEnvironment
|
|
1916
1917
|
}, {
|
|
1917
1918
|
default: l(() => [...e[4] || (e[4] = [
|
|
1918
|
-
|
|
1919
|
+
y(" Save ", -1)
|
|
1919
1920
|
])]),
|
|
1920
1921
|
_: 1
|
|
1921
1922
|
}, 8, ["disabled", "onClick"])
|
|
@@ -1929,7 +1930,7 @@ function _i(t, e, n, a, i, s) {
|
|
|
1929
1930
|
_: 1
|
|
1930
1931
|
}, 8, ["modelValue"]);
|
|
1931
1932
|
}
|
|
1932
|
-
const
|
|
1933
|
+
const wi = /* @__PURE__ */ j(vi, [["render", bi]]), yi = {
|
|
1933
1934
|
props: {
|
|
1934
1935
|
suiteMap: {
|
|
1935
1936
|
type: Object,
|
|
@@ -2014,29 +2015,29 @@ const bi = /* @__PURE__ */ q(gi, [["render", _i]]), wi = {
|
|
|
2014
2015
|
this.script = t;
|
|
2015
2016
|
}
|
|
2016
2017
|
}
|
|
2017
|
-
},
|
|
2018
|
-
function
|
|
2019
|
-
const d =
|
|
2020
|
-
return
|
|
2021
|
-
|
|
2022
|
-
|
|
2018
|
+
}, ki = { id: "tr-container" };
|
|
2019
|
+
function Si(t, e, s, r, i, o) {
|
|
2020
|
+
const d = a("v-checkbox"), h = a("v-tooltip"), c = a("v-col"), b = a("v-row"), k = a("v-select"), V = a("v-btn");
|
|
2021
|
+
return S(), P("div", null, [
|
|
2022
|
+
x("div", ki, [
|
|
2023
|
+
n(b, {
|
|
2023
2024
|
"no-gutters": "",
|
|
2024
2025
|
align: "center"
|
|
2025
2026
|
}, {
|
|
2026
2027
|
default: l(() => [
|
|
2027
|
-
|
|
2028
|
+
n(c, { cols: "4" }, {
|
|
2028
2029
|
default: l(() => [
|
|
2029
|
-
|
|
2030
|
+
n(b, { "no-gutters": "" }, {
|
|
2030
2031
|
default: l(() => [
|
|
2031
|
-
|
|
2032
|
+
n(c, { cols: "6" }, {
|
|
2032
2033
|
default: l(() => [
|
|
2033
|
-
|
|
2034
|
+
n(h, {
|
|
2034
2035
|
"open-delay": 600,
|
|
2035
2036
|
location: "top"
|
|
2036
2037
|
}, {
|
|
2037
|
-
activator: l(({ props:
|
|
2038
|
-
|
|
2039
|
-
|
|
2038
|
+
activator: l(({ props: w }) => [
|
|
2039
|
+
x("div", le(re(w)), [
|
|
2040
|
+
n(d, {
|
|
2040
2041
|
modelValue: i.options,
|
|
2041
2042
|
"onUpdate:modelValue": e[0] || (e[0] = (R) => i.options = R),
|
|
2042
2043
|
label: "Pause on Error",
|
|
@@ -2047,10 +2048,10 @@ function ki(t, e, n, a, i, s) {
|
|
|
2047
2048
|
], 16)
|
|
2048
2049
|
]),
|
|
2049
2050
|
default: l(() => [
|
|
2050
|
-
e[16] || (e[16] =
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2051
|
+
e[16] || (e[16] = x("span", null, [
|
|
2052
|
+
y(" Checked pauses the script when an error is encountered"),
|
|
2053
|
+
x("br"),
|
|
2054
|
+
y(" Unchecked continues without user interaction ")
|
|
2054
2055
|
], -1))
|
|
2055
2056
|
]),
|
|
2056
2057
|
_: 1
|
|
@@ -2058,15 +2059,15 @@ function ki(t, e, n, a, i, s) {
|
|
|
2058
2059
|
]),
|
|
2059
2060
|
_: 1
|
|
2060
2061
|
}),
|
|
2061
|
-
|
|
2062
|
+
n(c, { cols: "6" }, {
|
|
2062
2063
|
default: l(() => [
|
|
2063
|
-
|
|
2064
|
+
n(h, {
|
|
2064
2065
|
"open-delay": 600,
|
|
2065
2066
|
location: "top"
|
|
2066
2067
|
}, {
|
|
2067
|
-
activator: l(({ props:
|
|
2068
|
-
|
|
2069
|
-
|
|
2068
|
+
activator: l(({ props: w }) => [
|
|
2069
|
+
x("div", le(re(w)), [
|
|
2070
|
+
n(d, {
|
|
2070
2071
|
modelValue: i.options,
|
|
2071
2072
|
"onUpdate:modelValue": e[1] || (e[1] = (R) => i.options = R),
|
|
2072
2073
|
label: "Manual",
|
|
@@ -2077,10 +2078,10 @@ function ki(t, e, n, a, i, s) {
|
|
|
2077
2078
|
], 16)
|
|
2078
2079
|
]),
|
|
2079
2080
|
default: l(() => [
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
e[17] || (e[17] =
|
|
2083
|
-
|
|
2081
|
+
x("span", null, [
|
|
2082
|
+
y(L(o.checkedManualTooltip), 1),
|
|
2083
|
+
e[17] || (e[17] = x("br", null, null, -1)),
|
|
2084
|
+
y(" " + L(o.uncheckedManualTooltip), 1)
|
|
2084
2085
|
])
|
|
2085
2086
|
]),
|
|
2086
2087
|
_: 1
|
|
@@ -2094,20 +2095,20 @@ function ki(t, e, n, a, i, s) {
|
|
|
2094
2095
|
]),
|
|
2095
2096
|
_: 1
|
|
2096
2097
|
}),
|
|
2097
|
-
|
|
2098
|
+
n(c, { cols: "8" }, {
|
|
2098
2099
|
default: l(() => [
|
|
2099
|
-
|
|
2100
|
+
n(b, {
|
|
2100
2101
|
"no-gutters": "",
|
|
2101
2102
|
justify: "end"
|
|
2102
2103
|
}, {
|
|
2103
2104
|
default: l(() => [
|
|
2104
|
-
|
|
2105
|
+
n(c, { cols: "5" }, {
|
|
2105
2106
|
default: l(() => [
|
|
2106
|
-
|
|
2107
|
+
n(k, {
|
|
2107
2108
|
modelValue: i.suite,
|
|
2108
2109
|
"onUpdate:modelValue": [
|
|
2109
|
-
e[2] || (e[2] = (
|
|
2110
|
-
|
|
2110
|
+
e[2] || (e[2] = (w) => i.suite = w),
|
|
2111
|
+
o.suiteChanged
|
|
2111
2112
|
],
|
|
2112
2113
|
label: "Suite:",
|
|
2113
2114
|
class: "mb-2 mr-2",
|
|
@@ -2120,40 +2121,40 @@ function ki(t, e, n, a, i, s) {
|
|
|
2120
2121
|
]),
|
|
2121
2122
|
_: 1
|
|
2122
2123
|
}),
|
|
2123
|
-
|
|
2124
|
+
n(c, { cols: "auto" }, {
|
|
2124
2125
|
default: l(() => [
|
|
2125
|
-
|
|
2126
|
+
n(V, {
|
|
2126
2127
|
color: "primary",
|
|
2127
2128
|
class: "mr-2",
|
|
2128
|
-
disabled:
|
|
2129
|
+
disabled: s.disableButtons || !i.userInfo.execute,
|
|
2129
2130
|
"data-test": "start-suite",
|
|
2130
|
-
onClick: e[3] || (e[3] = (
|
|
2131
|
+
onClick: e[3] || (e[3] = (w) => t.$emit("button", { method: "start", suite: i.suite, options: i.options }))
|
|
2131
2132
|
}, {
|
|
2132
2133
|
default: l(() => [...e[18] || (e[18] = [
|
|
2133
|
-
|
|
2134
|
+
y(" Start ", -1)
|
|
2134
2135
|
])]),
|
|
2135
2136
|
_: 1
|
|
2136
2137
|
}, 8, ["disabled"]),
|
|
2137
|
-
|
|
2138
|
+
n(V, {
|
|
2138
2139
|
color: "primary",
|
|
2139
2140
|
class: "mr-2",
|
|
2140
2141
|
"data-test": "setup-suite",
|
|
2141
|
-
disabled:
|
|
2142
|
-
onClick: e[4] || (e[4] = (
|
|
2142
|
+
disabled: s.disableButtons || !o.setupSuiteEnabled || !i.userInfo.execute,
|
|
2143
|
+
onClick: e[4] || (e[4] = (w) => t.$emit("button", { method: "setup", suite: i.suite, options: i.options }))
|
|
2143
2144
|
}, {
|
|
2144
2145
|
default: l(() => [...e[19] || (e[19] = [
|
|
2145
|
-
|
|
2146
|
+
y(" Setup ", -1)
|
|
2146
2147
|
])]),
|
|
2147
2148
|
_: 1
|
|
2148
2149
|
}, 8, ["disabled"]),
|
|
2149
|
-
|
|
2150
|
+
n(V, {
|
|
2150
2151
|
color: "primary",
|
|
2151
2152
|
"data-test": "teardown-suite",
|
|
2152
|
-
disabled:
|
|
2153
|
-
onClick: e[5] || (e[5] = (
|
|
2153
|
+
disabled: s.disableButtons || !o.teardownSuiteEnabled || !i.userInfo.execute,
|
|
2154
|
+
onClick: e[5] || (e[5] = (w) => t.$emit("button", { method: "teardown", suite: i.suite, options: i.options }))
|
|
2154
2155
|
}, {
|
|
2155
2156
|
default: l(() => [...e[20] || (e[20] = [
|
|
2156
|
-
|
|
2157
|
+
y(" Teardown ", -1)
|
|
2157
2158
|
])]),
|
|
2158
2159
|
_: 1
|
|
2159
2160
|
}, 8, ["disabled"])
|
|
@@ -2169,21 +2170,21 @@ function ki(t, e, n, a, i, s) {
|
|
|
2169
2170
|
]),
|
|
2170
2171
|
_: 1
|
|
2171
2172
|
}),
|
|
2172
|
-
|
|
2173
|
+
n(b, { "no-gutters": "" }, {
|
|
2173
2174
|
default: l(() => [
|
|
2174
|
-
|
|
2175
|
+
n(c, { cols: "4" }, {
|
|
2175
2176
|
default: l(() => [
|
|
2176
|
-
|
|
2177
|
+
n(b, { "no-gutters": "" }, {
|
|
2177
2178
|
default: l(() => [
|
|
2178
|
-
|
|
2179
|
+
n(c, { cols: "6" }, {
|
|
2179
2180
|
default: l(() => [
|
|
2180
|
-
|
|
2181
|
+
n(h, {
|
|
2181
2182
|
"open-delay": 600,
|
|
2182
2183
|
location: "top"
|
|
2183
2184
|
}, {
|
|
2184
|
-
activator: l(({ props:
|
|
2185
|
-
|
|
2186
|
-
|
|
2185
|
+
activator: l(({ props: w }) => [
|
|
2186
|
+
x("div", le(re(w)), [
|
|
2187
|
+
n(d, {
|
|
2187
2188
|
modelValue: i.options,
|
|
2188
2189
|
"onUpdate:modelValue": e[6] || (e[6] = (R) => i.options = R),
|
|
2189
2190
|
label: "Continue after Error",
|
|
@@ -2194,10 +2195,10 @@ function ki(t, e, n, a, i, s) {
|
|
|
2194
2195
|
], 16)
|
|
2195
2196
|
]),
|
|
2196
2197
|
default: l(() => [
|
|
2197
|
-
e[21] || (e[21] =
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
|
|
2198
|
+
e[21] || (e[21] = x("span", null, [
|
|
2199
|
+
y(" Checked allows the script to continue when an error is encountered"),
|
|
2200
|
+
x("br"),
|
|
2201
|
+
y(" Unchecked forces the current script to end ")
|
|
2201
2202
|
], -1))
|
|
2202
2203
|
]),
|
|
2203
2204
|
_: 1
|
|
@@ -2205,15 +2206,15 @@ function ki(t, e, n, a, i, s) {
|
|
|
2205
2206
|
]),
|
|
2206
2207
|
_: 1
|
|
2207
2208
|
}),
|
|
2208
|
-
|
|
2209
|
+
n(c, { cols: "6" }, {
|
|
2209
2210
|
default: l(() => [
|
|
2210
|
-
|
|
2211
|
+
n(h, {
|
|
2211
2212
|
"open-delay": 600,
|
|
2212
2213
|
location: "top"
|
|
2213
2214
|
}, {
|
|
2214
|
-
activator: l(({ props:
|
|
2215
|
-
|
|
2216
|
-
|
|
2215
|
+
activator: l(({ props: w }) => [
|
|
2216
|
+
x("div", le(re(w)), [
|
|
2217
|
+
n(d, {
|
|
2217
2218
|
modelValue: i.options,
|
|
2218
2219
|
"onUpdate:modelValue": e[7] || (e[7] = (R) => i.options = R),
|
|
2219
2220
|
label: "Loop",
|
|
@@ -2224,10 +2225,10 @@ function ki(t, e, n, a, i, s) {
|
|
|
2224
2225
|
], 16)
|
|
2225
2226
|
]),
|
|
2226
2227
|
default: l(() => [
|
|
2227
|
-
e[22] || (e[22] =
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
|
|
2228
|
+
e[22] || (e[22] = x("span", null, [
|
|
2229
|
+
y(" Checked continuously executes until explicitly stopped"),
|
|
2230
|
+
x("br"),
|
|
2231
|
+
y(" Unchecked executes only the started script(s) ")
|
|
2231
2232
|
], -1))
|
|
2232
2233
|
]),
|
|
2233
2234
|
_: 1
|
|
@@ -2241,20 +2242,20 @@ function ki(t, e, n, a, i, s) {
|
|
|
2241
2242
|
]),
|
|
2242
2243
|
_: 1
|
|
2243
2244
|
}),
|
|
2244
|
-
|
|
2245
|
+
n(c, { cols: "8" }, {
|
|
2245
2246
|
default: l(() => [
|
|
2246
|
-
|
|
2247
|
+
n(b, {
|
|
2247
2248
|
"no-gutters": "",
|
|
2248
2249
|
justify: "end"
|
|
2249
2250
|
}, {
|
|
2250
2251
|
default: l(() => [
|
|
2251
|
-
|
|
2252
|
+
n(c, { cols: "5" }, {
|
|
2252
2253
|
default: l(() => [
|
|
2253
|
-
|
|
2254
|
+
n(k, {
|
|
2254
2255
|
modelValue: i.group,
|
|
2255
2256
|
"onUpdate:modelValue": [
|
|
2256
|
-
e[8] || (e[8] = (
|
|
2257
|
-
|
|
2257
|
+
e[8] || (e[8] = (w) => i.group = w),
|
|
2258
|
+
o.groupChanged
|
|
2258
2259
|
],
|
|
2259
2260
|
label: "Group:",
|
|
2260
2261
|
class: "mb-2 mr-2",
|
|
@@ -2267,40 +2268,40 @@ function ki(t, e, n, a, i, s) {
|
|
|
2267
2268
|
]),
|
|
2268
2269
|
_: 1
|
|
2269
2270
|
}),
|
|
2270
|
-
|
|
2271
|
+
n(c, { cols: "auto" }, {
|
|
2271
2272
|
default: l(() => [
|
|
2272
|
-
|
|
2273
|
+
n(V, {
|
|
2273
2274
|
color: "primary",
|
|
2274
2275
|
class: "mr-2",
|
|
2275
|
-
disabled:
|
|
2276
|
+
disabled: s.disableButtons || !i.userInfo.execute,
|
|
2276
2277
|
"data-test": "start-group",
|
|
2277
|
-
onClick: e[9] || (e[9] = (
|
|
2278
|
+
onClick: e[9] || (e[9] = (w) => t.$emit("button", { method: "start", suite: i.suite, group: i.group, options: i.options }))
|
|
2278
2279
|
}, {
|
|
2279
2280
|
default: l(() => [...e[23] || (e[23] = [
|
|
2280
|
-
|
|
2281
|
+
y(" Start ", -1)
|
|
2281
2282
|
])]),
|
|
2282
2283
|
_: 1
|
|
2283
2284
|
}, 8, ["disabled"]),
|
|
2284
|
-
|
|
2285
|
+
n(V, {
|
|
2285
2286
|
color: "primary",
|
|
2286
2287
|
class: "mr-2",
|
|
2287
2288
|
"data-test": "setup-group",
|
|
2288
|
-
disabled:
|
|
2289
|
-
onClick: e[10] || (e[10] = (
|
|
2289
|
+
disabled: s.disableButtons || !o.setupGroupEnabled || !i.userInfo.execute,
|
|
2290
|
+
onClick: e[10] || (e[10] = (w) => t.$emit("button", { method: "setup", suite: i.suite, group: i.group, options: i.options }))
|
|
2290
2291
|
}, {
|
|
2291
2292
|
default: l(() => [...e[24] || (e[24] = [
|
|
2292
|
-
|
|
2293
|
+
y(" Setup ", -1)
|
|
2293
2294
|
])]),
|
|
2294
2295
|
_: 1
|
|
2295
2296
|
}, 8, ["disabled"]),
|
|
2296
|
-
|
|
2297
|
+
n(V, {
|
|
2297
2298
|
color: "primary",
|
|
2298
2299
|
"data-test": "teardown-group",
|
|
2299
|
-
disabled:
|
|
2300
|
-
onClick: e[11] || (e[11] = (
|
|
2300
|
+
disabled: s.disableButtons || !o.teardownGroupEnabled || !i.userInfo.execute,
|
|
2301
|
+
onClick: e[11] || (e[11] = (w) => t.$emit("button", { method: "teardown", suite: i.suite, group: i.group, options: i.options }))
|
|
2301
2302
|
}, {
|
|
2302
2303
|
default: l(() => [...e[25] || (e[25] = [
|
|
2303
|
-
|
|
2304
|
+
y(" Teardown ", -1)
|
|
2304
2305
|
])]),
|
|
2305
2306
|
_: 1
|
|
2306
2307
|
}, 8, ["disabled"])
|
|
@@ -2316,21 +2317,21 @@ function ki(t, e, n, a, i, s) {
|
|
|
2316
2317
|
]),
|
|
2317
2318
|
_: 1
|
|
2318
2319
|
}),
|
|
2319
|
-
|
|
2320
|
+
n(b, { "no-gutters": "" }, {
|
|
2320
2321
|
default: l(() => [
|
|
2321
|
-
|
|
2322
|
+
n(c, { cols: "4" }, {
|
|
2322
2323
|
default: l(() => [
|
|
2323
|
-
|
|
2324
|
+
n(b, { "no-gutters": "" }, {
|
|
2324
2325
|
default: l(() => [
|
|
2325
|
-
|
|
2326
|
+
n(c, { cols: "6" }, {
|
|
2326
2327
|
default: l(() => [
|
|
2327
|
-
|
|
2328
|
+
n(h, {
|
|
2328
2329
|
"open-delay": 600,
|
|
2329
2330
|
location: "top"
|
|
2330
2331
|
}, {
|
|
2331
|
-
activator: l(({ props:
|
|
2332
|
-
|
|
2333
|
-
|
|
2332
|
+
activator: l(({ props: w }) => [
|
|
2333
|
+
x("div", le(re(w)), [
|
|
2334
|
+
n(d, {
|
|
2334
2335
|
modelValue: i.options,
|
|
2335
2336
|
"onUpdate:modelValue": e[12] || (e[12] = (R) => i.options = R),
|
|
2336
2337
|
label: "Abort after Error",
|
|
@@ -2341,10 +2342,10 @@ function ki(t, e, n, a, i, s) {
|
|
|
2341
2342
|
], 16)
|
|
2342
2343
|
]),
|
|
2343
2344
|
default: l(() => [
|
|
2344
|
-
e[26] || (e[26] =
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
|
|
2345
|
+
e[26] || (e[26] = x("span", null, [
|
|
2346
|
+
y(" Checked stops additional script execution when an error is encountered"),
|
|
2347
|
+
x("br"),
|
|
2348
|
+
y(" Unchecked allows additional scripts to execute ")
|
|
2348
2349
|
], -1))
|
|
2349
2350
|
]),
|
|
2350
2351
|
_: 1
|
|
@@ -2352,15 +2353,15 @@ function ki(t, e, n, a, i, s) {
|
|
|
2352
2353
|
]),
|
|
2353
2354
|
_: 1
|
|
2354
2355
|
}),
|
|
2355
|
-
|
|
2356
|
+
n(c, { cols: "6" }, {
|
|
2356
2357
|
default: l(() => [
|
|
2357
|
-
|
|
2358
|
+
n(h, {
|
|
2358
2359
|
"open-delay": 600,
|
|
2359
2360
|
location: "top"
|
|
2360
2361
|
}, {
|
|
2361
|
-
activator: l(({ props:
|
|
2362
|
-
|
|
2363
|
-
|
|
2362
|
+
activator: l(({ props: w }) => [
|
|
2363
|
+
x("div", le(re(w)), [
|
|
2364
|
+
n(d, {
|
|
2364
2365
|
modelValue: i.options,
|
|
2365
2366
|
"onUpdate:modelValue": e[13] || (e[13] = (R) => i.options = R),
|
|
2366
2367
|
disabled: !i.options.includes("loop"),
|
|
@@ -2372,12 +2373,12 @@ function ki(t, e, n, a, i, s) {
|
|
|
2372
2373
|
], 16)
|
|
2373
2374
|
]),
|
|
2374
2375
|
default: l(() => [
|
|
2375
|
-
e[27] || (e[27] =
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
|
|
2376
|
+
e[27] || (e[27] = x("span", null, [
|
|
2377
|
+
y(" Checked breaks the loop option when an error is encountered"),
|
|
2378
|
+
x("br"),
|
|
2379
|
+
y(" Unchecked allows the loop to run continuously"),
|
|
2380
|
+
x("br"),
|
|
2381
|
+
y(" Note: Abort after Error still breaks the loop ")
|
|
2381
2382
|
], -1))
|
|
2382
2383
|
]),
|
|
2383
2384
|
_: 1
|
|
@@ -2391,27 +2392,27 @@ function ki(t, e, n, a, i, s) {
|
|
|
2391
2392
|
]),
|
|
2392
2393
|
_: 1
|
|
2393
2394
|
}),
|
|
2394
|
-
|
|
2395
|
+
n(c, { cols: "8" }, {
|
|
2395
2396
|
default: l(() => [
|
|
2396
|
-
|
|
2397
|
+
n(b, {
|
|
2397
2398
|
"no-gutters": "",
|
|
2398
2399
|
justify: "end"
|
|
2399
2400
|
}, {
|
|
2400
2401
|
default: l(() => [
|
|
2401
|
-
|
|
2402
|
+
n(c, { cols: "5" }, {
|
|
2402
2403
|
default: l(() => [
|
|
2403
|
-
|
|
2404
|
+
n(k, {
|
|
2404
2405
|
modelValue: i.script,
|
|
2405
2406
|
"onUpdate:modelValue": [
|
|
2406
|
-
e[14] || (e[14] = (
|
|
2407
|
-
|
|
2407
|
+
e[14] || (e[14] = (w) => i.script = w),
|
|
2408
|
+
o.scriptChanged
|
|
2408
2409
|
],
|
|
2409
2410
|
label: "Script:",
|
|
2410
2411
|
class: "mb-2 mr-2",
|
|
2411
2412
|
"hide-details": "",
|
|
2412
2413
|
density: "compact",
|
|
2413
2414
|
variant: "outlined",
|
|
2414
|
-
items:
|
|
2415
|
+
items: o.scriptNames,
|
|
2415
2416
|
"item-title": "title",
|
|
2416
2417
|
"item-value": "value",
|
|
2417
2418
|
"data-test": "select-script"
|
|
@@ -2419,14 +2420,14 @@ function ki(t, e, n, a, i, s) {
|
|
|
2419
2420
|
]),
|
|
2420
2421
|
_: 1
|
|
2421
2422
|
}),
|
|
2422
|
-
|
|
2423
|
+
n(c, { cols: "auto" }, {
|
|
2423
2424
|
default: l(() => [
|
|
2424
|
-
|
|
2425
|
+
n(V, {
|
|
2425
2426
|
color: "primary",
|
|
2426
2427
|
class: "mr-2",
|
|
2427
|
-
disabled:
|
|
2428
|
+
disabled: s.disableButtons || !i.userInfo.execute,
|
|
2428
2429
|
"data-test": "start-script",
|
|
2429
|
-
onClick: e[15] || (e[15] = (
|
|
2430
|
+
onClick: e[15] || (e[15] = (w) => t.$emit("button", {
|
|
2430
2431
|
method: "start",
|
|
2431
2432
|
suite: i.suite,
|
|
2432
2433
|
group: i.group,
|
|
@@ -2435,25 +2436,25 @@ function ki(t, e, n, a, i, s) {
|
|
|
2435
2436
|
}))
|
|
2436
2437
|
}, {
|
|
2437
2438
|
default: l(() => [...e[28] || (e[28] = [
|
|
2438
|
-
|
|
2439
|
+
y(" Start ", -1)
|
|
2439
2440
|
])]),
|
|
2440
2441
|
_: 1
|
|
2441
2442
|
}, 8, ["disabled"]),
|
|
2442
|
-
|
|
2443
|
+
n(V, {
|
|
2443
2444
|
color: "primary",
|
|
2444
2445
|
class: "mr-2 invisible"
|
|
2445
2446
|
}, {
|
|
2446
2447
|
default: l(() => [...e[29] || (e[29] = [
|
|
2447
|
-
|
|
2448
|
+
y(" Setup ", -1)
|
|
2448
2449
|
])]),
|
|
2449
2450
|
_: 1
|
|
2450
2451
|
}),
|
|
2451
|
-
|
|
2452
|
+
n(V, {
|
|
2452
2453
|
color: "primary",
|
|
2453
2454
|
class: "invisible"
|
|
2454
2455
|
}, {
|
|
2455
2456
|
default: l(() => [...e[30] || (e[30] = [
|
|
2456
|
-
|
|
2457
|
+
y(" Teardown ", -1)
|
|
2457
2458
|
])]),
|
|
2458
2459
|
_: 1
|
|
2459
2460
|
})
|
|
@@ -2472,30 +2473,30 @@ function ki(t, e, n, a, i, s) {
|
|
|
2472
2473
|
])
|
|
2473
2474
|
]);
|
|
2474
2475
|
}
|
|
2475
|
-
const
|
|
2476
|
-
const i = e(
|
|
2477
|
-
return
|
|
2478
|
-
}, {}),
|
|
2479
|
-
const e = "(^|[{\\(\\s])",
|
|
2480
|
-
return new RegExp(`${e}${t}${
|
|
2476
|
+
const xi = /* @__PURE__ */ j(yi, [["render", Si], ["__scopeId", "data-v-fe48c8c7"]]), Ge = (t) => O.get(`/openc3-api/autocomplete/keywords/${t}`), Ci = (t) => O.get(`/openc3-api/autocomplete/data/${t}`), Je = (t, e) => t.reduce((s, r) => {
|
|
2477
|
+
const i = e(r);
|
|
2478
|
+
return s[i] ? s[i].push(r) : s[i] = [r], s;
|
|
2479
|
+
}, {}), Vi = (t) => {
|
|
2480
|
+
const e = "(^|[{\\(\\s])", s = `[\\s\\(]f?['"]`, r = "(\\S+\\s?){0,3}";
|
|
2481
|
+
return new RegExp(`${e}${t}${s}${r}$`);
|
|
2481
2482
|
};
|
|
2482
|
-
class
|
|
2483
|
-
constructor(e,
|
|
2484
|
-
},
|
|
2483
|
+
class et {
|
|
2484
|
+
constructor(e, s = () => {
|
|
2485
|
+
}, r = () => {
|
|
2485
2486
|
}) {
|
|
2486
|
-
this.keywordExpressions = [], this.autocompleteData = [],
|
|
2487
|
-
this.keywordExpressions = i.data.map(
|
|
2488
|
-
}),
|
|
2489
|
-
this.autocompleteData = i.data,
|
|
2487
|
+
this.keywordExpressions = [], this.autocompleteData = [], Ge(e).then((i) => {
|
|
2488
|
+
this.keywordExpressions = i.data.map(Vi), r();
|
|
2489
|
+
}), Ci(e).then((i) => {
|
|
2490
|
+
this.autocompleteData = i.data, s();
|
|
2490
2491
|
});
|
|
2491
2492
|
}
|
|
2492
|
-
getCompletions(e,
|
|
2493
|
+
getCompletions(e, s, r, i, o) {
|
|
2493
2494
|
let d = [];
|
|
2494
|
-
const
|
|
2495
|
+
const h = s.doc.$lines[r.row].slice(
|
|
2495
2496
|
0,
|
|
2496
|
-
|
|
2497
|
+
r.column
|
|
2497
2498
|
);
|
|
2498
|
-
this.keywordExpressions.some((
|
|
2499
|
+
this.keywordExpressions.some((c) => h.match(c)) && (d = this.autocompleteData), o(null, [
|
|
2499
2500
|
...d
|
|
2500
2501
|
// 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)
|
|
2501
2502
|
// ...session.$mode.$highlightRules.$keywordList.map((word) => ({
|
|
@@ -2506,21 +2507,21 @@ class $e {
|
|
|
2506
2507
|
]);
|
|
2507
2508
|
}
|
|
2508
2509
|
}
|
|
2509
|
-
class
|
|
2510
|
+
class Ei extends et {
|
|
2510
2511
|
constructor() {
|
|
2511
2512
|
super("cmd");
|
|
2512
2513
|
}
|
|
2513
2514
|
}
|
|
2514
|
-
class Ri extends
|
|
2515
|
+
class Ri extends et {
|
|
2515
2516
|
constructor() {
|
|
2516
2517
|
super("tlm", () => {
|
|
2517
|
-
this.groupedPacketData = this.autocompleteData.reduce((e,
|
|
2518
|
-
const
|
|
2518
|
+
this.groupedPacketData = this.autocompleteData.reduce((e, s) => {
|
|
2519
|
+
const r = s.caption.match(/\S+\s\S+/)[0], i = s.snippet.replace(`${r} `, ""), o = {
|
|
2519
2520
|
caption: i,
|
|
2520
2521
|
snippet: i,
|
|
2521
2522
|
meta: "item"
|
|
2522
2523
|
};
|
|
2523
|
-
return e[
|
|
2524
|
+
return e[r] ? e[r].push(o) : e[r] = [o], e;
|
|
2524
2525
|
}, {}), this.packets = Object.keys(this.groupedPacketData).map((e) => ({
|
|
2525
2526
|
caption: e,
|
|
2526
2527
|
snippet: e,
|
|
@@ -2529,254 +2530,255 @@ class Ri extends $e {
|
|
|
2529
2530
|
});
|
|
2530
2531
|
}
|
|
2531
2532
|
// Override the parent's getCompletions to take advantage of the grouping by packet done in the constructor
|
|
2532
|
-
getCompletions(e,
|
|
2533
|
+
getCompletions(e, s, r, i, o) {
|
|
2533
2534
|
let d = [];
|
|
2534
|
-
const
|
|
2535
|
+
const h = s.doc.$lines[r.row].slice(
|
|
2535
2536
|
0,
|
|
2536
|
-
|
|
2537
|
+
r.column
|
|
2537
2538
|
);
|
|
2538
|
-
if (this.keywordExpressions.some((
|
|
2539
|
-
const
|
|
2540
|
-
(
|
|
2539
|
+
if (this.keywordExpressions.some((c) => h.match(c))) {
|
|
2540
|
+
const c = Object.keys(this.groupedPacketData).find(
|
|
2541
|
+
(b) => h.includes(b)
|
|
2541
2542
|
);
|
|
2542
|
-
|
|
2543
|
+
c ? d = this.groupedPacketData[c] : d = this.packets;
|
|
2543
2544
|
}
|
|
2544
|
-
|
|
2545
|
+
o(null, d);
|
|
2545
2546
|
}
|
|
2546
2547
|
}
|
|
2547
|
-
const
|
|
2548
|
-
const e = "(^|[{\\(\\s])",
|
|
2549
|
-
return new RegExp(`${e}${t}${
|
|
2550
|
-
}, Oi = /\{/,
|
|
2551
|
-
class
|
|
2548
|
+
const Ye = (t) => {
|
|
2549
|
+
const e = "(^|[{\\(\\s])", s = "((\\s.+)|(\\(.+\\)))";
|
|
2550
|
+
return new RegExp(`${e}${t}${s}`);
|
|
2551
|
+
}, Oi = /\{/, Mi = /['"],\s?['"]/;
|
|
2552
|
+
class Ti {
|
|
2552
2553
|
constructor() {
|
|
2553
|
-
this.api = new
|
|
2554
|
-
e.forEach((
|
|
2555
|
-
this.targets[
|
|
2554
|
+
this.api = new Te(), this.targets = {}, this.api.get_target_names().then((e) => {
|
|
2555
|
+
e.forEach((s) => {
|
|
2556
|
+
this.targets[s] = {
|
|
2556
2557
|
cmd: null,
|
|
2557
2558
|
tlm: null
|
|
2558
2559
|
};
|
|
2559
2560
|
});
|
|
2560
|
-
}), this.cmdKeywordExpressions = [],
|
|
2561
|
-
this.cmdKeywordExpressions = e.data.map(
|
|
2562
|
-
}), this.tlmKeywordExpressions = [],
|
|
2563
|
-
this.tlmKeywordExpressions = e.data.map(
|
|
2561
|
+
}), this.cmdKeywordExpressions = [], Ge("cmd").then((e) => {
|
|
2562
|
+
this.cmdKeywordExpressions = e.data.map(Ye);
|
|
2563
|
+
}), this.tlmKeywordExpressions = [], Ge("tlm").then((e) => {
|
|
2564
|
+
this.tlmKeywordExpressions = e.data.map(Ye);
|
|
2564
2565
|
});
|
|
2565
2566
|
}
|
|
2566
2567
|
async checkText(e) {
|
|
2567
|
-
const { linesToCheck:
|
|
2568
|
+
const { linesToCheck: s, linesToSkip: r } = e.split(`
|
|
2568
2569
|
`).reduce(
|
|
2569
|
-
(
|
|
2570
|
+
(o, d, h) => {
|
|
2570
2571
|
if (d = d.trim(), d.match(/^#/))
|
|
2571
|
-
return
|
|
2572
|
-
const
|
|
2573
|
-
if (!
|
|
2574
|
-
return
|
|
2575
|
-
let
|
|
2576
|
-
|
|
2577
|
-
const
|
|
2578
|
-
if (
|
|
2579
|
-
return
|
|
2580
|
-
const R = !!
|
|
2572
|
+
return o;
|
|
2573
|
+
const c = this.cmdKeywordExpressions.reduce((_, z) => _ || d.match(z), null), b = this.tlmKeywordExpressions.reduce((_, z) => _ || d.match(z), null);
|
|
2574
|
+
if (!c && !b)
|
|
2575
|
+
return o;
|
|
2576
|
+
let k = c || b, V = k.length;
|
|
2577
|
+
k = k[V - 1];
|
|
2578
|
+
const w = k.substring(k.match(/[\(\s)]/).index + 1).replace(/\)+.*$/, "");
|
|
2579
|
+
if (w.match(Oi))
|
|
2580
|
+
return o.linesToSkip.push(h + 1), o;
|
|
2581
|
+
const R = !!w.match(Mi), E = w.split(
|
|
2581
2582
|
R ? "," : " "
|
|
2582
2583
|
);
|
|
2583
|
-
if (
|
|
2584
|
-
return
|
|
2585
|
-
const
|
|
2586
|
-
target:
|
|
2587
|
-
packet:
|
|
2584
|
+
if (E.length < 2)
|
|
2585
|
+
return o;
|
|
2586
|
+
const T = {
|
|
2587
|
+
target: E[0],
|
|
2588
|
+
packet: E[1]
|
|
2588
2589
|
};
|
|
2589
|
-
if (
|
|
2590
|
-
|
|
2590
|
+
if (b)
|
|
2591
|
+
T.item = E[2];
|
|
2591
2592
|
else {
|
|
2592
|
-
const _ =
|
|
2593
|
-
R ?
|
|
2594
|
-
(
|
|
2595
|
-
) :
|
|
2593
|
+
const _ = E.slice(2);
|
|
2594
|
+
R ? T.params = _.map(
|
|
2595
|
+
(z) => z.split("=>")[0]
|
|
2596
|
+
) : T.params = _.filter((z, G) => G % 2);
|
|
2596
2597
|
}
|
|
2597
|
-
for (const _ in
|
|
2598
|
-
typeof
|
|
2599
|
-
(
|
|
2598
|
+
for (const _ in T)
|
|
2599
|
+
typeof T[_] == "string" ? T[_] = T[_].replace(/['"]/g, "").trim() : T[_] = T[_].map(
|
|
2600
|
+
(z) => z.replace(/['"]/g, "").trim()
|
|
2600
2601
|
);
|
|
2601
|
-
return
|
|
2602
|
+
return o.linesToCheck.push({
|
|
2602
2603
|
line: d,
|
|
2603
|
-
mnemonic:
|
|
2604
|
-
lineNumber:
|
|
2605
|
-
}),
|
|
2604
|
+
mnemonic: T,
|
|
2605
|
+
lineNumber: h + 1
|
|
2606
|
+
}), o;
|
|
2606
2607
|
},
|
|
2607
2608
|
{ linesToCheck: [], linesToSkip: [] }
|
|
2608
|
-
), i = await this._checkLines(
|
|
2609
|
+
), i = await this._checkLines(s);
|
|
2609
2610
|
return {
|
|
2610
|
-
skipped:
|
|
2611
|
-
problems: i.sort((
|
|
2611
|
+
skipped: r.sort(),
|
|
2612
|
+
problems: i.sort((o, d) => o.lineNumber - d.lineNumber)
|
|
2612
2613
|
};
|
|
2613
2614
|
}
|
|
2614
2615
|
async _checkLines(e) {
|
|
2615
|
-
const
|
|
2616
|
+
const s = [], r = Je(
|
|
2616
2617
|
e,
|
|
2617
2618
|
(i) => i.mnemonic.target
|
|
2618
2619
|
);
|
|
2619
|
-
for (const i in
|
|
2620
|
+
for (const i in r) {
|
|
2620
2621
|
if (!this.targets[i]) {
|
|
2621
|
-
for (const d of
|
|
2622
|
-
|
|
2622
|
+
for (const d of r[i])
|
|
2623
|
+
s.push({
|
|
2623
2624
|
...d,
|
|
2624
2625
|
error: `Target "${i}" does not exist.`
|
|
2625
2626
|
});
|
|
2626
2627
|
continue;
|
|
2627
2628
|
}
|
|
2628
|
-
const
|
|
2629
|
-
|
|
2629
|
+
const o = Je(
|
|
2630
|
+
r[i],
|
|
2630
2631
|
(d) => d.mnemonic.packet
|
|
2631
2632
|
);
|
|
2632
|
-
for (const d in
|
|
2633
|
-
for (const
|
|
2634
|
-
const
|
|
2635
|
-
if (!this.targets[i][
|
|
2636
|
-
const
|
|
2637
|
-
this.targets[i][
|
|
2638
|
-
(
|
|
2639
|
-
(
|
|
2640
|
-
),
|
|
2633
|
+
for (const d in o)
|
|
2634
|
+
for (const h of o[d]) {
|
|
2635
|
+
const c = h.mnemonic.item ? "tlm" : "cmd";
|
|
2636
|
+
if (!this.targets[i][c]) {
|
|
2637
|
+
const k = h.mnemonic.item ? "get_all_tlm" : "get_all_cmds", V = await this.api[k](i);
|
|
2638
|
+
this.targets[i][c] = V.reduce(
|
|
2639
|
+
(w, R) => (w[R.packet_name] = R.items.map(
|
|
2640
|
+
(E) => E.name
|
|
2641
|
+
), w),
|
|
2641
2642
|
{}
|
|
2642
2643
|
);
|
|
2643
2644
|
}
|
|
2644
|
-
const
|
|
2645
|
-
if (!
|
|
2646
|
-
|
|
2647
|
-
...
|
|
2648
|
-
error: `${
|
|
2645
|
+
const b = this.targets[i][c][d];
|
|
2646
|
+
if (!b) {
|
|
2647
|
+
s.push({
|
|
2648
|
+
...h,
|
|
2649
|
+
error: `${c === "tlm" ? "Packet" : "Command"} "${i} ${d}" does not exist.`
|
|
2649
2650
|
});
|
|
2650
2651
|
continue;
|
|
2651
2652
|
}
|
|
2652
|
-
if (
|
|
2653
|
-
if (!
|
|
2654
|
-
|
|
2655
|
-
...
|
|
2656
|
-
error: `Item "${i} ${d} ${
|
|
2653
|
+
if (h.mnemonic.item) {
|
|
2654
|
+
if (!b.some((k) => k === h.mnemonic.item)) {
|
|
2655
|
+
s.push({
|
|
2656
|
+
...h,
|
|
2657
|
+
error: `Item "${i} ${d} ${h.mnemonic.item}" does not exist.`
|
|
2657
2658
|
});
|
|
2658
2659
|
continue;
|
|
2659
2660
|
}
|
|
2660
2661
|
} else
|
|
2661
|
-
for (const
|
|
2662
|
-
if (!
|
|
2663
|
-
|
|
2664
|
-
...
|
|
2665
|
-
error: `Command "${i} ${d}" param "${
|
|
2662
|
+
for (const k of h.mnemonic.params)
|
|
2663
|
+
if (!b.some((V) => V === k)) {
|
|
2664
|
+
s.push({
|
|
2665
|
+
...h,
|
|
2666
|
+
error: `Command "${i} ${d}" param "${k}" does not exist.`
|
|
2666
2667
|
});
|
|
2667
2668
|
continue;
|
|
2668
2669
|
}
|
|
2669
2670
|
}
|
|
2670
2671
|
}
|
|
2671
|
-
return
|
|
2672
|
+
return s;
|
|
2672
2673
|
}
|
|
2673
2674
|
}
|
|
2674
|
-
var
|
|
2675
|
-
class
|
|
2676
|
-
constructor(e, { pattern:
|
|
2675
|
+
var ee, ge, ve, _e, be, Oe, we, ye, Me;
|
|
2676
|
+
class Ii {
|
|
2677
|
+
constructor(e, { pattern: s, text: r, type: i }) {
|
|
2677
2678
|
// TODO: the eslint parser errors on these because of the #
|
|
2678
2679
|
// Not sure if this naming is needed for the Ace editor or something?
|
|
2679
|
-
|
|
2680
|
-
|
|
2681
|
-
|
|
2682
|
-
|
|
2683
|
-
|
|
2680
|
+
W(this, ee);
|
|
2681
|
+
W(this, ge);
|
|
2682
|
+
W(this, ve);
|
|
2683
|
+
W(this, _e);
|
|
2684
|
+
W(this, be);
|
|
2684
2685
|
// Re-annotate the entire document
|
|
2685
|
-
|
|
2686
|
-
const e = B(this,
|
|
2687
|
-
B(this,
|
|
2688
|
-
const
|
|
2686
|
+
Be(this, "refresh", () => {
|
|
2687
|
+
const e = B(this, ge).session;
|
|
2688
|
+
B(this, Me).call(this, e);
|
|
2689
|
+
const s = {
|
|
2689
2690
|
lines: e.doc.$lines,
|
|
2690
2691
|
action: "insert",
|
|
2691
2692
|
start: { row: 0 },
|
|
2692
2693
|
end: { row: e.doc.$lines.length }
|
|
2693
2694
|
};
|
|
2694
|
-
this.annotate(
|
|
2695
|
+
this.annotate(s, e);
|
|
2695
2696
|
});
|
|
2696
2697
|
// Update annotations for the changed lines
|
|
2697
|
-
|
|
2698
|
-
var
|
|
2698
|
+
Be(this, "annotate", (e, s) => {
|
|
2699
|
+
var r, i;
|
|
2699
2700
|
if (e.lines.length > 1)
|
|
2700
2701
|
switch (e.action) {
|
|
2701
2702
|
case "insert":
|
|
2702
|
-
B(this,
|
|
2703
|
+
B(this, ye).call(this, s, e.start.row, e.lines.length - 1);
|
|
2703
2704
|
break;
|
|
2704
2705
|
case "remove":
|
|
2705
|
-
B(this,
|
|
2706
|
+
B(this, ye).call(this, s, e.start.row + 1, -e.lines.length + 1);
|
|
2706
2707
|
break;
|
|
2707
2708
|
}
|
|
2708
|
-
for (let
|
|
2709
|
-
let d = (i = (
|
|
2710
|
-
d !== void 0 ? (d !== 0 && (d += 1), B(this,
|
|
2711
|
-
row:
|
|
2709
|
+
for (let o = e.start.row; o <= e.end.row; o++) {
|
|
2710
|
+
let d = (i = (r = s.doc.$lines[o]) == null ? void 0 : r.match(B(this, ve))) == null ? void 0 : i.index;
|
|
2711
|
+
d !== void 0 ? (d !== 0 && (d += 1), B(this, Oe).call(this, s, {
|
|
2712
|
+
row: o,
|
|
2712
2713
|
column: d,
|
|
2713
2714
|
// I don't think our editor theme shows the column for annotations, but others do
|
|
2714
|
-
text: B(this,
|
|
2715
|
-
type: B(this,
|
|
2716
|
-
openc3Id: B(this,
|
|
2717
|
-
})) : e.action === "remove" && B(this,
|
|
2715
|
+
text: B(this, _e),
|
|
2716
|
+
type: B(this, be),
|
|
2717
|
+
openc3Id: B(this, ee)
|
|
2718
|
+
})) : e.action === "remove" && B(this, we).call(this, s, o);
|
|
2718
2719
|
}
|
|
2719
2720
|
});
|
|
2720
|
-
|
|
2721
|
-
B(this,
|
|
2721
|
+
W(this, Oe, (e, s) => {
|
|
2722
|
+
B(this, we).call(this, e, s.row), e.setAnnotations([...e.getAnnotations(), s]);
|
|
2722
2723
|
});
|
|
2723
|
-
|
|
2724
|
+
W(this, we, (e, s) => {
|
|
2724
2725
|
e.setAnnotations(
|
|
2725
2726
|
e.getAnnotations().filter(
|
|
2726
|
-
(
|
|
2727
|
+
(r) => r.openc3Id !== B(this, ee) || r.row !== s
|
|
2727
2728
|
)
|
|
2728
2729
|
);
|
|
2729
2730
|
});
|
|
2730
|
-
|
|
2731
|
+
W(this, ye, (e, s, r) => {
|
|
2731
2732
|
e.setAnnotations(
|
|
2732
|
-
e.getAnnotations().map((i) => (i.row >
|
|
2733
|
+
e.getAnnotations().map((i) => (i.row > s && (i.row += r), i))
|
|
2733
2734
|
);
|
|
2734
2735
|
});
|
|
2735
|
-
|
|
2736
|
+
W(this, Me, (e) => {
|
|
2736
2737
|
e.setAnnotations(
|
|
2737
|
-
e.getAnnotations().filter((
|
|
2738
|
+
e.getAnnotations().filter((s) => s.openc3Id !== B(this, ee))
|
|
2738
2739
|
);
|
|
2739
2740
|
});
|
|
2740
|
-
|
|
2741
|
+
ne(this, ee, `regexAnnotator-${Math.floor(Math.random() * 1e7)}`), ne(this, ge, e), ne(this, ve, s), ne(this, _e, r), ne(this, be, i);
|
|
2741
2742
|
}
|
|
2742
2743
|
}
|
|
2743
|
-
|
|
2744
|
-
class
|
|
2744
|
+
ee = new WeakMap(), ge = new WeakMap(), ve = new WeakMap(), _e = new WeakMap(), be = new WeakMap(), Oe = new WeakMap(), we = new WeakMap(), ye = new WeakMap(), Me = new WeakMap();
|
|
2745
|
+
class Di extends Ii {
|
|
2745
2746
|
constructor(e) {
|
|
2746
|
-
const
|
|
2747
|
+
const s = "(^|[{\\s])", r = "sleep", i = "[\\(\\s]";
|
|
2747
2748
|
super(e, {
|
|
2748
|
-
pattern: new RegExp(`${
|
|
2749
|
+
pattern: new RegExp(`${s}${r}${i}`),
|
|
2749
2750
|
text: "Use `wait` instead of `sleep` in OpenC3 scripts",
|
|
2750
2751
|
// because we override wait to make it work better, but not sleep
|
|
2751
2752
|
type: "warning"
|
|
2752
2753
|
});
|
|
2753
2754
|
}
|
|
2754
2755
|
}
|
|
2755
|
-
const
|
|
2756
|
+
const Ze = "__TEMP__", q = "<Untitled>", He = "Start", Ui = "Go", fe = "Pause", Pi = "Retry", zi = {
|
|
2756
2757
|
components: {
|
|
2757
|
-
FileOpenSaveDialog:
|
|
2758
|
-
Openc3Screen:
|
|
2759
|
-
EnvironmentDialog:
|
|
2760
|
-
Splitpanes:
|
|
2761
|
-
Pane:
|
|
2758
|
+
FileOpenSaveDialog: St,
|
|
2759
|
+
Openc3Screen: kt,
|
|
2760
|
+
EnvironmentDialog: yt,
|
|
2761
|
+
Splitpanes: Pt,
|
|
2762
|
+
Pane: zt,
|
|
2762
2763
|
TopBar: gt,
|
|
2763
|
-
AskDialog:
|
|
2764
|
-
FileDialog:
|
|
2765
|
-
InformationDialog:
|
|
2766
|
-
EventListDialog:
|
|
2767
|
-
OverridesDialog:
|
|
2768
|
-
PromptDialog:
|
|
2769
|
-
ResultsDialog:
|
|
2770
|
-
ScriptEnvironmentDialog:
|
|
2771
|
-
SimpleTextDialog:
|
|
2772
|
-
SuiteRunner:
|
|
2773
|
-
RunningScripts:
|
|
2774
|
-
ScriptLogMessages:
|
|
2775
|
-
CriticalCmdDialog:
|
|
2764
|
+
AskDialog: Nt,
|
|
2765
|
+
FileDialog: Wt,
|
|
2766
|
+
InformationDialog: $t,
|
|
2767
|
+
EventListDialog: Vt,
|
|
2768
|
+
OverridesDialog: si,
|
|
2769
|
+
PromptDialog: mi,
|
|
2770
|
+
ResultsDialog: gi,
|
|
2771
|
+
ScriptEnvironmentDialog: wi,
|
|
2772
|
+
SimpleTextDialog: xt,
|
|
2773
|
+
SuiteRunner: xi,
|
|
2774
|
+
RunningScripts: Tt,
|
|
2775
|
+
ScriptLogMessages: Ut,
|
|
2776
|
+
CriticalCmdDialog: wt,
|
|
2777
|
+
CommandEditor: _t
|
|
2776
2778
|
},
|
|
2777
|
-
mixins: [ht,
|
|
2778
|
-
beforeRouteUpdate: function(t, e,
|
|
2779
|
-
t.params.id ? this.tryLoadRunningScript(t.params.id).then(
|
|
2779
|
+
mixins: [ht, Ct],
|
|
2780
|
+
beforeRouteUpdate: function(t, e, s) {
|
|
2781
|
+
t.params.id ? this.tryLoadRunningScript(t.params.id).then(s) : s();
|
|
2780
2782
|
},
|
|
2781
2783
|
props: {
|
|
2782
2784
|
inline: {
|
|
@@ -2819,10 +2821,10 @@ const Ye = "__TEMP__", G = "<Untitled>", Be = "Start", Di = "Go", pe = "Pause",
|
|
|
2819
2821
|
alertText: "",
|
|
2820
2822
|
state: null,
|
|
2821
2823
|
scriptId: null,
|
|
2822
|
-
startOrGoButton:
|
|
2824
|
+
startOrGoButton: He,
|
|
2823
2825
|
startOrGoDisabled: !1,
|
|
2824
2826
|
envDisabled: !1,
|
|
2825
|
-
pauseOrRetryButton:
|
|
2827
|
+
pauseOrRetryButton: fe,
|
|
2826
2828
|
pauseOrRetryDisabled: !1,
|
|
2827
2829
|
stopDisabled: !1,
|
|
2828
2830
|
showEnvironment: !1,
|
|
@@ -2834,7 +2836,7 @@ const Ye = "__TEMP__", G = "<Untitled>", Be = "Start", Di = "Go", pe = "Pause",
|
|
|
2834
2836
|
files: {},
|
|
2835
2837
|
breakpoints: {},
|
|
2836
2838
|
enableStackTraces: !1,
|
|
2837
|
-
filename:
|
|
2839
|
+
filename: q,
|
|
2838
2840
|
readOnlyUser: !1,
|
|
2839
2841
|
executeUser: !0,
|
|
2840
2842
|
saveAllowed: !0,
|
|
@@ -2852,6 +2854,7 @@ const Ye = "__TEMP__", G = "<Untitled>", Be = "Start", Di = "Go", pe = "Pause",
|
|
|
2852
2854
|
receivedEvents: [],
|
|
2853
2855
|
messages: [],
|
|
2854
2856
|
messagesNewestOnTop: !0,
|
|
2857
|
+
inlineTab: "script",
|
|
2855
2858
|
maxArrayLength: 200,
|
|
2856
2859
|
Range: ace.require("ace/range").Range,
|
|
2857
2860
|
ask: {
|
|
@@ -2908,9 +2911,19 @@ const Ye = "__TEMP__", G = "<Untitled>", Be = "Start", Di = "Go", pe = "Pause",
|
|
|
2908
2911
|
executeSelectionMenu: !1,
|
|
2909
2912
|
menuX: 0,
|
|
2910
2913
|
menuY: 0,
|
|
2911
|
-
mnemonicChecker: new
|
|
2914
|
+
mnemonicChecker: new Ti(),
|
|
2912
2915
|
showScripts: !1,
|
|
2913
2916
|
showOverrides: !1,
|
|
2917
|
+
commandEditor: {
|
|
2918
|
+
show: !1,
|
|
2919
|
+
targetName: null,
|
|
2920
|
+
commandName: null,
|
|
2921
|
+
dialogError: null,
|
|
2922
|
+
cmdString: null,
|
|
2923
|
+
isEditing: !1,
|
|
2924
|
+
editLine: null
|
|
2925
|
+
},
|
|
2926
|
+
currentLineHasCommand: !1,
|
|
2914
2927
|
activePromptId: "",
|
|
2915
2928
|
api: null,
|
|
2916
2929
|
timeZone: "local",
|
|
@@ -2945,13 +2958,13 @@ const Ye = "__TEMP__", G = "<Untitled>", Be = "Start", Di = "Go", pe = "Pause",
|
|
|
2945
2958
|
},
|
|
2946
2959
|
// Returns the currently shown filename
|
|
2947
2960
|
fullFilename: function() {
|
|
2948
|
-
return this.currentFilename ? this.currentFilename : this.filename ===
|
|
2961
|
+
return this.currentFilename ? this.currentFilename : this.filename === q ? q : `${this.filename} ${this.fileModified}`.trim();
|
|
2949
2962
|
},
|
|
2950
2963
|
// It's annoying for people (and tests) to clear the <Untitled>
|
|
2951
2964
|
// when saving a new file so replace with blank
|
|
2952
2965
|
// This makes sure that string doesn't show up in the dialog
|
|
2953
2966
|
filenameOrBlank: function() {
|
|
2954
|
-
return this.filename ===
|
|
2967
|
+
return this.filename === q ? "" : this.filename;
|
|
2955
2968
|
},
|
|
2956
2969
|
menus: function() {
|
|
2957
2970
|
return [
|
|
@@ -3200,21 +3213,21 @@ const Ye = "__TEMP__", G = "<Untitled>", Be = "Start", Di = "Go", pe = "Pause",
|
|
|
3200
3213
|
this.showEditingToast = t, this.suiteRunner || (this.startOrGoDisabled = t), this.readOnlyUser == !1 && t == !1 ? this.editor.setReadOnly(t) : this.editor.setReadOnly(!0);
|
|
3201
3214
|
},
|
|
3202
3215
|
fullFilename: function(t) {
|
|
3203
|
-
this.filenameSelect = t, this.inline || (t ===
|
|
3216
|
+
this.filenameSelect = t, this.inline || (t === q ? localStorage.removeItem("script_runner__filename") : localStorage.script_runner__filename = t);
|
|
3204
3217
|
}
|
|
3205
3218
|
},
|
|
3206
3219
|
created: async function() {
|
|
3207
|
-
this.api = new
|
|
3208
|
-
|
|
3209
|
-
}).catch((
|
|
3210
|
-
}), this.NEW_FILENAME =
|
|
3220
|
+
this.api = new Te(), this.api.ensure_offline_access(), this.api.get_setting("time_zone").then((s) => {
|
|
3221
|
+
s && (this.timeZone = s);
|
|
3222
|
+
}).catch((s) => {
|
|
3223
|
+
}), this.NEW_FILENAME = q;
|
|
3211
3224
|
let t = OpenC3Auth.user(), e = OpenC3Auth.userroles();
|
|
3212
3225
|
this.readOnlyUser = !0, this.executeUser = !1;
|
|
3213
|
-
for (let
|
|
3214
|
-
|
|
3215
|
-
|
|
3226
|
+
for (let s of e)
|
|
3227
|
+
s != "viewer" && (s == "admin" || s == "operator" ? (this.readOnlyUser = !1, this.executeUser = !0) : s == "runner" ? this.executeUser = !0 : await O.get(`/openc3-api/roles/${s}`).then((r) => {
|
|
3228
|
+
r.data !== null && r.data.permissions !== void 0 && (r.data.permissions.some(
|
|
3216
3229
|
(i) => i.permission == "script_edit"
|
|
3217
|
-
) && (this.readOnlyUser = !1),
|
|
3230
|
+
) && (this.readOnlyUser = !1), r.data.permissions.some(
|
|
3218
3231
|
(i) => i.permission == "script_run"
|
|
3219
3232
|
) && (this.executeUser = !0));
|
|
3220
3233
|
}));
|
|
@@ -3224,27 +3237,27 @@ const Ye = "__TEMP__", G = "<Untitled>", Be = "Start", Di = "Go", pe = "Pause",
|
|
|
3224
3237
|
execute: this.executeUser
|
|
3225
3238
|
})), this.readOnlyUser == !0) {
|
|
3226
3239
|
this.alertType = "info";
|
|
3227
|
-
let
|
|
3228
|
-
this.executeUser && (
|
|
3240
|
+
let s = `User ${t.preferred_username} is read only`;
|
|
3241
|
+
this.executeUser && (s += " but can execute scripts"), this.alertText = s, this.showAlert = !0;
|
|
3229
3242
|
}
|
|
3230
|
-
O.get("/openc3-api/autocomplete/keywords/screen").then((
|
|
3231
|
-
this.screenKeywords =
|
|
3243
|
+
O.get("/openc3-api/autocomplete/keywords/screen").then((s) => {
|
|
3244
|
+
this.screenKeywords = s.data;
|
|
3232
3245
|
}), this.inline && (this.readOnly = !0);
|
|
3233
3246
|
},
|
|
3234
3247
|
mounted: async function() {
|
|
3235
|
-
var
|
|
3248
|
+
var i, o;
|
|
3236
3249
|
this.editor = ace.edit(this.$refs.editor), this.editor.setTheme("ace/theme/twilight");
|
|
3237
3250
|
const t = this.buildRubyMode(), e = this.buildPythonMode();
|
|
3238
|
-
this.rubyMode = new t(), this.pythonMode = new e(), 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
|
|
3239
|
-
const
|
|
3240
|
-
this.editor.session.on("change", (
|
|
3241
|
-
|
|
3242
|
-
}), this.editor.container.addEventListener("resize", this.doResize), this.editor.container.addEventListener("keydown", this.keydown), window.addEventListener("resize", this.calcHeight), this.calcHeight(), this.cable = new st("/script-api/cable"), !this.inline && localStorage.script_runner__recent && (this.recent = JSON.parse(localStorage.script_runner__recent), this.recent = this.recent.map((
|
|
3243
|
-
...
|
|
3244
|
-
command: async (
|
|
3245
|
-
this.filename =
|
|
3251
|
+
this.rubyMode = new t(), this.pythonMode = new e(), Ce.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 Ei(), new Ri()], this.editor.setHighlightActiveLine(!1), Ce.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");
|
|
3252
|
+
const r = new Di(this.editor);
|
|
3253
|
+
this.editor.session.on("change", (d, h) => {
|
|
3254
|
+
r.annotate(d, h), this.updateBreakpoints(d, h);
|
|
3255
|
+
}), this.editor.container.addEventListener("resize", this.doResize), this.editor.container.addEventListener("keydown", this.keydown), window.addEventListener("resize", this.calcHeight), this.calcHeight(), this.cable = new st("/script-api/cable"), !this.inline && localStorage.script_runner__recent && (this.recent = JSON.parse(localStorage.script_runner__recent), this.recent = this.recent.map((d) => ({
|
|
3256
|
+
...d,
|
|
3257
|
+
command: async (h) => {
|
|
3258
|
+
this.filename = h.label, await this.reloadFile();
|
|
3246
3259
|
}
|
|
3247
|
-
}))), this.inline ? this.body && (this.editor.setValue(this.body), this.editor.clearSelection()) : (
|
|
3260
|
+
}))), 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()) : (o = this.$route.params) != null && o.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 () => {
|
|
3248
3261
|
this.processReceived();
|
|
3249
3262
|
}, 100);
|
|
3250
3263
|
},
|
|
@@ -3256,7 +3269,48 @@ const Ye = "__TEMP__", G = "<Untitled>", Be = "Start", Di = "Go", pe = "Pause",
|
|
|
3256
3269
|
},
|
|
3257
3270
|
methods: {
|
|
3258
3271
|
toggleVimMode() {
|
|
3259
|
-
|
|
3272
|
+
Ce.toggleVimMode(this.editor);
|
|
3273
|
+
},
|
|
3274
|
+
openCommandEditor() {
|
|
3275
|
+
this.executeSelectionMenu = !1;
|
|
3276
|
+
const t = this.editor.getCursorPosition(), e = this.editor.session.getLine(t.row);
|
|
3277
|
+
if (this.currentLineHasCommand) {
|
|
3278
|
+
const s = this.parseCommandFromLine(e);
|
|
3279
|
+
this.commandEditor.cmdString = s, this.commandEditor.isEditing = !0, this.commandEditor.editLine = t.row;
|
|
3280
|
+
} else
|
|
3281
|
+
this.commandEditor.cmdString = null, this.commandEditor.isEditing = !1, this.commandEditor.editLine = null;
|
|
3282
|
+
this.commandEditor.show = !0, this.commandEditor.dialogError = null;
|
|
3283
|
+
},
|
|
3284
|
+
insertCommand(t) {
|
|
3285
|
+
let e = "";
|
|
3286
|
+
try {
|
|
3287
|
+
e = this.$refs.commandEditor.getCmdString();
|
|
3288
|
+
let s = e.split(" ");
|
|
3289
|
+
this.commandEditor.targetName = s[0], this.commandEditor.commandName = s[1];
|
|
3290
|
+
} catch (s) {
|
|
3291
|
+
this.commandEditor.dialogError = s.message || "Please fix command parameters";
|
|
3292
|
+
return;
|
|
3293
|
+
}
|
|
3294
|
+
if (this.commandEditor.isEditing && this.commandEditor.editLine !== null) {
|
|
3295
|
+
const s = this.editor.session.getLine(this.commandEditor.editLine), r = s.match(/^\s*/)[0], i = s.match(/\s+#.*$/), o = i ? i[0] : "", d = `${r}cmd("${e}")${o}`, h = this.Range;
|
|
3296
|
+
this.editor.session.replace(
|
|
3297
|
+
new h(
|
|
3298
|
+
this.commandEditor.editLine,
|
|
3299
|
+
0,
|
|
3300
|
+
this.commandEditor.editLine,
|
|
3301
|
+
s.length
|
|
3302
|
+
),
|
|
3303
|
+
d
|
|
3304
|
+
);
|
|
3305
|
+
} else {
|
|
3306
|
+
const s = this.editor.getCursorPosition();
|
|
3307
|
+
this.editor.session.insert(s, `cmd("${e}")
|
|
3308
|
+
`);
|
|
3309
|
+
}
|
|
3310
|
+
this.fileModified = !0, this.commandEditor.show = !1;
|
|
3311
|
+
},
|
|
3312
|
+
closeCommandDialog: function() {
|
|
3313
|
+
this.commandEditor.show = !1;
|
|
3260
3314
|
},
|
|
3261
3315
|
doResize() {
|
|
3262
3316
|
this.editor.resize(), this.$nextTick(() => {
|
|
@@ -3268,13 +3322,13 @@ const Ye = "__TEMP__", G = "<Untitled>", Be = "Start", Di = "Go", pe = "Pause",
|
|
|
3268
3322
|
document.documentElement.offsetHeight,
|
|
3269
3323
|
window.innerHeight || 0
|
|
3270
3324
|
);
|
|
3271
|
-
let
|
|
3272
|
-
t && (
|
|
3273
|
-
let
|
|
3325
|
+
let s = 0;
|
|
3326
|
+
t && (s = t.offsetHeight);
|
|
3327
|
+
let r = 0;
|
|
3274
3328
|
const i = document.getElementsByClassName("suite-runner")[0];
|
|
3275
|
-
i && (
|
|
3276
|
-
let
|
|
3277
|
-
|
|
3329
|
+
i && (r = i.offsetHeight);
|
|
3330
|
+
let o = document.getElementById("script-log-messages");
|
|
3331
|
+
o && (o.style.height = `${e - s - r}px`);
|
|
3278
3332
|
},
|
|
3279
3333
|
scriptDisconnect() {
|
|
3280
3334
|
this.subscription && (this.subscription.unsubscribe(), this.subscription = null), this.receivedEvents.length = 0;
|
|
@@ -3312,8 +3366,8 @@ const Ye = "__TEMP__", G = "<Untitled>", Be = "Start", Di = "Go", pe = "Pause",
|
|
|
3312
3366
|
tryLoadRunningScript: function(t) {
|
|
3313
3367
|
return O.get(`/script-api/running-script/${t}`).then((e) => {
|
|
3314
3368
|
if (e.data) {
|
|
3315
|
-
let
|
|
3316
|
-
|
|
3369
|
+
let s = e.data.state;
|
|
3370
|
+
s !== "completed" && s !== "completed_errors" && s !== "stopped" && s !== "crashed" && s !== "killed" ? (this.filename = e.data.filename, this.tryLoadSuites(e), this.initScriptStart(), this.scriptStart(t)) : (this.$notify.caution({
|
|
3317
3371
|
title: `Script ${t} has already completed`,
|
|
3318
3372
|
body: "Check the Completed Scripts below ..."
|
|
3319
3373
|
}), this.scriptComplete(), this.showScripts = !0);
|
|
@@ -3330,7 +3384,17 @@ const Ye = "__TEMP__", G = "<Untitled>", Be = "Start", Di = "Go", pe = "Pause",
|
|
|
3330
3384
|
t.data.suite_runner && (this.startOrGoDisabled = !0, this.suiteRunner = !0, this.suiteMap = JSON.parse(t.data.suite_runner)), this.doResize();
|
|
3331
3385
|
},
|
|
3332
3386
|
showExecuteSelectionMenu: function(t) {
|
|
3333
|
-
this.menuX = t.pageX, this.menuY = t.pageY
|
|
3387
|
+
this.menuX = t.pageX, this.menuY = t.pageY;
|
|
3388
|
+
const e = this.editor.getCursorPosition(), s = this.editor.session.getLine(e.row);
|
|
3389
|
+
this.currentLineHasCommand = this.isCommandLine(s), this.executeSelectionMenu = !0;
|
|
3390
|
+
},
|
|
3391
|
+
isCommandLine: function(t) {
|
|
3392
|
+
const e = t.trim();
|
|
3393
|
+
return /^\s*cmd(_\w+)?\s*\(/.test(e);
|
|
3394
|
+
},
|
|
3395
|
+
parseCommandFromLine: function(t) {
|
|
3396
|
+
const e = t.match(/cmd(_\w+)?\s*\(\s*["'](.+?)["']\s*\)/);
|
|
3397
|
+
return e ? e[2] : null;
|
|
3334
3398
|
},
|
|
3335
3399
|
runFromCursor: function() {
|
|
3336
3400
|
const t = this.editor.getCursorPosition().row + 1;
|
|
@@ -3345,15 +3409,15 @@ const Ye = "__TEMP__", G = "<Untitled>", Be = "Start", Di = "Go", pe = "Pause",
|
|
|
3345
3409
|
},
|
|
3346
3410
|
executeSelection: function() {
|
|
3347
3411
|
const t = this.editor.getSelectionRange();
|
|
3348
|
-
let e = t.start.row + 1,
|
|
3349
|
-
t.end.column === 0 && (
|
|
3412
|
+
let e = t.start.row + 1, s = t.end.row + 1;
|
|
3413
|
+
t.end.column === 0 && (s -= 1), this.scriptId ? O.post(
|
|
3350
3414
|
`/script-api/running-script/${this.scriptId}/executewhilepaused`,
|
|
3351
3415
|
{
|
|
3352
3416
|
data: {
|
|
3353
|
-
args: [this.filenameSelect, e,
|
|
3417
|
+
args: [this.filenameSelect, e, s]
|
|
3354
3418
|
}
|
|
3355
3419
|
}
|
|
3356
|
-
) : this.start(null, null, e,
|
|
3420
|
+
) : this.start(null, null, e, s);
|
|
3357
3421
|
},
|
|
3358
3422
|
clearBreakpoints: function() {
|
|
3359
3423
|
this.editor.session.clearBreakpoints();
|
|
@@ -3367,31 +3431,31 @@ const Ye = "__TEMP__", G = "<Untitled>", Be = "Start", Di = "Go", pe = "Pause",
|
|
|
3367
3431
|
updateBreakpoints: function(t, e) {
|
|
3368
3432
|
if (t.lines.length <= 1)
|
|
3369
3433
|
return;
|
|
3370
|
-
const
|
|
3371
|
-
(
|
|
3434
|
+
const s = this.getBreakpointRows(e).filter(
|
|
3435
|
+
(o) => t.start.column === 0 && o === t.start.row || o > t.start.row
|
|
3372
3436
|
);
|
|
3373
|
-
let
|
|
3437
|
+
let r = [], i = 0;
|
|
3374
3438
|
switch (t.action) {
|
|
3375
3439
|
case "insert":
|
|
3376
|
-
i = t.lines.length - 1,
|
|
3440
|
+
i = t.lines.length - 1, s.reverse();
|
|
3377
3441
|
break;
|
|
3378
3442
|
case "remove":
|
|
3379
|
-
i = -t.lines.length + 1,
|
|
3380
|
-
(
|
|
3443
|
+
i = -t.lines.length + 1, r = [...Array(t.lines.length).keys()].map(
|
|
3444
|
+
(o) => o + t.start.row
|
|
3381
3445
|
);
|
|
3382
3446
|
break;
|
|
3383
3447
|
}
|
|
3384
|
-
|
|
3385
|
-
e.clearBreakpoint(
|
|
3448
|
+
s.forEach((o) => {
|
|
3449
|
+
e.clearBreakpoint(o), r.includes(o) || e.setBreakpoint(o + i);
|
|
3386
3450
|
});
|
|
3387
3451
|
},
|
|
3388
3452
|
getBreakpointRows: function(t = this.editor.session) {
|
|
3389
|
-
return t.getBreakpoints().map((e,
|
|
3453
|
+
return t.getBreakpoints().map((e, s) => e && s).filter(Number.isInteger);
|
|
3390
3454
|
},
|
|
3391
3455
|
restoreBreakpoints: function(t) {
|
|
3392
3456
|
var e;
|
|
3393
|
-
this.clearBreakpoints(), (e = this.breakpoints[t]) == null || e.forEach((
|
|
3394
|
-
this.editor.session.setBreakpoint(
|
|
3457
|
+
this.clearBreakpoints(), (e = this.breakpoints[t]) == null || e.forEach((s) => {
|
|
3458
|
+
this.editor.session.setBreakpoint(s);
|
|
3395
3459
|
});
|
|
3396
3460
|
},
|
|
3397
3461
|
deleteAllBreakpoints: function() {
|
|
@@ -3403,7 +3467,7 @@ const Ye = "__TEMP__", G = "<Untitled>", Be = "Start", Di = "Go", pe = "Pause",
|
|
|
3403
3467
|
});
|
|
3404
3468
|
},
|
|
3405
3469
|
suiteRunnerButton(t) {
|
|
3406
|
-
this.startOrGoButton ===
|
|
3470
|
+
this.startOrGoButton === He ? this.start(t, "suiteRunner") : this.go(t, "suiteRunner");
|
|
3407
3471
|
},
|
|
3408
3472
|
async keydown(t) {
|
|
3409
3473
|
this.scriptId || this.editor.getReadOnly() === !0 || (t.metaKey || t.ctrlKey) && t.keyCode === 83 && (t.shiftKey ? (t.preventDefault(), this.saveAs()) : (t.preventDefault(), await this.saveFile()));
|
|
@@ -3413,26 +3477,26 @@ const Ye = "__TEMP__", G = "<Untitled>", Be = "Start", Di = "Go", pe = "Pause",
|
|
|
3413
3477
|
},
|
|
3414
3478
|
checkMnemonics: function() {
|
|
3415
3479
|
let t = this.filename;
|
|
3416
|
-
this.filename !==
|
|
3480
|
+
this.filename !== q && (t.endsWith(".rb") || t.endsWith(".py") || O.post(`/script-api/scripts/${this.filename}/mnemonics`, {
|
|
3417
3481
|
data: this.editor.getValue(),
|
|
3418
3482
|
headers: {
|
|
3419
3483
|
Accept: "application/json",
|
|
3420
3484
|
"Content-Type": "plain/text"
|
|
3421
3485
|
}
|
|
3422
3486
|
}).then((e) => {
|
|
3423
|
-
let
|
|
3424
|
-
|
|
3425
|
-
})), this.mnemonicChecker.checkText(this.editor.getValue()).then(({ skipped: e, problems:
|
|
3426
|
-
let
|
|
3427
|
-
if (
|
|
3428
|
-
const i =
|
|
3429
|
-
|
|
3487
|
+
let s = "";
|
|
3488
|
+
s += `<strong>${e.data.title}</strong><br/><br/>`, s += JSON.parse(e.data.description), this.$dialog.alert(s.trim(), { html: !0 });
|
|
3489
|
+
})), this.mnemonicChecker.checkText(this.editor.getValue()).then(({ skipped: e, problems: s }) => {
|
|
3490
|
+
let r = "";
|
|
3491
|
+
if (s.length) {
|
|
3492
|
+
const i = s.map((o) => `${o.lineNumber}: ${o.error}`).join("<br/>");
|
|
3493
|
+
r += `<strong>The following lines have problems:</strong><br/>${i}<br/><br/>`;
|
|
3430
3494
|
}
|
|
3431
|
-
e.length && (
|
|
3495
|
+
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 });
|
|
3432
3496
|
});
|
|
3433
3497
|
},
|
|
3434
3498
|
initScriptStart() {
|
|
3435
|
-
this.disableSuiteButtons = !0, this.startOrGoDisabled = !0, this.envDisabled = !0, this.pauseOrRetryDisabled = !0, this.stopDisabled = !0, this.state = "Connecting...", this.startOrGoButton =
|
|
3499
|
+
this.disableSuiteButtons = !0, this.startOrGoDisabled = !0, this.envDisabled = !0, this.pauseOrRetryDisabled = !0, this.stopDisabled = !0, this.state = "Connecting...", this.startOrGoButton = Ui, this.editor.setReadOnly(!0);
|
|
3436
3500
|
},
|
|
3437
3501
|
scriptStart(t) {
|
|
3438
3502
|
this.$emit("script-id", t), this.scriptId = t, this.cable.createSubscription(
|
|
@@ -3449,7 +3513,7 @@ const Ye = "__TEMP__", G = "<Untitled>", Be = "Start", Di = "Go", pe = "Pause",
|
|
|
3449
3513
|
});
|
|
3450
3514
|
},
|
|
3451
3515
|
async scriptComplete() {
|
|
3452
|
-
this.
|
|
3516
|
+
this.fatal = !1, 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, this.state = "stopped", await this.reloadFile(), this.editor.session.getUndoManager().reset(), this.readOnlyUser == !1 && this.editor.setReadOnly(!1), this.disableSuiteButtons = !1, this.startOrGoButton = He, this.pauseOrRetryButton = fe, this.startOrGoDisabled = this.suiteRunner, this.envDisabled = !1, this.pauseOrRetryDisabled = !0, this.stopDisabled = !0;
|
|
3453
3517
|
},
|
|
3454
3518
|
environmentHandler: function(t) {
|
|
3455
3519
|
this.scriptEnvironment.env = t;
|
|
@@ -3457,23 +3521,23 @@ const Ye = "__TEMP__", G = "<Untitled>", Be = "Start", Di = "Go", pe = "Pause",
|
|
|
3457
3521
|
startHandler: function() {
|
|
3458
3522
|
this.start();
|
|
3459
3523
|
},
|
|
3460
|
-
async start(t = null, e = null,
|
|
3524
|
+
async start(t = null, e = null, s = null, r = null) {
|
|
3461
3525
|
this.initScriptStart(), await this.saveFile("start"), this.saveAllowed = !1;
|
|
3462
3526
|
let i = this.filename;
|
|
3463
|
-
this.filename ===
|
|
3464
|
-
let
|
|
3465
|
-
this.showDisconnect && (
|
|
3527
|
+
this.filename === q && (i = this.tempFilename);
|
|
3528
|
+
let o = `/script-api/scripts/${i}/run`;
|
|
3529
|
+
this.showDisconnect && (o += "/disconnect");
|
|
3466
3530
|
let d = this.scriptEnvironment.env;
|
|
3467
3531
|
this.enableStackTraces && (d = d.concat({
|
|
3468
3532
|
key: "OPENC3_FULL_BACKTRACE",
|
|
3469
3533
|
value: "1"
|
|
3470
3534
|
}));
|
|
3471
|
-
let
|
|
3535
|
+
let h = {
|
|
3472
3536
|
environment: d
|
|
3473
3537
|
};
|
|
3474
|
-
e && (
|
|
3475
|
-
this.scriptStart(
|
|
3476
|
-
}).catch((
|
|
3538
|
+
e && (h.suiteRunner = t), s !== null && (h.line_no = s), r !== null && (h.end_line_no = r), O.post(o, { data: h }).then((c) => {
|
|
3539
|
+
this.scriptStart(c.data);
|
|
3540
|
+
}).catch((c) => {
|
|
3477
3541
|
this.scriptComplete();
|
|
3478
3542
|
});
|
|
3479
3543
|
},
|
|
@@ -3481,7 +3545,7 @@ const Ye = "__TEMP__", G = "<Untitled>", Be = "Start", Di = "Go", pe = "Pause",
|
|
|
3481
3545
|
this.filenameSelect = this.currentFilename, this.fileNameChanged(this.currentFilename), O.post(`/script-api/running-script/${this.scriptId}/go`);
|
|
3482
3546
|
},
|
|
3483
3547
|
pauseOrRetry() {
|
|
3484
|
-
this.pauseOrRetryButton ===
|
|
3548
|
+
this.pauseOrRetryButton === fe ? O.post(`/script-api/running-script/${this.scriptId}/pause`) : (this.pauseOrRetryButton = fe, O.post(`/script-api/running-script/${this.scriptId}/retry`));
|
|
3485
3549
|
},
|
|
3486
3550
|
stop() {
|
|
3487
3551
|
this.fatal ? (this.removeAllMarkers(), this.scriptComplete()) : O.post(`/script-api/running-script/${this.scriptId}/stop`);
|
|
@@ -3503,18 +3567,18 @@ const Ye = "__TEMP__", G = "<Untitled>", Be = "Start", Di = "Go", pe = "Pause",
|
|
|
3503
3567
|
this.waitingTime = 0, clearInterval(this.waitingInterval), this.waitingInterval = null;
|
|
3504
3568
|
},
|
|
3505
3569
|
processLine(t) {
|
|
3506
|
-
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((
|
|
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 }, O.get(`/script-api/scripts/${t.filename}`).then((s) => {
|
|
3507
3571
|
this.files[t.filename] = {
|
|
3508
|
-
content:
|
|
3572
|
+
content: s.data.contents,
|
|
3509
3573
|
lineNo: 0
|
|
3510
|
-
}, this.breakpoints[t.filename] =
|
|
3511
|
-
}).catch((
|
|
3574
|
+
}, this.breakpoints[t.filename] = s.data.breakpoints, this.restoreBreakpoints(t.filename), this.currentFilename = null;
|
|
3575
|
+
}).catch((s) => {
|
|
3512
3576
|
this.files[t.filename] = null;
|
|
3513
3577
|
}))), this.state = t.state;
|
|
3514
3578
|
const e = this.editor.session.getMarkers();
|
|
3515
3579
|
switch (this.state) {
|
|
3516
3580
|
case "running":
|
|
3517
|
-
this.handleWaiting(), this.startOrGoDisabled = !1, this.pauseOrRetryDisabled = !1, this.stopDisabled = !1, this.pauseOrRetryButton =
|
|
3581
|
+
this.handleWaiting(), this.startOrGoDisabled = !1, this.pauseOrRetryDisabled = !1, this.stopDisabled = !1, this.pauseOrRetryButton = fe, this.removeAllMarkers(), this.editor.session.addMarker(
|
|
3518
3582
|
new this.Range(t.line_no - 1, 0, t.line_no - 1, 1),
|
|
3519
3583
|
"runningMarker",
|
|
3520
3584
|
"fullLine"
|
|
@@ -3524,21 +3588,21 @@ const Ye = "__TEMP__", G = "<Untitled>", Be = "Start", Di = "Go", pe = "Pause",
|
|
|
3524
3588
|
this.fatal = !0;
|
|
3525
3589
|
// Deliberate fall through (no break)
|
|
3526
3590
|
case "error":
|
|
3527
|
-
this.pauseOrRetryButton =
|
|
3591
|
+
this.pauseOrRetryButton = Pi;
|
|
3528
3592
|
// Deliberate fall through (no break)
|
|
3529
3593
|
case "breakpoint":
|
|
3530
3594
|
case "waiting":
|
|
3531
3595
|
case "paused":
|
|
3532
3596
|
if (this.handleWaiting(), this.state == "fatal" ? (this.startOrGoDisabled = !0, this.pauseOrRetryDisabled = !0) : (this.startOrGoDisabled = !1, this.pauseOrRetryDisabled = !1), this.stopDisabled = !1, Object.keys(e).filter(
|
|
3533
|
-
(
|
|
3597
|
+
(r) => e[r].clazz === `${this.state}Marker`
|
|
3534
3598
|
).length === 0) {
|
|
3535
3599
|
this.removeAllMarkers();
|
|
3536
|
-
let
|
|
3600
|
+
let r = t.line_no > 0 ? t.line_no : 1;
|
|
3537
3601
|
this.editor.session.addMarker(
|
|
3538
|
-
new this.Range(
|
|
3602
|
+
new this.Range(r - 1, 0, r - 1, 1),
|
|
3539
3603
|
`${this.state}Marker`,
|
|
3540
3604
|
"fullLine"
|
|
3541
|
-
), this.editor.gotoLine(
|
|
3605
|
+
), this.editor.gotoLine(r), t.filename && (this.files[t.filename].lineNo = r);
|
|
3542
3606
|
}
|
|
3543
3607
|
break;
|
|
3544
3608
|
}
|
|
@@ -3547,7 +3611,7 @@ const Ye = "__TEMP__", G = "<Untitled>", Be = "Start", Di = "Go", pe = "Pause",
|
|
|
3547
3611
|
let t = 0;
|
|
3548
3612
|
for (let e of this.receivedEvents) {
|
|
3549
3613
|
t += 1;
|
|
3550
|
-
let
|
|
3614
|
+
let s = 0;
|
|
3551
3615
|
switch (e.type) {
|
|
3552
3616
|
case "file":
|
|
3553
3617
|
this.files[e.filename] = { content: e.text, lineNo: 0 }, this.breakpoints[e.filename] = e.breakpoints, this.currentFilename === e.filename && this.restoreBreakpoints(e.filename);
|
|
@@ -3575,31 +3639,31 @@ const Ye = "__TEMP__", G = "<Untitled>", Be = "Start", Di = "Go", pe = "Pause",
|
|
|
3575
3639
|
this.showDebug = !0;
|
|
3576
3640
|
break;
|
|
3577
3641
|
case "screen":
|
|
3578
|
-
let
|
|
3642
|
+
let r = !1, i = {};
|
|
3579
3643
|
for (screen of this.screens) {
|
|
3580
3644
|
if (screen.target == e.target_name && screen.screen == e.screen_name) {
|
|
3581
|
-
i = screen,
|
|
3645
|
+
i = screen, r = !0;
|
|
3582
3646
|
break;
|
|
3583
3647
|
}
|
|
3584
|
-
|
|
3648
|
+
s += 1;
|
|
3585
3649
|
}
|
|
3586
|
-
i.target = e.target_name, i.screen = e.screen_name, i.definition = e.definition, e.x ? i.left = e.x : i.left = 0, e.y ? i.top = e.y : i.top = 0, i.count = this.updateCounter++,
|
|
3650
|
+
i.target = e.target_name, i.screen = e.screen_name, i.definition = e.definition, e.x ? i.left = e.x : i.left = 0, e.y ? i.top = e.y : i.top = 0, i.count = this.updateCounter++, r ? this.screens[s] = i : (i.id = this.idCounter++, this.screens[this.screens.length] = i);
|
|
3587
3651
|
break;
|
|
3588
3652
|
case "clearscreen":
|
|
3589
3653
|
for (screen of this.screens) {
|
|
3590
3654
|
if (screen.target == e.target_name && screen.screen == e.screen_name) {
|
|
3591
|
-
this.screens.splice(
|
|
3655
|
+
this.screens.splice(s, 1);
|
|
3592
3656
|
break;
|
|
3593
3657
|
}
|
|
3594
|
-
|
|
3658
|
+
s += 1;
|
|
3595
3659
|
}
|
|
3596
3660
|
break;
|
|
3597
3661
|
case "clearallscreens":
|
|
3598
3662
|
this.screens = [];
|
|
3599
3663
|
break;
|
|
3600
3664
|
case "downloadfile":
|
|
3601
|
-
const
|
|
3602
|
-
|
|
3665
|
+
const o = document.createElement("a");
|
|
3666
|
+
o.href = window.location.origin + e.url, o.setAttribute("download", e.filename), o.click();
|
|
3603
3667
|
break;
|
|
3604
3668
|
}
|
|
3605
3669
|
}
|
|
@@ -3685,23 +3749,23 @@ const Ye = "__TEMP__", G = "<Untitled>", Be = "Start", Di = "Go", pe = "Pause",
|
|
|
3685
3749
|
}
|
|
3686
3750
|
},
|
|
3687
3751
|
async fileDialogCallback(t) {
|
|
3688
|
-
let e = "Cancel",
|
|
3689
|
-
t != "Cancel" && (e = [], t.forEach((
|
|
3690
|
-
e.push(
|
|
3752
|
+
let e = "Cancel", s = [];
|
|
3753
|
+
t != "Cancel" && (e = [], t.forEach((r) => {
|
|
3754
|
+
e.push(r.name), s.push(
|
|
3691
3755
|
O.get(
|
|
3692
3756
|
`/openc3-api/storage/upload/${encodeURIComponent(
|
|
3693
|
-
`${window.openc3Scope}/tmp/${
|
|
3757
|
+
`${window.openc3Scope}/tmp/${r.name}`
|
|
3694
3758
|
)}?bucket=OPENC3_CONFIG_BUCKET`
|
|
3695
3759
|
).then((i) => {
|
|
3696
|
-
|
|
3760
|
+
s.push(
|
|
3697
3761
|
ft({
|
|
3698
3762
|
...i.data,
|
|
3699
|
-
data:
|
|
3763
|
+
data: r
|
|
3700
3764
|
})
|
|
3701
3765
|
);
|
|
3702
3766
|
})
|
|
3703
3767
|
);
|
|
3704
|
-
})), Promise.all(
|
|
3768
|
+
})), Promise.all(s).then((r) => {
|
|
3705
3769
|
O.post(`/script-api/running-script/${this.scriptId}/prompt`, {
|
|
3706
3770
|
data: {
|
|
3707
3771
|
method: this.file.multiple ? "open_files_dialog" : "open_file_dialog",
|
|
@@ -3718,7 +3782,7 @@ const Ye = "__TEMP__", G = "<Untitled>", Be = "Start", Di = "Go", pe = "Pause",
|
|
|
3718
3782
|
},
|
|
3719
3783
|
// ScriptRunner File menu actions
|
|
3720
3784
|
newFile() {
|
|
3721
|
-
this.unlockFile(), this.filename =
|
|
3785
|
+
this.unlockFile(), this.filename = q, this.currentFilename = null, this.tempFilename = null, this.files = {}, this.editor.session.setValue(""), this.saveAllowed = !0, this.fileModified = "", this.suiteRunner = !1, this.startOrGoDisabled = !1, this.envDisabled = !1, this.inline || (this.$router.replace({
|
|
3722
3786
|
name: "ScriptRunner"
|
|
3723
3787
|
}).catch((t) => {
|
|
3724
3788
|
}), document.title = "Script Runner"), this.doResize();
|
|
@@ -3808,12 +3872,12 @@ class TestSuite(Suite):
|
|
|
3808
3872
|
`), await this.saveFile("auto");
|
|
3809
3873
|
},
|
|
3810
3874
|
addToRecent(t) {
|
|
3811
|
-
let e = this.recent.findIndex((
|
|
3875
|
+
let e = this.recent.findIndex((s) => s.label === t);
|
|
3812
3876
|
e !== -1 && this.recent.splice(e, 1), this.recent.unshift({
|
|
3813
3877
|
label: t,
|
|
3814
|
-
icon:
|
|
3815
|
-
command: async (
|
|
3816
|
-
this.filename =
|
|
3878
|
+
icon: bt(t),
|
|
3879
|
+
command: async (s) => {
|
|
3880
|
+
this.filename = s.label, await this.reloadFile();
|
|
3817
3881
|
}
|
|
3818
3882
|
}), this.recent.length > 8 && this.recent.pop(), this.inline || (localStorage.script_runner__recent = JSON.stringify(this.recent));
|
|
3819
3883
|
},
|
|
@@ -3830,13 +3894,13 @@ class TestSuite(Suite):
|
|
|
3830
3894
|
"Ignore-Errors": "404"
|
|
3831
3895
|
}
|
|
3832
3896
|
}).then((e) => {
|
|
3833
|
-
const
|
|
3897
|
+
const s = {
|
|
3834
3898
|
name: this.filename,
|
|
3835
3899
|
contents: e.data.contents
|
|
3836
3900
|
};
|
|
3837
|
-
e.data.suites && (
|
|
3838
|
-
const
|
|
3839
|
-
this.setFile({ file:
|
|
3901
|
+
e.data.suites && (s.suites = JSON.parse(e.data.suites)), e.data.error && (s.error = e.data.error), e.data.success && (s.success = e.data.success);
|
|
3902
|
+
const r = e.data.locked, i = e.data.breakpoints;
|
|
3903
|
+
this.setFile({ file: s, locked: r, breakpoints: i }, !0), this.saveAllowed = !0;
|
|
3840
3904
|
}).catch((e) => {
|
|
3841
3905
|
t === !0 && this.$notify.caution({
|
|
3842
3906
|
title: "File Open Error",
|
|
@@ -3845,10 +3909,10 @@ class TestSuite(Suite):
|
|
|
3845
3909
|
});
|
|
3846
3910
|
},
|
|
3847
3911
|
// Called by the FileOpenDialog to set the file contents
|
|
3848
|
-
setFile({ file: t, locked: e, breakpoints:
|
|
3912
|
+
setFile({ file: t, locked: e, breakpoints: s }, r = !1) {
|
|
3849
3913
|
this.files = {};
|
|
3850
3914
|
let i = t.name.split("*")[0];
|
|
3851
|
-
if (
|
|
3915
|
+
if (r === !1 && this.filename !== i && (this.unlockFile(), this.lockedBy = e), this.filename = i, !this.inline) {
|
|
3852
3916
|
this.$router.replace({
|
|
3853
3917
|
name: "ScriptRunner",
|
|
3854
3918
|
query: {
|
|
@@ -3856,10 +3920,10 @@ class TestSuite(Suite):
|
|
|
3856
3920
|
}
|
|
3857
3921
|
}).catch((d) => {
|
|
3858
3922
|
});
|
|
3859
|
-
let
|
|
3860
|
-
document.title = `${
|
|
3923
|
+
let o = this.filename.split("/");
|
|
3924
|
+
document.title = `${o.pop()} (${o.join("/")})`;
|
|
3861
3925
|
}
|
|
3862
|
-
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] =
|
|
3926
|
+
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] = s, 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();
|
|
3863
3927
|
},
|
|
3864
3928
|
clearTemp() {
|
|
3865
3929
|
this.recent = this.recent.filter(
|
|
@@ -3867,19 +3931,21 @@ class TestSuite(Suite):
|
|
|
3867
3931
|
), this.inline || (localStorage.script_runner__recent = JSON.stringify(this.recent));
|
|
3868
3932
|
},
|
|
3869
3933
|
detectLanguage() {
|
|
3870
|
-
let t = new RegExp("^\\s*(require|load|puts) "), e = new RegExp("^\\s*(import|from) "),
|
|
3934
|
+
let t = new RegExp("^\\s*(require|load|puts) "), e = new RegExp("^\\s*(import|from) "), s = new RegExp("^\\s*end\\s*$"), r = new RegExp(
|
|
3871
3935
|
"^\\s*(if|def|while|else|elif|class).*:\\s*$"
|
|
3872
|
-
), i =
|
|
3936
|
+
), i = /\(f"/, o = /\(.*\w+:\s+.+\)(?!:)$/, h = this.editor.getValue().split(`
|
|
3873
3937
|
`);
|
|
3874
|
-
for (let
|
|
3875
|
-
if (
|
|
3938
|
+
for (let c of h) {
|
|
3939
|
+
if (c.match(t))
|
|
3876
3940
|
return "ruby";
|
|
3877
|
-
if (
|
|
3941
|
+
if (c.match(e))
|
|
3878
3942
|
return "python";
|
|
3879
|
-
if (
|
|
3943
|
+
if (c.match(s))
|
|
3880
3944
|
return "ruby";
|
|
3881
|
-
if (
|
|
3945
|
+
if (c.match(r) || c.match(i))
|
|
3882
3946
|
return "python";
|
|
3947
|
+
if (c.match(o))
|
|
3948
|
+
return "ruby";
|
|
3883
3949
|
}
|
|
3884
3950
|
return "unknown";
|
|
3885
3951
|
},
|
|
@@ -3889,16 +3955,16 @@ class TestSuite(Suite):
|
|
|
3889
3955
|
if (!this.readOnlyUser)
|
|
3890
3956
|
if (this.saveAllowed) {
|
|
3891
3957
|
const e = this.getBreakpointRows();
|
|
3892
|
-
if (this.filename ===
|
|
3958
|
+
if (this.filename === q) {
|
|
3893
3959
|
if (t === "menu") {
|
|
3894
3960
|
this.saveAs();
|
|
3895
3961
|
return;
|
|
3896
3962
|
} else if (this.tempFilename === null) {
|
|
3897
|
-
let
|
|
3898
|
-
if (
|
|
3899
|
-
this.tempFilename =
|
|
3900
|
-
else if (
|
|
3901
|
-
this.tempFilename =
|
|
3963
|
+
let s = this.detectLanguage();
|
|
3964
|
+
if (s === "unknown" && (s = Ce.getDefaultScriptingLanguage()), s === "ruby")
|
|
3965
|
+
this.tempFilename = Ze + "/" + Re(Date.now(), "yyyy_MM_dd_HH_mm_ss_SSS") + "_temp.rb";
|
|
3966
|
+
else if (s === "python")
|
|
3967
|
+
this.tempFilename = Ze + "/" + Re(Date.now(), "yyyy_MM_dd_HH_mm_ss_SSS") + "_temp.py";
|
|
3902
3968
|
else
|
|
3903
3969
|
return;
|
|
3904
3970
|
this.filename = this.tempFilename, this.addToRecent(this.filename);
|
|
@@ -3910,12 +3976,12 @@ class TestSuite(Suite):
|
|
|
3910
3976
|
// Pass in the raw file text
|
|
3911
3977
|
breakpoints: e
|
|
3912
3978
|
}
|
|
3913
|
-
}).then((
|
|
3914
|
-
|
|
3979
|
+
}).then((s) => {
|
|
3980
|
+
s.status == 200 ? (s.data.suites ? (this.startOrGoDisabled = !0, this.suiteRunner = !0, this.suiteMap = JSON.parse(s.data.suites)) : (this.startOrGoDisabled = !1, this.suiteRunner = !1, this.suiteMap = {}), s.data.error && (this.suiteError = s.data.error, this.showSuiteError = !0), this.fileModified = "", setTimeout(() => {
|
|
3915
3981
|
this.showSave = !1;
|
|
3916
|
-
}, 2e3)) : (this.showSave = !1, this.alertType = "error", this.alertText = `Error saving file. Code: ${
|
|
3917
|
-
}).catch(({ response:
|
|
3918
|
-
this.showSave = !1,
|
|
3982
|
+
}, 2e3)) : (this.showSave = !1, this.alertType = "error", this.alertText = `Error saving file. Code: ${s.status} Text: ${s.statusText}`, this.showAlert = !0), this.lockFile(), this.doResize();
|
|
3983
|
+
}).catch(({ response: s }) => {
|
|
3984
|
+
this.showSave = !1, s.status == 422 ? (this.alertType = "error", this.alertText = s.data.suites) : (this.alertType = "error", this.alertText = `Error saving file. Code: ${s.status} Text: ${s.statusText}`), this.showAlert = !0;
|
|
3919
3985
|
});
|
|
3920
3986
|
} else
|
|
3921
3987
|
this.setError("Attempt to save file when not allowed");
|
|
@@ -3937,11 +4003,11 @@ class TestSuite(Suite):
|
|
|
3937
4003
|
this.removeFromRecent(t), this.newFile();
|
|
3938
4004
|
}).catch((e) => {
|
|
3939
4005
|
if (e !== !0) {
|
|
3940
|
-
const
|
|
4006
|
+
const s = {
|
|
3941
4007
|
text: `Failed Multi-Delete. ${e}`,
|
|
3942
4008
|
type: "error"
|
|
3943
4009
|
};
|
|
3944
|
-
this.$emit("alert",
|
|
4010
|
+
this.$emit("alert", s);
|
|
3945
4011
|
}
|
|
3946
4012
|
});
|
|
3947
4013
|
},
|
|
@@ -4010,7 +4076,7 @@ class TestSuite(Suite):
|
|
|
4010
4076
|
return O.post(`/script-api/scripts/${this.filename}/lock`);
|
|
4011
4077
|
},
|
|
4012
4078
|
unlockFile: function() {
|
|
4013
|
-
this.filename !==
|
|
4079
|
+
this.filename !== q && !this.readOnly && !this.readOnlyUser && O.post(`/script-api/scripts/${this.filename}/unlock`);
|
|
4014
4080
|
},
|
|
4015
4081
|
backToNewScript: async function() {
|
|
4016
4082
|
this.scriptDisconnect(), this.removeAllMarkers(), await this.scriptComplete(), this.newFile();
|
|
@@ -4029,185 +4095,191 @@ class TestSuite(Suite):
|
|
|
4029
4095
|
}
|
|
4030
4096
|
}
|
|
4031
4097
|
}
|
|
4032
|
-
},
|
|
4098
|
+
}, Li = { class: "grid" }, Ai = ["id"], Fi = { class: "item-content" }, Bi = { id: "sr-controls" }, Ni = { class: "d-flex align-center mr-1" }, Hi = { key: 0 }, Gi = { key: 1 }, qi = {
|
|
4033
4099
|
key: 2,
|
|
4034
4100
|
style: { width: "40px", height: "40px" },
|
|
4035
4101
|
class: "mx-2"
|
|
4036
|
-
},
|
|
4102
|
+
}, ji = { key: 3 }, Ki = { key: 4 }, Wi = {
|
|
4037
4103
|
key: 0,
|
|
4038
4104
|
id: "debug",
|
|
4039
4105
|
class: "pa-0"
|
|
4040
|
-
},
|
|
4041
|
-
|
|
4042
|
-
|
|
4043
|
-
|
|
4044
|
-
|
|
4045
|
-
|
|
4046
|
-
|
|
4106
|
+
}, Ji = {
|
|
4107
|
+
key: 1,
|
|
4108
|
+
style: { "background-color": "var(--color-background-base-default)", margin: "0px", padding: "0px" }
|
|
4109
|
+
}, Yi = { key: 0 }, Zi = { key: 1 }, Xi = { style: { height: "200px", overflow: "hidden" } }, Qi = {
|
|
4110
|
+
key: 0,
|
|
4111
|
+
class: "error-message"
|
|
4112
|
+
}, $i = { class: "flex-grow-1" };
|
|
4113
|
+
function es(t, e, s, r, i, o) {
|
|
4114
|
+
const d = a("top-bar"), h = a("v-icon"), c = a("v-btn"), b = a("v-snackbar"), k = a("openc3-screen"), V = a("suite-runner"), w = a("v-tooltip"), R = a("v-select"), E = a("v-text-field"), T = a("v-progress-circular"), _ = a("v-spacer"), z = a("v-badge"), G = a("v-row"), Q = a("v-card-text"), te = a("v-card"), K = a("v-list-item"), ie = a("v-divider"), I = a("v-list"), F = a("v-menu"), ce = a("pane"), Z = a("script-log-messages"), Ie = a("splitpanes"), ke = a("v-tab"), De = a("v-tabs"), me = a("v-col"), Se = a("v-tabs-window-item"), se = a("v-tabs-window"), xe = a("file-open-save-dialog"), Ue = a("environment-dialog"), Pe = a("ask-dialog"), pe = a("file-dialog"), ze = a("information-dialog"), Le = a("event-list-dialog"), Ae = a("overrides-dialog"), he = a("prompt-dialog"), N = a("results-dialog"), Fe = a("script-environment-dialog"), u = a("simple-text-dialog"), p = 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");
|
|
4115
|
+
return S(), P(de, null, [
|
|
4116
|
+
s.inline ? U("", !0) : (S(), P(de, { key: 0 }, [
|
|
4117
|
+
n(d, {
|
|
4118
|
+
menus: o.menus,
|
|
4047
4119
|
title: i.title
|
|
4048
4120
|
}, null, 8, ["menus", "title"]),
|
|
4049
|
-
|
|
4121
|
+
n(b, {
|
|
4050
4122
|
modelValue: i.showAlert,
|
|
4051
|
-
"onUpdate:modelValue": e[1] || (e[1] = (
|
|
4123
|
+
"onUpdate:modelValue": e[1] || (e[1] = (m) => i.showAlert = m),
|
|
4052
4124
|
absolute: "",
|
|
4053
4125
|
color: i.alertType,
|
|
4054
4126
|
timeout: 3e3,
|
|
4055
4127
|
class: "apply-top",
|
|
4056
|
-
style:
|
|
4128
|
+
style: Ee(t.classificationStyles)
|
|
4057
4129
|
}, {
|
|
4058
|
-
actions: l(({ attrs:
|
|
4059
|
-
|
|
4130
|
+
actions: l(({ attrs: m }) => [
|
|
4131
|
+
n(c, X({
|
|
4060
4132
|
variant: "text",
|
|
4061
4133
|
text: "Close"
|
|
4062
|
-
},
|
|
4063
|
-
onClick: e[0] || (e[0] = (
|
|
4134
|
+
}, m, {
|
|
4135
|
+
onClick: e[0] || (e[0] = (J) => i.showAlert = !1)
|
|
4064
4136
|
}), null, 16)
|
|
4065
4137
|
]),
|
|
4066
4138
|
default: l(() => [
|
|
4067
|
-
|
|
4139
|
+
n(h, null, {
|
|
4068
4140
|
default: l(() => [
|
|
4069
|
-
|
|
4141
|
+
y(" mdi-" + L(i.alertType), 1)
|
|
4070
4142
|
]),
|
|
4071
4143
|
_: 1
|
|
4072
4144
|
}),
|
|
4073
|
-
|
|
4145
|
+
y(" " + L(i.alertText) + " ", 1)
|
|
4074
4146
|
]),
|
|
4075
4147
|
_: 1
|
|
4076
4148
|
}, 8, ["modelValue", "color", "style"]),
|
|
4077
|
-
|
|
4149
|
+
n(b, {
|
|
4078
4150
|
modelValue: i.showEditingToast,
|
|
4079
|
-
"onUpdate:modelValue": e[3] || (e[3] = (
|
|
4151
|
+
"onUpdate:modelValue": e[3] || (e[3] = (m) => i.showEditingToast = m),
|
|
4080
4152
|
absolute: "",
|
|
4081
4153
|
class: "apply-top",
|
|
4082
|
-
style:
|
|
4154
|
+
style: Ee(t.classificationStyles),
|
|
4083
4155
|
timeout: -1,
|
|
4084
4156
|
color: "orange"
|
|
4085
4157
|
}, {
|
|
4086
|
-
actions: l(({ attrs:
|
|
4087
|
-
|
|
4158
|
+
actions: l(({ attrs: m }) => [
|
|
4159
|
+
n(c, X({ variant: "text" }, m, {
|
|
4088
4160
|
color: "danger",
|
|
4089
4161
|
text: "Unlock",
|
|
4090
4162
|
"data-test": "unlock-button",
|
|
4091
|
-
onClick:
|
|
4163
|
+
onClick: o.confirmLocalUnlock
|
|
4092
4164
|
}), null, 16, ["onClick"]),
|
|
4093
|
-
|
|
4165
|
+
n(c, X({
|
|
4094
4166
|
variant: "text",
|
|
4095
4167
|
text: "Dismiss"
|
|
4096
|
-
},
|
|
4168
|
+
}, m, {
|
|
4097
4169
|
onClick: e[2] || (e[2] = () => {
|
|
4098
4170
|
i.showEditingToast = !1;
|
|
4099
4171
|
})
|
|
4100
4172
|
}), null, 16)
|
|
4101
4173
|
]),
|
|
4102
4174
|
default: l(() => [
|
|
4103
|
-
|
|
4104
|
-
default: l(() => [...e[
|
|
4105
|
-
|
|
4175
|
+
n(h, null, {
|
|
4176
|
+
default: l(() => [...e[43] || (e[43] = [
|
|
4177
|
+
y(" mdi-pencil-off ", -1)
|
|
4106
4178
|
])]),
|
|
4107
4179
|
_: 1
|
|
4108
4180
|
}),
|
|
4109
|
-
|
|
4181
|
+
y(" " + L(i.lockedBy) + " is editing this script. Editor is in read-only mode ", 1)
|
|
4110
4182
|
]),
|
|
4111
4183
|
_: 1
|
|
4112
4184
|
}, 8, ["modelValue", "style"]),
|
|
4113
|
-
|
|
4114
|
-
(
|
|
4115
|
-
id:
|
|
4116
|
-
key:
|
|
4185
|
+
x("div", Li, [
|
|
4186
|
+
(S(!0), P(de, null, qe(i.screens, (m) => (S(), P("div", {
|
|
4187
|
+
id: o.screenId(m.id),
|
|
4188
|
+
key: m.id,
|
|
4117
4189
|
ref_for: !0,
|
|
4118
4190
|
ref: "gridItem",
|
|
4119
4191
|
class: "item"
|
|
4120
4192
|
}, [
|
|
4121
|
-
|
|
4122
|
-
|
|
4123
|
-
target:
|
|
4124
|
-
screen:
|
|
4125
|
-
definition:
|
|
4193
|
+
x("div", Fi, [
|
|
4194
|
+
n(k, {
|
|
4195
|
+
target: m.target,
|
|
4196
|
+
screen: m.screen,
|
|
4197
|
+
definition: m.definition,
|
|
4126
4198
|
keywords: i.screenKeywords,
|
|
4127
4199
|
"initial-floated": !0,
|
|
4128
|
-
"initial-top":
|
|
4129
|
-
"initial-left":
|
|
4200
|
+
"initial-top": m.top,
|
|
4201
|
+
"initial-left": m.left,
|
|
4130
4202
|
"initial-z": 3,
|
|
4131
4203
|
"min-z": 3,
|
|
4132
4204
|
"fix-floated": !0,
|
|
4133
|
-
count:
|
|
4134
|
-
onCloseScreen: (
|
|
4135
|
-
onDeleteScreen: (
|
|
4205
|
+
count: m.count,
|
|
4206
|
+
onCloseScreen: (J) => o.closeScreen(m.id),
|
|
4207
|
+
onDeleteScreen: (J) => o.closeScreen(m.id)
|
|
4136
4208
|
}, null, 8, ["target", "screen", "definition", "keywords", "initial-top", "initial-left", "count", "onCloseScreen", "onDeleteScreen"])
|
|
4137
4209
|
])
|
|
4138
4210
|
], 8, Ai))), 128))
|
|
4139
4211
|
]),
|
|
4140
|
-
|
|
4212
|
+
n(te, null, {
|
|
4141
4213
|
default: l(() => [
|
|
4142
|
-
|
|
4214
|
+
n(Q, null, {
|
|
4143
4215
|
default: l(() => [
|
|
4144
|
-
i.suiteRunner ? (
|
|
4216
|
+
i.suiteRunner ? (S(), D(V, {
|
|
4145
4217
|
key: 0,
|
|
4146
4218
|
class: "suite-runner",
|
|
4147
4219
|
"suite-map": i.suiteMap,
|
|
4148
4220
|
"disable-buttons": i.disableSuiteButtons,
|
|
4149
|
-
filename:
|
|
4150
|
-
onButton:
|
|
4151
|
-
onLoaded:
|
|
4152
|
-
}, null, 8, ["suite-map", "disable-buttons", "filename", "onButton", "onLoaded"])) :
|
|
4153
|
-
|
|
4154
|
-
|
|
4221
|
+
filename: o.fullFilename,
|
|
4222
|
+
onButton: o.suiteRunnerButton,
|
|
4223
|
+
onLoaded: o.doResize
|
|
4224
|
+
}, null, 8, ["suite-map", "disable-buttons", "filename", "onButton", "onLoaded"])) : U("", !0),
|
|
4225
|
+
x("div", Bi, [
|
|
4226
|
+
n(G, {
|
|
4155
4227
|
"no-gutters": "",
|
|
4156
4228
|
justify: "space-between"
|
|
4157
4229
|
}, {
|
|
4158
4230
|
default: l(() => [
|
|
4159
|
-
i.showDisconnect ? (
|
|
4231
|
+
i.showDisconnect ? (S(), D(h, {
|
|
4160
4232
|
key: 0,
|
|
4161
4233
|
class: "mt-2",
|
|
4162
4234
|
color: "red"
|
|
4163
4235
|
}, {
|
|
4164
|
-
default: l(() => [...e[
|
|
4165
|
-
|
|
4236
|
+
default: l(() => [...e[44] || (e[44] = [
|
|
4237
|
+
y(" mdi-connection ", -1)
|
|
4166
4238
|
])]),
|
|
4167
4239
|
_: 1
|
|
4168
|
-
})) :
|
|
4169
|
-
|
|
4170
|
-
|
|
4240
|
+
})) : U("", !0),
|
|
4241
|
+
x("div", Ni, [
|
|
4242
|
+
n(w, {
|
|
4171
4243
|
"open-delay": 600,
|
|
4172
4244
|
location: "top"
|
|
4173
4245
|
}, {
|
|
4174
|
-
activator: l(({ props:
|
|
4175
|
-
i.scriptId ? (
|
|
4246
|
+
activator: l(({ props: m }) => [
|
|
4247
|
+
i.scriptId ? (S(), D(c, X({ key: 1 }, m, {
|
|
4176
4248
|
icon: "mdi-arrow-left",
|
|
4177
4249
|
variant: "text",
|
|
4178
4250
|
density: "compact",
|
|
4179
|
-
onClick:
|
|
4180
|
-
}), null, 16, ["onClick"])) : (
|
|
4251
|
+
onClick: o.backToNewScript
|
|
4252
|
+
}), null, 16, ["onClick"])) : (S(), D(c, X({ key: 0 }, m, {
|
|
4181
4253
|
icon: "mdi-cached",
|
|
4182
4254
|
variant: "text",
|
|
4183
4255
|
density: "compact",
|
|
4184
4256
|
disabled: i.filename === t.NEW_FILENAME,
|
|
4185
4257
|
"aria-label": "Reload File",
|
|
4186
|
-
onClick:
|
|
4258
|
+
onClick: o.reloadFile
|
|
4187
4259
|
}), null, 16, ["disabled", "onClick"]))
|
|
4188
4260
|
]),
|
|
4189
4261
|
default: l(() => [
|
|
4190
|
-
i.scriptId ? (
|
|
4262
|
+
i.scriptId ? (S(), P("span", Gi, " Back to New Script ")) : (S(), P("span", Hi, " Reload File "))
|
|
4191
4263
|
]),
|
|
4192
4264
|
_: 1
|
|
4193
4265
|
})
|
|
4194
4266
|
]),
|
|
4195
|
-
|
|
4267
|
+
n(w, {
|
|
4196
4268
|
location: "bottom",
|
|
4197
4269
|
text: i.filenameSelect,
|
|
4198
4270
|
disabled: !i.filenameSelect || i.filenameSelect.length <= 45
|
|
4199
4271
|
}, {
|
|
4200
|
-
activator: l(({ props:
|
|
4201
|
-
|
|
4202
|
-
|
|
4272
|
+
activator: l(({ props: m }) => [
|
|
4273
|
+
x("div", X(m, { style: { width: "32rem" } }), [
|
|
4274
|
+
n(R, {
|
|
4203
4275
|
id: "filename",
|
|
4204
4276
|
modelValue: i.filenameSelect,
|
|
4205
4277
|
"onUpdate:modelValue": [
|
|
4206
|
-
e[4] || (e[4] = (
|
|
4207
|
-
|
|
4278
|
+
e[4] || (e[4] = (J) => i.filenameSelect = J),
|
|
4279
|
+
o.fileNameChanged
|
|
4208
4280
|
],
|
|
4209
|
-
items:
|
|
4210
|
-
disabled:
|
|
4281
|
+
items: o.fileList,
|
|
4282
|
+
disabled: o.fileList.length <= 1,
|
|
4211
4283
|
label: "Filename",
|
|
4212
4284
|
"data-test": "filename",
|
|
4213
4285
|
density: "compact",
|
|
@@ -4218,9 +4290,9 @@ function Zi(t, e, n, a, i, s) {
|
|
|
4218
4290
|
]),
|
|
4219
4291
|
_: 1
|
|
4220
4292
|
}, 8, ["text", "disabled"]),
|
|
4221
|
-
|
|
4293
|
+
n(E, {
|
|
4222
4294
|
modelValue: i.scriptId,
|
|
4223
|
-
"onUpdate:modelValue": e[5] || (e[5] = (
|
|
4295
|
+
"onUpdate:modelValue": e[5] || (e[5] = (m) => i.scriptId = m),
|
|
4224
4296
|
label: "Script ID",
|
|
4225
4297
|
"data-test": "id",
|
|
4226
4298
|
class: "shrink ml-2 script-state",
|
|
@@ -4230,9 +4302,9 @@ function Zi(t, e, n, a, i, s) {
|
|
|
4230
4302
|
readonly: "",
|
|
4231
4303
|
"hide-details": ""
|
|
4232
4304
|
}, null, 8, ["modelValue"]),
|
|
4233
|
-
|
|
4234
|
-
modelValue:
|
|
4235
|
-
"onUpdate:modelValue": e[6] || (e[6] = (
|
|
4305
|
+
n(E, {
|
|
4306
|
+
modelValue: o.stateTimer,
|
|
4307
|
+
"onUpdate:modelValue": e[6] || (e[6] = (m) => o.stateTimer = m),
|
|
4236
4308
|
label: "Script State",
|
|
4237
4309
|
"data-test": "state",
|
|
4238
4310
|
class: "shrink ml-2 script-state",
|
|
@@ -4242,21 +4314,21 @@ function Zi(t, e, n, a, i, s) {
|
|
|
4242
4314
|
readonly: "",
|
|
4243
4315
|
"hide-details": ""
|
|
4244
4316
|
}, null, 8, ["modelValue"]),
|
|
4245
|
-
i.state === "Connecting..." ? (
|
|
4317
|
+
i.state === "Connecting..." ? (S(), D(T, {
|
|
4246
4318
|
key: 1,
|
|
4247
4319
|
size: 40,
|
|
4248
4320
|
class: "mx-2",
|
|
4249
4321
|
indeterminate: "",
|
|
4250
4322
|
color: "primary"
|
|
4251
|
-
})) : (
|
|
4252
|
-
|
|
4253
|
-
i.startOrGoButton === "Start" ? (
|
|
4254
|
-
|
|
4323
|
+
})) : (S(), P("div", qi)),
|
|
4324
|
+
n(_),
|
|
4325
|
+
i.startOrGoButton === "Start" ? (S(), P("div", ji, [
|
|
4326
|
+
n(w, {
|
|
4255
4327
|
"open-delay": 600,
|
|
4256
4328
|
location: "top"
|
|
4257
4329
|
}, {
|
|
4258
|
-
activator: l(({ props:
|
|
4259
|
-
|
|
4330
|
+
activator: l(({ props: m }) => [
|
|
4331
|
+
n(c, X(m, {
|
|
4260
4332
|
class: "mr-2",
|
|
4261
4333
|
icon: "",
|
|
4262
4334
|
variant: "text",
|
|
@@ -4264,17 +4336,17 @@ function Zi(t, e, n, a, i, s) {
|
|
|
4264
4336
|
disabled: i.envDisabled,
|
|
4265
4337
|
"data-test": "env-button",
|
|
4266
4338
|
"aria-label": "Script Environment",
|
|
4267
|
-
onClick: e[8] || (e[8] = (
|
|
4339
|
+
onClick: e[8] || (e[8] = (J) => i.scriptEnvironment.show = !i.scriptEnvironment.show)
|
|
4268
4340
|
}), {
|
|
4269
4341
|
default: l(() => [
|
|
4270
|
-
|
|
4271
|
-
modelValue:
|
|
4272
|
-
"onUpdate:modelValue": e[7] || (e[7] = (
|
|
4342
|
+
n(z, {
|
|
4343
|
+
modelValue: o.environmentModified,
|
|
4344
|
+
"onUpdate:modelValue": e[7] || (e[7] = (J) => o.environmentModified = J),
|
|
4273
4345
|
floating: "",
|
|
4274
4346
|
dot: ""
|
|
4275
4347
|
}, {
|
|
4276
4348
|
default: l(() => [
|
|
4277
|
-
|
|
4349
|
+
n(h, { icon: "mdi-application-variable" })
|
|
4278
4350
|
]),
|
|
4279
4351
|
_: 1
|
|
4280
4352
|
}, 8, ["modelValue"])
|
|
@@ -4283,47 +4355,47 @@ function Zi(t, e, n, a, i, s) {
|
|
|
4283
4355
|
}, 16, ["disabled"])
|
|
4284
4356
|
]),
|
|
4285
4357
|
default: l(() => [
|
|
4286
|
-
|
|
4287
|
-
e[
|
|
4288
|
-
|
|
4289
|
-
|
|
4290
|
-
], 64)) :
|
|
4358
|
+
x("span", null, [
|
|
4359
|
+
e[45] || (e[45] = y(" Script Environment ", -1)),
|
|
4360
|
+
o.environmentModified ? (S(), P(de, { key: 0 }, [
|
|
4361
|
+
y(" (modified) ")
|
|
4362
|
+
], 64)) : U("", !0)
|
|
4291
4363
|
])
|
|
4292
4364
|
]),
|
|
4293
4365
|
_: 1
|
|
4294
4366
|
}),
|
|
4295
|
-
|
|
4367
|
+
n(c, {
|
|
4296
4368
|
class: "mx-1",
|
|
4297
4369
|
color: "primary",
|
|
4298
4370
|
text: "Start",
|
|
4299
4371
|
"data-test": "start-button",
|
|
4300
4372
|
disabled: i.startOrGoDisabled || !i.executeUser,
|
|
4301
4373
|
hidden: i.suiteRunner,
|
|
4302
|
-
onClick:
|
|
4374
|
+
onClick: o.startHandler
|
|
4303
4375
|
}, null, 8, ["disabled", "hidden", "onClick"])
|
|
4304
|
-
])) : (
|
|
4305
|
-
|
|
4376
|
+
])) : (S(), P("div", Ki, [
|
|
4377
|
+
n(c, {
|
|
4306
4378
|
color: "primary",
|
|
4307
4379
|
class: "mr-2",
|
|
4308
4380
|
text: "Go",
|
|
4309
4381
|
disabled: i.startOrGoDisabled,
|
|
4310
4382
|
"data-test": "go-button",
|
|
4311
|
-
onClick:
|
|
4383
|
+
onClick: o.go
|
|
4312
4384
|
}, null, 8, ["disabled", "onClick"]),
|
|
4313
|
-
|
|
4385
|
+
n(c, {
|
|
4314
4386
|
color: "primary",
|
|
4315
4387
|
class: "mr-2",
|
|
4316
4388
|
text: i.pauseOrRetryButton,
|
|
4317
4389
|
disabled: i.pauseOrRetryDisabled,
|
|
4318
4390
|
"data-test": "pause-retry-button",
|
|
4319
|
-
onClick:
|
|
4391
|
+
onClick: o.pauseOrRetry
|
|
4320
4392
|
}, null, 8, ["text", "disabled", "onClick"]),
|
|
4321
|
-
|
|
4393
|
+
n(c, {
|
|
4322
4394
|
color: "primary",
|
|
4323
4395
|
text: "Stop",
|
|
4324
4396
|
"data-test": "stop-button",
|
|
4325
4397
|
disabled: i.stopDisabled,
|
|
4326
|
-
onClick:
|
|
4398
|
+
onClick: o.stop
|
|
4327
4399
|
}, null, 8, ["disabled", "onClick"])
|
|
4328
4400
|
]))
|
|
4329
4401
|
]),
|
|
@@ -4336,68 +4408,73 @@ function Zi(t, e, n, a, i, s) {
|
|
|
4336
4408
|
]),
|
|
4337
4409
|
_: 1
|
|
4338
4410
|
}),
|
|
4339
|
-
|
|
4411
|
+
n(Ie, {
|
|
4340
4412
|
horizontal: "",
|
|
4341
4413
|
style: { height: "100%" },
|
|
4342
|
-
onResize:
|
|
4414
|
+
onResize: o.calcHeight
|
|
4343
4415
|
}, {
|
|
4344
4416
|
default: l(() => [
|
|
4345
|
-
|
|
4417
|
+
n(ce, {
|
|
4346
4418
|
class: "editorbox",
|
|
4347
4419
|
size: "50"
|
|
4348
4420
|
}, {
|
|
4349
4421
|
default: l(() => [
|
|
4350
|
-
|
|
4422
|
+
n(b, {
|
|
4351
4423
|
modelValue: i.showSave,
|
|
4352
|
-
"onUpdate:modelValue": e[9] || (e[9] = (
|
|
4424
|
+
"onUpdate:modelValue": e[9] || (e[9] = (m) => i.showSave = m),
|
|
4353
4425
|
absolute: "",
|
|
4354
4426
|
location: "right",
|
|
4355
4427
|
timeout: -1,
|
|
4356
4428
|
class: "saving apply-top",
|
|
4357
|
-
style:
|
|
4429
|
+
style: Ee(t.classificationStyles)
|
|
4358
4430
|
}, {
|
|
4359
|
-
default: l(() => [...e[
|
|
4360
|
-
|
|
4431
|
+
default: l(() => [...e[46] || (e[46] = [
|
|
4432
|
+
y(" Saving... ", -1)
|
|
4361
4433
|
])]),
|
|
4362
4434
|
_: 1
|
|
4363
4435
|
}, 8, ["modelValue", "style"]),
|
|
4364
|
-
|
|
4436
|
+
x("pre", {
|
|
4365
4437
|
ref: "editor",
|
|
4366
4438
|
class: "editor",
|
|
4367
|
-
onContextmenu: e[10] || (e[10] =
|
|
4439
|
+
onContextmenu: e[10] || (e[10] = ue((...m) => o.showExecuteSelectionMenu && o.showExecuteSelectionMenu(...m), ["prevent"]))
|
|
4368
4440
|
}, null, 544),
|
|
4369
|
-
|
|
4441
|
+
n(F, {
|
|
4370
4442
|
modelValue: i.executeSelectionMenu,
|
|
4371
|
-
"onUpdate:modelValue": e[11] || (e[11] = (
|
|
4443
|
+
"onUpdate:modelValue": e[11] || (e[11] = (m) => i.executeSelectionMenu = m),
|
|
4372
4444
|
target: [i.menuX, i.menuY]
|
|
4373
4445
|
}, {
|
|
4374
4446
|
default: l(() => [
|
|
4375
|
-
|
|
4447
|
+
n(I, null, {
|
|
4376
4448
|
default: l(() => [
|
|
4377
|
-
|
|
4449
|
+
n(K, {
|
|
4450
|
+
title: i.currentLineHasCommand ? "Edit Command" : "Insert Command",
|
|
4451
|
+
onClick: o.openCommandEditor
|
|
4452
|
+
}, null, 8, ["title", "onClick"]),
|
|
4453
|
+
n(ie),
|
|
4454
|
+
n(K, {
|
|
4378
4455
|
title: "Execute Selection",
|
|
4379
|
-
onClick:
|
|
4456
|
+
onClick: o.executeSelection
|
|
4380
4457
|
}, null, 8, ["onClick"]),
|
|
4381
|
-
i.scriptId ? (
|
|
4458
|
+
i.scriptId ? (S(), D(K, {
|
|
4382
4459
|
key: 0,
|
|
4383
4460
|
title: "Goto Line",
|
|
4384
|
-
onClick:
|
|
4385
|
-
}, null, 8, ["onClick"])) :
|
|
4386
|
-
i.scriptId ?
|
|
4461
|
+
onClick: o.runFromCursor
|
|
4462
|
+
}, null, 8, ["onClick"])) : U("", !0),
|
|
4463
|
+
i.scriptId ? U("", !0) : (S(), D(K, {
|
|
4387
4464
|
key: 1,
|
|
4388
4465
|
title: "Run From Line",
|
|
4389
|
-
onClick:
|
|
4466
|
+
onClick: o.runFromCursor
|
|
4390
4467
|
}, null, 8, ["onClick"])),
|
|
4391
|
-
i.scriptId ?
|
|
4468
|
+
i.scriptId ? U("", !0) : (S(), D(K, {
|
|
4392
4469
|
key: 2,
|
|
4393
4470
|
title: "Clear Local Breakpoints",
|
|
4394
|
-
onClick:
|
|
4471
|
+
onClick: o.clearBreakpoints
|
|
4395
4472
|
}, null, 8, ["onClick"])),
|
|
4396
|
-
|
|
4397
|
-
|
|
4473
|
+
n(ie),
|
|
4474
|
+
n(K, {
|
|
4398
4475
|
title: "Toggle Vim mode",
|
|
4399
4476
|
"prepend-icon": "extras:vim",
|
|
4400
|
-
onClick:
|
|
4477
|
+
onClick: o.toggleVimMode
|
|
4401
4478
|
}, null, 8, ["onClick"])
|
|
4402
4479
|
]),
|
|
4403
4480
|
_: 1
|
|
@@ -4408,16 +4485,16 @@ function Zi(t, e, n, a, i, s) {
|
|
|
4408
4485
|
]),
|
|
4409
4486
|
_: 1
|
|
4410
4487
|
}),
|
|
4411
|
-
|
|
4488
|
+
n(ce, {
|
|
4412
4489
|
id: "messages",
|
|
4413
4490
|
ref: "messagesDiv",
|
|
4414
4491
|
class: "mt-2"
|
|
4415
4492
|
}, {
|
|
4416
4493
|
default: l(() => [
|
|
4417
|
-
i.showDebug ? (
|
|
4418
|
-
|
|
4494
|
+
i.showDebug ? (S(), P("div", Wi, [
|
|
4495
|
+
n(G, { "no-gutters": "" }, {
|
|
4419
4496
|
default: l(() => [
|
|
4420
|
-
|
|
4497
|
+
n(c, {
|
|
4421
4498
|
color: "primary",
|
|
4422
4499
|
style: { width: "100px" },
|
|
4423
4500
|
class: "mr-4",
|
|
@@ -4425,29 +4502,29 @@ function Zi(t, e, n, a, i, s) {
|
|
|
4425
4502
|
"append-icon": "mdi-step-forward",
|
|
4426
4503
|
disabled: !i.scriptId,
|
|
4427
4504
|
"data-test": "step-button",
|
|
4428
|
-
onClick:
|
|
4505
|
+
onClick: o.step
|
|
4429
4506
|
}, null, 8, ["disabled", "onClick"]),
|
|
4430
|
-
|
|
4507
|
+
n(E, {
|
|
4431
4508
|
ref: "debug",
|
|
4432
4509
|
modelValue: i.debug,
|
|
4433
|
-
"onUpdate:modelValue": e[12] || (e[12] = (
|
|
4510
|
+
"onUpdate:modelValue": e[12] || (e[12] = (m) => i.debug = m),
|
|
4434
4511
|
class: "mb-2",
|
|
4435
4512
|
variant: "outlined",
|
|
4436
4513
|
density: "compact",
|
|
4437
4514
|
"hide-details": "",
|
|
4438
4515
|
label: "Debug",
|
|
4439
4516
|
"data-test": "debug-text",
|
|
4440
|
-
onKeydown:
|
|
4517
|
+
onKeydown: o.debugKeydown
|
|
4441
4518
|
}, null, 8, ["modelValue", "onKeydown"])
|
|
4442
4519
|
]),
|
|
4443
4520
|
_: 1
|
|
4444
4521
|
})
|
|
4445
|
-
])) :
|
|
4446
|
-
|
|
4522
|
+
])) : U("", !0),
|
|
4523
|
+
n(Z, {
|
|
4447
4524
|
id: "log-messages",
|
|
4448
4525
|
modelValue: i.messages,
|
|
4449
|
-
"onUpdate:modelValue": e[13] || (e[13] = (
|
|
4450
|
-
onSort:
|
|
4526
|
+
"onUpdate:modelValue": e[13] || (e[13] = (m) => i.messages = m),
|
|
4527
|
+
onSort: o.messageSortOrder
|
|
4451
4528
|
}, null, 8, ["modelValue", "onSort"])
|
|
4452
4529
|
]),
|
|
4453
4530
|
_: 1
|
|
@@ -4456,144 +4533,189 @@ function Zi(t, e, n, a, i, s) {
|
|
|
4456
4533
|
_: 1
|
|
4457
4534
|
}, 8, ["onResize"])
|
|
4458
4535
|
], 64)),
|
|
4459
|
-
|
|
4460
|
-
|
|
4536
|
+
s.inline ? (S(), P("div", Ji, [
|
|
4537
|
+
n(De, {
|
|
4538
|
+
modelValue: i.inlineTab,
|
|
4539
|
+
"onUpdate:modelValue": e[14] || (e[14] = (m) => i.inlineTab = m),
|
|
4540
|
+
density: "compact"
|
|
4541
|
+
}, {
|
|
4461
4542
|
default: l(() => [
|
|
4462
|
-
|
|
4463
|
-
|
|
4464
|
-
|
|
4465
|
-
|
|
4543
|
+
n(ke, {
|
|
4544
|
+
value: "script",
|
|
4545
|
+
text: "Script",
|
|
4546
|
+
"data-test": "script-tab"
|
|
4547
|
+
}),
|
|
4548
|
+
n(ke, {
|
|
4549
|
+
value: "messages",
|
|
4550
|
+
text: "Messages",
|
|
4551
|
+
"data-test": "messages-tab"
|
|
4552
|
+
})
|
|
4553
|
+
]),
|
|
4554
|
+
_: 1
|
|
4555
|
+
}, 8, ["modelValue"]),
|
|
4556
|
+
n(se, {
|
|
4557
|
+
modelValue: i.inlineTab,
|
|
4558
|
+
"onUpdate:modelValue": e[17] || (e[17] = (m) => i.inlineTab = m)
|
|
4559
|
+
}, {
|
|
4560
|
+
default: l(() => [
|
|
4561
|
+
n(Se, { value: "script" }, {
|
|
4466
4562
|
default: l(() => [
|
|
4467
|
-
|
|
4468
|
-
|
|
4469
|
-
|
|
4470
|
-
|
|
4471
|
-
|
|
4472
|
-
|
|
4563
|
+
n(G, null, {
|
|
4564
|
+
default: l(() => [
|
|
4565
|
+
n(me, {
|
|
4566
|
+
class: "v-col-10",
|
|
4567
|
+
style: { margin: "15px 0px 0px 0px", padding: "0px" }
|
|
4568
|
+
}, {
|
|
4569
|
+
default: l(() => [
|
|
4570
|
+
x("pre", {
|
|
4571
|
+
ref: "editor",
|
|
4572
|
+
class: "editor",
|
|
4573
|
+
style: { height: "200px" },
|
|
4574
|
+
onContextmenu: e[15] || (e[15] = ue((...m) => o.showExecuteSelectionMenu && o.showExecuteSelectionMenu(...m), ["prevent"]))
|
|
4575
|
+
}, null, 544)
|
|
4576
|
+
]),
|
|
4577
|
+
_: 1
|
|
4578
|
+
}),
|
|
4579
|
+
n(me, {
|
|
4580
|
+
class: "v-col-2",
|
|
4581
|
+
style: { display: "flex", "justify-content": "center", "align-items": "center", "background-color": "var(--color-background-surface-default)" }
|
|
4582
|
+
}, {
|
|
4583
|
+
default: l(() => [
|
|
4584
|
+
i.startOrGoButton === "Start" ? (S(), P("div", Yi, [
|
|
4585
|
+
n(c, {
|
|
4586
|
+
class: "mx-1",
|
|
4587
|
+
color: "primary",
|
|
4588
|
+
text: "Start",
|
|
4589
|
+
"data-test": "start-button",
|
|
4590
|
+
disabled: i.startOrGoDisabled || !i.executeUser,
|
|
4591
|
+
hidden: i.suiteRunner,
|
|
4592
|
+
onClick: o.startHandler
|
|
4593
|
+
}, null, 8, ["disabled", "hidden", "onClick"])
|
|
4594
|
+
])) : (S(), P("div", Zi, [
|
|
4595
|
+
n(c, {
|
|
4596
|
+
color: "primary",
|
|
4597
|
+
class: "ma-2",
|
|
4598
|
+
text: "Go",
|
|
4599
|
+
disabled: i.startOrGoDisabled,
|
|
4600
|
+
"data-test": "go-button",
|
|
4601
|
+
onClick: o.go
|
|
4602
|
+
}, null, 8, ["disabled", "onClick"]),
|
|
4603
|
+
n(c, {
|
|
4604
|
+
color: "primary",
|
|
4605
|
+
class: "ma-2",
|
|
4606
|
+
text: i.pauseOrRetryButton,
|
|
4607
|
+
disabled: i.pauseOrRetryDisabled,
|
|
4608
|
+
"data-test": "pause-retry-button",
|
|
4609
|
+
onClick: o.pauseOrRetry
|
|
4610
|
+
}, null, 8, ["text", "disabled", "onClick"]),
|
|
4611
|
+
n(c, {
|
|
4612
|
+
color: "primary",
|
|
4613
|
+
class: "ma-2",
|
|
4614
|
+
text: "Stop",
|
|
4615
|
+
"data-test": "stop-button",
|
|
4616
|
+
disabled: i.stopDisabled,
|
|
4617
|
+
onClick: o.stop
|
|
4618
|
+
}, null, 8, ["disabled", "onClick"])
|
|
4619
|
+
]))
|
|
4620
|
+
]),
|
|
4621
|
+
_: 1
|
|
4622
|
+
})
|
|
4623
|
+
]),
|
|
4624
|
+
_: 1
|
|
4625
|
+
})
|
|
4473
4626
|
]),
|
|
4474
4627
|
_: 1
|
|
4475
4628
|
}),
|
|
4476
|
-
|
|
4477
|
-
class: "v-col-2",
|
|
4478
|
-
style: { display: "flex", "justify-content": "center", "align-items": "center", "background-color": "var(--color-background-surface-default)" }
|
|
4479
|
-
}, {
|
|
4629
|
+
n(Se, { value: "messages" }, {
|
|
4480
4630
|
default: l(() => [
|
|
4481
|
-
|
|
4482
|
-
|
|
4483
|
-
|
|
4484
|
-
|
|
4485
|
-
|
|
4486
|
-
|
|
4487
|
-
|
|
4488
|
-
|
|
4489
|
-
onClick: s.startHandler
|
|
4490
|
-
}, null, 8, ["disabled", "hidden", "onClick"])
|
|
4491
|
-
])) : (y(), P("div", Yi, [
|
|
4492
|
-
o(p, {
|
|
4493
|
-
color: "primary",
|
|
4494
|
-
class: "ma-2",
|
|
4495
|
-
text: "Go",
|
|
4496
|
-
disabled: i.startOrGoDisabled,
|
|
4497
|
-
"data-test": "go-button",
|
|
4498
|
-
onClick: s.go
|
|
4499
|
-
}, null, 8, ["disabled", "onClick"]),
|
|
4500
|
-
o(p, {
|
|
4501
|
-
color: "primary",
|
|
4502
|
-
class: "ma-2",
|
|
4503
|
-
text: i.pauseOrRetryButton,
|
|
4504
|
-
disabled: i.pauseOrRetryDisabled,
|
|
4505
|
-
"data-test": "pause-retry-button",
|
|
4506
|
-
onClick: s.pauseOrRetry
|
|
4507
|
-
}, null, 8, ["text", "disabled", "onClick"]),
|
|
4508
|
-
o(p, {
|
|
4509
|
-
color: "primary",
|
|
4510
|
-
class: "ma-2",
|
|
4511
|
-
text: "Stop",
|
|
4512
|
-
"data-test": "stop-button",
|
|
4513
|
-
disabled: i.stopDisabled,
|
|
4514
|
-
onClick: s.stop
|
|
4515
|
-
}, null, 8, ["disabled", "onClick"])
|
|
4516
|
-
]))
|
|
4631
|
+
x("div", Xi, [
|
|
4632
|
+
n(Z, {
|
|
4633
|
+
modelValue: i.messages,
|
|
4634
|
+
"onUpdate:modelValue": e[16] || (e[16] = (m) => i.messages = m),
|
|
4635
|
+
"newest-on-top": i.messagesNewestOnTop,
|
|
4636
|
+
onMessageOrderChanged: t.messageOrderChanged
|
|
4637
|
+
}, null, 8, ["modelValue", "newest-on-top", "onMessageOrderChanged"])
|
|
4638
|
+
])
|
|
4517
4639
|
]),
|
|
4518
4640
|
_: 1
|
|
4519
4641
|
})
|
|
4520
4642
|
]),
|
|
4521
4643
|
_: 1
|
|
4522
|
-
})
|
|
4523
|
-
])) :
|
|
4524
|
-
i.fileOpen ? (
|
|
4644
|
+
}, 8, ["modelValue"])
|
|
4645
|
+
])) : U("", !0),
|
|
4646
|
+
i.fileOpen ? (S(), D(xe, {
|
|
4525
4647
|
key: 2,
|
|
4526
4648
|
modelValue: i.fileOpen,
|
|
4527
|
-
"onUpdate:modelValue": e[
|
|
4649
|
+
"onUpdate:modelValue": e[18] || (e[18] = (m) => i.fileOpen = m),
|
|
4528
4650
|
type: "open",
|
|
4529
4651
|
"api-url": "/script-api/scripts",
|
|
4530
|
-
onFile: e[
|
|
4531
|
-
onError: e[
|
|
4532
|
-
onClearTemp: e[
|
|
4533
|
-
}, null, 8, ["modelValue"])) :
|
|
4534
|
-
i.showSaveAs ? (
|
|
4652
|
+
onFile: e[19] || (e[19] = (m) => o.setFile(m)),
|
|
4653
|
+
onError: e[20] || (e[20] = (m) => o.setError(m)),
|
|
4654
|
+
onClearTemp: e[21] || (e[21] = (m) => o.clearTemp(m))
|
|
4655
|
+
}, null, 8, ["modelValue"])) : U("", !0),
|
|
4656
|
+
i.showSaveAs ? (S(), D(xe, {
|
|
4535
4657
|
key: 3,
|
|
4536
4658
|
modelValue: i.showSaveAs,
|
|
4537
|
-
"onUpdate:modelValue": e[
|
|
4659
|
+
"onUpdate:modelValue": e[22] || (e[22] = (m) => i.showSaveAs = m),
|
|
4538
4660
|
type: "save",
|
|
4539
4661
|
"api-url": "/script-api/scripts",
|
|
4540
4662
|
"require-target-parent-dir": "",
|
|
4541
|
-
"input-filename":
|
|
4542
|
-
onFilename: e[
|
|
4543
|
-
onError: e[
|
|
4544
|
-
onClearTemp: e[
|
|
4545
|
-
}, null, 8, ["modelValue", "input-filename"])) :
|
|
4546
|
-
i.showEnvironment ? (
|
|
4663
|
+
"input-filename": o.filenameOrBlank,
|
|
4664
|
+
onFilename: e[23] || (e[23] = (m) => o.saveAsFilename(m)),
|
|
4665
|
+
onError: e[24] || (e[24] = (m) => o.setError(m)),
|
|
4666
|
+
onClearTemp: e[25] || (e[25] = (m) => o.clearTemp(m))
|
|
4667
|
+
}, null, 8, ["modelValue", "input-filename"])) : U("", !0),
|
|
4668
|
+
i.showEnvironment ? (S(), D(Ue, {
|
|
4547
4669
|
key: 4,
|
|
4548
4670
|
modelValue: i.showEnvironment,
|
|
4549
|
-
"onUpdate:modelValue": e[
|
|
4550
|
-
}, null, 8, ["modelValue"])) :
|
|
4551
|
-
i.ask.show ? (
|
|
4671
|
+
"onUpdate:modelValue": e[26] || (e[26] = (m) => i.showEnvironment = m)
|
|
4672
|
+
}, null, 8, ["modelValue"])) : U("", !0),
|
|
4673
|
+
i.ask.show ? (S(), D(Pe, {
|
|
4552
4674
|
key: 5,
|
|
4553
4675
|
modelValue: i.ask.show,
|
|
4554
|
-
"onUpdate:modelValue": e[
|
|
4676
|
+
"onUpdate:modelValue": e[27] || (e[27] = (m) => i.ask.show = m),
|
|
4555
4677
|
question: i.ask.question,
|
|
4556
4678
|
default: i.ask.default,
|
|
4557
4679
|
password: i.ask.password,
|
|
4558
4680
|
"answer-required": i.ask.answerRequired,
|
|
4559
4681
|
onResponse: i.ask.callback
|
|
4560
|
-
}, null, 8, ["modelValue", "question", "default", "password", "answer-required", "onResponse"])) :
|
|
4561
|
-
i.file.show ? (
|
|
4682
|
+
}, null, 8, ["modelValue", "question", "default", "password", "answer-required", "onResponse"])) : U("", !0),
|
|
4683
|
+
i.file.show ? (S(), D(pe, {
|
|
4562
4684
|
key: 6,
|
|
4563
4685
|
modelValue: i.file.show,
|
|
4564
|
-
"onUpdate:modelValue": e[
|
|
4686
|
+
"onUpdate:modelValue": e[28] || (e[28] = (m) => i.file.show = m),
|
|
4565
4687
|
title: i.file.title,
|
|
4566
4688
|
message: i.file.message,
|
|
4567
4689
|
multiple: i.file.multiple,
|
|
4568
4690
|
filter: i.file.filter,
|
|
4569
|
-
onResponse:
|
|
4570
|
-
}, null, 8, ["modelValue", "title", "message", "multiple", "filter", "onResponse"])) :
|
|
4571
|
-
i.information.show ? (
|
|
4691
|
+
onResponse: o.fileDialogCallback
|
|
4692
|
+
}, null, 8, ["modelValue", "title", "message", "multiple", "filter", "onResponse"])) : U("", !0),
|
|
4693
|
+
i.information.show ? (S(), D(ze, {
|
|
4572
4694
|
key: 7,
|
|
4573
4695
|
modelValue: i.information.show,
|
|
4574
|
-
"onUpdate:modelValue": e[
|
|
4696
|
+
"onUpdate:modelValue": e[29] || (e[29] = (m) => i.information.show = m),
|
|
4575
4697
|
title: i.information.title,
|
|
4576
4698
|
text: i.information.text,
|
|
4577
4699
|
width: i.information.width
|
|
4578
|
-
}, null, 8, ["modelValue", "title", "text", "width"])) :
|
|
4579
|
-
i.inputMetadata.show ? (
|
|
4700
|
+
}, null, 8, ["modelValue", "title", "text", "width"])) : U("", !0),
|
|
4701
|
+
i.inputMetadata.show ? (S(), D(Le, {
|
|
4580
4702
|
key: 8,
|
|
4581
4703
|
modelValue: i.inputMetadata.show,
|
|
4582
|
-
"onUpdate:modelValue": e[
|
|
4704
|
+
"onUpdate:modelValue": e[30] || (e[30] = (m) => i.inputMetadata.show = m),
|
|
4583
4705
|
events: i.inputMetadata.events,
|
|
4584
4706
|
"time-zone": i.timeZone,
|
|
4585
4707
|
"new-metadata": "",
|
|
4586
4708
|
onClose: i.inputMetadata.callback
|
|
4587
|
-
}, null, 8, ["modelValue", "events", "time-zone", "onClose"])) :
|
|
4588
|
-
i.showOverrides ? (
|
|
4709
|
+
}, null, 8, ["modelValue", "events", "time-zone", "onClose"])) : U("", !0),
|
|
4710
|
+
i.showOverrides ? (S(), D(Ae, {
|
|
4589
4711
|
key: 9,
|
|
4590
4712
|
modelValue: i.showOverrides,
|
|
4591
|
-
"onUpdate:modelValue": e[
|
|
4592
|
-
}, null, 8, ["modelValue"])) :
|
|
4593
|
-
i.prompt.show ? (
|
|
4713
|
+
"onUpdate:modelValue": e[31] || (e[31] = (m) => i.showOverrides = m)
|
|
4714
|
+
}, null, 8, ["modelValue"])) : U("", !0),
|
|
4715
|
+
i.prompt.show ? (S(), D(he, {
|
|
4594
4716
|
key: 10,
|
|
4595
4717
|
modelValue: i.prompt.show,
|
|
4596
|
-
"onUpdate:modelValue": e[
|
|
4718
|
+
"onUpdate:modelValue": e[32] || (e[32] = (m) => i.prompt.show = m),
|
|
4597
4719
|
title: i.prompt.title,
|
|
4598
4720
|
subtitle: i.prompt.subtitle,
|
|
4599
4721
|
message: i.prompt.message,
|
|
@@ -4602,51 +4724,138 @@ function Zi(t, e, n, a, i, s) {
|
|
|
4602
4724
|
layout: i.prompt.layout,
|
|
4603
4725
|
multiple: i.prompt.multiple,
|
|
4604
4726
|
onResponse: i.prompt.callback
|
|
4605
|
-
}, null, 8, ["modelValue", "title", "subtitle", "message", "details", "buttons", "layout", "multiple", "onResponse"])) :
|
|
4606
|
-
i.results.show ? (
|
|
4727
|
+
}, null, 8, ["modelValue", "title", "subtitle", "message", "details", "buttons", "layout", "multiple", "onResponse"])) : U("", !0),
|
|
4728
|
+
i.results.show ? (S(), D(N, {
|
|
4607
4729
|
key: 11,
|
|
4608
4730
|
modelValue: i.results.show,
|
|
4609
|
-
"onUpdate:modelValue": e[
|
|
4731
|
+
"onUpdate:modelValue": e[33] || (e[33] = (m) => i.results.show = m),
|
|
4610
4732
|
text: i.results.text
|
|
4611
|
-
}, null, 8, ["modelValue", "text"])) :
|
|
4612
|
-
i.scriptEnvironment.show ? (
|
|
4733
|
+
}, null, 8, ["modelValue", "text"])) : U("", !0),
|
|
4734
|
+
i.scriptEnvironment.show ? (S(), D(Fe, {
|
|
4613
4735
|
key: 12,
|
|
4614
4736
|
modelValue: i.scriptEnvironment.show,
|
|
4615
|
-
"onUpdate:modelValue": e[
|
|
4737
|
+
"onUpdate:modelValue": e[34] || (e[34] = (m) => i.scriptEnvironment.show = m),
|
|
4616
4738
|
"input-environment": i.scriptEnvironment.env,
|
|
4617
|
-
onEnvironment:
|
|
4618
|
-
}, null, 8, ["modelValue", "input-environment", "onEnvironment"])) :
|
|
4619
|
-
|
|
4739
|
+
onEnvironment: o.environmentHandler
|
|
4740
|
+
}, null, 8, ["modelValue", "input-environment", "onEnvironment"])) : U("", !0),
|
|
4741
|
+
n(u, {
|
|
4620
4742
|
modelValue: i.showSuiteError,
|
|
4621
|
-
"onUpdate:modelValue": e[
|
|
4743
|
+
"onUpdate:modelValue": e[35] || (e[35] = (m) => i.showSuiteError = m),
|
|
4622
4744
|
title: "Suite Analysis Error",
|
|
4623
4745
|
text: i.suiteError,
|
|
4624
4746
|
width: 1e3
|
|
4625
4747
|
}, null, 8, ["modelValue", "text"]),
|
|
4626
|
-
|
|
4748
|
+
n(p, {
|
|
4627
4749
|
modelValue: i.displayCriticalCmd,
|
|
4628
|
-
"onUpdate:modelValue": e[
|
|
4750
|
+
"onUpdate:modelValue": e[36] || (e[36] = (m) => i.displayCriticalCmd = m),
|
|
4629
4751
|
uuid: i.criticalCmdUuid,
|
|
4630
4752
|
"cmd-string": i.criticalCmdString,
|
|
4631
4753
|
"cmd-user": i.criticalCmdUser,
|
|
4632
4754
|
persistent: !0,
|
|
4633
|
-
onStatus:
|
|
4755
|
+
onStatus: o.promptDialogCallback
|
|
4634
4756
|
}, null, 8, ["modelValue", "uuid", "cmd-string", "cmd-user", "onStatus"]),
|
|
4635
|
-
|
|
4757
|
+
n(C, {
|
|
4758
|
+
modelValue: i.commandEditor.show,
|
|
4759
|
+
"onUpdate:modelValue": e[40] || (e[40] = (m) => i.commandEditor.show = m),
|
|
4760
|
+
"max-width": "1200",
|
|
4761
|
+
persistent: "",
|
|
4762
|
+
scrollable: ""
|
|
4763
|
+
}, {
|
|
4764
|
+
default: l(() => [
|
|
4765
|
+
n(te, null, {
|
|
4766
|
+
default: l(() => [
|
|
4767
|
+
n(v, { class: "d-flex align-center" }, {
|
|
4768
|
+
default: l(() => [
|
|
4769
|
+
e[47] || (e[47] = x("span", null, "Insert Command", -1)),
|
|
4770
|
+
n(_),
|
|
4771
|
+
n(c, {
|
|
4772
|
+
icon: "mdi-close",
|
|
4773
|
+
variant: "text",
|
|
4774
|
+
onClick: o.closeCommandDialog
|
|
4775
|
+
}, null, 8, ["onClick"])
|
|
4776
|
+
]),
|
|
4777
|
+
_: 1
|
|
4778
|
+
}),
|
|
4779
|
+
n(Q, { class: "pa-0" }, {
|
|
4780
|
+
default: l(() => [
|
|
4781
|
+
i.commandEditor.dialogError ? (S(), P("div", Qi, [
|
|
4782
|
+
n(h, {
|
|
4783
|
+
class: "mr-2",
|
|
4784
|
+
color: "error"
|
|
4785
|
+
}, {
|
|
4786
|
+
default: l(() => [...e[48] || (e[48] = [
|
|
4787
|
+
y("mdi-alert-circle", -1)
|
|
4788
|
+
])]),
|
|
4789
|
+
_: 1
|
|
4790
|
+
}),
|
|
4791
|
+
x("span", $i, L(i.commandEditor.dialogError), 1),
|
|
4792
|
+
n(c, {
|
|
4793
|
+
icon: "mdi-close",
|
|
4794
|
+
size: "small",
|
|
4795
|
+
variant: "text",
|
|
4796
|
+
color: "error",
|
|
4797
|
+
onClick: e[37] || (e[37] = (m) => i.commandEditor.dialogError = null),
|
|
4798
|
+
class: "ml-2"
|
|
4799
|
+
})
|
|
4800
|
+
])) : U("", !0),
|
|
4801
|
+
n(f, {
|
|
4802
|
+
ref: "commandEditor",
|
|
4803
|
+
"initial-target-name": i.commandEditor.targetName,
|
|
4804
|
+
"initial-packet-name": i.commandEditor.packetName,
|
|
4805
|
+
"cmd-string": i.commandEditor.cmdString,
|
|
4806
|
+
"send-disabled": !1,
|
|
4807
|
+
"show-command-button": !1,
|
|
4808
|
+
onBuildCmd: e[38] || (e[38] = (m) => o.insertCommand(m))
|
|
4809
|
+
}, null, 8, ["initial-target-name", "initial-packet-name", "cmd-string"])
|
|
4810
|
+
]),
|
|
4811
|
+
_: 1
|
|
4812
|
+
}),
|
|
4813
|
+
n(g, null, {
|
|
4814
|
+
default: l(() => [
|
|
4815
|
+
n(_),
|
|
4816
|
+
n(c, {
|
|
4817
|
+
variant: "outlined",
|
|
4818
|
+
onClick: o.closeCommandDialog
|
|
4819
|
+
}, {
|
|
4820
|
+
default: l(() => [...e[49] || (e[49] = [
|
|
4821
|
+
y(" Cancel ", -1)
|
|
4822
|
+
])]),
|
|
4823
|
+
_: 1
|
|
4824
|
+
}, 8, ["onClick"]),
|
|
4825
|
+
n(c, {
|
|
4826
|
+
color: "primary",
|
|
4827
|
+
variant: "flat",
|
|
4828
|
+
onClick: e[39] || (e[39] = (m) => o.insertCommand())
|
|
4829
|
+
}, {
|
|
4830
|
+
default: l(() => [...e[50] || (e[50] = [
|
|
4831
|
+
y(" Insert Command ", -1)
|
|
4832
|
+
])]),
|
|
4833
|
+
_: 1
|
|
4834
|
+
})
|
|
4835
|
+
]),
|
|
4836
|
+
_: 1
|
|
4837
|
+
})
|
|
4838
|
+
]),
|
|
4839
|
+
_: 1
|
|
4840
|
+
})
|
|
4841
|
+
]),
|
|
4842
|
+
_: 1
|
|
4843
|
+
}, 8, ["modelValue"]),
|
|
4844
|
+
n(H, {
|
|
4636
4845
|
modelValue: i.showScripts,
|
|
4637
|
-
"onUpdate:modelValue": e[
|
|
4846
|
+
"onUpdate:modelValue": e[42] || (e[42] = (m) => i.showScripts = m)
|
|
4638
4847
|
}, {
|
|
4639
4848
|
default: l(() => [
|
|
4640
|
-
|
|
4849
|
+
n(A, { class: "pb-11 pt-5 px-5" }, {
|
|
4641
4850
|
default: l(() => [
|
|
4642
|
-
i.showScripts ? (
|
|
4851
|
+
i.showScripts ? (S(), D(M, {
|
|
4643
4852
|
key: 0,
|
|
4644
4853
|
"connect-in-new-tab": !!i.fileModified,
|
|
4645
|
-
onDisconnect:
|
|
4646
|
-
onClose: e[
|
|
4854
|
+
onDisconnect: o.scriptDisconnect,
|
|
4855
|
+
onClose: e[41] || (e[41] = () => {
|
|
4647
4856
|
i.showScripts = !1;
|
|
4648
4857
|
})
|
|
4649
|
-
}, null, 8, ["connect-in-new-tab", "onDisconnect"])) :
|
|
4858
|
+
}, null, 8, ["connect-in-new-tab", "onDisconnect"])) : U("", !0)
|
|
4650
4859
|
]),
|
|
4651
4860
|
_: 1
|
|
4652
4861
|
})
|
|
@@ -4655,11 +4864,11 @@ function Zi(t, e, n, a, i, s) {
|
|
|
4655
4864
|
}, 8, ["modelValue"])
|
|
4656
4865
|
], 64);
|
|
4657
4866
|
}
|
|
4658
|
-
const
|
|
4867
|
+
const bs = /* @__PURE__ */ j(zi, [["render", es], ["__scopeId", "data-v-25a2cdc5"]]);
|
|
4659
4868
|
export {
|
|
4660
|
-
|
|
4661
|
-
|
|
4662
|
-
|
|
4663
|
-
|
|
4869
|
+
Tt as RunningScripts,
|
|
4870
|
+
Ut as ScriptLogMessages,
|
|
4871
|
+
bs as ScriptRunner,
|
|
4872
|
+
xi as SuiteRunner
|
|
4664
4873
|
};
|
|
4665
4874
|
//# sourceMappingURL=scriptrunner.js.map
|