@openc3/vue-common 5.21.0-beta0 → 6.0.1
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/package.json +16 -16
- package/dist/ArrayWidget-ChaMDaRA.js +0 -105
- package/dist/ArrayWidget-ChaMDaRA.js.map +0 -1
- package/dist/ArrayWidget-x7le0X73.cjs +0 -3
- package/dist/ArrayWidget-x7le0X73.cjs.map +0 -1
- package/dist/AstroStatus-CILMWL6F.cjs +0 -2
- package/dist/AstroStatus-CILMWL6F.cjs.map +0 -1
- package/dist/AstroStatus-CY9VkeTN.js +0 -40
- package/dist/AstroStatus-CY9VkeTN.js.map +0 -1
- package/dist/BarColumn-CqXfFAQ9.js +0 -106
- package/dist/BarColumn-CqXfFAQ9.js.map +0 -1
- package/dist/BarColumn-Ct4izXqV.cjs +0 -2
- package/dist/BarColumn-Ct4izXqV.cjs.map +0 -1
- package/dist/BlockWidget-BPefRY_h.cjs +0 -3
- package/dist/BlockWidget-BPefRY_h.cjs.map +0 -1
- package/dist/BlockWidget-DjiPs6ID.js +0 -111
- package/dist/BlockWidget-DjiPs6ID.js.map +0 -1
- package/dist/ButtonWidget-Dd80CjGt.js +0 -165
- package/dist/ButtonWidget-Dd80CjGt.js.map +0 -1
- package/dist/ButtonWidget-SoiP15gH.cjs +0 -3
- package/dist/ButtonWidget-SoiP15gH.cjs.map +0 -1
- package/dist/CanvasWidget-ALHiDq5o.js +0 -39
- package/dist/CanvasWidget-ALHiDq5o.js.map +0 -1
- package/dist/CanvasWidget-JapjwSXd.cjs +0 -2
- package/dist/CanvasWidget-JapjwSXd.cjs.map +0 -1
- package/dist/CanvasdotWidget-BU42MGW6.cjs +0 -2
- package/dist/CanvasdotWidget-BU42MGW6.cjs.map +0 -1
- package/dist/CanvasdotWidget-JkDXGoHm.js +0 -19
- package/dist/CanvasdotWidget-JkDXGoHm.js.map +0 -1
- package/dist/CanvasimageWidget-CQ_ZlEFj.cjs +0 -2
- package/dist/CanvasimageWidget-CQ_ZlEFj.cjs.map +0 -1
- package/dist/CanvasimageWidget-CTXlEJgA.js +0 -58
- package/dist/CanvasimageWidget-CTXlEJgA.js.map +0 -1
- package/dist/CanvasimagevalueWidget-CihOXOHH.js +0 -107
- package/dist/CanvasimagevalueWidget-CihOXOHH.js.map +0 -1
- package/dist/CanvasimagevalueWidget-DKejEVKr.cjs +0 -2
- package/dist/CanvasimagevalueWidget-DKejEVKr.cjs.map +0 -1
- package/dist/CanvaslabelWidget-2uD1FRT0.js +0 -23
- package/dist/CanvaslabelWidget-2uD1FRT0.js.map +0 -1
- package/dist/CanvaslabelWidget-zKoAOaaE.cjs +0 -2
- package/dist/CanvaslabelWidget-zKoAOaaE.cjs.map +0 -1
- package/dist/CanvaslabelvalueWidget-BCd0ssW9.js +0 -42
- package/dist/CanvaslabelvalueWidget-BCd0ssW9.js.map +0 -1
- package/dist/CanvaslabelvalueWidget-ZnyvNaVM.cjs +0 -2
- package/dist/CanvaslabelvalueWidget-ZnyvNaVM.cjs.map +0 -1
- package/dist/CanvaslineWidget-BRFrT-9r.cjs +0 -2
- package/dist/CanvaslineWidget-BRFrT-9r.cjs.map +0 -1
- package/dist/CanvaslineWidget-Cc8vj_vu.js +0 -28
- package/dist/CanvaslineWidget-Cc8vj_vu.js.map +0 -1
- package/dist/CanvaslinevalueWidget-CJTmkXEr.js +0 -44
- package/dist/CanvaslinevalueWidget-CJTmkXEr.js.map +0 -1
- package/dist/CanvaslinevalueWidget-DgIU-2d6.cjs +0 -2
- package/dist/CanvaslinevalueWidget-DgIU-2d6.cjs.map +0 -1
- package/dist/CheckbuttonWidget-BrUBiJWn.cjs +0 -2
- package/dist/CheckbuttonWidget-BrUBiJWn.cjs.map +0 -1
- package/dist/CheckbuttonWidget-lZD4wLcB.js +0 -37
- package/dist/CheckbuttonWidget-lZD4wLcB.js.map +0 -1
- package/dist/ComboboxWidget-BUMleWlR.cjs +0 -2
- package/dist/ComboboxWidget-BUMleWlR.cjs.map +0 -1
- package/dist/ComboboxWidget-D-nVY2Zf.js +0 -37
- package/dist/ComboboxWidget-D-nVY2Zf.js.map +0 -1
- package/dist/CosmosRuxIcon.vue_vue_type_style_index_0_scoped_9af48e85_lang-BHFhmbuH.cjs +0 -2
- package/dist/CosmosRuxIcon.vue_vue_type_style_index_0_scoped_9af48e85_lang-BHFhmbuH.cjs.map +0 -1
- package/dist/CosmosRuxIcon.vue_vue_type_style_index_0_scoped_9af48e85_lang-CHgC5LLL.js +0 -10
- package/dist/CosmosRuxIcon.vue_vue_type_style_index_0_scoped_9af48e85_lang-CHgC5LLL.js.map +0 -1
- package/dist/CriticalCmdDialog-BvPQYRie.cjs +0 -2
- package/dist/CriticalCmdDialog-BvPQYRie.cjs.map +0 -1
- package/dist/CriticalCmdDialog-ChYR9_7n.js +0 -270
- package/dist/CriticalCmdDialog-ChYR9_7n.js.map +0 -1
- package/dist/DateWidget-3e2qqqxw.cjs +0 -2
- package/dist/DateWidget-3e2qqqxw.cjs.map +0 -1
- package/dist/DateWidget-Bs2NufYI.js +0 -40
- package/dist/DateWidget-Bs2NufYI.js.map +0 -1
- package/dist/DetailsDialog-8ixZ1oPd.cjs +0 -2
- package/dist/DetailsDialog-8ixZ1oPd.cjs.map +0 -1
- package/dist/DetailsDialog-ScKx0N2e.js +0 -767
- package/dist/DetailsDialog-ScKx0N2e.js.map +0 -1
- package/dist/DynamicWidget-3wHr6Ng-.cjs +0 -2
- package/dist/DynamicWidget-3wHr6Ng-.cjs.map +0 -1
- package/dist/DynamicWidget-m9EliUR2.js +0 -35
- package/dist/DynamicWidget-m9EliUR2.js.map +0 -1
- package/dist/FormatvalueWidget-DEj59HDj.js +0 -44
- package/dist/FormatvalueWidget-DEj59HDj.js.map +0 -1
- package/dist/FormatvalueWidget-DK0tTvcs.cjs +0 -2
- package/dist/FormatvalueWidget-DK0tTvcs.cjs.map +0 -1
- package/dist/Graph-D2frd7mZ.js +0 -1999
- package/dist/Graph-D2frd7mZ.js.map +0 -1
- package/dist/Graph-DFEMzAGq.cjs +0 -2
- package/dist/Graph-DFEMzAGq.cjs.map +0 -1
- package/dist/GraphWidget-CbyYREVa.cjs +0 -2
- package/dist/GraphWidget-CbyYREVa.cjs.map +0 -1
- package/dist/GraphWidget-CvlfqTgn.js +0 -129
- package/dist/GraphWidget-CvlfqTgn.js.map +0 -1
- package/dist/HorizontalWidget-BEOYwm8D.js +0 -41
- package/dist/HorizontalWidget-BEOYwm8D.js.map +0 -1
- package/dist/HorizontalWidget-xEd4ZLsc.cjs +0 -2
- package/dist/HorizontalWidget-xEd4ZLsc.cjs.map +0 -1
- package/dist/HorizontalboxWidget-C2wA9_HA.js +0 -38
- package/dist/HorizontalboxWidget-C2wA9_HA.js.map +0 -1
- package/dist/HorizontalboxWidget-xwLnkDXf.cjs +0 -2
- package/dist/HorizontalboxWidget-xwLnkDXf.cjs.map +0 -1
- package/dist/HorizontallineWidget-BCKOQase.cjs +0 -2
- package/dist/HorizontallineWidget-BCKOQase.cjs.map +0 -1
- package/dist/HorizontallineWidget-BdlNB951.js +0 -11
- package/dist/HorizontallineWidget-BdlNB951.js.map +0 -1
- package/dist/IframeWidget-C42hZbe_.cjs +0 -2
- package/dist/IframeWidget-C42hZbe_.cjs.map +0 -1
- package/dist/IframeWidget-qwGlLyoS.js +0 -29
- package/dist/IframeWidget-qwGlLyoS.js.map +0 -1
- package/dist/ImageLoader-BSTQyLlJ.cjs +0 -2
- package/dist/ImageLoader-BSTQyLlJ.cjs.map +0 -1
- package/dist/ImageLoader-CQAyutzR.js +0 -36
- package/dist/ImageLoader-CQAyutzR.js.map +0 -1
- package/dist/ImageviewerWidget-B0HJk4Tf.cjs +0 -2
- package/dist/ImageviewerWidget-B0HJk4Tf.cjs.map +0 -1
- package/dist/ImageviewerWidget-CDeYB2QG.js +0 -37
- package/dist/ImageviewerWidget-CDeYB2QG.js.map +0 -1
- package/dist/InterfacesTab-D-VIrHHf.js +0 -92
- package/dist/InterfacesTab-D-VIrHHf.js.map +0 -1
- package/dist/InterfacesTab-NTrgd1dN.cjs +0 -2
- package/dist/InterfacesTab-NTrgd1dN.cjs.map +0 -1
- package/dist/LabelWidget-B1-se7_B.cjs +0 -2
- package/dist/LabelWidget-B1-se7_B.cjs.map +0 -1
- package/dist/LabelWidget-C5_cj8pA.js +0 -48
- package/dist/LabelWidget-C5_cj8pA.js.map +0 -1
- package/dist/LabelledWidget-3aDkVYzF.cjs +0 -2
- package/dist/LabelledWidget-3aDkVYzF.cjs.map +0 -1
- package/dist/LabelledWidget-DWOPmkyP.js +0 -42
- package/dist/LabelledWidget-DWOPmkyP.js.map +0 -1
- package/dist/LabelprogressbarWidget-DFPXYOTH.js +0 -43
- package/dist/LabelprogressbarWidget-DFPXYOTH.js.map +0 -1
- package/dist/LabelprogressbarWidget-Dsiw-uBJ.cjs +0 -2
- package/dist/LabelprogressbarWidget-Dsiw-uBJ.cjs.map +0 -1
- package/dist/LabelsparklineWidget-DG_Q8WOZ.js +0 -44
- package/dist/LabelsparklineWidget-DG_Q8WOZ.js.map +0 -1
- package/dist/LabelsparklineWidget-w6pdf_eu.cjs +0 -2
- package/dist/LabelsparklineWidget-w6pdf_eu.cjs.map +0 -1
- package/dist/LabelvalueWidget-CRtYLZfm.cjs +0 -2
- package/dist/LabelvalueWidget-CRtYLZfm.cjs.map +0 -1
- package/dist/LabelvalueWidget-CxL0zxQr.js +0 -58
- package/dist/LabelvalueWidget-CxL0zxQr.js.map +0 -1
- package/dist/LabelvaluedescWidget-CF9py8m9.cjs +0 -2
- package/dist/LabelvaluedescWidget-CF9py8m9.cjs.map +0 -1
- package/dist/LabelvaluedescWidget-ClWPSOeN.js +0 -59
- package/dist/LabelvaluedescWidget-ClWPSOeN.js.map +0 -1
- package/dist/LabelvaluelimitsbarWidget-DFUH0HNe.cjs +0 -2
- package/dist/LabelvaluelimitsbarWidget-DFUH0HNe.cjs.map +0 -1
- package/dist/LabelvaluelimitsbarWidget-DUyZ7KXT.js +0 -55
- package/dist/LabelvaluelimitsbarWidget-DUyZ7KXT.js.map +0 -1
- package/dist/LabelvaluelimitscolumnWidget-DdCNjIEm.js +0 -45
- package/dist/LabelvaluelimitscolumnWidget-DdCNjIEm.js.map +0 -1
- package/dist/LabelvaluelimitscolumnWidget-k0hVnMUV.cjs +0 -2
- package/dist/LabelvaluelimitscolumnWidget-k0hVnMUV.cjs.map +0 -1
- package/dist/LabelvaluerangebarWidget-CRqMQa_x.cjs +0 -2
- package/dist/LabelvaluerangebarWidget-CRqMQa_x.cjs.map +0 -1
- package/dist/LabelvaluerangebarWidget-DGJv44i4.js +0 -79
- package/dist/LabelvaluerangebarWidget-DGJv44i4.js.map +0 -1
- package/dist/Layout-C1uMy2Sd.js +0 -14
- package/dist/Layout-C1uMy2Sd.js.map +0 -1
- package/dist/Layout-C2VWUn33.cjs +0 -2
- package/dist/Layout-C2VWUn33.cjs.map +0 -1
- package/dist/LedWidget-C8LEesIO.js +0 -69
- package/dist/LedWidget-C8LEesIO.js.map +0 -1
- package/dist/LedWidget-tnHC12fA.cjs +0 -2
- package/dist/LedWidget-tnHC12fA.cjs.map +0 -1
- package/dist/LimitsbarWidget-DSJvR91d.cjs +0 -2
- package/dist/LimitsbarWidget-DSJvR91d.cjs.map +0 -1
- package/dist/LimitsbarWidget-DV94AaXX.js +0 -52
- package/dist/LimitsbarWidget-DV94AaXX.js.map +0 -1
- package/dist/LimitscolorWidget-BWfffXvj.cjs +0 -2
- package/dist/LimitscolorWidget-BWfffXvj.cjs.map +0 -1
- package/dist/LimitscolorWidget-DT_WG8Jb.js +0 -59
- package/dist/LimitscolorWidget-DT_WG8Jb.js.map +0 -1
- package/dist/LimitscolumnWidget-Ci2DqqsC.cjs +0 -2
- package/dist/LimitscolumnWidget-Ci2DqqsC.cjs.map +0 -1
- package/dist/LimitscolumnWidget-yGBCsGuc.js +0 -49
- package/dist/LimitscolumnWidget-yGBCsGuc.js.map +0 -1
- package/dist/LinegraphWidget-BG43_kkA.js +0 -38
- package/dist/LinegraphWidget-BG43_kkA.js.map +0 -1
- package/dist/LinegraphWidget-ByTUdpDj.cjs +0 -2
- package/dist/LinegraphWidget-ByTUdpDj.cjs.map +0 -1
- package/dist/MatrixbycolumnsWidget-Cfp2S5QC.js +0 -56
- package/dist/MatrixbycolumnsWidget-Cfp2S5QC.js.map +0 -1
- package/dist/MatrixbycolumnsWidget-GHZ6cCcr.cjs +0 -2
- package/dist/MatrixbycolumnsWidget-GHZ6cCcr.cjs.map +0 -1
- package/dist/MicroservicesTab-BuIftbHc.js +0 -159
- package/dist/MicroservicesTab-BuIftbHc.js.map +0 -1
- package/dist/MicroservicesTab-CdCozCVI.cjs +0 -2
- package/dist/MicroservicesTab-CdCozCVI.cjs.map +0 -1
- package/dist/OutputDialog-CjFsDUYh.js +0 -244
- package/dist/OutputDialog-CjFsDUYh.js.map +0 -1
- package/dist/OutputDialog-Dkn9Fli9.cjs +0 -2
- package/dist/OutputDialog-Dkn9Fli9.cjs.map +0 -1
- package/dist/PackagesTab-BwTViRcm.js +0 -339
- package/dist/PackagesTab-BwTViRcm.js.map +0 -1
- package/dist/PackagesTab-DPaJ_JbE.cjs +0 -2
- package/dist/PackagesTab-DPaJ_JbE.cjs.map +0 -1
- package/dist/PluginsTab-C7GizpA1.cjs +0 -6
- package/dist/PluginsTab-C7GizpA1.cjs.map +0 -1
- package/dist/PluginsTab-fld_-DT-.js +0 -598
- package/dist/PluginsTab-fld_-DT-.js.map +0 -1
- package/dist/ProgressbarWidget-BSPuQNU_.js +0 -46
- package/dist/ProgressbarWidget-BSPuQNU_.js.map +0 -1
- package/dist/ProgressbarWidget-D1wbbnow.cjs +0 -2
- package/dist/ProgressbarWidget-D1wbbnow.cjs.map +0 -1
- package/dist/RadiobuttonWidget-B4rrjT9j.js +0 -34
- package/dist/RadiobuttonWidget-B4rrjT9j.js.map +0 -1
- package/dist/RadiobuttonWidget-Bhcj3WY5.cjs +0 -2
- package/dist/RadiobuttonWidget-Bhcj3WY5.cjs.map +0 -1
- package/dist/RadiogroupWidget-CQrEv3Qs.cjs +0 -2
- package/dist/RadiogroupWidget-CQrEv3Qs.cjs.map +0 -1
- package/dist/RadiogroupWidget-VncDKxiZ.js +0 -48
- package/dist/RadiogroupWidget-VncDKxiZ.js.map +0 -1
- package/dist/RangebarWidget-Btu0oj_O.js +0 -67
- package/dist/RangebarWidget-Btu0oj_O.js.map +0 -1
- package/dist/RangebarWidget-CKmh0GEh.cjs +0 -2
- package/dist/RangebarWidget-CKmh0GEh.cjs.map +0 -1
- package/dist/RedisTab-BPFEQDx-.js +0 -135
- package/dist/RedisTab-BPFEQDx-.js.map +0 -1
- package/dist/RedisTab-DpbDcxH5.cjs +0 -2
- package/dist/RedisTab-DpbDcxH5.cjs.map +0 -1
- package/dist/RollupWidget-Bh-Gpi5l.cjs +0 -2
- package/dist/RollupWidget-Bh-Gpi5l.cjs.map +0 -1
- package/dist/RollupWidget-CIp8Akqq.js +0 -81
- package/dist/RollupWidget-CIp8Akqq.js.map +0 -1
- package/dist/RoutersTab-CTpmfcgq.js +0 -94
- package/dist/RoutersTab-CTpmfcgq.js.map +0 -1
- package/dist/RoutersTab-DLQ-_xsb.cjs +0 -2
- package/dist/RoutersTab-DLQ-_xsb.cjs.map +0 -1
- package/dist/ScriptChooser-Cku5i9C6.cjs +0 -2
- package/dist/ScriptChooser-Cku5i9C6.cjs.map +0 -1
- package/dist/ScriptChooser-Cx985GFr.js +0 -199
- package/dist/ScriptChooser-Cx985GFr.js.map +0 -1
- package/dist/ScrollwindowWidget-BIYEL78X.js +0 -45
- package/dist/ScrollwindowWidget-BIYEL78X.js.map +0 -1
- package/dist/ScrollwindowWidget-DWBLVHz1.cjs +0 -2
- package/dist/ScrollwindowWidget-DWBLVHz1.cjs.map +0 -1
- package/dist/SecretsTab-CV5WYD3N.cjs +0 -2
- package/dist/SecretsTab-CV5WYD3N.cjs.map +0 -1
- package/dist/SecretsTab-DfBaqZw2.js +0 -202
- package/dist/SecretsTab-DfBaqZw2.js.map +0 -1
- package/dist/SettingsTab-B1DNmvM5.js +0 -1282
- package/dist/SettingsTab-B1DNmvM5.js.map +0 -1
- package/dist/SettingsTab-BKD5vVwv.cjs +0 -2
- package/dist/SettingsTab-BKD5vVwv.cjs.map +0 -1
- package/dist/SignalWidget-f_2K-phy.js +0 -61
- package/dist/SignalWidget-f_2K-phy.js.map +0 -1
- package/dist/SignalWidget-vsx411XW.cjs +0 -2
- package/dist/SignalWidget-vsx411XW.cjs.map +0 -1
- package/dist/SimpleTextDialog-BLlux8b4.js +0 -108
- package/dist/SimpleTextDialog-BLlux8b4.js.map +0 -1
- package/dist/SimpleTextDialog-D2R3WQXD.cjs +0 -2
- package/dist/SimpleTextDialog-D2R3WQXD.cjs.map +0 -1
- package/dist/SpacerWidget-DGo6ZjYn.cjs +0 -2
- package/dist/SpacerWidget-DGo6ZjYn.cjs.map +0 -1
- package/dist/SpacerWidget-YhsM7srQ.js +0 -19
- package/dist/SpacerWidget-YhsM7srQ.js.map +0 -1
- package/dist/SparklineWidget-Bkx8nwqY.cjs +0 -2
- package/dist/SparklineWidget-Bkx8nwqY.cjs.map +0 -1
- package/dist/SparklineWidget-CuGChXzf.js +0 -47
- package/dist/SparklineWidget-CuGChXzf.js.map +0 -1
- package/dist/TabbookWidget-BlDW3n54.js +0 -66
- package/dist/TabbookWidget-BlDW3n54.js.map +0 -1
- package/dist/TabbookWidget-CDUj7RHp.cjs +0 -2
- package/dist/TabbookWidget-CDUj7RHp.cjs.map +0 -1
- package/dist/TargetsTab-B2Jw5Kec.js +0 -128
- package/dist/TargetsTab-B2Jw5Kec.js.map +0 -1
- package/dist/TargetsTab-fON6-iJc.cjs +0 -2
- package/dist/TargetsTab-fON6-iJc.cjs.map +0 -1
- package/dist/TextBoxDialog-CZ3h4LP-.js +0 -110
- package/dist/TextBoxDialog-CZ3h4LP-.js.map +0 -1
- package/dist/TextBoxDialog-DvUf3Cak.cjs +0 -2
- package/dist/TextBoxDialog-DvUf3Cak.cjs.map +0 -1
- package/dist/TextboxWidget-CWXCNL8K.js +0 -92
- package/dist/TextboxWidget-CWXCNL8K.js.map +0 -1
- package/dist/TextboxWidget-LhNzbjQI.cjs +0 -2
- package/dist/TextboxWidget-LhNzbjQI.cjs.map +0 -1
- package/dist/TextfieldWidget-AbalSObh.cjs +0 -2
- package/dist/TextfieldWidget-AbalSObh.cjs.map +0 -1
- package/dist/TextfieldWidget-CRVUO3wk.js +0 -37
- package/dist/TextfieldWidget-CRVUO3wk.js.map +0 -1
- package/dist/TimeWidget-BUMtokM-.cjs +0 -2
- package/dist/TimeWidget-BUMtokM-.cjs.map +0 -1
- package/dist/TimeWidget-CDo0yWlB.js +0 -40
- package/dist/TimeWidget-CDo0yWlB.js.map +0 -1
- package/dist/TitleWidget-Cvjndegg.js +0 -26
- package/dist/TitleWidget-Cvjndegg.js.map +0 -1
- package/dist/TitleWidget-DWieiIfq.cjs +0 -2
- package/dist/TitleWidget-DWieiIfq.cjs.map +0 -1
- package/dist/ToolsTab-Bu4syVrX.js +0 -1519
- package/dist/ToolsTab-Bu4syVrX.js.map +0 -1
- package/dist/ToolsTab-rS3KG7M5.cjs +0 -7
- package/dist/ToolsTab-rS3KG7M5.cjs.map +0 -1
- package/dist/TopBar-B1dOQ1W9.js +0 -253
- package/dist/TopBar-B1dOQ1W9.js.map +0 -1
- package/dist/TopBar-_j4ndwSi.cjs +0 -2
- package/dist/TopBar-_j4ndwSi.cjs.map +0 -1
- package/dist/UpgradeToEnterpriseDialog--cLHsvir.cjs +0 -2
- package/dist/UpgradeToEnterpriseDialog--cLHsvir.cjs.map +0 -1
- package/dist/UpgradeToEnterpriseDialog-CY9g4hzD.js +0 -95
- package/dist/UpgradeToEnterpriseDialog-CY9g4hzD.js.map +0 -1
- package/dist/UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_6fa47877_lang-BrapmXxi.js +0 -25215
- package/dist/UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_6fa47877_lang-BrapmXxi.js.map +0 -1
- package/dist/UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_6fa47877_lang-DdL5xG80.cjs +0 -1416
- package/dist/UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_6fa47877_lang-DdL5xG80.cjs.map +0 -1
- package/dist/VWidget-BRkvqAVS.cjs +0 -2
- package/dist/VWidget-BRkvqAVS.cjs.map +0 -1
- package/dist/VWidget-D9Wk0N9r.js +0 -323
- package/dist/VWidget-D9Wk0N9r.js.map +0 -1
- package/dist/ValueWidget-D3EJcN4C.js +0 -115
- package/dist/ValueWidget-D3EJcN4C.js.map +0 -1
- package/dist/ValueWidget-DxY7IZvc.cjs +0 -2
- package/dist/ValueWidget-DxY7IZvc.cjs.map +0 -1
- package/dist/ValuelimitsbarWidget-C5revcun.js +0 -39
- package/dist/ValuelimitsbarWidget-C5revcun.js.map +0 -1
- package/dist/ValuelimitsbarWidget-Dk6L7fl3.cjs +0 -2
- package/dist/ValuelimitsbarWidget-Dk6L7fl3.cjs.map +0 -1
- package/dist/ValuelimitscolumnWidget-BBEGOlON.js +0 -38
- package/dist/ValuelimitscolumnWidget-BBEGOlON.js.map +0 -1
- package/dist/ValuelimitscolumnWidget-YD_Xd3tD.cjs +0 -2
- package/dist/ValuelimitscolumnWidget-YD_Xd3tD.cjs.map +0 -1
- package/dist/ValuerangebarWidget-BtoenJky.cjs +0 -2
- package/dist/ValuerangebarWidget-BtoenJky.cjs.map +0 -1
- package/dist/ValuerangebarWidget-D70Xk8rM.js +0 -65
- package/dist/ValuerangebarWidget-D70Xk8rM.js.map +0 -1
- package/dist/VerticalWidget-Dw11Ey1R.cjs +0 -2
- package/dist/VerticalWidget-Dw11Ey1R.cjs.map +0 -1
- package/dist/VerticalWidget-RIOu-NI3.js +0 -41
- package/dist/VerticalWidget-RIOu-NI3.js.map +0 -1
- package/dist/VerticalboxWidget-BUjeAxtO.js +0 -37
- package/dist/VerticalboxWidget-BUjeAxtO.js.map +0 -1
- package/dist/VerticalboxWidget-DT-OCuyc.cjs +0 -2
- package/dist/VerticalboxWidget-DT-OCuyc.cjs.map +0 -1
- package/dist/Widget-C-EiCtmV.cjs +0 -2
- package/dist/Widget-C-EiCtmV.cjs.map +0 -1
- package/dist/Widget-C5V53T-a.js +0 -197
- package/dist/Widget-C5V53T-a.js.map +0 -1
- package/dist/addMonths-Be4oiWXO.js +0 -19
- package/dist/addMonths-Be4oiWXO.js.map +0 -1
- package/dist/addMonths-foItT0GW.cjs +0 -2
- package/dist/addMonths-foItT0GW.cjs.map +0 -1
- package/dist/axios-CXDYiOMX.js +0 -1705
- package/dist/axios-CXDYiOMX.js.map +0 -1
- package/dist/axios-tuVKNgv9.cjs +0 -7
- package/dist/axios-tuVKNgv9.cjs.map +0 -1
- package/dist/components.cjs +0 -7
- package/dist/components.cjs.map +0 -1
- package/dist/components.js +0 -2936
- package/dist/components.js.map +0 -1
- package/dist/fileIcon-BduOQcTc.cjs +0 -2
- package/dist/fileIcon-BduOQcTc.cjs.map +0 -1
- package/dist/fileIcon-DqRHb1_Z.js +0 -22
- package/dist/fileIcon-DqRHb1_Z.js.map +0 -1
- package/dist/format-BDZ4AOJt.cjs +0 -2
- package/dist/format-BDZ4AOJt.cjs.map +0 -1
- package/dist/format-Da42caYw.js +0 -1229
- package/dist/format-Da42caYw.js.map +0 -1
- package/dist/icons/status-dark.png +0 -0
- package/dist/icons/status-dark.xcf +0 -0
- package/dist/icons/status-light.png +0 -0
- package/dist/icons.cjs +0 -2
- package/dist/icons.cjs.map +0 -1
- package/dist/icons.js +0 -157
- package/dist/icons.js.map +0 -1
- package/dist/parse-BO9ihK1v.cjs +0 -2
- package/dist/parse-BO9ihK1v.cjs.map +0 -1
- package/dist/parse-dDr1Btat.js +0 -1556
- package/dist/parse-dDr1Btat.js.map +0 -1
- package/dist/plugins.cjs +0 -9
- package/dist/plugins.cjs.map +0 -1
- package/dist/plugins.js +0 -771
- package/dist/plugins.js.map +0 -1
- package/dist/style.css +0 -1
- package/dist/timeFilters-CN3Tdo2Z.js +0 -607
- package/dist/timeFilters-CN3Tdo2Z.js.map +0 -1
- package/dist/timeFilters-DwWhNG4a.cjs +0 -2
- package/dist/timeFilters-DwWhNG4a.cjs.map +0 -1
- package/dist/tools/admin.cjs +0 -13
- package/dist/tools/admin.cjs.map +0 -1
- package/dist/tools/admin.js +0 -1909
- package/dist/tools/admin.js.map +0 -1
- package/dist/tools/base.cjs +0 -2
- package/dist/tools/base.cjs.map +0 -1
- package/dist/tools/base.js +0 -1580
- package/dist/tools/base.js.map +0 -1
- package/dist/tools/calendar.cjs +0 -2
- package/dist/tools/calendar.cjs.map +0 -1
- package/dist/tools/calendar.js +0 -1591
- package/dist/tools/calendar.js.map +0 -1
- package/dist/util.cjs +0 -2
- package/dist/util.cjs.map +0 -1
- package/dist/util.js +0 -9
- package/dist/util.js.map +0 -1
- package/dist/widgets.cjs +0 -2
- package/dist/widgets.cjs.map +0 -1
- package/dist/widgets.js +0 -130
- package/dist/widgets.js.map +0 -1
package/dist/Graph-D2frd7mZ.js
DELETED
|
@@ -1,1999 +0,0 @@
|
|
|
1
|
-
import { T as K } from "./timeFilters-CN3Tdo2Z.js";
|
|
2
|
-
import { resolveComponent as m, openBlock as y, createBlock as T, withKeys as X, withCtx as n, createVNode as i, createElementVNode as b, createTextVNode as h, createElementBlock as R, Fragment as F, renderList as j, mergeProps as x, toDisplayString as E, createCommentVNode as S, withDirectives as C, normalizeClass as J, vShow as M, normalizeProps as Q, guardReactiveProps as $ } from "vue";
|
|
3
|
-
import { i as ee, g as te, r as ie, u as I } from "./UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_6fa47877_lang-BrapmXxi.js";
|
|
4
|
-
import { _ as W } from "./CosmosRuxIcon.vue_vue_type_style_index_0_scoped_9af48e85_lang-CHgC5LLL.js";
|
|
5
|
-
import { i as q, t as Z } from "./format-Da42caYw.js";
|
|
6
|
-
import { p as B } from "./parse-dDr1Btat.js";
|
|
7
|
-
const se = {
|
|
8
|
-
props: {
|
|
9
|
-
modelValue: Boolean,
|
|
10
|
-
// modelValue is the default prop when using v-model
|
|
11
|
-
title: {
|
|
12
|
-
type: String,
|
|
13
|
-
required: !0
|
|
14
|
-
},
|
|
15
|
-
legendPosition: {
|
|
16
|
-
type: String,
|
|
17
|
-
required: !0
|
|
18
|
-
},
|
|
19
|
-
items: {
|
|
20
|
-
type: Array,
|
|
21
|
-
required: !0
|
|
22
|
-
},
|
|
23
|
-
graphMinY: {
|
|
24
|
-
type: Number
|
|
25
|
-
},
|
|
26
|
-
graphMaxY: {
|
|
27
|
-
type: Number
|
|
28
|
-
},
|
|
29
|
-
lines: {
|
|
30
|
-
type: Array,
|
|
31
|
-
required: !0
|
|
32
|
-
},
|
|
33
|
-
colors: {
|
|
34
|
-
type: Array,
|
|
35
|
-
required: !0
|
|
36
|
-
},
|
|
37
|
-
startDateTime: {
|
|
38
|
-
type: Number
|
|
39
|
-
},
|
|
40
|
-
endDateTime: {
|
|
41
|
-
type: Number
|
|
42
|
-
},
|
|
43
|
-
timeZone: {
|
|
44
|
-
type: String,
|
|
45
|
-
required: !0
|
|
46
|
-
}
|
|
47
|
-
},
|
|
48
|
-
mixins: [K],
|
|
49
|
-
data: function() {
|
|
50
|
-
return {
|
|
51
|
-
tab: 0,
|
|
52
|
-
graph: {},
|
|
53
|
-
legendPositions: ["top", "bottom", "left", "right"],
|
|
54
|
-
startDate: null,
|
|
55
|
-
startTime: null,
|
|
56
|
-
endDate: null,
|
|
57
|
-
endTime: null,
|
|
58
|
-
lineHeaders: [
|
|
59
|
-
{ title: "Y Value", value: "yValue" },
|
|
60
|
-
{ title: "Color", value: "color" },
|
|
61
|
-
{ title: "Actions", value: "actions", sortable: !1 }
|
|
62
|
-
],
|
|
63
|
-
itemHeaders: [
|
|
64
|
-
{ title: "Target Name", value: "targetName" },
|
|
65
|
-
{ title: "Packet Name", value: "packetName" },
|
|
66
|
-
{ title: "Item Name", value: "itemName" },
|
|
67
|
-
{ title: "Actions", value: "actions", sortable: !1 }
|
|
68
|
-
],
|
|
69
|
-
rules: {
|
|
70
|
-
date: (t) => {
|
|
71
|
-
if (!t) return !0;
|
|
72
|
-
try {
|
|
73
|
-
return q(B(t, "yyyy-MM-dd", /* @__PURE__ */ new Date())) || "Invalid date (YYYY-MM-DD)";
|
|
74
|
-
} catch {
|
|
75
|
-
return "Invalid date (YYYY-MM-DD)";
|
|
76
|
-
}
|
|
77
|
-
},
|
|
78
|
-
time: (t) => {
|
|
79
|
-
if (!t) return !0;
|
|
80
|
-
try {
|
|
81
|
-
return q(B(t, "HH:mm:ss", /* @__PURE__ */ new Date())) || "Invalid time (HH:MM:SS)";
|
|
82
|
-
} catch {
|
|
83
|
-
return "Invalid time (HH:MM:SS)";
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
};
|
|
88
|
-
},
|
|
89
|
-
computed: {
|
|
90
|
-
show: {
|
|
91
|
-
get() {
|
|
92
|
-
return this.modelValue;
|
|
93
|
-
},
|
|
94
|
-
set(t) {
|
|
95
|
-
this.$emit("update:modelValue", t);
|
|
96
|
-
}
|
|
97
|
-
},
|
|
98
|
-
editItems: function() {
|
|
99
|
-
if (!this.items) return [];
|
|
100
|
-
let t = 0;
|
|
101
|
-
return this.items.map((e) => (t += 1, { ...e, itemId: t }));
|
|
102
|
-
}
|
|
103
|
-
},
|
|
104
|
-
created() {
|
|
105
|
-
if (this.graph = {
|
|
106
|
-
title: this.title,
|
|
107
|
-
legendPosition: this.legendPosition,
|
|
108
|
-
items: this.items,
|
|
109
|
-
graphMinY: this.graphMinY,
|
|
110
|
-
graphMaxY: this.graphMaxY,
|
|
111
|
-
lines: [...this.lines]
|
|
112
|
-
}, this.startDateTime) {
|
|
113
|
-
let t = Z(this.startDateTime / 1e6);
|
|
114
|
-
this.startDate = this.formatDate(t, this.timeZone), this.startTime = this.formatTimeHMS(t, this.timeZone);
|
|
115
|
-
} else {
|
|
116
|
-
let t = /* @__PURE__ */ new Date() - 36e5;
|
|
117
|
-
this.startDate = this.formatDate(t, this.timeZone), this.startTime = this.formatTimeHMS(t, this.timeZone);
|
|
118
|
-
}
|
|
119
|
-
if (this.endDateTime) {
|
|
120
|
-
let t = Z(this.endDateTime / 1e6);
|
|
121
|
-
this.endDate = this.formatDate(t, this.timeZone), this.endTime = this.formatTimeHMS(t, this.timeZone);
|
|
122
|
-
}
|
|
123
|
-
},
|
|
124
|
-
methods: {
|
|
125
|
-
closeOk() {
|
|
126
|
-
this.startDate && this.startTime ? this.graph.startDateTime = this.startDate + " " + this.startTime : this.graph.startDateTime = null, this.endDate && this.endTime ? this.graph.endDateTime = this.endDate + " " + this.endTime : this.graph.endDateTime = null, this.$emit("ok", this.graph);
|
|
127
|
-
},
|
|
128
|
-
addLine() {
|
|
129
|
-
this.graph.lines.push({ yValue: 0, color: "white" });
|
|
130
|
-
},
|
|
131
|
-
removeLine(t) {
|
|
132
|
-
let e = this.graph.lines.indexOf(t);
|
|
133
|
-
this.graph.lines.splice(e, 1);
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
}, le = { class: "edit-box" }, ne = { class: "edit-box" }, ae = { class: "edit-box" }, oe = { class: "edit-box" };
|
|
137
|
-
function re(t, e, s, o, l, a) {
|
|
138
|
-
const d = m("v-spacer"), r = m("v-toolbar"), p = m("v-tab"), f = m("v-tabs"), v = m("v-text-field"), D = m("v-card-text"), w = m("v-col"), _ = m("v-select"), g = m("v-row"), Y = m("v-tabs-window-item"), O = m("v-btn"), U = m("v-list-item"), k = m("v-icon"), V = m("v-tooltip"), G = m("v-list"), L = m("v-data-table"), P = m("v-tabs-window"), H = m("v-card-actions"), u = m("v-card"), z = m("v-dialog");
|
|
139
|
-
return y(), T(z, {
|
|
140
|
-
modelValue: a.show,
|
|
141
|
-
"onUpdate:modelValue": e[12] || (e[12] = (c) => a.show = c),
|
|
142
|
-
onKeydown: e[13] || (e[13] = X((c) => t.$emit("cancel"), ["esc"])),
|
|
143
|
-
"max-width": "700"
|
|
144
|
-
}, {
|
|
145
|
-
default: n(() => [
|
|
146
|
-
i(r, { height: "24" }, {
|
|
147
|
-
default: n(() => [
|
|
148
|
-
i(d),
|
|
149
|
-
e[14] || (e[14] = b("span", null, " Edit Graph ", -1)),
|
|
150
|
-
i(d)
|
|
151
|
-
]),
|
|
152
|
-
_: 1
|
|
153
|
-
}),
|
|
154
|
-
i(u, { class: "pa-3" }, {
|
|
155
|
-
default: n(() => [
|
|
156
|
-
i(f, {
|
|
157
|
-
modelValue: t.tab,
|
|
158
|
-
"onUpdate:modelValue": e[0] || (e[0] = (c) => t.tab = c),
|
|
159
|
-
class: "ml-3"
|
|
160
|
-
}, {
|
|
161
|
-
default: n(() => [
|
|
162
|
-
i(p, { value: "0" }, {
|
|
163
|
-
default: n(() => e[15] || (e[15] = [
|
|
164
|
-
h(" Settings ")
|
|
165
|
-
])),
|
|
166
|
-
_: 1
|
|
167
|
-
}),
|
|
168
|
-
i(p, { value: "1" }, {
|
|
169
|
-
default: n(() => e[16] || (e[16] = [
|
|
170
|
-
h(" Scale / Lines ")
|
|
171
|
-
])),
|
|
172
|
-
_: 1
|
|
173
|
-
}),
|
|
174
|
-
i(p, { value: "2" }, {
|
|
175
|
-
default: n(() => e[17] || (e[17] = [
|
|
176
|
-
h(" Items ")
|
|
177
|
-
])),
|
|
178
|
-
_: 1
|
|
179
|
-
})
|
|
180
|
-
]),
|
|
181
|
-
_: 1
|
|
182
|
-
}, 8, ["modelValue"]),
|
|
183
|
-
i(P, {
|
|
184
|
-
modelValue: t.tab,
|
|
185
|
-
"onUpdate:modelValue": e[10] || (e[10] = (c) => t.tab = c)
|
|
186
|
-
}, {
|
|
187
|
-
default: n(() => [
|
|
188
|
-
i(Y, {
|
|
189
|
-
value: "0",
|
|
190
|
-
eager: ""
|
|
191
|
-
}, {
|
|
192
|
-
default: n(() => [
|
|
193
|
-
b("div", le, [
|
|
194
|
-
i(g, null, {
|
|
195
|
-
default: n(() => [
|
|
196
|
-
i(w, null, {
|
|
197
|
-
default: n(() => [
|
|
198
|
-
i(D, { class: "pa-0" }, {
|
|
199
|
-
default: n(() => [
|
|
200
|
-
i(v, {
|
|
201
|
-
class: "pb-2",
|
|
202
|
-
label: "Title",
|
|
203
|
-
modelValue: t.graph.title,
|
|
204
|
-
"onUpdate:modelValue": e[1] || (e[1] = (c) => t.graph.title = c),
|
|
205
|
-
"hide-details": ""
|
|
206
|
-
}, null, 8, ["modelValue"])
|
|
207
|
-
]),
|
|
208
|
-
_: 1
|
|
209
|
-
})
|
|
210
|
-
]),
|
|
211
|
-
_: 1
|
|
212
|
-
}),
|
|
213
|
-
i(w, null, {
|
|
214
|
-
default: n(() => [
|
|
215
|
-
i(_, {
|
|
216
|
-
label: "Legend Position",
|
|
217
|
-
"hide-details": "",
|
|
218
|
-
items: t.legendPositions,
|
|
219
|
-
modelValue: t.graph.legendPosition,
|
|
220
|
-
"onUpdate:modelValue": e[2] || (e[2] = (c) => t.graph.legendPosition = c),
|
|
221
|
-
style: { "max-width": "280px" }
|
|
222
|
-
}, null, 8, ["items", "modelValue"])
|
|
223
|
-
]),
|
|
224
|
-
_: 1
|
|
225
|
-
})
|
|
226
|
-
]),
|
|
227
|
-
_: 1
|
|
228
|
-
})
|
|
229
|
-
]),
|
|
230
|
-
b("div", ne, [
|
|
231
|
-
i(D, { class: "pa-0" }, {
|
|
232
|
-
default: n(() => e[18] || (e[18] = [
|
|
233
|
-
h(" Select a start date/time for the graph. Leave blank for start now. ")
|
|
234
|
-
])),
|
|
235
|
-
_: 1
|
|
236
|
-
}),
|
|
237
|
-
i(g, null, {
|
|
238
|
-
default: n(() => [
|
|
239
|
-
i(w, null, {
|
|
240
|
-
default: n(() => [
|
|
241
|
-
i(v, {
|
|
242
|
-
label: "Start Date",
|
|
243
|
-
name: `date${Date.now()}`,
|
|
244
|
-
rules: [t.rules.date],
|
|
245
|
-
modelValue: t.startDate,
|
|
246
|
-
"onUpdate:modelValue": e[3] || (e[3] = (c) => t.startDate = c),
|
|
247
|
-
type: "date"
|
|
248
|
-
}, null, 8, ["name", "rules", "modelValue"])
|
|
249
|
-
]),
|
|
250
|
-
_: 1
|
|
251
|
-
}),
|
|
252
|
-
i(w, null, {
|
|
253
|
-
default: n(() => [
|
|
254
|
-
i(v, {
|
|
255
|
-
label: "Start Time",
|
|
256
|
-
name: `time${Date.now()}`,
|
|
257
|
-
rules: [t.rules.time],
|
|
258
|
-
modelValue: t.startTime,
|
|
259
|
-
"onUpdate:modelValue": e[4] || (e[4] = (c) => t.startTime = c),
|
|
260
|
-
type: "time",
|
|
261
|
-
step: "1"
|
|
262
|
-
}, null, 8, ["name", "rules", "modelValue"])
|
|
263
|
-
]),
|
|
264
|
-
_: 1
|
|
265
|
-
})
|
|
266
|
-
]),
|
|
267
|
-
_: 1
|
|
268
|
-
}),
|
|
269
|
-
i(D, { class: "pa-0" }, {
|
|
270
|
-
default: n(() => e[19] || (e[19] = [
|
|
271
|
-
h(" Select a end date/time for the graph. Leave blank for continuous real-time graphing. ")
|
|
272
|
-
])),
|
|
273
|
-
_: 1
|
|
274
|
-
}),
|
|
275
|
-
i(g, null, {
|
|
276
|
-
default: n(() => [
|
|
277
|
-
i(w, null, {
|
|
278
|
-
default: n(() => [
|
|
279
|
-
i(v, {
|
|
280
|
-
label: "End Date",
|
|
281
|
-
name: `date${Date.now()}`,
|
|
282
|
-
rules: [t.rules.date],
|
|
283
|
-
modelValue: t.endDate,
|
|
284
|
-
"onUpdate:modelValue": e[5] || (e[5] = (c) => t.endDate = c),
|
|
285
|
-
type: "date"
|
|
286
|
-
}, null, 8, ["name", "rules", "modelValue"])
|
|
287
|
-
]),
|
|
288
|
-
_: 1
|
|
289
|
-
}),
|
|
290
|
-
i(w, null, {
|
|
291
|
-
default: n(() => [
|
|
292
|
-
i(v, {
|
|
293
|
-
label: "End Time",
|
|
294
|
-
name: `time${Date.now()}`,
|
|
295
|
-
rules: [t.rules.time],
|
|
296
|
-
modelValue: t.endTime,
|
|
297
|
-
"onUpdate:modelValue": e[6] || (e[6] = (c) => t.endTime = c),
|
|
298
|
-
type: "time",
|
|
299
|
-
step: "1"
|
|
300
|
-
}, null, 8, ["name", "rules", "modelValue"])
|
|
301
|
-
]),
|
|
302
|
-
_: 1
|
|
303
|
-
})
|
|
304
|
-
]),
|
|
305
|
-
_: 1
|
|
306
|
-
})
|
|
307
|
-
])
|
|
308
|
-
]),
|
|
309
|
-
_: 1
|
|
310
|
-
}),
|
|
311
|
-
i(Y, {
|
|
312
|
-
value: "1",
|
|
313
|
-
eager: ""
|
|
314
|
-
}, {
|
|
315
|
-
default: n(() => [
|
|
316
|
-
b("div", ae, [
|
|
317
|
-
i(D, { class: "pa-0" }, {
|
|
318
|
-
default: n(() => e[20] || (e[20] = [
|
|
319
|
-
h(" Set a min or max Y value to override automatic scaling ")
|
|
320
|
-
])),
|
|
321
|
-
_: 1
|
|
322
|
-
}),
|
|
323
|
-
i(g, { dense: "" }, {
|
|
324
|
-
default: n(() => [
|
|
325
|
-
i(w, { class: "px-2" }, {
|
|
326
|
-
default: n(() => [
|
|
327
|
-
i(v, {
|
|
328
|
-
"hide-details": "",
|
|
329
|
-
label: "Min Y Axis (Optional)",
|
|
330
|
-
modelValue: t.graph.graphMinY,
|
|
331
|
-
"onUpdate:modelValue": e[7] || (e[7] = (c) => t.graph.graphMinY = c),
|
|
332
|
-
type: "number"
|
|
333
|
-
}, null, 8, ["modelValue"])
|
|
334
|
-
]),
|
|
335
|
-
_: 1
|
|
336
|
-
}),
|
|
337
|
-
i(w, { class: "px-2" }, {
|
|
338
|
-
default: n(() => [
|
|
339
|
-
i(v, {
|
|
340
|
-
"hide-details": "",
|
|
341
|
-
label: "Max Y Axis (Optional)",
|
|
342
|
-
modelValue: t.graph.graphMaxY,
|
|
343
|
-
"onUpdate:modelValue": e[8] || (e[8] = (c) => t.graph.graphMaxY = c),
|
|
344
|
-
type: "number"
|
|
345
|
-
}, null, 8, ["modelValue"])
|
|
346
|
-
]),
|
|
347
|
-
_: 1
|
|
348
|
-
})
|
|
349
|
-
]),
|
|
350
|
-
_: 1
|
|
351
|
-
})
|
|
352
|
-
]),
|
|
353
|
-
b("div", oe, [
|
|
354
|
-
i(G, { density: "compact" }, {
|
|
355
|
-
default: n(() => [
|
|
356
|
-
i(U, null, {
|
|
357
|
-
default: n(() => [
|
|
358
|
-
e[22] || (e[22] = b("span", { style: { "padding-top": "5px" } }, " Add horizontal lines to the graph ", -1)),
|
|
359
|
-
i(d),
|
|
360
|
-
i(O, {
|
|
361
|
-
onClick: e[9] || (e[9] = (c) => a.addLine())
|
|
362
|
-
}, {
|
|
363
|
-
default: n(() => e[21] || (e[21] = [
|
|
364
|
-
h(" New Line ")
|
|
365
|
-
])),
|
|
366
|
-
_: 1
|
|
367
|
-
})
|
|
368
|
-
]),
|
|
369
|
-
_: 1
|
|
370
|
-
}),
|
|
371
|
-
(y(!0), R(F, null, j(t.graph.lines, (c, A) => (y(), T(U, {
|
|
372
|
-
key: A,
|
|
373
|
-
value: c,
|
|
374
|
-
color: "primary"
|
|
375
|
-
}, {
|
|
376
|
-
default: n(() => [
|
|
377
|
-
i(g, null, {
|
|
378
|
-
default: n(() => [
|
|
379
|
-
i(w, null, {
|
|
380
|
-
default: n(() => [
|
|
381
|
-
i(v, {
|
|
382
|
-
label: "Y Value",
|
|
383
|
-
modelValue: c.yValue,
|
|
384
|
-
"onUpdate:modelValue": (N) => c.yValue = N
|
|
385
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
386
|
-
]),
|
|
387
|
-
_: 2
|
|
388
|
-
}, 1024),
|
|
389
|
-
i(w, null, {
|
|
390
|
-
default: n(() => [
|
|
391
|
-
i(_, {
|
|
392
|
-
label: "Color",
|
|
393
|
-
"hide-details": "",
|
|
394
|
-
items: s.colors,
|
|
395
|
-
modelValue: c.color,
|
|
396
|
-
"onUpdate:modelValue": (N) => c.color = N
|
|
397
|
-
}, null, 8, ["items", "modelValue", "onUpdate:modelValue"])
|
|
398
|
-
]),
|
|
399
|
-
_: 2
|
|
400
|
-
}, 1024),
|
|
401
|
-
i(w, null, {
|
|
402
|
-
default: n(() => [
|
|
403
|
-
i(V, {
|
|
404
|
-
text: "Remove",
|
|
405
|
-
location: "bottom"
|
|
406
|
-
}, {
|
|
407
|
-
activator: n(({ props: N }) => [
|
|
408
|
-
i(k, x({ ref_for: !0 }, N, {
|
|
409
|
-
style: { padding: "30px" },
|
|
410
|
-
onClick: (_e) => a.removeLine(c)
|
|
411
|
-
}), {
|
|
412
|
-
default: n(() => e[23] || (e[23] = [
|
|
413
|
-
h("mdi-delete")
|
|
414
|
-
])),
|
|
415
|
-
_: 2
|
|
416
|
-
}, 1040, ["onClick"])
|
|
417
|
-
]),
|
|
418
|
-
_: 2
|
|
419
|
-
}, 1024)
|
|
420
|
-
]),
|
|
421
|
-
_: 2
|
|
422
|
-
}, 1024)
|
|
423
|
-
]),
|
|
424
|
-
_: 2
|
|
425
|
-
}, 1024)
|
|
426
|
-
]),
|
|
427
|
-
_: 2
|
|
428
|
-
}, 1032, ["value"]))), 128))
|
|
429
|
-
]),
|
|
430
|
-
_: 1
|
|
431
|
-
})
|
|
432
|
-
])
|
|
433
|
-
]),
|
|
434
|
-
_: 1
|
|
435
|
-
}),
|
|
436
|
-
i(Y, {
|
|
437
|
-
value: "2",
|
|
438
|
-
eager: ""
|
|
439
|
-
}, {
|
|
440
|
-
default: n(() => [
|
|
441
|
-
i(L, {
|
|
442
|
-
"item-key": "itemId",
|
|
443
|
-
class: "elevation-1 my-2",
|
|
444
|
-
"data-test": "edit-graph-items",
|
|
445
|
-
headers: t.itemHeaders,
|
|
446
|
-
items: a.editItems,
|
|
447
|
-
"items-per-page": 5,
|
|
448
|
-
"footer-props": {
|
|
449
|
-
"items-per-page-options": [5]
|
|
450
|
-
}
|
|
451
|
-
}, {
|
|
452
|
-
"item.actions": n(({ item: c }) => [
|
|
453
|
-
i(V, {
|
|
454
|
-
text: "Remove",
|
|
455
|
-
location: "bottom"
|
|
456
|
-
}, {
|
|
457
|
-
activator: n(({ props: A }) => [
|
|
458
|
-
i(k, x(A, {
|
|
459
|
-
onClick: (N) => t.$emit("remove", c)
|
|
460
|
-
}), {
|
|
461
|
-
default: n(() => e[24] || (e[24] = [
|
|
462
|
-
h(" mdi-delete ")
|
|
463
|
-
])),
|
|
464
|
-
_: 2
|
|
465
|
-
}, 1040, ["onClick"])
|
|
466
|
-
]),
|
|
467
|
-
_: 2
|
|
468
|
-
}, 1024)
|
|
469
|
-
]),
|
|
470
|
-
"no-data": n(() => e[25] || (e[25] = [
|
|
471
|
-
b("span", null, " Currently no items on this graph ", -1)
|
|
472
|
-
])),
|
|
473
|
-
_: 1
|
|
474
|
-
}, 8, ["headers", "items"])
|
|
475
|
-
]),
|
|
476
|
-
_: 1
|
|
477
|
-
})
|
|
478
|
-
]),
|
|
479
|
-
_: 1
|
|
480
|
-
}, 8, ["modelValue"]),
|
|
481
|
-
i(H, { class: "px-2" }, {
|
|
482
|
-
default: n(() => [
|
|
483
|
-
i(d),
|
|
484
|
-
i(O, {
|
|
485
|
-
variant: "outlined",
|
|
486
|
-
onClick: e[11] || (e[11] = (c) => t.$emit("cancel"))
|
|
487
|
-
}, {
|
|
488
|
-
default: n(() => e[26] || (e[26] = [
|
|
489
|
-
h(" Cancel ")
|
|
490
|
-
])),
|
|
491
|
-
_: 1
|
|
492
|
-
}),
|
|
493
|
-
i(O, {
|
|
494
|
-
variant: "flat",
|
|
495
|
-
onClick: a.closeOk
|
|
496
|
-
}, {
|
|
497
|
-
default: n(() => e[27] || (e[27] = [
|
|
498
|
-
h(" Ok ")
|
|
499
|
-
])),
|
|
500
|
-
_: 1
|
|
501
|
-
}, 8, ["onClick"])
|
|
502
|
-
]),
|
|
503
|
-
_: 1
|
|
504
|
-
})
|
|
505
|
-
]),
|
|
506
|
-
_: 1
|
|
507
|
-
})
|
|
508
|
-
]),
|
|
509
|
-
_: 1
|
|
510
|
-
}, 8, ["modelValue"]);
|
|
511
|
-
}
|
|
512
|
-
const de = /* @__PURE__ */ W(se, [["render", re]]), ue = {
|
|
513
|
-
props: {
|
|
514
|
-
modelValue: Boolean,
|
|
515
|
-
item: {
|
|
516
|
-
type: Object,
|
|
517
|
-
required: !0
|
|
518
|
-
},
|
|
519
|
-
colors: {
|
|
520
|
-
type: Array,
|
|
521
|
-
required: !0
|
|
522
|
-
}
|
|
523
|
-
},
|
|
524
|
-
data: function() {
|
|
525
|
-
return {
|
|
526
|
-
editItem: null,
|
|
527
|
-
limitsName: "NONE",
|
|
528
|
-
// NONE: [] matches the default limits assigned in Graph addItems
|
|
529
|
-
limits: { NONE: [] },
|
|
530
|
-
valueTypes: ["CONVERTED", "RAW"],
|
|
531
|
-
reduction: [
|
|
532
|
-
// Map NONE to DECOM for clarity
|
|
533
|
-
{ text: "NONE", value: "DECOM" },
|
|
534
|
-
{ text: "REDUCED_MINUTE", value: "REDUCED_MINUTE" },
|
|
535
|
-
{ text: "REDUCED_HOUR", value: "REDUCED_HOUR" },
|
|
536
|
-
{ text: "REDUCED_DAY", value: "REDUCED_DAY" }
|
|
537
|
-
],
|
|
538
|
-
reducedTypes: ["MIN", "MAX", "AVG", "STDDEV"]
|
|
539
|
-
};
|
|
540
|
-
},
|
|
541
|
-
computed: {
|
|
542
|
-
show: {
|
|
543
|
-
get() {
|
|
544
|
-
return this.modelValue;
|
|
545
|
-
},
|
|
546
|
-
set(t) {
|
|
547
|
-
this.$emit("update:modelValue", t);
|
|
548
|
-
}
|
|
549
|
-
},
|
|
550
|
-
limitsNames() {
|
|
551
|
-
return Object.keys(this.limits);
|
|
552
|
-
}
|
|
553
|
-
},
|
|
554
|
-
async created() {
|
|
555
|
-
this.editItem = { ...this.item }, await this.api, this.api = new ee().get_item(this.item.targetName, this.item.packetName, this.item.itemName).then((t) => {
|
|
556
|
-
for (const [e, s] of Object.entries(t.limits))
|
|
557
|
-
Object.keys(s).includes("red_low") && this.$set(this.limits, e, Object.values(s));
|
|
558
|
-
this.limitsName = Object.keys(this.limits).find(
|
|
559
|
-
// Little hack to compare arrays you convert them to strings
|
|
560
|
-
(e) => this.limits[e] + "" == this.editItem.limits + ""
|
|
561
|
-
);
|
|
562
|
-
});
|
|
563
|
-
}
|
|
564
|
-
}, me = { key: 0 }, he = { class: "pa-3" };
|
|
565
|
-
function pe(t, e, s, o, l, a) {
|
|
566
|
-
const d = m("v-card-title"), r = m("v-select"), p = m("v-card-text"), f = m("v-spacer"), v = m("v-btn"), D = m("v-card-actions"), w = m("v-card"), _ = m("v-dialog");
|
|
567
|
-
return y(), T(_, {
|
|
568
|
-
modelValue: a.show,
|
|
569
|
-
"onUpdate:modelValue": e[9] || (e[9] = (g) => a.show = g),
|
|
570
|
-
width: "400",
|
|
571
|
-
onKeydown: e[10] || (e[10] = X((g) => t.success(), ["enter"]))
|
|
572
|
-
}, {
|
|
573
|
-
default: n(() => [
|
|
574
|
-
i(w, null, {
|
|
575
|
-
default: n(() => [
|
|
576
|
-
i(d, { class: "mb-2" }, {
|
|
577
|
-
default: n(() => e[11] || (e[11] = [
|
|
578
|
-
h("Edit Item")
|
|
579
|
-
])),
|
|
580
|
-
_: 1
|
|
581
|
-
}),
|
|
582
|
-
i(p, null, {
|
|
583
|
-
default: n(() => [
|
|
584
|
-
i(r, {
|
|
585
|
-
variant: "outlined",
|
|
586
|
-
"hide-details": "",
|
|
587
|
-
label: "Value Type",
|
|
588
|
-
items: t.valueTypes,
|
|
589
|
-
modelValue: t.editItem.valueType,
|
|
590
|
-
"onUpdate:modelValue": e[0] || (e[0] = (g) => t.editItem.valueType = g),
|
|
591
|
-
class: "mb-2"
|
|
592
|
-
}, null, 8, ["items", "modelValue"]),
|
|
593
|
-
i(r, {
|
|
594
|
-
variant: "outlined",
|
|
595
|
-
"hide-details": "",
|
|
596
|
-
label: "Reduction",
|
|
597
|
-
items: t.reduction,
|
|
598
|
-
modelValue: t.editItem.reduced,
|
|
599
|
-
"onUpdate:modelValue": e[1] || (e[1] = (g) => t.editItem.reduced = g),
|
|
600
|
-
class: "mb-2"
|
|
601
|
-
}, null, 8, ["items", "modelValue"]),
|
|
602
|
-
i(r, {
|
|
603
|
-
variant: "outlined",
|
|
604
|
-
"hide-details": "",
|
|
605
|
-
label: "Reduced Type",
|
|
606
|
-
items: t.reducedTypes,
|
|
607
|
-
disabled: t.currentReduced === "DECOM",
|
|
608
|
-
modelValue: t.editItem.reducedType,
|
|
609
|
-
"onUpdate:modelValue": e[2] || (e[2] = (g) => t.editItem.reducedType = g),
|
|
610
|
-
class: "mb-2"
|
|
611
|
-
}, null, 8, ["items", "disabled", "modelValue"]),
|
|
612
|
-
i(r, {
|
|
613
|
-
variant: "outlined",
|
|
614
|
-
"hide-details": "",
|
|
615
|
-
label: "Color",
|
|
616
|
-
items: s.colors,
|
|
617
|
-
modelValue: t.editItem.color,
|
|
618
|
-
"onUpdate:modelValue": [
|
|
619
|
-
e[3] || (e[3] = (g) => t.editItem.color = g),
|
|
620
|
-
e[4] || (e[4] = (g) => t.$emit("changeColor", g))
|
|
621
|
-
],
|
|
622
|
-
class: "mb-2"
|
|
623
|
-
}, null, 8, ["items", "modelValue"]),
|
|
624
|
-
a.limitsNames.length > 1 ? (y(), R("div", me, [
|
|
625
|
-
i(r, {
|
|
626
|
-
variant: "outlined",
|
|
627
|
-
"hide-details": "",
|
|
628
|
-
label: "Display Limits",
|
|
629
|
-
items: a.limitsNames,
|
|
630
|
-
modelValue: t.limitsName,
|
|
631
|
-
"onUpdate:modelValue": [
|
|
632
|
-
e[5] || (e[5] = (g) => t.limitsName = g),
|
|
633
|
-
e[6] || (e[6] = (g) => t.$emit("changeLimits", t.limits[t.limitsName]))
|
|
634
|
-
]
|
|
635
|
-
}, null, 8, ["items", "modelValue"]),
|
|
636
|
-
b("div", he, E(t.limitsName) + ": " + E(t.limits[t.limitsName]), 1)
|
|
637
|
-
])) : S("", !0)
|
|
638
|
-
]),
|
|
639
|
-
_: 1
|
|
640
|
-
}),
|
|
641
|
-
i(D, { class: "px-2" }, {
|
|
642
|
-
default: n(() => [
|
|
643
|
-
i(f),
|
|
644
|
-
i(v, {
|
|
645
|
-
variant: "outlined",
|
|
646
|
-
onClick: e[7] || (e[7] = (g) => t.$emit("cancel"))
|
|
647
|
-
}, {
|
|
648
|
-
default: n(() => e[12] || (e[12] = [
|
|
649
|
-
h(" Cancel ")
|
|
650
|
-
])),
|
|
651
|
-
_: 1
|
|
652
|
-
}),
|
|
653
|
-
i(v, {
|
|
654
|
-
variant: "flat",
|
|
655
|
-
onClick: e[8] || (e[8] = (g) => t.$emit("close", t.editItem))
|
|
656
|
-
}, {
|
|
657
|
-
default: n(() => e[13] || (e[13] = [
|
|
658
|
-
h(" Ok ")
|
|
659
|
-
])),
|
|
660
|
-
_: 1
|
|
661
|
-
})
|
|
662
|
-
]),
|
|
663
|
-
_: 1
|
|
664
|
-
})
|
|
665
|
-
]),
|
|
666
|
-
_: 1
|
|
667
|
-
})
|
|
668
|
-
]),
|
|
669
|
-
_: 1
|
|
670
|
-
}, 8, ["modelValue"]);
|
|
671
|
-
}
|
|
672
|
-
const fe = /* @__PURE__ */ W(ue, [["render", pe]]);
|
|
673
|
-
var ce = function(t, e, s, o, l) {
|
|
674
|
-
var a, d;
|
|
675
|
-
if (o === void 0)
|
|
676
|
-
o = 0;
|
|
677
|
-
else if (o = o | 0, o < 0 || o >= t.length)
|
|
678
|
-
throw new RangeError("invalid lower bound");
|
|
679
|
-
if (l === void 0)
|
|
680
|
-
l = t.length - 1;
|
|
681
|
-
else if (l = l | 0, l < o || l >= t.length)
|
|
682
|
-
throw new RangeError("invalid upper bound");
|
|
683
|
-
for (; o <= l; )
|
|
684
|
-
if (a = o + (l - o >>> 1), d = +s(t[a], e, a, t), d < 0)
|
|
685
|
-
o = a + 1;
|
|
686
|
-
else if (d > 0)
|
|
687
|
-
l = a - 1;
|
|
688
|
-
else
|
|
689
|
-
return a;
|
|
690
|
-
return ~o;
|
|
691
|
-
};
|
|
692
|
-
const ge = /* @__PURE__ */ te(ce), ve = {
|
|
693
|
-
components: {
|
|
694
|
-
GraphEditDialog: de,
|
|
695
|
-
GraphEditItemDialog: fe
|
|
696
|
-
},
|
|
697
|
-
props: {
|
|
698
|
-
id: {
|
|
699
|
-
type: Number,
|
|
700
|
-
required: !0
|
|
701
|
-
},
|
|
702
|
-
selectedGraphId: {
|
|
703
|
-
type: Number
|
|
704
|
-
// Not required because we pass null
|
|
705
|
-
},
|
|
706
|
-
state: {
|
|
707
|
-
type: String,
|
|
708
|
-
required: !0
|
|
709
|
-
},
|
|
710
|
-
// start time in nanoseconds to start the graph
|
|
711
|
-
// this allows multiple graphs to be synchronized
|
|
712
|
-
startTime: {
|
|
713
|
-
type: Number
|
|
714
|
-
},
|
|
715
|
-
secondsGraphed: {
|
|
716
|
-
type: Number,
|
|
717
|
-
required: !0
|
|
718
|
-
},
|
|
719
|
-
pointsSaved: {
|
|
720
|
-
type: Number,
|
|
721
|
-
required: !0
|
|
722
|
-
},
|
|
723
|
-
pointsGraphed: {
|
|
724
|
-
type: Number,
|
|
725
|
-
required: !0
|
|
726
|
-
},
|
|
727
|
-
refreshIntervalMs: {
|
|
728
|
-
type: Number,
|
|
729
|
-
default: 200
|
|
730
|
-
},
|
|
731
|
-
hideToolbar: {
|
|
732
|
-
type: Boolean,
|
|
733
|
-
default: !1
|
|
734
|
-
},
|
|
735
|
-
hideOverview: {
|
|
736
|
-
type: Boolean,
|
|
737
|
-
default: !1
|
|
738
|
-
},
|
|
739
|
-
sparkline: {
|
|
740
|
-
type: Boolean,
|
|
741
|
-
default: !1
|
|
742
|
-
},
|
|
743
|
-
initialItems: {
|
|
744
|
-
type: Array
|
|
745
|
-
},
|
|
746
|
-
// These allow the parent to force a specific height and/or width
|
|
747
|
-
height: {
|
|
748
|
-
type: Number
|
|
749
|
-
},
|
|
750
|
-
width: {
|
|
751
|
-
type: Number
|
|
752
|
-
},
|
|
753
|
-
timeZone: {
|
|
754
|
-
type: String,
|
|
755
|
-
default: "local"
|
|
756
|
-
}
|
|
757
|
-
},
|
|
758
|
-
mixins: [K],
|
|
759
|
-
data() {
|
|
760
|
-
return {
|
|
761
|
-
lines: [],
|
|
762
|
-
active: !0,
|
|
763
|
-
expand: !0,
|
|
764
|
-
fullWidth: !0,
|
|
765
|
-
fullHeight: !0,
|
|
766
|
-
graph: null,
|
|
767
|
-
editGraph: !1,
|
|
768
|
-
editGraphMenu: !1,
|
|
769
|
-
editGraphMenuX: 0,
|
|
770
|
-
editGraphMenuY: 0,
|
|
771
|
-
editItem: !1,
|
|
772
|
-
itemMenu: !1,
|
|
773
|
-
itemMenuX: 0,
|
|
774
|
-
itemMenuY: 0,
|
|
775
|
-
legendMenu: !1,
|
|
776
|
-
legendMenuX: 0,
|
|
777
|
-
legendMenuY: 0,
|
|
778
|
-
legendPosition: "bottom",
|
|
779
|
-
selectedItem: null,
|
|
780
|
-
hideToolbarData: this.hideToolbar,
|
|
781
|
-
showOverview: !this.hideOverview,
|
|
782
|
-
hideOverviewData: this.hideOverview,
|
|
783
|
-
title: "",
|
|
784
|
-
overview: null,
|
|
785
|
-
data: [[]],
|
|
786
|
-
dataChanged: !1,
|
|
787
|
-
timeout: null,
|
|
788
|
-
graphMinY: null,
|
|
789
|
-
graphMaxY: null,
|
|
790
|
-
graphStartDateTime: null,
|
|
791
|
-
graphEndDateTime: null,
|
|
792
|
-
indexes: {},
|
|
793
|
-
items: this.initialItems || [],
|
|
794
|
-
limitsValues: [],
|
|
795
|
-
drawInterval: null,
|
|
796
|
-
zoomChart: !1,
|
|
797
|
-
zoomOverview: !1,
|
|
798
|
-
cable: new ie(),
|
|
799
|
-
subscription: null,
|
|
800
|
-
needToUpdate: !1,
|
|
801
|
-
errorDialog: !1,
|
|
802
|
-
errors: [],
|
|
803
|
-
colorIndex: 0,
|
|
804
|
-
colors: [
|
|
805
|
-
// These are taken right from the Astro css definitions for
|
|
806
|
-
// --color-data-visualization-1 through 8
|
|
807
|
-
"#00c7cb",
|
|
808
|
-
"#938bdb",
|
|
809
|
-
"#4dacff",
|
|
810
|
-
"lime",
|
|
811
|
-
"darkorange",
|
|
812
|
-
"red",
|
|
813
|
-
"gold",
|
|
814
|
-
"hotpink",
|
|
815
|
-
"tan",
|
|
816
|
-
"cyan",
|
|
817
|
-
"maroon",
|
|
818
|
-
"blue",
|
|
819
|
-
"teal",
|
|
820
|
-
"purple",
|
|
821
|
-
"green",
|
|
822
|
-
"brown",
|
|
823
|
-
"lightblue",
|
|
824
|
-
"white",
|
|
825
|
-
"black"
|
|
826
|
-
]
|
|
827
|
-
};
|
|
828
|
-
},
|
|
829
|
-
computed: {
|
|
830
|
-
calcFullSize: function() {
|
|
831
|
-
return this.fullWidth || this.fullHeight;
|
|
832
|
-
},
|
|
833
|
-
error: function() {
|
|
834
|
-
return this.errorDialog && this.errors.length > 0 ? JSON.stringify(this.errors, null, 4) : null;
|
|
835
|
-
}
|
|
836
|
-
},
|
|
837
|
-
created() {
|
|
838
|
-
this.title = `Graph ${this.id}`;
|
|
839
|
-
for (const [t, e] of this.items.entries())
|
|
840
|
-
this.data.push([]), this.indexes[this.subscriptionKey(e)] = t + 1, e.color === void 0 && (e.color = this.colors[this.colorIndex]), this.colorIndex++, this.colorIndex === this.colors.length && (this.colorIndex = 0);
|
|
841
|
-
},
|
|
842
|
-
mounted() {
|
|
843
|
-
const { chartSeries: t, overviewSeries: e } = this.items.reduce(
|
|
844
|
-
(o, l) => {
|
|
845
|
-
const a = {
|
|
846
|
-
spanGaps: !0
|
|
847
|
-
};
|
|
848
|
-
return o.chartSeries.push({
|
|
849
|
-
...a,
|
|
850
|
-
item: l,
|
|
851
|
-
label: this.formatLabel(l),
|
|
852
|
-
stroke: (d, r) => this.items[r - 1].color,
|
|
853
|
-
width: 2,
|
|
854
|
-
value: (d, r) => typeof r == "string" || isNaN(r) ? "NaN" : r == null ? "--" : r.toFixed(3)
|
|
855
|
-
}), o.overviewSeries.push({
|
|
856
|
-
...a
|
|
857
|
-
}), o;
|
|
858
|
-
},
|
|
859
|
-
{ chartSeries: [], overviewSeries: [] }
|
|
860
|
-
);
|
|
861
|
-
let s = {};
|
|
862
|
-
if (this.sparkline)
|
|
863
|
-
this.hideToolbarData = !0, this.hideOverviewData = !0, this.showOverview = !1, s = {
|
|
864
|
-
width: this.width,
|
|
865
|
-
height: this.height,
|
|
866
|
-
pxAlign: !1,
|
|
867
|
-
cursor: {
|
|
868
|
-
show: !1
|
|
869
|
-
},
|
|
870
|
-
select: {
|
|
871
|
-
show: !1
|
|
872
|
-
},
|
|
873
|
-
legend: {
|
|
874
|
-
show: !1
|
|
875
|
-
},
|
|
876
|
-
scales: {
|
|
877
|
-
x: {
|
|
878
|
-
time: !1
|
|
879
|
-
}
|
|
880
|
-
},
|
|
881
|
-
axes: [
|
|
882
|
-
{
|
|
883
|
-
show: !1
|
|
884
|
-
},
|
|
885
|
-
{
|
|
886
|
-
show: !1
|
|
887
|
-
}
|
|
888
|
-
],
|
|
889
|
-
series: [
|
|
890
|
-
{},
|
|
891
|
-
{
|
|
892
|
-
stroke: "white"
|
|
893
|
-
// TODO: Light / dark theme
|
|
894
|
-
}
|
|
895
|
-
]
|
|
896
|
-
}, this.graph = new I(
|
|
897
|
-
s,
|
|
898
|
-
this.data,
|
|
899
|
-
document.getElementById(`chart${this.id}`)
|
|
900
|
-
);
|
|
901
|
-
else {
|
|
902
|
-
let o = Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
903
|
-
this.timeZone && this.timeZone !== "local" && (o = this.timeZone), s = {
|
|
904
|
-
...this.getSize("chart"),
|
|
905
|
-
...this.getScales(),
|
|
906
|
-
...this.getAxes("chart"),
|
|
907
|
-
// series: series, // TODO: Uncomment with the performance code
|
|
908
|
-
plugins: [this.linesPlugin()],
|
|
909
|
-
tzDate: (a) => I.tzDate(new Date(a * 1e3), o),
|
|
910
|
-
series: [
|
|
911
|
-
{
|
|
912
|
-
label: "Time",
|
|
913
|
-
value: (a, d) => (
|
|
914
|
-
// Convert the unix timestamp into a formatted date / time
|
|
915
|
-
d == null ? "--" : this.formatSeconds(d, this.timeZone)
|
|
916
|
-
)
|
|
917
|
-
},
|
|
918
|
-
...t
|
|
919
|
-
],
|
|
920
|
-
cursor: {
|
|
921
|
-
drag: {
|
|
922
|
-
x: !0,
|
|
923
|
-
y: !1
|
|
924
|
-
},
|
|
925
|
-
// Sync the cursor across graphs so mouseovers are synced
|
|
926
|
-
sync: {
|
|
927
|
-
key: "openc3"
|
|
928
|
-
// setSeries links graphs so clicking an item to hide it also hides the other graph item
|
|
929
|
-
// setSeries: true,
|
|
930
|
-
},
|
|
931
|
-
bind: {
|
|
932
|
-
mouseup: (a, d, r) => (p) => {
|
|
933
|
-
this.state === "pause" && a.select.width === 0 && this.$emit("start"), r(p);
|
|
934
|
-
}
|
|
935
|
-
}
|
|
936
|
-
},
|
|
937
|
-
hooks: {
|
|
938
|
-
setScale: [
|
|
939
|
-
(a, d) => {
|
|
940
|
-
if (d === "x" && !this.zoomOverview && this.overview) {
|
|
941
|
-
this.zoomChart = !0;
|
|
942
|
-
let r = Math.round(
|
|
943
|
-
this.overview.valToPos(a.scales.x.min, "x")
|
|
944
|
-
), p = Math.round(
|
|
945
|
-
this.overview.valToPos(a.scales.x.max, "x")
|
|
946
|
-
);
|
|
947
|
-
this.overview.setSelect({ left: r, width: p - r }), this.zoomChart = !1;
|
|
948
|
-
}
|
|
949
|
-
}
|
|
950
|
-
],
|
|
951
|
-
setSelect: [
|
|
952
|
-
(a) => {
|
|
953
|
-
this.state === "start" && a.select.width > 0 && this.$emit("pause");
|
|
954
|
-
}
|
|
955
|
-
],
|
|
956
|
-
ready: [
|
|
957
|
-
(a) => {
|
|
958
|
-
a.root.querySelector(".u-over").addEventListener("contextmenu", (p) => {
|
|
959
|
-
p.preventDefault(), this.itemMenu = !1, this.legendMenu = !1, this.editGraphMenuX = p.clientX, this.editGraphMenuY = p.clientY, this.editGraphMenu = !0;
|
|
960
|
-
});
|
|
961
|
-
let r = a.root.querySelector(".u-legend");
|
|
962
|
-
r.addEventListener("contextmenu", (p) => {
|
|
963
|
-
p.preventDefault(), this.editGraphMenu = !1, this.legendMenu = !1, this.itemMenuX = p.clientX, this.itemMenuY = p.clientY;
|
|
964
|
-
let f = p.target.closest(".u-series"), v = Array.prototype.slice.call(r.childNodes[0].childNodes).indexOf(f), D = a.series[v];
|
|
965
|
-
D.item ? (this.selectedItem = D.item, this.itemMenu = !0) : (this.itemMenu = !1, this.legendMenuX = p.clientX, this.legendMenuY = p.clientY, this.legendMenu = !0);
|
|
966
|
-
}), r.querySelector("tbody").appendChild(this.$refs.info);
|
|
967
|
-
}
|
|
968
|
-
]
|
|
969
|
-
}
|
|
970
|
-
}, this.graph = new I(
|
|
971
|
-
s,
|
|
972
|
-
this.data,
|
|
973
|
-
document.getElementById(`chart${this.id}`)
|
|
974
|
-
);
|
|
975
|
-
const l = {
|
|
976
|
-
...this.getSize("overview"),
|
|
977
|
-
...this.getScales(),
|
|
978
|
-
...this.getAxes("overview"),
|
|
979
|
-
// series: series, // TODO: Uncomment with the performance code
|
|
980
|
-
tzDate: (a) => I.tzDate(new Date(a * 1e3), o),
|
|
981
|
-
series: [...e],
|
|
982
|
-
cursor: {
|
|
983
|
-
y: !1,
|
|
984
|
-
drag: {
|
|
985
|
-
setScale: !1,
|
|
986
|
-
x: !0,
|
|
987
|
-
y: !1
|
|
988
|
-
}
|
|
989
|
-
},
|
|
990
|
-
legend: {
|
|
991
|
-
show: !1
|
|
992
|
-
},
|
|
993
|
-
hooks: {
|
|
994
|
-
setSelect: [
|
|
995
|
-
(a) => {
|
|
996
|
-
if (!this.zoomChart) {
|
|
997
|
-
this.state === "start" && a.select.width > 0 && this.$emit("pause"), this.zoomOverview = !0;
|
|
998
|
-
let d = a.posToVal(a.select.left, "x"), r = a.posToVal(
|
|
999
|
-
a.select.left + a.select.width,
|
|
1000
|
-
"x"
|
|
1001
|
-
);
|
|
1002
|
-
this.graph.setScale("x", { min: d, max: r }), this.zoomOverview = !1;
|
|
1003
|
-
}
|
|
1004
|
-
}
|
|
1005
|
-
]
|
|
1006
|
-
}
|
|
1007
|
-
};
|
|
1008
|
-
this.overview = new I(
|
|
1009
|
-
l,
|
|
1010
|
-
this.data,
|
|
1011
|
-
document.getElementById(`overview${this.id}`)
|
|
1012
|
-
), this.moveLegend(this.legendPosition), window.addEventListener("resize", this.resize);
|
|
1013
|
-
}
|
|
1014
|
-
this.state !== "stop" && this.startGraph();
|
|
1015
|
-
},
|
|
1016
|
-
beforeUnmount: function() {
|
|
1017
|
-
this.stopGraph(), this.cable.disconnect(), window.removeEventListener("resize", this.resize);
|
|
1018
|
-
},
|
|
1019
|
-
watch: {
|
|
1020
|
-
state: function(t, e) {
|
|
1021
|
-
switch (t) {
|
|
1022
|
-
case "start":
|
|
1023
|
-
e === "stop" && this.startGraph();
|
|
1024
|
-
break;
|
|
1025
|
-
case "stop":
|
|
1026
|
-
this.stopGraph();
|
|
1027
|
-
break;
|
|
1028
|
-
}
|
|
1029
|
-
},
|
|
1030
|
-
data: function(t, e) {
|
|
1031
|
-
this.dataChanged = !0;
|
|
1032
|
-
},
|
|
1033
|
-
graphMinY: function(t, e) {
|
|
1034
|
-
let s = parseFloat(t);
|
|
1035
|
-
isNaN(s) || (this.graphMinY = s), this.setGraphRange();
|
|
1036
|
-
},
|
|
1037
|
-
graphMaxY: function(t, e) {
|
|
1038
|
-
let s = parseFloat(t);
|
|
1039
|
-
isNaN(s) || (this.graphMaxY = s), this.setGraphRange();
|
|
1040
|
-
},
|
|
1041
|
-
graphStartDateTime: function(t, e) {
|
|
1042
|
-
t && typeof t == "string" ? (this.graphStartDateTime = this.parseDateTime(this.graphStartDateTime, this.timeZone) * 1e6, this.graphStartDateTime !== e && (this.needToUpdate = !0)) : t === null && e && (this.graphStartDateTime = null, this.needToUpdate = !0);
|
|
1043
|
-
},
|
|
1044
|
-
graphEndDateTime: function(t, e) {
|
|
1045
|
-
t && typeof t == "string" ? (this.graphEndDateTime = this.parseDateTime(this.graphEndDateTime, this.timeZone) * 1e6, this.graphEndDateTime !== e && (this.needToUpdate = !0)) : t === null && e && (this.graphEndDateTime = null, this.needToUpdate = !0);
|
|
1046
|
-
}
|
|
1047
|
-
},
|
|
1048
|
-
methods: {
|
|
1049
|
-
startGraph: function() {
|
|
1050
|
-
this.subscribe(), this.timeout = setTimeout(() => {
|
|
1051
|
-
this.updateTimeout();
|
|
1052
|
-
}, this.refreshIntervalMs);
|
|
1053
|
-
},
|
|
1054
|
-
stopGraph: function() {
|
|
1055
|
-
this.subscription && (this.subscription.unsubscribe(), this.subscription = null), this.timeout && (clearTimeout(this.timeout), this.timeout = null);
|
|
1056
|
-
},
|
|
1057
|
-
updateTimeout: function() {
|
|
1058
|
-
this.updateGraphData(), this.timeout = setTimeout(() => {
|
|
1059
|
-
this.updateTimeout();
|
|
1060
|
-
}, this.refreshIntervalMs);
|
|
1061
|
-
},
|
|
1062
|
-
updateGraphData: function() {
|
|
1063
|
-
if (this.state === "pause" || !this.dataChanged)
|
|
1064
|
-
return;
|
|
1065
|
-
this.graph.setData(this.data), this.overview && this.overview.setData(this.data);
|
|
1066
|
-
let t = this.data[0][this.data[0].length - 1], e = this.data[0][this.data[0].length - this.pointsGraphed], s = this.data[0][0];
|
|
1067
|
-
s < t - this.secondsGraphed && (s = t - this.secondsGraphed), e > s && (s = e), this.graph.setScale("x", { min: s, max: t }), this.dataChanged = !1;
|
|
1068
|
-
},
|
|
1069
|
-
formatLabel(t) {
|
|
1070
|
-
if (t.valueType === "CONVERTED" && t.reduced === "DECOM")
|
|
1071
|
-
return t.itemName;
|
|
1072
|
-
{
|
|
1073
|
-
let e = "";
|
|
1074
|
-
return t.valueType !== "CONVERTED" && (e += t.valueType), t.reduced !== "DECOM" && (e !== "" && (e += " "), e += `${t.reduced.split("_")[1]} ${t.reducedType}`), `${t.itemName} (${e})`;
|
|
1075
|
-
}
|
|
1076
|
-
},
|
|
1077
|
-
moveLegend: function(t) {
|
|
1078
|
-
switch (t) {
|
|
1079
|
-
case "bottom":
|
|
1080
|
-
this.graph.root.classList.remove("side-legend"), this.graph.root.classList.remove("left-legend"), this.graph.root.classList.remove("top-legend");
|
|
1081
|
-
break;
|
|
1082
|
-
case "top":
|
|
1083
|
-
this.graph.root.classList.remove("side-legend"), this.graph.root.classList.remove("left-legend"), this.graph.root.classList.add("top-legend");
|
|
1084
|
-
break;
|
|
1085
|
-
case "left":
|
|
1086
|
-
this.graph.root.classList.remove("top-legend"), this.graph.root.classList.add("side-legend"), this.graph.root.classList.add("left-legend");
|
|
1087
|
-
break;
|
|
1088
|
-
case "right":
|
|
1089
|
-
this.graph.root.classList.remove("top-legend"), this.graph.root.classList.remove("left-legend"), this.graph.root.classList.add("side-legend");
|
|
1090
|
-
break;
|
|
1091
|
-
}
|
|
1092
|
-
this.legendPosition = t, this.resize();
|
|
1093
|
-
},
|
|
1094
|
-
clearErrors: function() {
|
|
1095
|
-
this.errors = [];
|
|
1096
|
-
},
|
|
1097
|
-
editGraphClose: function(t) {
|
|
1098
|
-
this.editGraph = !1, this.title = t.title, this.legendPosition = t.legendPosition, this.graphMinY = t.graphMinY, this.graphMaxY = t.graphMaxY, this.lines = [...t.lines], this.graphStartDateTime = t.startDateTime, this.graphEndDateTime = t.endDateTime, this.$nextTick(() => {
|
|
1099
|
-
if (this.needToUpdate) {
|
|
1100
|
-
if (this.subscription == null)
|
|
1101
|
-
this.startGraph();
|
|
1102
|
-
else {
|
|
1103
|
-
let e = JSON.parse(JSON.stringify(this.items));
|
|
1104
|
-
this.removeItems(e), setTimeout(() => {
|
|
1105
|
-
this.addItems(e);
|
|
1106
|
-
}, 0);
|
|
1107
|
-
}
|
|
1108
|
-
this.needToUpdate = !1;
|
|
1109
|
-
}
|
|
1110
|
-
}), this.moveLegend(this.legendPosition), this.$emit("edit");
|
|
1111
|
-
},
|
|
1112
|
-
resize: function() {
|
|
1113
|
-
this.graph.setSize(this.getSize("chart")), this.overview && this.overview.setSize(this.getSize("overview")), this.$emit("resize", this.id);
|
|
1114
|
-
},
|
|
1115
|
-
expandAll: function() {
|
|
1116
|
-
this.fullWidth = !0, this.fullHeight = !0, this.resize();
|
|
1117
|
-
},
|
|
1118
|
-
collapseAll: function() {
|
|
1119
|
-
this.fullWidth = !1, this.fullHeight = !1, this.resize();
|
|
1120
|
-
},
|
|
1121
|
-
expandWidth: function() {
|
|
1122
|
-
this.fullWidth = !0, this.resize();
|
|
1123
|
-
},
|
|
1124
|
-
collapseWidth: function() {
|
|
1125
|
-
this.fullWidth = !1, this.resize();
|
|
1126
|
-
},
|
|
1127
|
-
expandHeight: function() {
|
|
1128
|
-
this.fullHeight = !0, this.resize();
|
|
1129
|
-
},
|
|
1130
|
-
collapseHeight: function() {
|
|
1131
|
-
this.fullHeight = !1, this.resize();
|
|
1132
|
-
},
|
|
1133
|
-
minMaxTransition: function() {
|
|
1134
|
-
this.expand = !this.expand, this.$emit("min-max-graph", this.id);
|
|
1135
|
-
},
|
|
1136
|
-
setGraphRange: function() {
|
|
1137
|
-
let t = 0.1;
|
|
1138
|
-
(this.graphMinY || this.graphMinY === 0 || this.graphMaxY || this.graphMaxY === 0) && (t = 0), this.graph.scales.y.range = (e, s, o) => {
|
|
1139
|
-
let l = s;
|
|
1140
|
-
(this.graphMinY || this.graphMinY === 0) && (l = this.graphMinY);
|
|
1141
|
-
let a = o;
|
|
1142
|
-
return (this.graphMaxY || this.graphMaxY === 0) && (a = this.graphMaxY), I.rangeNum(l, a, t, !0);
|
|
1143
|
-
};
|
|
1144
|
-
},
|
|
1145
|
-
subscribe: function() {
|
|
1146
|
-
this.cable.createSubscription("StreamingChannel", window.openc3Scope, {
|
|
1147
|
-
received: (t) => this.received(t),
|
|
1148
|
-
connected: () => {
|
|
1149
|
-
this.addItemsToSubscription(this.items);
|
|
1150
|
-
},
|
|
1151
|
-
disconnected: () => {
|
|
1152
|
-
this.errors.push({
|
|
1153
|
-
type: "disconnected",
|
|
1154
|
-
message: "OpenC3 backend connection disconnected",
|
|
1155
|
-
time: (/* @__PURE__ */ new Date()).getTime()
|
|
1156
|
-
});
|
|
1157
|
-
},
|
|
1158
|
-
rejected: () => {
|
|
1159
|
-
this.errors.push({
|
|
1160
|
-
type: "rejected",
|
|
1161
|
-
message: "OpenC3 backend connection rejected",
|
|
1162
|
-
time: (/* @__PURE__ */ new Date()).getTime()
|
|
1163
|
-
});
|
|
1164
|
-
}
|
|
1165
|
-
}).then((t) => {
|
|
1166
|
-
this.subscription = t;
|
|
1167
|
-
});
|
|
1168
|
-
},
|
|
1169
|
-
// throttle(cb, limit) {
|
|
1170
|
-
// let wait = false
|
|
1171
|
-
// return () => {
|
|
1172
|
-
// if (!wait) {
|
|
1173
|
-
// requestAnimationFrame(cb)
|
|
1174
|
-
// wait = true
|
|
1175
|
-
// setTimeout(() => {
|
|
1176
|
-
// wait = false
|
|
1177
|
-
// }, limit)
|
|
1178
|
-
// }
|
|
1179
|
-
// }
|
|
1180
|
-
// },
|
|
1181
|
-
getSize: function(t) {
|
|
1182
|
-
let e = 0;
|
|
1183
|
-
const s = document.getElementById("openc3-nav-drawer");
|
|
1184
|
-
s && (e = s.classList.contains(
|
|
1185
|
-
"v-navigation-drawer--active"
|
|
1186
|
-
) ? s.clientWidth : 0);
|
|
1187
|
-
let o = 0;
|
|
1188
|
-
(this.legendPosition === "right" || this.legendPosition === "left") && (o = document.getElementsByClassName("u-legend")[0].clientWidth);
|
|
1189
|
-
const l = Math.max(document.documentElement.clientWidth, window.innerWidth || 0) - e - o, a = Math.max(
|
|
1190
|
-
document.documentElement.clientHeight,
|
|
1191
|
-
window.innerHeight || 0
|
|
1192
|
-
), d = document.getElementsByClassName("v-expansion-panel")[0];
|
|
1193
|
-
let r = 100;
|
|
1194
|
-
t === "overview" ? this.fullHeight && !this.hideOverviewData ? this.showOverview = !0 : this.showOverview = !1 : (r = a - d.clientHeight - r - 250, this.fullHeight || (r = r / 2 + 10));
|
|
1195
|
-
let p = l - 50;
|
|
1196
|
-
return this.fullWidth || (p = p / 2 - 10), {
|
|
1197
|
-
width: this.width || p,
|
|
1198
|
-
height: this.height || r
|
|
1199
|
-
};
|
|
1200
|
-
},
|
|
1201
|
-
getScales: function() {
|
|
1202
|
-
return {
|
|
1203
|
-
scales: {
|
|
1204
|
-
x: {
|
|
1205
|
-
range(t, e, s) {
|
|
1206
|
-
return e == null ? [1566453600, 1566497660] : [e, s];
|
|
1207
|
-
}
|
|
1208
|
-
},
|
|
1209
|
-
y: {
|
|
1210
|
-
range(t, e, s) {
|
|
1211
|
-
return e == null ? [-100, 100] : I.rangeNum(e, s, 0.1, !0);
|
|
1212
|
-
}
|
|
1213
|
-
}
|
|
1214
|
-
}
|
|
1215
|
-
};
|
|
1216
|
-
},
|
|
1217
|
-
getAxes: function(t) {
|
|
1218
|
-
let e = "rgba(255, 255, 255, .1)", s = "white";
|
|
1219
|
-
return {
|
|
1220
|
-
axes: [
|
|
1221
|
-
{
|
|
1222
|
-
stroke: s,
|
|
1223
|
-
grid: {
|
|
1224
|
-
show: !0,
|
|
1225
|
-
stroke: e,
|
|
1226
|
-
width: 2
|
|
1227
|
-
}
|
|
1228
|
-
},
|
|
1229
|
-
{
|
|
1230
|
-
size: 80,
|
|
1231
|
-
// This size supports values up to 8 digits plus sign
|
|
1232
|
-
stroke: s,
|
|
1233
|
-
grid: {
|
|
1234
|
-
show: t !== "overview",
|
|
1235
|
-
stroke: e,
|
|
1236
|
-
width: 2
|
|
1237
|
-
},
|
|
1238
|
-
// Forces the axis values to be formatted correctly
|
|
1239
|
-
// especially with really small or large values
|
|
1240
|
-
values(o, l) {
|
|
1241
|
-
return (l.some((a) => a >= 1e7) || l.every((a) => a < 0.01)) && (l = l.map((a) => a.toExponential(3))), l;
|
|
1242
|
-
}
|
|
1243
|
-
}
|
|
1244
|
-
]
|
|
1245
|
-
};
|
|
1246
|
-
},
|
|
1247
|
-
closeEditItem: function(t) {
|
|
1248
|
-
this.editItem = !1, // If we have an end time and anything was changed we basically regraph
|
|
1249
|
-
(this.graphEndDateTime !== null && this.selectedItem !== t || // If we're live graphing we just regraph if the types change
|
|
1250
|
-
this.selectedItem.valueType !== t.valueType || this.selectedItem.reduced !== t.reduced || this.selectedItem.reducedType !== t.reducedType) && this.changeItem(t);
|
|
1251
|
-
},
|
|
1252
|
-
changeColor: function(t) {
|
|
1253
|
-
let e = this.subscriptionKey(this.selectedItem), s = this.indexes[e];
|
|
1254
|
-
this.items[s - 1].color = t, this.selectedItem.color = t, this.graph.root.querySelectorAll(".u-marker")[s].style.borderColor = t;
|
|
1255
|
-
},
|
|
1256
|
-
changeLimits: function(t) {
|
|
1257
|
-
let e = this.subscriptionKey(this.selectedItem), s = this.indexes[e];
|
|
1258
|
-
this.items[s - 1].limits = t, this.selectedItem.limits = t, this.limitsValues = t;
|
|
1259
|
-
},
|
|
1260
|
-
linesPlugin: function() {
|
|
1261
|
-
return {
|
|
1262
|
-
hooks: {
|
|
1263
|
-
draw: (t) => {
|
|
1264
|
-
const { ctx: e, bbox: s } = t, o = t.valToPos(t.scales.y.min, "y", !0), l = t.valToPos(t.scales.y.max, "y", !0), a = t.valToPos(this.limitsValues[0], "y", !0), d = t.valToPos(this.limitsValues[1], "y", !0), r = t.valToPos(this.limitsValues[2], "y", !0), p = t.valToPos(this.limitsValues[3], "y", !0);
|
|
1265
|
-
if (this.lines.forEach((f) => {
|
|
1266
|
-
t.scales.y.min <= f.yValue && f.yValue <= t.scales.y.max && (e.save(), e.beginPath(), e.strokeStyle = f.color, e.lineWidth = 2, e.moveTo(s.left, t.valToPos(f.yValue, "y", !0)), e.lineTo(
|
|
1267
|
-
s.left + s.width,
|
|
1268
|
-
t.valToPos(f.yValue, "y", !0)
|
|
1269
|
-
), e.stroke(), e.restore());
|
|
1270
|
-
}), e.save(), e.beginPath(), e.fillStyle = "rgba(255,0,0,0.15)", t.scales.y.min < this.limitsValues[0]) {
|
|
1271
|
-
let f = a < l ? l : a;
|
|
1272
|
-
e.fillRect(s.left, a, s.width, o - f);
|
|
1273
|
-
}
|
|
1274
|
-
if (t.scales.y.max > this.limitsValues[3]) {
|
|
1275
|
-
let f = o < p ? o : p;
|
|
1276
|
-
e.fillRect(s.left, l, s.width, f - l);
|
|
1277
|
-
}
|
|
1278
|
-
if (e.fillStyle = "rgba(255,255,0,0.15)", t.scales.y.min < this.limitsValues[1] && // yellowLow
|
|
1279
|
-
t.scales.y.max > this.limitsValues[0]) {
|
|
1280
|
-
let f = d < l ? l : d;
|
|
1281
|
-
e.fillRect(s.left, f, s.width, a - f);
|
|
1282
|
-
}
|
|
1283
|
-
if (t.scales.y.max > this.limitsValues[2] && // yellowHigh
|
|
1284
|
-
t.scales.y.min < this.limitsValues[3]) {
|
|
1285
|
-
let f = o < p ? o : p, v = o < r ? o : r;
|
|
1286
|
-
e.fillRect(s.left, f, s.width, v - f);
|
|
1287
|
-
}
|
|
1288
|
-
if (e.fillStyle = "rgba(0,255,0,0.15)", this.limitsValues.length === 4) {
|
|
1289
|
-
if (t.scales.y.min < this.limitsValues[2] && // yellowHigh
|
|
1290
|
-
t.scales.y.max > this.limitsValues[1]) {
|
|
1291
|
-
let f = r < l ? l : r, v = o < d ? o : d;
|
|
1292
|
-
e.fillRect(s.left, f, s.width, v - f);
|
|
1293
|
-
}
|
|
1294
|
-
} else {
|
|
1295
|
-
const f = t.valToPos(this.limitsValues[4], "y", !0), v = t.valToPos(this.limitsValues[5], "y", !0);
|
|
1296
|
-
if (t.scales.y.min < this.limitsValues[4] && // greenLow
|
|
1297
|
-
t.scales.y.max > this.limitsValues[1]) {
|
|
1298
|
-
let _ = f < l ? l : f;
|
|
1299
|
-
e.fillRect(s.left, _, s.width, d - _);
|
|
1300
|
-
}
|
|
1301
|
-
if (t.scales.y.max > this.limitsValues[5] && // greenHigh
|
|
1302
|
-
t.scales.y.min < this.limitsValues[2]) {
|
|
1303
|
-
let _ = o < r ? o : r, g = o < v ? o : v;
|
|
1304
|
-
e.fillRect(s.left, _, s.width, g - _);
|
|
1305
|
-
}
|
|
1306
|
-
e.fillStyle = "rgba(0,0,255,0.15)";
|
|
1307
|
-
let D = v < l ? l : v, w = o < f ? o : f;
|
|
1308
|
-
e.fillRect(s.left, D, s.width, w - D);
|
|
1309
|
-
}
|
|
1310
|
-
e.stroke(), e.restore();
|
|
1311
|
-
}
|
|
1312
|
-
}
|
|
1313
|
-
};
|
|
1314
|
-
},
|
|
1315
|
-
changeItem: function(t) {
|
|
1316
|
-
this.removeItems([this.selectedItem]), this.selectedItem.valueType = t.valueType, this.selectedItem.reduced = t.reduced, this.selectedItem.reducedType = t.reducedType, setTimeout(() => {
|
|
1317
|
-
this.addItems([this.selectedItem]);
|
|
1318
|
-
}, 0);
|
|
1319
|
-
},
|
|
1320
|
-
addItems: function(t, e = "CONVERTED") {
|
|
1321
|
-
t.forEach((s) => {
|
|
1322
|
-
s.valueType || (s.valueType = e), s.color || (s.color = this.colors[this.colorIndex]), s.limits || (s.limits = []), s.limits.length > 0 && (this.limitsValues = s.limits), this.colorIndex = (this.colorIndex + 1) % this.colors.length, this.items.push(s);
|
|
1323
|
-
const o = this.data.length;
|
|
1324
|
-
this.graph.addSeries(this.createSeriesConfig(s), o), this.overview && this.overview.addSeries(this.createOverviewSeriesConfig(), o), this.data.splice(o, 0, Array(this.data[0].length)), this.indexes[this.subscriptionKey(s)] = o;
|
|
1325
|
-
}), this.updateColorIndex(t), this.addItemsToSubscription(t), this.$emit("resize"), this.$emit("edit");
|
|
1326
|
-
},
|
|
1327
|
-
createSeriesConfig: function(t) {
|
|
1328
|
-
return {
|
|
1329
|
-
spanGaps: !0,
|
|
1330
|
-
item: t,
|
|
1331
|
-
label: this.formatLabel(t),
|
|
1332
|
-
stroke: (e, s) => this.items[s - 1].color,
|
|
1333
|
-
width: 2,
|
|
1334
|
-
value: (e, s) => typeof s == "string" || isNaN(s) ? "NaN" : s == null ? "--" : Math.abs(s) < 0.01 && s !== 0 || Math.abs(s) >= 1e7 ? s.toExponential(6) : s.toFixed(6)
|
|
1335
|
-
};
|
|
1336
|
-
},
|
|
1337
|
-
createOverviewSeriesConfig: function() {
|
|
1338
|
-
return {
|
|
1339
|
-
spanGaps: !0,
|
|
1340
|
-
stroke: (t, e) => this.items[e - 1].color
|
|
1341
|
-
};
|
|
1342
|
-
},
|
|
1343
|
-
updateColorIndex: function(t) {
|
|
1344
|
-
const e = t[t.length - 1];
|
|
1345
|
-
if (e) {
|
|
1346
|
-
const s = this.colors.indexOf(e.color);
|
|
1347
|
-
s !== -1 && (this.colorIndex = (s + 1) % this.colors.length);
|
|
1348
|
-
}
|
|
1349
|
-
},
|
|
1350
|
-
addItemsToSubscription: function(t = this.items) {
|
|
1351
|
-
let e = this.startTime;
|
|
1352
|
-
this.graphStartDateTime && (e = this.graphStartDateTime), this.subscription && OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity).then(
|
|
1353
|
-
(s) => {
|
|
1354
|
-
s && OpenC3Auth.setTokens(), this.subscription.perform("add", {
|
|
1355
|
-
scope: window.openc3Scope,
|
|
1356
|
-
token: localStorage.openc3Token,
|
|
1357
|
-
items: t.map(this.subscriptionKey),
|
|
1358
|
-
start_time: e,
|
|
1359
|
-
end_time: this.graphEndDateTime
|
|
1360
|
-
});
|
|
1361
|
-
}
|
|
1362
|
-
);
|
|
1363
|
-
},
|
|
1364
|
-
clearAllData: function() {
|
|
1365
|
-
this.data[0] = [], this.clearData(this.items);
|
|
1366
|
-
},
|
|
1367
|
-
clearData: function(t) {
|
|
1368
|
-
for (const e of t.map(this.subscriptionKey)) {
|
|
1369
|
-
let s = this.indexes[e];
|
|
1370
|
-
this.data[s] = Array(this.data[0].length).fill(null), this.graph.setData(this.data), this.overview && this.overview.setData(this.data);
|
|
1371
|
-
}
|
|
1372
|
-
this.data.length === 2 && (this.data[0] = [], this.graph.setData(this.data), this.overview.setData(this.data));
|
|
1373
|
-
},
|
|
1374
|
-
removeItems: function(t) {
|
|
1375
|
-
this.removeItemsFromSubscription(t);
|
|
1376
|
-
for (const e of t.map(this.subscriptionKey)) {
|
|
1377
|
-
const s = this.reorderIndexes(e);
|
|
1378
|
-
this.items.splice(s - 1, 1), this.data.splice(s, 1), this.graph.delSeries(s), this.graph.setData(this.data), this.overview && (this.overview.delSeries(s), this.overview.setData(this.data));
|
|
1379
|
-
}
|
|
1380
|
-
this.data.length === 1 && (this.data[0] = [], this.graph.setData(this.data), this.overview.setData(this.data)), this.$emit("resize"), this.$emit("edit");
|
|
1381
|
-
},
|
|
1382
|
-
removeItemsFromSubscription: function(t = this.items) {
|
|
1383
|
-
this.subscription && this.subscription.perform("remove", {
|
|
1384
|
-
scope: window.openc3Scope,
|
|
1385
|
-
token: localStorage.openc3Token,
|
|
1386
|
-
items: t.map(this.subscriptionKey)
|
|
1387
|
-
});
|
|
1388
|
-
},
|
|
1389
|
-
reorderIndexes: function(t) {
|
|
1390
|
-
let e = this.indexes[t];
|
|
1391
|
-
delete this.indexes[t];
|
|
1392
|
-
for (let s in this.indexes)
|
|
1393
|
-
this.indexes[s] > e && (this.indexes[s] -= 1);
|
|
1394
|
-
return e;
|
|
1395
|
-
},
|
|
1396
|
-
received: function(t) {
|
|
1397
|
-
this.cable.recordPing();
|
|
1398
|
-
for (let e = 0; e < t.length; e++) {
|
|
1399
|
-
let s = t[e].__time / 1e9, o = t[0].length;
|
|
1400
|
-
if (o === 0 || s > t[0][o - 1]) {
|
|
1401
|
-
for (let l = 0; l < this.data.length; l++)
|
|
1402
|
-
this.data[l].push(null);
|
|
1403
|
-
this.set_data_at_index(this.data[0].length - 1, s, t[e]);
|
|
1404
|
-
} else {
|
|
1405
|
-
let l = ge(this.data[0], s, this.bs_comparator);
|
|
1406
|
-
if (l >= 0)
|
|
1407
|
-
this.set_data_at_index(l, s, t[e]);
|
|
1408
|
-
else {
|
|
1409
|
-
let a = -l - 1;
|
|
1410
|
-
for (let d = 0; d < this.data.length; d++)
|
|
1411
|
-
this.data[d].splice(a, 0, null);
|
|
1412
|
-
this.set_data_at_index(a, s, t[e]);
|
|
1413
|
-
}
|
|
1414
|
-
}
|
|
1415
|
-
}
|
|
1416
|
-
if (this.startTime == null && this.data[0][0]) {
|
|
1417
|
-
let e = this.data[0][0] * 1e9;
|
|
1418
|
-
this.$emit("started", e);
|
|
1419
|
-
}
|
|
1420
|
-
this.dataChanged = !0;
|
|
1421
|
-
},
|
|
1422
|
-
bs_comparator: function(t, e) {
|
|
1423
|
-
return t - e;
|
|
1424
|
-
},
|
|
1425
|
-
set_data_at_index: function(t, e, s) {
|
|
1426
|
-
this.data[0][t] = e;
|
|
1427
|
-
for (const [o, l] of Object.entries(s)) {
|
|
1428
|
-
if (o === "time")
|
|
1429
|
-
continue;
|
|
1430
|
-
let a = this.indexes[o];
|
|
1431
|
-
if (a) {
|
|
1432
|
-
let d = this.data[a];
|
|
1433
|
-
if (l != null && l.raw)
|
|
1434
|
-
d[t] = null;
|
|
1435
|
-
else if (typeof l == "string") {
|
|
1436
|
-
if (d[t] = null, !o.includes("__RAW")) {
|
|
1437
|
-
for (let r of this.items)
|
|
1438
|
-
if (this.subscriptionKey(r) === o) {
|
|
1439
|
-
this.selectedItem = r;
|
|
1440
|
-
break;
|
|
1441
|
-
}
|
|
1442
|
-
this.changeItem({
|
|
1443
|
-
valueType: "RAW",
|
|
1444
|
-
reduced: this.selectedItem.reduced,
|
|
1445
|
-
reducedType: this.selectedItem.reducedType
|
|
1446
|
-
});
|
|
1447
|
-
}
|
|
1448
|
-
} else
|
|
1449
|
-
d[t] = l;
|
|
1450
|
-
}
|
|
1451
|
-
}
|
|
1452
|
-
},
|
|
1453
|
-
subscriptionKey: function(t) {
|
|
1454
|
-
let e = `${t.reduced}__TLM__${t.targetName}__${t.packetName}__${t.itemName}__${t.valueType}`;
|
|
1455
|
-
return (t.reduced === "REDUCED_MINUTE" || t.reduced === "REDUCED_HOUR" || t.reduced === "REDUCED_DAY") && (e += `__${t.reducedType}`), e;
|
|
1456
|
-
}
|
|
1457
|
-
}
|
|
1458
|
-
}, ye = { class: "mx-2" }, be = {
|
|
1459
|
-
class: "pa-1",
|
|
1460
|
-
id: "chart",
|
|
1461
|
-
ref: "chart"
|
|
1462
|
-
}, we = ["id"], Te = ["id"], De = {
|
|
1463
|
-
key: 5,
|
|
1464
|
-
class: "u-series",
|
|
1465
|
-
ref: "info"
|
|
1466
|
-
};
|
|
1467
|
-
function xe(t, e, s, o, l, a) {
|
|
1468
|
-
const d = m("v-icon"), r = m("v-tooltip"), p = m("v-spacer"), f = m("v-toolbar"), v = m("v-expand-transition"), D = m("v-card"), w = m("graph-edit-dialog"), _ = m("v-text-field"), g = m("v-row"), Y = m("v-textarea"), O = m("v-btn"), U = m("v-dialog"), k = m("v-list-item-title"), V = m("v-list-item"), G = m("v-list"), L = m("v-menu"), P = m("graph-edit-item-dialog"), H = m("v-list-subheader");
|
|
1469
|
-
return y(), R("div", null, [
|
|
1470
|
-
i(D, {
|
|
1471
|
-
onClick: e[3] || (e[3] = (u) => t.$emit("click"))
|
|
1472
|
-
}, {
|
|
1473
|
-
default: n(() => [
|
|
1474
|
-
C(i(f, {
|
|
1475
|
-
height: "24",
|
|
1476
|
-
class: J(["pl-2 pr-2", s.selectedGraphId === s.id ? "active" : ""])
|
|
1477
|
-
}, {
|
|
1478
|
-
default: n(() => [
|
|
1479
|
-
C(b("div", ye, [
|
|
1480
|
-
i(r, {
|
|
1481
|
-
text: "Errors",
|
|
1482
|
-
location: "bottom"
|
|
1483
|
-
}, {
|
|
1484
|
-
activator: n(({ props: u }) => [
|
|
1485
|
-
i(d, x(u, {
|
|
1486
|
-
onClick: e[0] || (e[0] = (z) => l.errorDialog = !0)
|
|
1487
|
-
}), {
|
|
1488
|
-
default: n(() => e[22] || (e[22] = [
|
|
1489
|
-
h("mdi-alert")
|
|
1490
|
-
])),
|
|
1491
|
-
_: 2
|
|
1492
|
-
}, 1040)
|
|
1493
|
-
]),
|
|
1494
|
-
_: 1
|
|
1495
|
-
})
|
|
1496
|
-
], 512), [
|
|
1497
|
-
[M, l.errors.length !== 0]
|
|
1498
|
-
]),
|
|
1499
|
-
i(r, {
|
|
1500
|
-
text: "Edit",
|
|
1501
|
-
location: "bottom"
|
|
1502
|
-
}, {
|
|
1503
|
-
activator: n(({ props: u }) => [
|
|
1504
|
-
i(d, x(u, {
|
|
1505
|
-
onClick: e[1] || (e[1] = (z) => l.editGraph = !0),
|
|
1506
|
-
"data-test": "edit-graph-icon"
|
|
1507
|
-
}), {
|
|
1508
|
-
default: n(() => e[23] || (e[23] = [
|
|
1509
|
-
h("mdi-pencil")
|
|
1510
|
-
])),
|
|
1511
|
-
_: 2
|
|
1512
|
-
}, 1040)
|
|
1513
|
-
]),
|
|
1514
|
-
_: 1
|
|
1515
|
-
}),
|
|
1516
|
-
i(p),
|
|
1517
|
-
b("span", null, E(l.title), 1),
|
|
1518
|
-
i(p),
|
|
1519
|
-
C(b("div", null, [
|
|
1520
|
-
a.calcFullSize ? (y(), T(r, {
|
|
1521
|
-
key: 0,
|
|
1522
|
-
text: "Collapse",
|
|
1523
|
-
location: "bottom"
|
|
1524
|
-
}, {
|
|
1525
|
-
activator: n(({ props: u }) => [
|
|
1526
|
-
i(d, x(u, {
|
|
1527
|
-
onClick: a.collapseAll,
|
|
1528
|
-
"data-test": "collapse-all"
|
|
1529
|
-
}), {
|
|
1530
|
-
default: n(() => e[24] || (e[24] = [
|
|
1531
|
-
h("mdi-arrow-collapse")
|
|
1532
|
-
])),
|
|
1533
|
-
_: 2
|
|
1534
|
-
}, 1040, ["onClick"])
|
|
1535
|
-
]),
|
|
1536
|
-
_: 1
|
|
1537
|
-
})) : (y(), T(r, {
|
|
1538
|
-
key: 1,
|
|
1539
|
-
text: "Expand",
|
|
1540
|
-
location: "bottom"
|
|
1541
|
-
}, {
|
|
1542
|
-
activator: n(({ props: u }) => [
|
|
1543
|
-
i(d, x(u, {
|
|
1544
|
-
onClick: a.expandAll,
|
|
1545
|
-
"data-test": "expand-all"
|
|
1546
|
-
}), {
|
|
1547
|
-
default: n(() => e[25] || (e[25] = [
|
|
1548
|
-
h("mdi-arrow-expand")
|
|
1549
|
-
])),
|
|
1550
|
-
_: 2
|
|
1551
|
-
}, 1040, ["onClick"])
|
|
1552
|
-
]),
|
|
1553
|
-
_: 1
|
|
1554
|
-
}))
|
|
1555
|
-
], 512), [
|
|
1556
|
-
[M, l.expand]
|
|
1557
|
-
]),
|
|
1558
|
-
C(b("div", null, [
|
|
1559
|
-
l.fullWidth ? (y(), T(r, {
|
|
1560
|
-
key: 0,
|
|
1561
|
-
text: "Collapse Width",
|
|
1562
|
-
location: "bottom"
|
|
1563
|
-
}, {
|
|
1564
|
-
activator: n(({ props: u }) => [
|
|
1565
|
-
i(d, x(u, {
|
|
1566
|
-
onClick: a.collapseWidth,
|
|
1567
|
-
"data-test": "collapse-width"
|
|
1568
|
-
}), {
|
|
1569
|
-
default: n(() => e[26] || (e[26] = [
|
|
1570
|
-
h("mdi-arrow-collapse-horizontal")
|
|
1571
|
-
])),
|
|
1572
|
-
_: 2
|
|
1573
|
-
}, 1040, ["onClick"])
|
|
1574
|
-
]),
|
|
1575
|
-
_: 1
|
|
1576
|
-
})) : (y(), T(r, {
|
|
1577
|
-
key: 1,
|
|
1578
|
-
text: "Expand Width",
|
|
1579
|
-
location: "bottom"
|
|
1580
|
-
}, {
|
|
1581
|
-
activator: n(({ props: u }) => [
|
|
1582
|
-
i(d, x(u, {
|
|
1583
|
-
onClick: a.expandWidth,
|
|
1584
|
-
"data-test": "expand-width"
|
|
1585
|
-
}), {
|
|
1586
|
-
default: n(() => e[27] || (e[27] = [
|
|
1587
|
-
h("mdi-arrow-expand-horizontal")
|
|
1588
|
-
])),
|
|
1589
|
-
_: 2
|
|
1590
|
-
}, 1040, ["onClick"])
|
|
1591
|
-
]),
|
|
1592
|
-
_: 1
|
|
1593
|
-
}))
|
|
1594
|
-
], 512), [
|
|
1595
|
-
[M, l.expand]
|
|
1596
|
-
]),
|
|
1597
|
-
C(b("div", null, [
|
|
1598
|
-
l.fullHeight ? (y(), T(r, {
|
|
1599
|
-
key: 0,
|
|
1600
|
-
text: "Collapse Height",
|
|
1601
|
-
location: "bottom"
|
|
1602
|
-
}, {
|
|
1603
|
-
activator: n(({ props: u }) => [
|
|
1604
|
-
i(d, x(u, {
|
|
1605
|
-
onClick: a.collapseHeight,
|
|
1606
|
-
"data-test": "collapse-height"
|
|
1607
|
-
}), {
|
|
1608
|
-
default: n(() => e[28] || (e[28] = [
|
|
1609
|
-
h("mdi-arrow-collapse-vertical")
|
|
1610
|
-
])),
|
|
1611
|
-
_: 2
|
|
1612
|
-
}, 1040, ["onClick"])
|
|
1613
|
-
]),
|
|
1614
|
-
_: 1
|
|
1615
|
-
})) : (y(), T(r, {
|
|
1616
|
-
key: 1,
|
|
1617
|
-
text: "Expand Height",
|
|
1618
|
-
location: "bottom"
|
|
1619
|
-
}, {
|
|
1620
|
-
activator: n(({ props: u }) => [
|
|
1621
|
-
i(d, x(u, {
|
|
1622
|
-
onClick: a.expandHeight,
|
|
1623
|
-
"data-test": "expand-height"
|
|
1624
|
-
}), {
|
|
1625
|
-
default: n(() => e[29] || (e[29] = [
|
|
1626
|
-
h("mdi-arrow-expand-vertical")
|
|
1627
|
-
])),
|
|
1628
|
-
_: 2
|
|
1629
|
-
}, 1040, ["onClick"])
|
|
1630
|
-
]),
|
|
1631
|
-
_: 1
|
|
1632
|
-
}))
|
|
1633
|
-
], 512), [
|
|
1634
|
-
[M, l.expand]
|
|
1635
|
-
]),
|
|
1636
|
-
l.expand ? (y(), T(r, {
|
|
1637
|
-
key: 0,
|
|
1638
|
-
text: "Minimize",
|
|
1639
|
-
location: "bottom"
|
|
1640
|
-
}, {
|
|
1641
|
-
activator: n(({ props: u }) => [
|
|
1642
|
-
i(d, x(u, {
|
|
1643
|
-
onClick: a.minMaxTransition,
|
|
1644
|
-
"data-test": "minimize-screen-icon"
|
|
1645
|
-
}), {
|
|
1646
|
-
default: n(() => e[30] || (e[30] = [
|
|
1647
|
-
h("mdi-window-minimize")
|
|
1648
|
-
])),
|
|
1649
|
-
_: 2
|
|
1650
|
-
}, 1040, ["onClick"])
|
|
1651
|
-
]),
|
|
1652
|
-
_: 1
|
|
1653
|
-
})) : (y(), T(r, {
|
|
1654
|
-
key: 1,
|
|
1655
|
-
text: "Maximize",
|
|
1656
|
-
location: "bottom"
|
|
1657
|
-
}, {
|
|
1658
|
-
activator: n(({ props: u }) => [
|
|
1659
|
-
i(d, x(u, {
|
|
1660
|
-
onClick: a.minMaxTransition,
|
|
1661
|
-
"data-test": "maximize-screen-icon"
|
|
1662
|
-
}), {
|
|
1663
|
-
default: n(() => e[31] || (e[31] = [
|
|
1664
|
-
h("mdi-window-maximize")
|
|
1665
|
-
])),
|
|
1666
|
-
_: 2
|
|
1667
|
-
}, 1040, ["onClick"])
|
|
1668
|
-
]),
|
|
1669
|
-
_: 1
|
|
1670
|
-
})),
|
|
1671
|
-
i(r, {
|
|
1672
|
-
text: "Close",
|
|
1673
|
-
location: "bottom"
|
|
1674
|
-
}, {
|
|
1675
|
-
activator: n(({ props: u }) => [
|
|
1676
|
-
i(d, x(u, {
|
|
1677
|
-
onClick: e[2] || (e[2] = (z) => t.$emit("close-graph")),
|
|
1678
|
-
"data-test": "close-graph-icon"
|
|
1679
|
-
}), {
|
|
1680
|
-
default: n(() => e[32] || (e[32] = [
|
|
1681
|
-
h("mdi-close-box")
|
|
1682
|
-
])),
|
|
1683
|
-
_: 2
|
|
1684
|
-
}, 1040)
|
|
1685
|
-
]),
|
|
1686
|
-
_: 1
|
|
1687
|
-
})
|
|
1688
|
-
]),
|
|
1689
|
-
_: 1
|
|
1690
|
-
}, 8, ["class"]), [
|
|
1691
|
-
[M, !l.hideToolbarData]
|
|
1692
|
-
]),
|
|
1693
|
-
i(v, null, {
|
|
1694
|
-
default: n(() => [
|
|
1695
|
-
C(b("div", be, [
|
|
1696
|
-
b("div", {
|
|
1697
|
-
id: `chart${s.id}`
|
|
1698
|
-
}, null, 8, we),
|
|
1699
|
-
e[33] || (e[33] = b("div", { id: "betweenCharts" }, null, -1)),
|
|
1700
|
-
C(b("div", {
|
|
1701
|
-
id: `overview${s.id}`
|
|
1702
|
-
}, null, 8, Te), [
|
|
1703
|
-
[M, l.showOverview]
|
|
1704
|
-
])
|
|
1705
|
-
], 512), [
|
|
1706
|
-
[M, l.expand]
|
|
1707
|
-
])
|
|
1708
|
-
]),
|
|
1709
|
-
_: 1
|
|
1710
|
-
})
|
|
1711
|
-
]),
|
|
1712
|
-
_: 1
|
|
1713
|
-
}),
|
|
1714
|
-
l.editGraph ? (y(), T(w, {
|
|
1715
|
-
key: 0,
|
|
1716
|
-
modelValue: l.editGraph,
|
|
1717
|
-
"onUpdate:modelValue": e[4] || (e[4] = (u) => l.editGraph = u),
|
|
1718
|
-
title: l.title,
|
|
1719
|
-
"legend-position": l.legendPosition,
|
|
1720
|
-
items: l.items,
|
|
1721
|
-
"graph-min-y": l.graphMinY,
|
|
1722
|
-
"graph-max-y": l.graphMaxY,
|
|
1723
|
-
lines: l.lines,
|
|
1724
|
-
colors: l.colors,
|
|
1725
|
-
"start-date-time": l.graphStartDateTime,
|
|
1726
|
-
"end-date-time": l.graphEndDateTime,
|
|
1727
|
-
"time-zone": s.timeZone,
|
|
1728
|
-
onRemove: e[5] || (e[5] = (u) => a.removeItems([u])),
|
|
1729
|
-
onOk: a.editGraphClose,
|
|
1730
|
-
onCancel: e[6] || (e[6] = (u) => l.editGraph = !1)
|
|
1731
|
-
}, null, 8, ["modelValue", "title", "legend-position", "items", "graph-min-y", "graph-max-y", "lines", "colors", "start-date-time", "end-date-time", "time-zone", "onOk"])) : S("", !0),
|
|
1732
|
-
i(U, {
|
|
1733
|
-
modelValue: l.errorDialog,
|
|
1734
|
-
"onUpdate:modelValue": e[8] || (e[8] = (u) => l.errorDialog = u),
|
|
1735
|
-
"max-width": "600"
|
|
1736
|
-
}, {
|
|
1737
|
-
default: n(() => [
|
|
1738
|
-
i(f, { height: "24" }, {
|
|
1739
|
-
default: n(() => [
|
|
1740
|
-
i(p),
|
|
1741
|
-
e[34] || (e[34] = b("span", null, "Errors", -1)),
|
|
1742
|
-
i(p)
|
|
1743
|
-
]),
|
|
1744
|
-
_: 1
|
|
1745
|
-
}),
|
|
1746
|
-
i(D, { class: "pa-3" }, {
|
|
1747
|
-
default: n(() => [
|
|
1748
|
-
i(g, { dense: "" }, {
|
|
1749
|
-
default: n(() => [
|
|
1750
|
-
i(_, {
|
|
1751
|
-
readonly: "",
|
|
1752
|
-
"hide-details": "",
|
|
1753
|
-
modelValue: l.title,
|
|
1754
|
-
"onUpdate:modelValue": e[7] || (e[7] = (u) => l.title = u),
|
|
1755
|
-
class: "pb-2",
|
|
1756
|
-
label: "Graph Title"
|
|
1757
|
-
}, null, 8, ["modelValue"])
|
|
1758
|
-
]),
|
|
1759
|
-
_: 1
|
|
1760
|
-
}),
|
|
1761
|
-
i(g, { class: "my-3" }, {
|
|
1762
|
-
default: n(() => [
|
|
1763
|
-
i(Y, {
|
|
1764
|
-
readonly: "",
|
|
1765
|
-
rows: "8",
|
|
1766
|
-
value: a.error
|
|
1767
|
-
}, null, 8, ["value"])
|
|
1768
|
-
]),
|
|
1769
|
-
_: 1
|
|
1770
|
-
}),
|
|
1771
|
-
i(g, null, {
|
|
1772
|
-
default: n(() => [
|
|
1773
|
-
i(O, {
|
|
1774
|
-
block: "",
|
|
1775
|
-
onClick: a.clearErrors
|
|
1776
|
-
}, {
|
|
1777
|
-
default: n(() => e[35] || (e[35] = [
|
|
1778
|
-
h(" Clear ")
|
|
1779
|
-
])),
|
|
1780
|
-
_: 1
|
|
1781
|
-
}, 8, ["onClick"])
|
|
1782
|
-
]),
|
|
1783
|
-
_: 1
|
|
1784
|
-
})
|
|
1785
|
-
]),
|
|
1786
|
-
_: 1
|
|
1787
|
-
})
|
|
1788
|
-
]),
|
|
1789
|
-
_: 1
|
|
1790
|
-
}, 8, ["modelValue"]),
|
|
1791
|
-
l.editGraphMenu ? (y(), T(L, {
|
|
1792
|
-
key: 1,
|
|
1793
|
-
modelValue: l.editGraphMenu,
|
|
1794
|
-
"onUpdate:modelValue": e[10] || (e[10] = (u) => l.editGraphMenu = u),
|
|
1795
|
-
target: [l.editGraphMenuX, l.editGraphMenuY],
|
|
1796
|
-
absolute: "",
|
|
1797
|
-
"offset-y": ""
|
|
1798
|
-
}, {
|
|
1799
|
-
default: n(() => [
|
|
1800
|
-
i(G, null, {
|
|
1801
|
-
default: n(() => [
|
|
1802
|
-
i(V, {
|
|
1803
|
-
onClick: e[9] || (e[9] = (u) => l.editGraph = !0)
|
|
1804
|
-
}, {
|
|
1805
|
-
default: n(() => [
|
|
1806
|
-
i(k, { style: { cursor: "pointer" } }, {
|
|
1807
|
-
default: n(() => [
|
|
1808
|
-
h(" Edit " + E(l.title), 1)
|
|
1809
|
-
]),
|
|
1810
|
-
_: 1
|
|
1811
|
-
})
|
|
1812
|
-
]),
|
|
1813
|
-
_: 1
|
|
1814
|
-
})
|
|
1815
|
-
]),
|
|
1816
|
-
_: 1
|
|
1817
|
-
})
|
|
1818
|
-
]),
|
|
1819
|
-
_: 1
|
|
1820
|
-
}, 8, ["modelValue", "target"])) : S("", !0),
|
|
1821
|
-
l.editItem ? (y(), T(P, {
|
|
1822
|
-
key: 2,
|
|
1823
|
-
modelValue: l.editItem,
|
|
1824
|
-
"onUpdate:modelValue": e[11] || (e[11] = (u) => l.editItem = u),
|
|
1825
|
-
colors: l.colors,
|
|
1826
|
-
item: l.selectedItem,
|
|
1827
|
-
onChangeColor: a.changeColor,
|
|
1828
|
-
onChangeLimits: a.changeLimits,
|
|
1829
|
-
onCancel: e[12] || (e[12] = (u) => l.editItem = !1),
|
|
1830
|
-
onClose: a.closeEditItem
|
|
1831
|
-
}, null, 8, ["modelValue", "colors", "item", "onChangeColor", "onChangeLimits", "onClose"])) : S("", !0),
|
|
1832
|
-
l.itemMenu ? (y(), T(L, {
|
|
1833
|
-
key: 3,
|
|
1834
|
-
modelValue: l.itemMenu,
|
|
1835
|
-
"onUpdate:modelValue": e[16] || (e[16] = (u) => l.itemMenu = u),
|
|
1836
|
-
target: [l.itemMenuX, l.itemMenuY],
|
|
1837
|
-
absolute: "",
|
|
1838
|
-
"offset-y": ""
|
|
1839
|
-
}, {
|
|
1840
|
-
default: n(() => [
|
|
1841
|
-
i(G, {
|
|
1842
|
-
nav: "",
|
|
1843
|
-
density: "compact"
|
|
1844
|
-
}, {
|
|
1845
|
-
default: n(() => [
|
|
1846
|
-
i(H, null, {
|
|
1847
|
-
default: n(() => [
|
|
1848
|
-
h(E(l.selectedItem.targetName) + " " + E(l.selectedItem.packetName) + " " + E(l.selectedItem.itemName), 1)
|
|
1849
|
-
]),
|
|
1850
|
-
_: 1
|
|
1851
|
-
}),
|
|
1852
|
-
i(V, {
|
|
1853
|
-
onClick: e[13] || (e[13] = (u) => l.editItem = !0)
|
|
1854
|
-
}, {
|
|
1855
|
-
prepend: n(() => [
|
|
1856
|
-
i(d, { icon: "mdi-pencil" })
|
|
1857
|
-
]),
|
|
1858
|
-
default: n(() => [
|
|
1859
|
-
i(k, null, {
|
|
1860
|
-
default: n(() => e[36] || (e[36] = [
|
|
1861
|
-
h(" Edit ")
|
|
1862
|
-
])),
|
|
1863
|
-
_: 1
|
|
1864
|
-
})
|
|
1865
|
-
]),
|
|
1866
|
-
_: 1
|
|
1867
|
-
}),
|
|
1868
|
-
i(V, {
|
|
1869
|
-
onClick: e[14] || (e[14] = (u) => a.clearData([l.selectedItem]))
|
|
1870
|
-
}, {
|
|
1871
|
-
prepend: n(() => [
|
|
1872
|
-
i(d, { icon: "mdi-eraser" })
|
|
1873
|
-
]),
|
|
1874
|
-
default: n(() => [
|
|
1875
|
-
i(k, null, {
|
|
1876
|
-
default: n(() => e[37] || (e[37] = [
|
|
1877
|
-
h(" Clear ")
|
|
1878
|
-
])),
|
|
1879
|
-
_: 1
|
|
1880
|
-
})
|
|
1881
|
-
]),
|
|
1882
|
-
_: 1
|
|
1883
|
-
}),
|
|
1884
|
-
i(V, {
|
|
1885
|
-
onClick: e[15] || (e[15] = (u) => a.removeItems([l.selectedItem]))
|
|
1886
|
-
}, {
|
|
1887
|
-
prepend: n(() => [
|
|
1888
|
-
i(d, { icon: "mdi-delete" })
|
|
1889
|
-
]),
|
|
1890
|
-
default: n(() => [
|
|
1891
|
-
i(k, null, {
|
|
1892
|
-
default: n(() => e[38] || (e[38] = [
|
|
1893
|
-
h(" Delete ")
|
|
1894
|
-
])),
|
|
1895
|
-
_: 1
|
|
1896
|
-
})
|
|
1897
|
-
]),
|
|
1898
|
-
_: 1
|
|
1899
|
-
})
|
|
1900
|
-
]),
|
|
1901
|
-
_: 1
|
|
1902
|
-
})
|
|
1903
|
-
]),
|
|
1904
|
-
_: 1
|
|
1905
|
-
}, 8, ["modelValue", "target"])) : S("", !0),
|
|
1906
|
-
l.legendMenu ? (y(), T(L, {
|
|
1907
|
-
key: 4,
|
|
1908
|
-
modelValue: l.legendMenu,
|
|
1909
|
-
"onUpdate:modelValue": e[21] || (e[21] = (u) => l.legendMenu = u),
|
|
1910
|
-
target: [l.legendMenuX, l.legendMenuY],
|
|
1911
|
-
absolute: "",
|
|
1912
|
-
"offset-y": ""
|
|
1913
|
-
}, {
|
|
1914
|
-
default: n(() => [
|
|
1915
|
-
i(G, null, {
|
|
1916
|
-
default: n(() => [
|
|
1917
|
-
i(V, {
|
|
1918
|
-
onClick: e[17] || (e[17] = (u) => a.moveLegend("top"))
|
|
1919
|
-
}, {
|
|
1920
|
-
default: n(() => [
|
|
1921
|
-
i(k, { style: { cursor: "pointer" } }, {
|
|
1922
|
-
default: n(() => e[39] || (e[39] = [
|
|
1923
|
-
h("Legend Top")
|
|
1924
|
-
])),
|
|
1925
|
-
_: 1
|
|
1926
|
-
})
|
|
1927
|
-
]),
|
|
1928
|
-
_: 1
|
|
1929
|
-
}),
|
|
1930
|
-
i(V, {
|
|
1931
|
-
onClick: e[18] || (e[18] = (u) => a.moveLegend("bottom"))
|
|
1932
|
-
}, {
|
|
1933
|
-
default: n(() => [
|
|
1934
|
-
i(k, { style: { cursor: "pointer" } }, {
|
|
1935
|
-
default: n(() => e[40] || (e[40] = [
|
|
1936
|
-
h("Legend Bottom")
|
|
1937
|
-
])),
|
|
1938
|
-
_: 1
|
|
1939
|
-
})
|
|
1940
|
-
]),
|
|
1941
|
-
_: 1
|
|
1942
|
-
}),
|
|
1943
|
-
i(V, {
|
|
1944
|
-
onClick: e[19] || (e[19] = (u) => a.moveLegend("left"))
|
|
1945
|
-
}, {
|
|
1946
|
-
default: n(() => [
|
|
1947
|
-
i(k, { style: { cursor: "pointer" } }, {
|
|
1948
|
-
default: n(() => e[41] || (e[41] = [
|
|
1949
|
-
h("Legend Left")
|
|
1950
|
-
])),
|
|
1951
|
-
_: 1
|
|
1952
|
-
})
|
|
1953
|
-
]),
|
|
1954
|
-
_: 1
|
|
1955
|
-
}),
|
|
1956
|
-
i(V, {
|
|
1957
|
-
onClick: e[20] || (e[20] = (u) => a.moveLegend("right"))
|
|
1958
|
-
}, {
|
|
1959
|
-
default: n(() => [
|
|
1960
|
-
i(k, { style: { cursor: "pointer" } }, {
|
|
1961
|
-
default: n(() => e[42] || (e[42] = [
|
|
1962
|
-
h("Legend RIght")
|
|
1963
|
-
])),
|
|
1964
|
-
_: 1
|
|
1965
|
-
})
|
|
1966
|
-
]),
|
|
1967
|
-
_: 1
|
|
1968
|
-
})
|
|
1969
|
-
]),
|
|
1970
|
-
_: 1
|
|
1971
|
-
})
|
|
1972
|
-
]),
|
|
1973
|
-
_: 1
|
|
1974
|
-
}, 8, ["modelValue", "target"])) : S("", !0),
|
|
1975
|
-
s.sparkline ? S("", !0) : (y(), R("div", De, [
|
|
1976
|
-
i(r, {
|
|
1977
|
-
text: "Click item to toggle, Right click to edit",
|
|
1978
|
-
location: "bottom"
|
|
1979
|
-
}, {
|
|
1980
|
-
activator: n(({ props: u }) => [
|
|
1981
|
-
i(d, Q($(u)), {
|
|
1982
|
-
default: n(() => e[43] || (e[43] = [
|
|
1983
|
-
h("mdi-information-variant-circle")
|
|
1984
|
-
])),
|
|
1985
|
-
_: 2
|
|
1986
|
-
}, 1040)
|
|
1987
|
-
]),
|
|
1988
|
-
_: 1
|
|
1989
|
-
})
|
|
1990
|
-
], 512))
|
|
1991
|
-
]);
|
|
1992
|
-
}
|
|
1993
|
-
const Ee = /* @__PURE__ */ W(ve, [["render", xe], ["__scopeId", "data-v-404a4684"]]);
|
|
1994
|
-
export {
|
|
1995
|
-
Ee as G,
|
|
1996
|
-
de as a,
|
|
1997
|
-
fe as b
|
|
1998
|
-
};
|
|
1999
|
-
//# sourceMappingURL=Graph-D2frd7mZ.js.map
|