@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/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openc3/vue-common",
|
|
3
3
|
"description": "Vue component library for COSMOS tool development",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "6.0.1",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"homepage": "https://openc3.com",
|
|
7
7
|
"repository": {
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
],
|
|
23
23
|
"exports": {
|
|
24
24
|
"./styles": {
|
|
25
|
-
"import": "./dist/
|
|
25
|
+
"import": "./dist/vue-common.css"
|
|
26
26
|
},
|
|
27
27
|
"./components": {
|
|
28
28
|
"import": "./dist/components.js",
|
|
@@ -64,32 +64,32 @@
|
|
|
64
64
|
"serve:standalone": "vite preview --mode standalone"
|
|
65
65
|
},
|
|
66
66
|
"dependencies": {
|
|
67
|
-
"@astrouxds/astro-web-components": "7.24.
|
|
68
|
-
"@openc3/js-common": "
|
|
67
|
+
"@astrouxds/astro-web-components": "7.24.1",
|
|
68
|
+
"@openc3/js-common": "6.0.1",
|
|
69
69
|
"@rails/actioncable": "7.1.3-4",
|
|
70
|
-
"axios": "1.7.
|
|
70
|
+
"axios": "1.7.9",
|
|
71
71
|
"binary-search": "1.3.6",
|
|
72
72
|
"date-fns": "4.1.0",
|
|
73
73
|
"date-fns-tz": "3.2.0",
|
|
74
74
|
"lodash": "4.17.21",
|
|
75
|
-
"sass": "1.
|
|
76
|
-
"single-spa": "
|
|
77
|
-
"sortablejs": "1.15.
|
|
75
|
+
"sass": "1.83.0",
|
|
76
|
+
"single-spa": "6.0.3",
|
|
77
|
+
"sortablejs": "1.15.6",
|
|
78
78
|
"sprintf-js": "1.1.3",
|
|
79
79
|
"uplot": "1.6.31",
|
|
80
|
-
"vue": "3.5.
|
|
81
|
-
"vuetify": "3.7.
|
|
80
|
+
"vue": "3.5.13",
|
|
81
|
+
"vuetify": "3.7.5",
|
|
82
82
|
"vuex": "4.1.0"
|
|
83
83
|
},
|
|
84
84
|
"devDependencies": {
|
|
85
|
-
"@vitejs/plugin-vue": "5.1
|
|
86
|
-
"@vue/eslint-config-prettier": "
|
|
87
|
-
"eslint": "9.
|
|
85
|
+
"@vitejs/plugin-vue": "5.2.1",
|
|
86
|
+
"@vue/eslint-config-prettier": "10.1.0",
|
|
87
|
+
"eslint": "9.17.0",
|
|
88
88
|
"eslint-config-prettier": "9.1.0",
|
|
89
89
|
"eslint-plugin-prettier": "5.2.1",
|
|
90
|
-
"eslint-plugin-vue": "9.
|
|
91
|
-
"prettier": "3.
|
|
92
|
-
"vite": "
|
|
90
|
+
"eslint-plugin-vue": "9.32.0",
|
|
91
|
+
"prettier": "3.4.2",
|
|
92
|
+
"vite": "6.0.5",
|
|
93
93
|
"vue-eslint-parser": "9.4.3"
|
|
94
94
|
}
|
|
95
95
|
}
|
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
import "./UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_6fa47877_lang-BrapmXxi.js";
|
|
2
|
-
import { resolveComponent as o, openBlock as m, createElementBlock as d, createVNode as i, normalizeClass as w, normalizeStyle as y, withCtx as l, Fragment as V, renderList as C, createBlock as k, withModifiers as D, createTextVNode as M, toDisplayString as S } from "vue";
|
|
3
|
-
import { _ as x } from "./CosmosRuxIcon.vue_vue_type_style_index_0_scoped_9af48e85_lang-CHgC5LLL.js";
|
|
4
|
-
import { D as L } from "./DetailsDialog-ScKx0N2e.js";
|
|
5
|
-
import { V as R } from "./VWidget-D9Wk0N9r.js";
|
|
6
|
-
const z = {
|
|
7
|
-
components: {
|
|
8
|
-
DetailsDialog: L
|
|
9
|
-
},
|
|
10
|
-
data: function() {
|
|
11
|
-
return {
|
|
12
|
-
width: 200,
|
|
13
|
-
height: 100,
|
|
14
|
-
itemsPerRow: 4,
|
|
15
|
-
formatter: null
|
|
16
|
-
};
|
|
17
|
-
},
|
|
18
|
-
mixins: [R],
|
|
19
|
-
computed: {
|
|
20
|
-
aging() {
|
|
21
|
-
return {
|
|
22
|
-
"--aging": this.grayLevel
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
|
-
},
|
|
26
|
-
created: function() {
|
|
27
|
-
this.width = this.setWidth(this.parameters[3], "px", this.width), this.height = this.setHeight(this.parameters[4], "px", this.height), this.parameters[5] && (this.formatter = this.parameters[5]), this.parameters[6] && (this.itemsPerRow = parseInt(this.parameters[6]));
|
|
28
|
-
},
|
|
29
|
-
methods: {
|
|
30
|
-
getType: function() {
|
|
31
|
-
let e = "CONVERTED";
|
|
32
|
-
return this.parameters[7] && (e = this.parameters[7]), e;
|
|
33
|
-
},
|
|
34
|
-
formatValue: function(e) {
|
|
35
|
-
var n;
|
|
36
|
-
let t = "", u = " ", p = `
|
|
37
|
-
`, r = 0;
|
|
38
|
-
if (Array.isArray(e)) {
|
|
39
|
-
for (const s of e)
|
|
40
|
-
this.formatter && ((n = this.formatter) == null ? void 0 : n.toLowerCase()) !== "nil" ? t += sprintf(this.formatter, s) : t += s, r += 1, r % this.itemsPerRow === 0 ? (r = 0, t += p) : t += u;
|
|
41
|
-
return t.trim();
|
|
42
|
-
} else
|
|
43
|
-
return e;
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
}, A = { class: "array-widget-container" };
|
|
47
|
-
function B(e, t, u, p, r, n) {
|
|
48
|
-
const s = o("v-textarea"), h = o("v-list-item-title"), c = o("v-list-item"), f = o("v-list"), g = o("v-menu"), v = o("details-dialog");
|
|
49
|
-
return m(), d("div", A, [
|
|
50
|
-
i(s, {
|
|
51
|
-
variant: "solo",
|
|
52
|
-
density: "compact",
|
|
53
|
-
readonly: "",
|
|
54
|
-
"no-resize": "",
|
|
55
|
-
"auto-grow": "",
|
|
56
|
-
rows: "2",
|
|
57
|
-
"hide-details": "",
|
|
58
|
-
"model-value": e._value,
|
|
59
|
-
class: w(e.valueClass),
|
|
60
|
-
style: y([e.computedStyle, n.aging]),
|
|
61
|
-
"data-test": "array-widget",
|
|
62
|
-
onContextmenu: e.showContextMenu
|
|
63
|
-
}, null, 8, ["model-value", "class", "style", "onContextmenu"]),
|
|
64
|
-
i(g, {
|
|
65
|
-
modelValue: e.contextMenuShown,
|
|
66
|
-
"onUpdate:modelValue": t[0] || (t[0] = (a) => e.contextMenuShown = a),
|
|
67
|
-
target: [e.x, e.y]
|
|
68
|
-
}, {
|
|
69
|
-
default: l(() => [
|
|
70
|
-
i(f, null, {
|
|
71
|
-
default: l(() => [
|
|
72
|
-
(m(!0), d(V, null, C(e.contextMenuOptions, (a, _) => (m(), k(c, {
|
|
73
|
-
key: _,
|
|
74
|
-
onClick: D(a.action, ["stop"])
|
|
75
|
-
}, {
|
|
76
|
-
default: l(() => [
|
|
77
|
-
i(h, null, {
|
|
78
|
-
default: l(() => [
|
|
79
|
-
M(S(a.title), 1)
|
|
80
|
-
]),
|
|
81
|
-
_: 2
|
|
82
|
-
}, 1024)
|
|
83
|
-
]),
|
|
84
|
-
_: 2
|
|
85
|
-
}, 1032, ["onClick"]))), 128))
|
|
86
|
-
]),
|
|
87
|
-
_: 1
|
|
88
|
-
})
|
|
89
|
-
]),
|
|
90
|
-
_: 1
|
|
91
|
-
}, 8, ["modelValue", "target"]),
|
|
92
|
-
i(v, {
|
|
93
|
-
"target-name": e.parameters[0],
|
|
94
|
-
"packet-name": e.parameters[1],
|
|
95
|
-
"item-name": e.parameters[2],
|
|
96
|
-
modelValue: e.viewDetails,
|
|
97
|
-
"onUpdate:modelValue": t[1] || (t[1] = (a) => e.viewDetails = a)
|
|
98
|
-
}, null, 8, ["target-name", "packet-name", "item-name", "modelValue"])
|
|
99
|
-
]);
|
|
100
|
-
}
|
|
101
|
-
const $ = /* @__PURE__ */ x(z, [["render", B], ["__scopeId", "data-v-62b9e9e1"]]);
|
|
102
|
-
export {
|
|
103
|
-
$ as default
|
|
104
|
-
};
|
|
105
|
-
//# sourceMappingURL=ArrayWidget-ChaMDaRA.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ArrayWidget-ChaMDaRA.js","sources":["../src/widgets/ArrayWidget.vue"],"sourcesContent":["<!--\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n\n# Modified by OpenC3, Inc.\n# All changes Copyright 2024, OpenC3, Inc.\n# All Rights Reserved\n#\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n-->\n\n<template>\n <div class=\"array-widget-container\">\n <v-textarea\n variant=\"solo\"\n density=\"compact\"\n readonly\n no-resize\n auto-grow\n rows=\"2\"\n hide-details\n :model-value=\"_value\"\n :class=\"valueClass\"\n :style=\"[computedStyle, aging]\"\n data-test=\"array-widget\"\n @contextmenu=\"showContextMenu\"\n />\n <v-menu v-model=\"contextMenuShown\" :target=\"[x, y]\">\n <v-list>\n <v-list-item\n v-for=\"(item, index) in contextMenuOptions\"\n :key=\"index\"\n @click.stop=\"item.action\"\n >\n <v-list-item-title>{{ item.title }}</v-list-item-title>\n </v-list-item>\n </v-list>\n </v-menu>\n\n <details-dialog\n :target-name=\"parameters[0]\"\n :packet-name=\"parameters[1]\"\n :item-name=\"parameters[2]\"\n v-model=\"viewDetails\"\n />\n </div>\n</template>\n\n<script>\nimport { DetailsDialog } from '@/components'\nimport VWidget from './VWidget'\nimport 'sprintf-js'\n\nexport default {\n components: {\n DetailsDialog,\n },\n data: function () {\n return {\n width: 200,\n height: 100,\n itemsPerRow: 4,\n formatter: null,\n }\n },\n mixins: [VWidget],\n computed: {\n aging() {\n return {\n '--aging': this.grayLevel,\n }\n },\n },\n created: function () {\n this.width = this.setWidth(this.parameters[3], 'px', this.width)\n this.height = this.setHeight(this.parameters[4], 'px', this.height)\n if (this.parameters[5]) {\n this.formatter = this.parameters[5]\n }\n if (this.parameters[6]) {\n this.itemsPerRow = parseInt(this.parameters[6])\n }\n },\n methods: {\n getType: function () {\n let type = 'CONVERTED'\n if (this.parameters[7]) {\n type = this.parameters[7]\n }\n return type\n },\n formatValue: function (data) {\n let text = ''\n let space = ' '\n let newLine = '\\n'\n let count = 0\n\n if (Array.isArray(data)) {\n for (const value of data) {\n if (this.formatter && this.formatter?.toLowerCase() !== 'nil') {\n text += sprintf(this.formatter, value)\n } else {\n text += value\n }\n count += 1\n if (count % this.itemsPerRow === 0) {\n count = 0\n text += newLine\n } else {\n text += space\n }\n }\n return text.trim()\n } else {\n return data\n }\n },\n },\n}\n</script>\n\n<style scoped>\n.array-widget-container :deep(.v-input__slot) {\n background: rgba(var(--aging), var(--aging), var(--aging), 1) !important;\n}\n.value :deep(div) {\n min-height: 24px !important;\n display: flex !important;\n align-items: center !important;\n}\n.array-widget-container :deep(.v-field__loader) {\n display: none !important;\n}\n.openc3-green :deep(input) {\n color: rgb(0, 200, 0);\n}\n.openc3-yellow :deep(input) {\n color: rgb(255, 220, 0);\n}\n.openc3-red :deep(input) {\n color: rgb(255, 45, 45);\n}\n.openc3-blue :deep(input) {\n color: rgb(0, 153, 255);\n}\n.openc3-purple :deep(input) {\n color: rgb(200, 0, 200);\n}\n.openc3-black :deep(input) {\n color: black;\n}\n.openc3-white :deep(input) {\n color: white;\n}\n</style>\n"],"names":["_sfc_main","DetailsDialog","VWidget","type","data","text","space","newLine","count","value","_a","_hoisted_1","_openBlock","_createElementBlock","_createVNode","_component_v_textarea","_ctx","_normalizeClass","_normalizeStyle","$options","_component_v_menu","_cache","$event","_withCtx","_component_v_list","_Fragment","_renderList","item","index","_createBlock","_component_v_list_item","_withModifiers","_component_v_list_item_title","_createTextVNode","_toDisplayString","_component_details_dialog"],"mappings":";;;;;AAgEA,MAAKA,IAAU;AAAA,EACb,YAAY;AAAA,IACV,eAAAC;AAAA,EACD;AAAA,EACD,MAAM,WAAY;AAChB,WAAO;AAAA,MACL,OAAO;AAAA,MACP,QAAQ;AAAA,MACR,aAAa;AAAA,MACb,WAAW;AAAA,IACb;AAAA,EACD;AAAA,EACD,QAAQ,CAACC,CAAO;AAAA,EAChB,UAAU;AAAA,IACR,QAAQ;AACN,aAAO;AAAA,QACL,WAAW,KAAK;AAAA,MAClB;AAAA,IACD;AAAA,EACF;AAAA,EACD,SAAS,WAAY;AACnB,SAAK,QAAQ,KAAK,SAAS,KAAK,WAAW,CAAC,GAAG,MAAM,KAAK,KAAK,GAC/D,KAAK,SAAS,KAAK,UAAU,KAAK,WAAW,CAAC,GAAG,MAAM,KAAK,MAAM,GAC9D,KAAK,WAAW,CAAC,MACnB,KAAK,YAAY,KAAK,WAAW,CAAC,IAEhC,KAAK,WAAW,CAAC,MACnB,KAAK,cAAc,SAAS,KAAK,WAAW,CAAC,CAAC;AAAA,EAEjD;AAAA,EACD,SAAS;AAA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AAA;AAAA,UA/Cf,SAAAD,EAyCU,MAA2C;AAAA,aAD7CX,EAAA,EAAA,GAAAC,EAMcY,SA9CtBC,EAyCkCV,EAAA,oBAzClC,CAyCkBW,GAAMC,YADhBC,EAMcC,GAAA;AAAA,cAJX,KAAKF;AAAA,cACL,SA3CXG,EA2CuBJ,EAAK,QAAM,CAAA,MAAA,CAAA;AAAA;cA3ClC,SAAAJ,EA6CU,MAAuD;AAAA,gBAAvDT,EAAuDkB,GAAA,MAAA;AAAA,kBA7CjE,SAAAT,EA6C6B,MAAgB;AAAA,oBA7C7CU,EA6CgCC,EAAAP,EAAK,KAAK,GAAA,CAAA;AAAA;kBA7C1C,GAAA;AAAA;;cAAA,GAAA;AAAA;;UAAA,GAAA;AAAA;;MAAA,GAAA;AAAA;IAkDIb,EAKEqB,GAAA;AAAA,MAJC,eAAanB,EAAU,WAAA,CAAA;AAAA,MACvB,eAAaA,EAAU,WAAA,CAAA;AAAA,MACvB,aAAWA,EAAU,WAAA,CAAA;AAAA,MArD5B,YAsDeA,EAAW;AAAA,MAtD1B,uBAAAK,EAAA,CAAA,MAAAA,EAAA,CAAA,IAAA,CAAAC,MAsDeN,EAAW,cAAAM;AAAA;;;;"}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_6fa47877_lang-DdL5xG80.cjs");const e=require("vue"),g=require("./CosmosRuxIcon.vue_vue_type_style_index_0_scoped_9af48e85_lang-BHFhmbuH.cjs"),f=require("./DetailsDialog-8ixZ1oPd.cjs"),v=require("./VWidget-BRkvqAVS.cjs"),_={components:{DetailsDialog:f.DetailsDialog},data:function(){return{width:200,height:100,itemsPerRow:4,formatter:null}},mixins:[v.VWidget],computed:{aging(){return{"--aging":this.grayLevel}}},created:function(){this.width=this.setWidth(this.parameters[3],"px",this.width),this.height=this.setHeight(this.parameters[4],"px",this.height),this.parameters[5]&&(this.formatter=this.parameters[5]),this.parameters[6]&&(this.itemsPerRow=parseInt(this.parameters[6]))},methods:{getType:function(){let t="CONVERTED";return this.parameters[7]&&(t=this.parameters[7]),t},formatValue:function(t){var r;let o="",s=" ",l=`
|
|
2
|
-
`,a=0;if(Array.isArray(t)){for(const i of t)this.formatter&&((r=this.formatter)==null?void 0:r.toLowerCase())!=="nil"?o+=sprintf(this.formatter,i):o+=i,a+=1,a%this.itemsPerRow===0?(a=0,o+=l):o+=s;return o.trim()}else return t}}},w={class:"array-widget-container"};function y(t,o,s,l,a,r){const i=e.resolveComponent("v-textarea"),m=e.resolveComponent("v-list-item-title"),u=e.resolveComponent("v-list-item"),d=e.resolveComponent("v-list"),p=e.resolveComponent("v-menu"),c=e.resolveComponent("details-dialog");return e.openBlock(),e.createElementBlock("div",w,[e.createVNode(i,{variant:"solo",density:"compact",readonly:"","no-resize":"","auto-grow":"",rows:"2","hide-details":"","model-value":t._value,class:e.normalizeClass(t.valueClass),style:e.normalizeStyle([t.computedStyle,r.aging]),"data-test":"array-widget",onContextmenu:t.showContextMenu},null,8,["model-value","class","style","onContextmenu"]),e.createVNode(p,{modelValue:t.contextMenuShown,"onUpdate:modelValue":o[0]||(o[0]=n=>t.contextMenuShown=n),target:[t.x,t.y]},{default:e.withCtx(()=>[e.createVNode(d,null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.contextMenuOptions,(n,h)=>(e.openBlock(),e.createBlock(u,{key:h,onClick:e.withModifiers(n.action,["stop"])},{default:e.withCtx(()=>[e.createVNode(m,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.title),1)]),_:2},1024)]),_:2},1032,["onClick"]))),128))]),_:1})]),_:1},8,["modelValue","target"]),e.createVNode(c,{"target-name":t.parameters[0],"packet-name":t.parameters[1],"item-name":t.parameters[2],modelValue:t.viewDetails,"onUpdate:modelValue":o[1]||(o[1]=n=>t.viewDetails=n)},null,8,["target-name","packet-name","item-name","modelValue"])])}const C=g._export_sfc(_,[["render",y],["__scopeId","data-v-62b9e9e1"]]);exports.default=C;
|
|
3
|
-
//# sourceMappingURL=ArrayWidget-x7le0X73.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ArrayWidget-x7le0X73.cjs","sources":["../src/widgets/ArrayWidget.vue"],"sourcesContent":["<!--\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n\n# Modified by OpenC3, Inc.\n# All changes Copyright 2024, OpenC3, Inc.\n# All Rights Reserved\n#\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n-->\n\n<template>\n <div class=\"array-widget-container\">\n <v-textarea\n variant=\"solo\"\n density=\"compact\"\n readonly\n no-resize\n auto-grow\n rows=\"2\"\n hide-details\n :model-value=\"_value\"\n :class=\"valueClass\"\n :style=\"[computedStyle, aging]\"\n data-test=\"array-widget\"\n @contextmenu=\"showContextMenu\"\n />\n <v-menu v-model=\"contextMenuShown\" :target=\"[x, y]\">\n <v-list>\n <v-list-item\n v-for=\"(item, index) in contextMenuOptions\"\n :key=\"index\"\n @click.stop=\"item.action\"\n >\n <v-list-item-title>{{ item.title }}</v-list-item-title>\n </v-list-item>\n </v-list>\n </v-menu>\n\n <details-dialog\n :target-name=\"parameters[0]\"\n :packet-name=\"parameters[1]\"\n :item-name=\"parameters[2]\"\n v-model=\"viewDetails\"\n />\n </div>\n</template>\n\n<script>\nimport { DetailsDialog } from '@/components'\nimport VWidget from './VWidget'\nimport 'sprintf-js'\n\nexport default {\n components: {\n DetailsDialog,\n },\n data: function () {\n return {\n width: 200,\n height: 100,\n itemsPerRow: 4,\n formatter: null,\n }\n },\n mixins: [VWidget],\n computed: {\n aging() {\n return {\n '--aging': this.grayLevel,\n }\n },\n },\n created: function () {\n this.width = this.setWidth(this.parameters[3], 'px', this.width)\n this.height = this.setHeight(this.parameters[4], 'px', this.height)\n if (this.parameters[5]) {\n this.formatter = this.parameters[5]\n }\n if (this.parameters[6]) {\n this.itemsPerRow = parseInt(this.parameters[6])\n }\n },\n methods: {\n getType: function () {\n let type = 'CONVERTED'\n if (this.parameters[7]) {\n type = this.parameters[7]\n }\n return type\n },\n formatValue: function (data) {\n let text = ''\n let space = ' '\n let newLine = '\\n'\n let count = 0\n\n if (Array.isArray(data)) {\n for (const value of data) {\n if (this.formatter && this.formatter?.toLowerCase() !== 'nil') {\n text += sprintf(this.formatter, value)\n } else {\n text += value\n }\n count += 1\n if (count % this.itemsPerRow === 0) {\n count = 0\n text += newLine\n } else {\n text += space\n }\n }\n return text.trim()\n } else {\n return data\n }\n },\n },\n}\n</script>\n\n<style scoped>\n.array-widget-container :deep(.v-input__slot) {\n background: rgba(var(--aging), var(--aging), var(--aging), 1) !important;\n}\n.value :deep(div) {\n min-height: 24px !important;\n display: flex !important;\n align-items: center !important;\n}\n.array-widget-container :deep(.v-field__loader) {\n display: none !important;\n}\n.openc3-green :deep(input) {\n color: rgb(0, 200, 0);\n}\n.openc3-yellow :deep(input) {\n color: rgb(255, 220, 0);\n}\n.openc3-red :deep(input) {\n color: rgb(255, 45, 45);\n}\n.openc3-blue :deep(input) {\n color: rgb(0, 153, 255);\n}\n.openc3-purple :deep(input) {\n color: rgb(200, 0, 200);\n}\n.openc3-black :deep(input) {\n color: black;\n}\n.openc3-white :deep(input) {\n color: white;\n}\n</style>\n"],"names":["_sfc_main","DetailsDialog","VWidget","type","data","text","space","newLine","count","value","_a","_hoisted_1","_openBlock","_createElementBlock","_createVNode","_component_v_textarea","_ctx","_normalizeClass","_normalizeStyle","$options","_component_v_menu","_cache","$event","_withCtx","_component_v_list","_Fragment","_renderList","item","index","_createBlock","_component_v_list_item","_withModifiers","_component_v_list_item_title","_createTextVNode","_toDisplayString","_component_details_dialog"],"mappings":"mXAgEKA,EAAU,CACb,WAAY,eACVC,EAAa,aACd,EACD,KAAM,UAAY,CAChB,MAAO,CACL,MAAO,IACP,OAAQ,IACR,YAAa,EACb,UAAW,IACb,CACD,EACD,OAAQ,CAACC,EAAAA,OAAO,EAChB,SAAU,CACR,OAAQ,CACN,MAAO,CACL,UAAW,KAAK,SAClB,CACD,CACF,EACD,QAAS,UAAY,CACnB,KAAK,MAAQ,KAAK,SAAS,KAAK,WAAW,CAAC,EAAG,KAAM,KAAK,KAAK,EAC/D,KAAK,OAAS,KAAK,UAAU,KAAK,WAAW,CAAC,EAAG,KAAM,KAAK,MAAM,EAC9D,KAAK,WAAW,CAAC,IACnB,KAAK,UAAY,KAAK,WAAW,CAAC,GAEhC,KAAK,WAAW,CAAC,IACnB,KAAK,YAAc,SAAS,KAAK,WAAW,CAAC,CAAC,EAEjD,EACD,QAAS,CACP,QAAS,UAAY,CACnB,IAAIC,EAAO,YACX,OAAI,KAAK,WAAW,CAAC,IACnBA,EAAO,KAAK,WAAW,CAAC,GAEnBA,CACR,EACD,YAAa,SAAUC,EAAM,OAC3B,IAAIC,EAAO,GACPC,EAAQ,IACRC,EAAU;AAAA,EACVC,EAAQ,EAEZ,GAAI,MAAM,QAAQJ,CAAI,EAAG,CACvB,UAAWK,KAASL,EACd,KAAK,aAAaM,EAAA,KAAK,YAAL,YAAAA,EAAgB,iBAAkB,MACtDL,GAAQ,QAAQ,KAAK,UAAWI,CAAK,EAErCJ,GAAQI,EAEVD,GAAS,EACLA,EAAQ,KAAK,cAAgB,GAC/BA,EAAQ,EACRH,GAAQE,GAERF,GAAQC,EAGZ,OAAOD,EAAK,KAAI,MAEhB,QAAOD,CAEV,CACF,CACH,EA1GOO,EAAA,CAAA,MAAM,wBAAwB,sPAAnC,OAAAC,YAAA,EAAAC,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AM"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";const c=["FATAL","fatal","ERROR","critical","serious","WARN","caution","INFO","normal","standby","off","DEBUG"],r=function(n){return n.map(e=>c.indexOf(e))},s=function(n){const e=r(n),t=Math.min(...e);return c[t]},u=function(n){const e=r(n),t=Math.max(...e);return c[t]},l=function(n,e=t=>t.level){return n.sort((t,o)=>c.indexOf(e(t))-c.indexOf(e(o)))},a=function(n,e=t=>t.level){return n.reduce((t,o)=>{const i=e(o);return t[i]||(t[i]=[]),t[i].push(o),t},{})},d=Object.freeze(Object.defineProperty({__proto__:null,groupByLevel:a,highestLevel:s,lowestLevel:u,orderByLevel:l},Symbol.toStringTag,{value:"Module"}));exports.AstroStatus=d;
|
|
2
|
-
//# sourceMappingURL=AstroStatus-CILMWL6F.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AstroStatus-CILMWL6F.cjs","sources":["../src/util/AstroStatus.js"],"sourcesContent":["/*\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n\n# Modified by OpenC3, Inc.\n# All changes Copyright 2023, OpenC3, Inc.\n# All Rights Reserved\n#\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n*/\n\nconst _levels = [\n // order of levels from highest to lowest\n 'FATAL',\n 'fatal',\n 'ERROR',\n 'critical',\n 'serious',\n 'WARN',\n 'caution',\n 'INFO',\n 'normal',\n 'standby',\n 'off',\n 'DEBUG',\n]\n\nconst _getLevelIndeces = function (levels) {\n return levels.map((level) => _levels.indexOf(level))\n}\n\nconst highestLevel = function (levels) {\n const indices = _getLevelIndeces(levels)\n const index = Math.min(...indices)\n return _levels[index]\n}\n\nconst lowestLevel = function (levels) {\n const indices = _getLevelIndeces(levels)\n const index = Math.max(...indices)\n return _levels[index]\n}\n\nconst orderByLevel = function (objects, levelGetter = (x) => x.level) {\n return objects.sort((a, b) => {\n return _levels.indexOf(levelGetter(a)) - _levels.indexOf(levelGetter(b))\n })\n}\n\nconst groupByLevel = function (objects, levelGetter = (x) => x.level) {\n return objects.reduce((groups, obj) => {\n const level = levelGetter(obj)\n groups[level] ||= []\n groups[level].push(obj)\n return groups\n }, {})\n}\n\nexport { highestLevel, lowestLevel, orderByLevel, groupByLevel }\n"],"names":["_levels","_getLevelIndeces","levels","level","highestLevel","indices","index","lowestLevel","orderByLevel","objects","levelGetter","x","a","b","groupByLevel","groups","obj"],"mappings":"aAsBA,MAAMA,EAAU,CAEd,QACA,QACA,QACA,WACA,UACA,OACA,UACA,OACA,SACA,UACA,MACA,OACF,EAEMC,EAAmB,SAAUC,EAAQ,CACzC,OAAOA,EAAO,IAAKC,GAAUH,EAAQ,QAAQG,CAAK,CAAC,CACrD,EAEMC,EAAe,SAAUF,EAAQ,CACrC,MAAMG,EAAUJ,EAAiBC,CAAM,EACjCI,EAAQ,KAAK,IAAI,GAAGD,CAAO,EACjC,OAAOL,EAAQM,CAAK,CACtB,EAEMC,EAAc,SAAUL,EAAQ,CACpC,MAAMG,EAAUJ,EAAiBC,CAAM,EACjCI,EAAQ,KAAK,IAAI,GAAGD,CAAO,EACjC,OAAOL,EAAQM,CAAK,CACtB,EAEME,EAAe,SAAUC,EAASC,EAAeC,GAAMA,EAAE,MAAO,CACpE,OAAOF,EAAQ,KAAK,CAACG,EAAGC,IACfb,EAAQ,QAAQU,EAAYE,CAAC,CAAC,EAAIZ,EAAQ,QAAQU,EAAYG,CAAC,CAAC,CACxE,CACH,EAEMC,EAAe,SAAUL,EAASC,EAAeC,GAAMA,EAAE,MAAO,CACpE,OAAOF,EAAQ,OAAO,CAACM,EAAQC,IAAQ,CACrC,MAAMb,EAAQO,EAAYM,CAAG,EAC7B,OAAAD,EAAAZ,KAAAY,EAAAZ,GAAkB,CAAA,GAClBY,EAAOZ,CAAK,EAAE,KAAKa,CAAG,EACfD,CACX,EAAK,CAAE,CAAA,CACP"}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
const c = [
|
|
2
|
-
// order of levels from highest to lowest
|
|
3
|
-
"FATAL",
|
|
4
|
-
"fatal",
|
|
5
|
-
"ERROR",
|
|
6
|
-
"critical",
|
|
7
|
-
"serious",
|
|
8
|
-
"WARN",
|
|
9
|
-
"caution",
|
|
10
|
-
"INFO",
|
|
11
|
-
"normal",
|
|
12
|
-
"standby",
|
|
13
|
-
"off",
|
|
14
|
-
"DEBUG"
|
|
15
|
-
], r = function(t) {
|
|
16
|
-
return t.map((n) => c.indexOf(n));
|
|
17
|
-
}, s = function(t) {
|
|
18
|
-
const n = r(t), e = Math.min(...n);
|
|
19
|
-
return c[e];
|
|
20
|
-
}, l = function(t) {
|
|
21
|
-
const n = r(t), e = Math.max(...n);
|
|
22
|
-
return c[e];
|
|
23
|
-
}, u = function(t, n = (e) => e.level) {
|
|
24
|
-
return t.sort((e, o) => c.indexOf(n(e)) - c.indexOf(n(o)));
|
|
25
|
-
}, a = function(t, n = (e) => e.level) {
|
|
26
|
-
return t.reduce((e, o) => {
|
|
27
|
-
const i = n(o);
|
|
28
|
-
return e[i] || (e[i] = []), e[i].push(o), e;
|
|
29
|
-
}, {});
|
|
30
|
-
}, d = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
31
|
-
__proto__: null,
|
|
32
|
-
groupByLevel: a,
|
|
33
|
-
highestLevel: s,
|
|
34
|
-
lowestLevel: l,
|
|
35
|
-
orderByLevel: u
|
|
36
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
37
|
-
export {
|
|
38
|
-
d as A
|
|
39
|
-
};
|
|
40
|
-
//# sourceMappingURL=AstroStatus-CY9VkeTN.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AstroStatus-CY9VkeTN.js","sources":["../src/util/AstroStatus.js"],"sourcesContent":["/*\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n\n# Modified by OpenC3, Inc.\n# All changes Copyright 2023, OpenC3, Inc.\n# All Rights Reserved\n#\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n*/\n\nconst _levels = [\n // order of levels from highest to lowest\n 'FATAL',\n 'fatal',\n 'ERROR',\n 'critical',\n 'serious',\n 'WARN',\n 'caution',\n 'INFO',\n 'normal',\n 'standby',\n 'off',\n 'DEBUG',\n]\n\nconst _getLevelIndeces = function (levels) {\n return levels.map((level) => _levels.indexOf(level))\n}\n\nconst highestLevel = function (levels) {\n const indices = _getLevelIndeces(levels)\n const index = Math.min(...indices)\n return _levels[index]\n}\n\nconst lowestLevel = function (levels) {\n const indices = _getLevelIndeces(levels)\n const index = Math.max(...indices)\n return _levels[index]\n}\n\nconst orderByLevel = function (objects, levelGetter = (x) => x.level) {\n return objects.sort((a, b) => {\n return _levels.indexOf(levelGetter(a)) - _levels.indexOf(levelGetter(b))\n })\n}\n\nconst groupByLevel = function (objects, levelGetter = (x) => x.level) {\n return objects.reduce((groups, obj) => {\n const level = levelGetter(obj)\n groups[level] ||= []\n groups[level].push(obj)\n return groups\n }, {})\n}\n\nexport { highestLevel, lowestLevel, orderByLevel, groupByLevel }\n"],"names":["_levels","_getLevelIndeces","levels","level","highestLevel","indices","index","lowestLevel","orderByLevel","objects","levelGetter","x","a","b","groupByLevel","groups","obj"],"mappings":"AAsBA,MAAMA,IAAU;AAAA;AAAA,EAEd;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GAEMC,IAAmB,SAAUC,GAAQ;AACzC,SAAOA,EAAO,IAAI,CAACC,MAAUH,EAAQ,QAAQG,CAAK,CAAC;AACrD,GAEMC,IAAe,SAAUF,GAAQ;AACrC,QAAMG,IAAUJ,EAAiBC,CAAM,GACjCI,IAAQ,KAAK,IAAI,GAAGD,CAAO;AACjC,SAAOL,EAAQM,CAAK;AACtB,GAEMC,IAAc,SAAUL,GAAQ;AACpC,QAAMG,IAAUJ,EAAiBC,CAAM,GACjCI,IAAQ,KAAK,IAAI,GAAGD,CAAO;AACjC,SAAOL,EAAQM,CAAK;AACtB,GAEME,IAAe,SAAUC,GAASC,IAAc,CAACC,MAAMA,EAAE,OAAO;AACpE,SAAOF,EAAQ,KAAK,CAACG,GAAGC,MACfb,EAAQ,QAAQU,EAAYE,CAAC,CAAC,IAAIZ,EAAQ,QAAQU,EAAYG,CAAC,CAAC,CACxE;AACH,GAEMC,IAAe,SAAUL,GAASC,IAAc,CAACC,MAAMA,EAAE,OAAO;AACpE,SAAOF,EAAQ,OAAO,CAACM,GAAQC,MAAQ;AACrC,UAAMb,IAAQO,EAAYM,CAAG;AAC7B,WAAAD,EAAAZ,OAAAY,EAAAZ,KAAkB,CAAA,IAClBY,EAAOZ,CAAK,EAAE,KAAKa,CAAG,GACfD;AAAA,EACX,GAAK,CAAE,CAAA;AACP;;;;;;;"}
|
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
import { W as t } from "./Widget-C5V53T-a.js";
|
|
2
|
-
import { i as a } from "./UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_6fa47877_lang-BrapmXxi.js";
|
|
3
|
-
const u = {
|
|
4
|
-
mixins: [t],
|
|
5
|
-
data() {
|
|
6
|
-
return {
|
|
7
|
-
minValue: null,
|
|
8
|
-
maxValue: null,
|
|
9
|
-
redLow: 0,
|
|
10
|
-
yellowLow: 0,
|
|
11
|
-
greenLow: 0,
|
|
12
|
-
greenHigh: 0,
|
|
13
|
-
yellowHigh: 0,
|
|
14
|
-
redHigh: 0,
|
|
15
|
-
blue: 0,
|
|
16
|
-
api: null,
|
|
17
|
-
limitsSettings: {
|
|
18
|
-
DEFAULT: []
|
|
19
|
-
},
|
|
20
|
-
currentLimitsSet: "DEFAULT",
|
|
21
|
-
currentSetRefreshInterval: null
|
|
22
|
-
};
|
|
23
|
-
},
|
|
24
|
-
computed: {
|
|
25
|
-
cssProps: function() {
|
|
26
|
-
let e = this.screenValues[this.valueId][0], h = this.modifyLimits(
|
|
27
|
-
this.limitsSettings[this.selectedLimitsSet]
|
|
28
|
-
);
|
|
29
|
-
return this.calcLimits(h), {
|
|
30
|
-
"--height": this.height + "px",
|
|
31
|
-
"--width": this.width + "px",
|
|
32
|
-
"--container-height": this.height - 5 + "px",
|
|
33
|
-
"--position": this.calcPosition(e, h) + "%",
|
|
34
|
-
"--redlow-width": this.redLow + "%",
|
|
35
|
-
"--redhigh-width": this.redHigh + "%",
|
|
36
|
-
"--yellowlow-width": this.yellowLow + "%",
|
|
37
|
-
"--yellowhigh-width": this.yellowHigh + "%",
|
|
38
|
-
"--greenlow-width": this.greenLow + "%",
|
|
39
|
-
"--greenhigh-width": this.greenHigh + "%",
|
|
40
|
-
"--blue-width": this.blue + "%"
|
|
41
|
-
};
|
|
42
|
-
},
|
|
43
|
-
selectedLimitsSet: function() {
|
|
44
|
-
return this.limitsSettings.hasOwnProperty(this.currentLimitsSet) ? this.currentLimitsSet : "DEFAULT";
|
|
45
|
-
}
|
|
46
|
-
},
|
|
47
|
-
created() {
|
|
48
|
-
this.api = new a(), this.api.get_limits(this.parameters[0], this.parameters[1], this.parameters[2]).then((e) => {
|
|
49
|
-
this.limitsSettings = e;
|
|
50
|
-
}), this.getCurrentLimitsSet(), this.currentSetRefreshInterval = setInterval(
|
|
51
|
-
this.getCurrentLimitsSet,
|
|
52
|
-
60 * 1e3
|
|
53
|
-
), this.appliedSettings.forEach((e) => {
|
|
54
|
-
e[0] === "MIN_VALUE" && (this.minValue = parseInt(e[1])), e[0] === "MAX_VALUE" && (this.maxValue = parseInt(e[1]));
|
|
55
|
-
}), this.width = this.setWidth(this.parameters[4], "px", this.width), this.height = this.setHeight(this.parameters[5], "px", this.height), this.valueId = `${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__CONVERTED`, this.$emit("addItem", this.valueId);
|
|
56
|
-
},
|
|
57
|
-
destroyed() {
|
|
58
|
-
this.$emit("deleteItem", this.valueId), clearInterval(this.currentSetRefreshInterval);
|
|
59
|
-
},
|
|
60
|
-
methods: {
|
|
61
|
-
modifyLimits(e) {
|
|
62
|
-
this.redLow = 10, this.redHigh = 10, this.minValue !== null && (e[0] <= this.minValue && (e[0] = this.minValue, this.redLow = 0), e[1] <= this.minValue && (e[1] = this.minValue), e[2] <= this.minValue && (e[2] = this.minValue), e[3] <= this.minValue && (e[3] = this.minValue), e.length > 4 && e[4] <= this.minValue && (e[4] = this.minValue), e.length > 4 && e[5] <= this.minValue && (e[5] = this.minValue)), this.maxValue !== null && (e[0] >= this.maxValue && (e[0] = this.maxValue), e[1] >= this.maxValue && (e[1] = this.maxValue), e[2] >= this.maxValue && (e[2] = this.maxValue), e[3] >= this.maxValue && (e[3] = this.maxValue, this.redHigh = 0), e.length > 4 && e[4] >= this.maxValue && (e[4] = this.maxValue), e.length > 4 && e[5] >= this.maxValue && (e[5] = this.maxValue)), e[0] == e[1] && (this.yellowLow = 0), e[2] == e[3] && (this.yellowHigh = 0);
|
|
63
|
-
let h = 80;
|
|
64
|
-
return this.redLow == 0 && (h += 10), this.redHigh == 0 && (h += 10), this.scale = (e[3] - e[0]) / h, e;
|
|
65
|
-
},
|
|
66
|
-
calcPosition(e, h) {
|
|
67
|
-
if (!e || !h)
|
|
68
|
-
return;
|
|
69
|
-
let r = h[0] - 10 * this.scale;
|
|
70
|
-
if (this.minValue && this.minValue == h[0] && (r = h[0]), h[3] - 10 * this.scale, this.maxValue && this.maxValue == h[3] && h[3], e.raw)
|
|
71
|
-
return e.raw === "-Infinity" ? 0 : 100;
|
|
72
|
-
if (e < this.min)
|
|
73
|
-
return 0;
|
|
74
|
-
if (e > this.max)
|
|
75
|
-
return 100;
|
|
76
|
-
{
|
|
77
|
-
const i = parseInt((e - r) / this.scale);
|
|
78
|
-
return i > 100 ? 100 : i < 0 ? 0 : i;
|
|
79
|
-
}
|
|
80
|
-
},
|
|
81
|
-
calcLimits(e) {
|
|
82
|
-
e && (this.yellowLow = Math.round(
|
|
83
|
-
(e[1] - e[0]) / this.scale
|
|
84
|
-
), this.yellowHigh = Math.round(
|
|
85
|
-
(e[3] - e[2]) / this.scale
|
|
86
|
-
), e.length > 4 ? (this.greenLow = Math.round(
|
|
87
|
-
(e[4] - e[1]) / this.scale
|
|
88
|
-
), this.greenHigh = Math.round(
|
|
89
|
-
(e[2] - e[5]) / this.scale
|
|
90
|
-
), this.blue = Math.round(
|
|
91
|
-
100 - this.redLow - this.yellowLow - this.greenLow - this.greenHigh - this.yellowHigh - this.redHigh
|
|
92
|
-
)) : (this.greenLow = Math.round(
|
|
93
|
-
100 - this.redLow - this.yellowLow - this.yellowHigh - this.redHigh
|
|
94
|
-
), this.greenHigh = 0, this.blue = 0));
|
|
95
|
-
},
|
|
96
|
-
getCurrentLimitsSet: function() {
|
|
97
|
-
this.api.get_limits_set().then((e) => {
|
|
98
|
-
this.currentLimitsSet = e;
|
|
99
|
-
});
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
};
|
|
103
|
-
export {
|
|
104
|
-
u as B
|
|
105
|
-
};
|
|
106
|
-
//# sourceMappingURL=BarColumn-CqXfFAQ9.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BarColumn-CqXfFAQ9.js","sources":["../src/widgets/BarColumn.js"],"sourcesContent":["/*\n# Copyright 2024 OpenC3, Inc.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n*/\n\nimport Widget from './Widget'\nimport { OpenC3Api } from '@openc3/js-common/services'\n\nexport default {\n mixins: [Widget],\n data() {\n return {\n minValue: null,\n maxValue: null,\n redLow: 0,\n yellowLow: 0,\n greenLow: 0,\n greenHigh: 0,\n yellowHigh: 0,\n redHigh: 0,\n blue: 0,\n api: null,\n limitsSettings: {\n DEFAULT: [],\n },\n currentLimitsSet: 'DEFAULT',\n currentSetRefreshInterval: null,\n }\n },\n computed: {\n cssProps: function () {\n let value = this.screenValues[this.valueId][0]\n let limits = this.modifyLimits(\n this.limitsSettings[this.selectedLimitsSet],\n )\n this.calcLimits(limits)\n return {\n '--height': this.height + 'px',\n '--width': this.width + 'px',\n '--container-height': this.height - 5 + 'px',\n '--position': this.calcPosition(value, limits) + '%',\n '--redlow-width': this.redLow + '%',\n '--redhigh-width': this.redHigh + '%',\n '--yellowlow-width': this.yellowLow + '%',\n '--yellowhigh-width': this.yellowHigh + '%',\n '--greenlow-width': this.greenLow + '%',\n '--greenhigh-width': this.greenHigh + '%',\n '--blue-width': this.blue + '%',\n }\n },\n selectedLimitsSet: function () {\n return this.limitsSettings.hasOwnProperty(this.currentLimitsSet)\n ? this.currentLimitsSet\n : 'DEFAULT'\n },\n },\n created() {\n this.api = new OpenC3Api()\n this.api\n .get_limits(this.parameters[0], this.parameters[1], this.parameters[2])\n .then((data) => {\n this.limitsSettings = data\n })\n this.getCurrentLimitsSet()\n this.currentSetRefreshInterval = setInterval(\n this.getCurrentLimitsSet,\n 60 * 1000,\n )\n\n this.appliedSettings.forEach((setting) => {\n if (setting[0] === 'MIN_VALUE') {\n this.minValue = parseInt(setting[1])\n }\n if (setting[0] === 'MAX_VALUE') {\n this.maxValue = parseInt(setting[1])\n }\n })\n this.width = this.setWidth(this.parameters[4], 'px', this.width)\n this.height = this.setHeight(this.parameters[5], 'px', this.height)\n // Always pass CONVERTED so we can calculate the value against the limits (in converted units)\n this.valueId = `${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__CONVERTED`\n\n this.$emit('addItem', this.valueId)\n },\n destroyed() {\n this.$emit('deleteItem', this.valueId)\n clearInterval(this.currentSetRefreshInterval)\n },\n methods: {\n modifyLimits(limitsSettings) {\n // By default the red bars take 10% of the display\n this.redLow = 10\n this.redHigh = 10\n\n // Modify values to respect the user defined minimum\n if (this.minValue !== null) {\n if (limitsSettings[0] <= this.minValue) {\n limitsSettings[0] = this.minValue\n // No red low will be displayed\n this.redLow = 0\n }\n if (limitsSettings[1] <= this.minValue) {\n limitsSettings[1] = this.minValue\n }\n if (limitsSettings[2] <= this.minValue) {\n limitsSettings[2] = this.minValue\n }\n if (limitsSettings[3] <= this.minValue) {\n limitsSettings[3] = this.minValue\n }\n if (limitsSettings.length > 4 && limitsSettings[4] <= this.minValue) {\n limitsSettings[4] = this.minValue\n }\n if (limitsSettings.length > 4 && limitsSettings[5] <= this.minValue) {\n limitsSettings[5] = this.minValue\n }\n }\n if (this.maxValue !== null) {\n if (limitsSettings[0] >= this.maxValue) {\n limitsSettings[0] = this.maxValue\n }\n if (limitsSettings[1] >= this.maxValue) {\n limitsSettings[1] = this.maxValue\n }\n if (limitsSettings[2] >= this.maxValue) {\n limitsSettings[2] = this.maxValue\n }\n if (limitsSettings[3] >= this.maxValue) {\n limitsSettings[3] = this.maxValue\n // No red high will be displayed\n this.redHigh = 0\n }\n if (limitsSettings.length > 4 && limitsSettings[4] >= this.maxValue) {\n limitsSettings[4] = this.maxValue\n }\n if (limitsSettings.length > 4 && limitsSettings[5] >= this.maxValue) {\n limitsSettings[5] = this.maxValue\n }\n }\n // If the red low matches yellow low there is no yellow low\n if (limitsSettings[0] == limitsSettings[1]) {\n this.yellowLow = 0\n }\n // If the red high matches yellow high there is no yellow high\n if (limitsSettings[2] == limitsSettings[3]) {\n this.yellowHigh = 0\n }\n\n let divisor = 80\n if (this.redLow == 0) {\n divisor += 10\n }\n if (this.redHigh == 0) {\n divisor += 10\n }\n this.scale = (limitsSettings[3] - limitsSettings[0]) / divisor\n\n return limitsSettings\n },\n calcPosition(value, limitsSettings) {\n if (!value || !limitsSettings) {\n return\n }\n let lowValue = limitsSettings[0] - 10 * this.scale\n if (this.minValue && this.minValue == limitsSettings[0]) {\n lowValue = limitsSettings[0]\n }\n let highValue = limitsSettings[3] - 10 * this.scale\n if (this.maxValue && this.maxValue == limitsSettings[3]) {\n highValue = limitsSettings[3]\n }\n\n if (value.raw) {\n if (value.raw === '-Infinity') {\n return 0\n } else {\n // NaN and Infinity\n return 100\n }\n }\n if (value < this.min) {\n return 0\n } else if (value > this.max) {\n return 100\n } else {\n const result = parseInt((value - lowValue) / this.scale)\n if (result > 100) {\n return 100\n } else if (result < 0) {\n return 0\n } else {\n return result\n }\n }\n },\n calcLimits(limitsSettings) {\n if (!limitsSettings) {\n return\n }\n this.yellowLow = Math.round(\n (limitsSettings[1] - limitsSettings[0]) / this.scale,\n )\n this.yellowHigh = Math.round(\n (limitsSettings[3] - limitsSettings[2]) / this.scale,\n )\n if (limitsSettings.length > 4) {\n this.greenLow = Math.round(\n (limitsSettings[4] - limitsSettings[1]) / this.scale,\n )\n this.greenHigh = Math.round(\n (limitsSettings[2] - limitsSettings[5]) / this.scale,\n )\n this.blue = Math.round(\n 100 -\n this.redLow -\n this.yellowLow -\n this.greenLow -\n this.greenHigh -\n this.yellowHigh -\n this.redHigh,\n )\n } else {\n this.greenLow = Math.round(\n 100 - this.redLow - this.yellowLow - this.yellowHigh - this.redHigh,\n )\n this.greenHigh = 0\n this.blue = 0\n }\n },\n getCurrentLimitsSet: function () {\n this.api.get_limits_set().then((result) => {\n this.currentLimitsSet = result\n })\n },\n },\n}\n"],"names":["BarColumn","Widget","value","limits","OpenC3Api","data","setting","limitsSettings","divisor","lowValue","result"],"mappings":";;AAqBA,MAAeA,IAAA;AAAA,EACb,QAAQ,CAACC,CAAM;AAAA,EACf,OAAO;AACL,WAAO;AAAA,MACL,UAAU;AAAA,MACV,UAAU;AAAA,MACV,QAAQ;AAAA,MACR,WAAW;AAAA,MACX,UAAU;AAAA,MACV,WAAW;AAAA,MACX,YAAY;AAAA,MACZ,SAAS;AAAA,MACT,MAAM;AAAA,MACN,KAAK;AAAA,MACL,gBAAgB;AAAA,QACd,SAAS,CAAE;AAAA,MACZ;AAAA,MACD,kBAAkB;AAAA,MAClB,2BAA2B;AAAA,IACjC;AAAA,EACG;AAAA,EACD,UAAU;AAAA,IACR,UAAU,WAAY;AACpB,UAAIC,IAAQ,KAAK,aAAa,KAAK,OAAO,EAAE,CAAC,GACzCC,IAAS,KAAK;AAAA,QAChB,KAAK,eAAe,KAAK,iBAAiB;AAAA,MAClD;AACM,kBAAK,WAAWA,CAAM,GACf;AAAA,QACL,YAAY,KAAK,SAAS;AAAA,QAC1B,WAAW,KAAK,QAAQ;AAAA,QACxB,sBAAsB,KAAK,SAAS,IAAI;AAAA,QACxC,cAAc,KAAK,aAAaD,GAAOC,CAAM,IAAI;AAAA,QACjD,kBAAkB,KAAK,SAAS;AAAA,QAChC,mBAAmB,KAAK,UAAU;AAAA,QAClC,qBAAqB,KAAK,YAAY;AAAA,QACtC,sBAAsB,KAAK,aAAa;AAAA,QACxC,oBAAoB,KAAK,WAAW;AAAA,QACpC,qBAAqB,KAAK,YAAY;AAAA,QACtC,gBAAgB,KAAK,OAAO;AAAA,MACpC;AAAA,IACK;AAAA,IACD,mBAAmB,WAAY;AAC7B,aAAO,KAAK,eAAe,eAAe,KAAK,gBAA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_vue_type_style_index_0_scoped_6fa47877_lang-DdL5xG80.cjs"),s={mixins:[t.Widget],data(){return{minValue:null,maxValue:null,redLow:0,yellowLow:0,greenLow:0,greenHigh:0,yellowHigh:0,redHigh:0,blue:0,api:null,limitsSettings:{DEFAULT:[]},currentLimitsSet:"DEFAULT",currentSetRefreshInterval:null}},computed:{cssProps:function(){let e=this.screenValues[this.valueId][0],h=this.modifyLimits(this.limitsSettings[this.selectedLimitsSet]);return this.calcLimits(h),{"--height":this.height+"px","--width":this.width+"px","--container-height":this.height-5+"px","--position":this.calcPosition(e,h)+"%","--redlow-width":this.redLow+"%","--redhigh-width":this.redHigh+"%","--yellowlow-width":this.yellowLow+"%","--yellowhigh-width":this.yellowHigh+"%","--greenlow-width":this.greenLow+"%","--greenhigh-width":this.greenHigh+"%","--blue-width":this.blue+"%"}},selectedLimitsSet:function(){return this.limitsSettings.hasOwnProperty(this.currentLimitsSet)?this.currentLimitsSet:"DEFAULT"}},created(){this.api=new a.ir,this.api.get_limits(this.parameters[0],this.parameters[1],this.parameters[2]).then(e=>{this.limitsSettings=e}),this.getCurrentLimitsSet(),this.currentSetRefreshInterval=setInterval(this.getCurrentLimitsSet,60*1e3),this.appliedSettings.forEach(e=>{e[0]==="MIN_VALUE"&&(this.minValue=parseInt(e[1])),e[0]==="MAX_VALUE"&&(this.maxValue=parseInt(e[1]))}),this.width=this.setWidth(this.parameters[4],"px",this.width),this.height=this.setHeight(this.parameters[5],"px",this.height),this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__CONVERTED`,this.$emit("addItem",this.valueId)},destroyed(){this.$emit("deleteItem",this.valueId),clearInterval(this.currentSetRefreshInterval)},methods:{modifyLimits(e){this.redLow=10,this.redHigh=10,this.minValue!==null&&(e[0]<=this.minValue&&(e[0]=this.minValue,this.redLow=0),e[1]<=this.minValue&&(e[1]=this.minValue),e[2]<=this.minValue&&(e[2]=this.minValue),e[3]<=this.minValue&&(e[3]=this.minValue),e.length>4&&e[4]<=this.minValue&&(e[4]=this.minValue),e.length>4&&e[5]<=this.minValue&&(e[5]=this.minValue)),this.maxValue!==null&&(e[0]>=this.maxValue&&(e[0]=this.maxValue),e[1]>=this.maxValue&&(e[1]=this.maxValue),e[2]>=this.maxValue&&(e[2]=this.maxValue),e[3]>=this.maxValue&&(e[3]=this.maxValue,this.redHigh=0),e.length>4&&e[4]>=this.maxValue&&(e[4]=this.maxValue),e.length>4&&e[5]>=this.maxValue&&(e[5]=this.maxValue)),e[0]==e[1]&&(this.yellowLow=0),e[2]==e[3]&&(this.yellowHigh=0);let h=80;return this.redLow==0&&(h+=10),this.redHigh==0&&(h+=10),this.scale=(e[3]-e[0])/h,e},calcPosition(e,h){if(!e||!h)return;let r=h[0]-10*this.scale;if(this.minValue&&this.minValue==h[0]&&(r=h[0]),h[3]-10*this.scale,this.maxValue&&this.maxValue==h[3]&&h[3],e.raw)return e.raw==="-Infinity"?0:100;if(e<this.min)return 0;if(e>this.max)return 100;{const i=parseInt((e-r)/this.scale);return i>100?100:i<0?0:i}},calcLimits(e){e&&(this.yellowLow=Math.round((e[1]-e[0])/this.scale),this.yellowHigh=Math.round((e[3]-e[2])/this.scale),e.length>4?(this.greenLow=Math.round((e[4]-e[1])/this.scale),this.greenHigh=Math.round((e[2]-e[5])/this.scale),this.blue=Math.round(100-this.redLow-this.yellowLow-this.greenLow-this.greenHigh-this.yellowHigh-this.redHigh)):(this.greenLow=Math.round(100-this.redLow-this.yellowLow-this.yellowHigh-this.redHigh),this.greenHigh=0,this.blue=0))},getCurrentLimitsSet:function(){this.api.get_limits_set().then(e=>{this.currentLimitsSet=e})}}};exports.BarColumn=s;
|
|
2
|
-
//# sourceMappingURL=BarColumn-Ct4izXqV.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BarColumn-Ct4izXqV.cjs","sources":["../src/widgets/BarColumn.js"],"sourcesContent":["/*\n# Copyright 2024 OpenC3, Inc.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n*/\n\nimport Widget from './Widget'\nimport { OpenC3Api } from '@openc3/js-common/services'\n\nexport default {\n mixins: [Widget],\n data() {\n return {\n minValue: null,\n maxValue: null,\n redLow: 0,\n yellowLow: 0,\n greenLow: 0,\n greenHigh: 0,\n yellowHigh: 0,\n redHigh: 0,\n blue: 0,\n api: null,\n limitsSettings: {\n DEFAULT: [],\n },\n currentLimitsSet: 'DEFAULT',\n currentSetRefreshInterval: null,\n }\n },\n computed: {\n cssProps: function () {\n let value = this.screenValues[this.valueId][0]\n let limits = this.modifyLimits(\n this.limitsSettings[this.selectedLimitsSet],\n )\n this.calcLimits(limits)\n return {\n '--height': this.height + 'px',\n '--width': this.width + 'px',\n '--container-height': this.height - 5 + 'px',\n '--position': this.calcPosition(value, limits) + '%',\n '--redlow-width': this.redLow + '%',\n '--redhigh-width': this.redHigh + '%',\n '--yellowlow-width': this.yellowLow + '%',\n '--yellowhigh-width': this.yellowHigh + '%',\n '--greenlow-width': this.greenLow + '%',\n '--greenhigh-width': this.greenHigh + '%',\n '--blue-width': this.blue + '%',\n }\n },\n selectedLimitsSet: function () {\n return this.limitsSettings.hasOwnProperty(this.currentLimitsSet)\n ? this.currentLimitsSet\n : 'DEFAULT'\n },\n },\n created() {\n this.api = new OpenC3Api()\n this.api\n .get_limits(this.parameters[0], this.parameters[1], this.parameters[2])\n .then((data) => {\n this.limitsSettings = data\n })\n this.getCurrentLimitsSet()\n this.currentSetRefreshInterval = setInterval(\n this.getCurrentLimitsSet,\n 60 * 1000,\n )\n\n this.appliedSettings.forEach((setting) => {\n if (setting[0] === 'MIN_VALUE') {\n this.minValue = parseInt(setting[1])\n }\n if (setting[0] === 'MAX_VALUE') {\n this.maxValue = parseInt(setting[1])\n }\n })\n this.width = this.setWidth(this.parameters[4], 'px', this.width)\n this.height = this.setHeight(this.parameters[5], 'px', this.height)\n // Always pass CONVERTED so we can calculate the value against the limits (in converted units)\n this.valueId = `${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__CONVERTED`\n\n this.$emit('addItem', this.valueId)\n },\n destroyed() {\n this.$emit('deleteItem', this.valueId)\n clearInterval(this.currentSetRefreshInterval)\n },\n methods: {\n modifyLimits(limitsSettings) {\n // By default the red bars take 10% of the display\n this.redLow = 10\n this.redHigh = 10\n\n // Modify values to respect the user defined minimum\n if (this.minValue !== null) {\n if (limitsSettings[0] <= this.minValue) {\n limitsSettings[0] = this.minValue\n // No red low will be displayed\n this.redLow = 0\n }\n if (limitsSettings[1] <= this.minValue) {\n limitsSettings[1] = this.minValue\n }\n if (limitsSettings[2] <= this.minValue) {\n limitsSettings[2] = this.minValue\n }\n if (limitsSettings[3] <= this.minValue) {\n limitsSettings[3] = this.minValue\n }\n if (limitsSettings.length > 4 && limitsSettings[4] <= this.minValue) {\n limitsSettings[4] = this.minValue\n }\n if (limitsSettings.length > 4 && limitsSettings[5] <= this.minValue) {\n limitsSettings[5] = this.minValue\n }\n }\n if (this.maxValue !== null) {\n if (limitsSettings[0] >= this.maxValue) {\n limitsSettings[0] = this.maxValue\n }\n if (limitsSettings[1] >= this.maxValue) {\n limitsSettings[1] = this.maxValue\n }\n if (limitsSettings[2] >= this.maxValue) {\n limitsSettings[2] = this.maxValue\n }\n if (limitsSettings[3] >= this.maxValue) {\n limitsSettings[3] = this.maxValue\n // No red high will be displayed\n this.redHigh = 0\n }\n if (limitsSettings.length > 4 && limitsSettings[4] >= this.maxValue) {\n limitsSettings[4] = this.maxValue\n }\n if (limitsSettings.length > 4 && limitsSettings[5] >= this.maxValue) {\n limitsSettings[5] = this.maxValue\n }\n }\n // If the red low matches yellow low there is no yellow low\n if (limitsSettings[0] == limitsSettings[1]) {\n this.yellowLow = 0\n }\n // If the red high matches yellow high there is no yellow high\n if (limitsSettings[2] == limitsSettings[3]) {\n this.yellowHigh = 0\n }\n\n let divisor = 80\n if (this.redLow == 0) {\n divisor += 10\n }\n if (this.redHigh == 0) {\n divisor += 10\n }\n this.scale = (limitsSettings[3] - limitsSettings[0]) / divisor\n\n return limitsSettings\n },\n calcPosition(value, limitsSettings) {\n if (!value || !limitsSettings) {\n return\n }\n let lowValue = limitsSettings[0] - 10 * this.scale\n if (this.minValue && this.minValue == limitsSettings[0]) {\n lowValue = limitsSettings[0]\n }\n let highValue = limitsSettings[3] - 10 * this.scale\n if (this.maxValue && this.maxValue == limitsSettings[3]) {\n highValue = limitsSettings[3]\n }\n\n if (value.raw) {\n if (value.raw === '-Infinity') {\n return 0\n } else {\n // NaN and Infinity\n return 100\n }\n }\n if (value < this.min) {\n return 0\n } else if (value > this.max) {\n return 100\n } else {\n const result = parseInt((value - lowValue) / this.scale)\n if (result > 100) {\n return 100\n } else if (result < 0) {\n return 0\n } else {\n return result\n }\n }\n },\n calcLimits(limitsSettings) {\n if (!limitsSettings) {\n return\n }\n this.yellowLow = Math.round(\n (limitsSettings[1] - limitsSettings[0]) / this.scale,\n )\n this.yellowHigh = Math.round(\n (limitsSettings[3] - limitsSettings[2]) / this.scale,\n )\n if (limitsSettings.length > 4) {\n this.greenLow = Math.round(\n (limitsSettings[4] - limitsSettings[1]) / this.scale,\n )\n this.greenHigh = Math.round(\n (limitsSettings[2] - limitsSettings[5]) / this.scale,\n )\n this.blue = Math.round(\n 100 -\n this.redLow -\n this.yellowLow -\n this.greenLow -\n this.greenHigh -\n this.yellowHigh -\n this.redHigh,\n )\n } else {\n this.greenLow = Math.round(\n 100 - this.redLow - this.yellowLow - this.yellowHigh - this.redHigh,\n )\n this.greenHigh = 0\n this.blue = 0\n }\n },\n getCurrentLimitsSet: function () {\n this.api.get_limits_set().then((result) => {\n this.currentLimitsSet = result\n })\n },\n },\n}\n"],"names":["BarColumn","Widget","value","limits","OpenC3Api","data","setting","limitsSettings","divisor","lowValue","result"],"mappings":"4JAqBeA,EAAA,CACb,OAAQ,CAACC,EAAAA,MAAM,EACf,MAAO,CACL,MAAO,CACL,SAAU,KACV,SAAU,KACV,OAAQ,EACR,UAAW,EACX,SAAU,EACV,UAAW,EACX,WAAY,EACZ,QAAS,EACT,KAAM,EACN,IAAK,KACL,eAAgB,CACd,QAAS,CAAE,CACZ,EACD,iBAAkB,UAClB,0BAA2B,IACjC,CACG,EACD,SAAU,CACR,SAAU,UAAY,CACpB,IAAIC,EAAQ,KAAK,aAAa,KAAK,OAAO,EAAE,CAAC,EACzCC,EAAS,KAAK,aAChB,KAAK,eAAe,KAAK,iBAAiB,CAClD,EACM,YAAK,WAAWA,CAAM,EACf,CACL,WAAY,KAAK,OAAS,KAC1B,UAAW,KAAK,MAAQ,KACxB,qBAAsB,KAAK,OAAS,EAAI,KACxC,aAAc,KAAK,aAAaD,EAAOC,CAAM,EAAI,IACjD,iBAAkB,KAAK,OAAS,IAChC,kBAAmB,KAAK,QAAU,IAClC,oBAAqB,KAAK,UAAY,IACtC,qBAAsB,KAAK,WAAa,IACxC,mBAAoB,KAAK,SAAW,IACpC,oBAAqB,KAAK,UAAY,IACtC,eAAgB,KAAK,KAAO,GACpC,CACK,EACD,kBAAmB,UAAY,CAC7B,OAAO,KAAK,eAAe,eAAe,KAAK,gBAAgB,EAC3D,KAAK,iBACL,SACL,CACF,EACD,SAAU,CACR,KAAK,IAAM,IAAIC,EAAS,GACxB,KAAK,IACF,WAAW,KAAK,WAAW,CAAC,EAAG,KAAK,WAAW,CAAC,EAAG,KAAK,WAAW,CAAC,CAAC,EACrE,KAAMC,GAAS,CACd,KAAK,eAAiBA,CACvB,CAAA,EACH,KAAK,oBAAmB,EACxB,KAAK,0BAA4B,YAC/B,KAAK,oBACL,GAAK,GACX,EAEI,KAAK,gBAAgB,QAAS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A,EAAe,CAAC,EAAIA,EAAe,CAAC,GAAK,KAAK,KACvD,EACUA,EAAe,OAAS,GAC1B,KAAK,SAAW,KAAK,OAClBA,EAAe,CAAC,EAAIA,EAAe,CAAC,GAAK,KAAK,KACzD,EACQ,KAAK,UAAY,KAAK,OACnBA,EAAe,CAAC,EAAIA,EAAe,CAAC,GAAK,KAAK,KACzD,EACQ,KAAK,KAAO,KAAK,MACf,IACE,KAAK,OACL,KAAK,UACL,KAAK,SACL,KAAK,UACL,KAAK,WACL,KAAK,OACjB,IAEQ,KAAK,SAAW,KAAK,MACnB,IAAM,KAAK,OAAS,KAAK,UAAY,KAAK,WAAa,KAAK,OACtE,EACQ,KAAK,UAAY,EACjB,KAAK,KAAO,GAEf,EACD,oBAAqB,UAAY,CAC/B,KAAK,IAAI,eAAgB,EAAC,KAAMG,GAAW,CACzC,KAAK,iBAAmBA,CACzB,CAAA,CACF,CACF,CACH"}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_6fa47877_lang-DdL5xG80.cjs");const e=require("vue"),g=require("./CosmosRuxIcon.vue_vue_type_style_index_0_scoped_9af48e85_lang-BHFhmbuH.cjs"),f=require("./DetailsDialog-8ixZ1oPd.cjs"),w=require("./VWidget-BRkvqAVS.cjs"),v={components:{DetailsDialog:f.DetailsDialog},data:function(){return{width:400,height:400,bytesPerWord:4,wordsPerRow:4,addrFormat:null,formatter:"%02X"}},mixins:[w.VWidget],computed:{aging(){return{"--aging":this.grayLevel}},rows:function(){return(this.height-16)/24}},created:function(){this.width=this.setWidth(this.parameters[3],"px",this.width),this.height=this.setHeight(this.parameters[4],"px",this.height),this.parameters[5]&&(this.formatter=this.parameters[5]),this.parameters[6]&&(this.bytesPerWord=parseInt(this.parameters[6])),this.parameters[7]&&(this.wordsPerRow=parseInt(this.parameters[7])),this.parameters[8]&&(this.addrFormat=this.parameters[8])},methods:{getType:function(){let t="RAW";return this.parameters[9]&&(t=this.parameters[9]),t},formatValue:function(t){let o="";if(t&&t.raw){let l=" ",d=`
|
|
2
|
-
`,r=0,i=0;const n=this.bytesPerWord*this.wordsPerRow;for(const a of t.raw)this.addrFormat&&r===0&&(o+=sprintf(this.addrFormat,i),i+=n),o+=sprintf(this.formatter,a),r+=1,r%n===0?(r=0,o+=d):r%this.bytesPerWord===0&&(o+=l)}else o=t;return o}}},_={class:"block-widget-container"};function y(t,o,l,d,r,i){const n=e.resolveComponent("v-textarea"),a=e.resolveComponent("v-list-item-title"),m=e.resolveComponent("v-list-item"),u=e.resolveComponent("v-list"),p=e.resolveComponent("v-menu"),h=e.resolveComponent("details-dialog");return e.openBlock(),e.createElementBlock("div",_,[e.createVNode(n,{variant:"solo",density:"compact",readonly:"","no-resize":"","hide-details":"",rows:i.rows,width:t.width,"model-value":t._value,class:e.normalizeClass(t.valueClass),style:e.normalizeStyle([t.computedStyle,i.aging]),"data-test":"valueText",onContextmenu:t.showContextMenu},null,8,["rows","width","model-value","class","style","onContextmenu"]),e.createVNode(p,{modelValue:t.contextMenuShown,"onUpdate:modelValue":o[0]||(o[0]=s=>t.contextMenuShown=s),target:[t.x,t.y]},{default:e.withCtx(()=>[e.createVNode(u,null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.contextMenuOptions,(s,c)=>(e.openBlock(),e.createBlock(m,{key:c,onClick:e.withModifiers(s.action,["stop"])},{default:e.withCtx(()=>[e.createVNode(a,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(s.title),1)]),_:2},1024)]),_:2},1032,["onClick"]))),128))]),_:1})]),_:1},8,["modelValue","target"]),e.createVNode(h,{"target-name":t.parameters[0],"packet-name":t.parameters[1],"item-name":t.parameters[2],modelValue:t.viewDetails,"onUpdate:modelValue":o[1]||(o[1]=s=>t.viewDetails=s)},null,8,["target-name","packet-name","item-name","modelValue"])])}const C=g._export_sfc(v,[["render",y],["__scopeId","data-v-4d4589c2"]]);exports.default=C;
|
|
3
|
-
//# sourceMappingURL=BlockWidget-BPefRY_h.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BlockWidget-BPefRY_h.cjs","sources":["../src/widgets/BlockWidget.vue"],"sourcesContent":["<!--\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n\n# Modified by OpenC3, Inc.\n# All changes Copyright 2024, OpenC3, Inc.\n# All Rights Reserved\n#\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n-->\n\n<template>\n <div class=\"block-widget-container\">\n <v-textarea\n variant=\"solo\"\n density=\"compact\"\n readonly\n no-resize\n hide-details\n :rows=\"rows\"\n :width=\"width\"\n :model-value=\"_value\"\n :class=\"valueClass\"\n :style=\"[computedStyle, aging]\"\n data-test=\"valueText\"\n @contextmenu=\"showContextMenu\"\n />\n <v-menu v-model=\"contextMenuShown\" :target=\"[x, y]\">\n <v-list>\n <v-list-item\n v-for=\"(item, index) in contextMenuOptions\"\n :key=\"index\"\n @click.stop=\"item.action\"\n >\n <v-list-item-title>{{ item.title }}</v-list-item-title>\n </v-list-item>\n </v-list>\n </v-menu>\n\n <details-dialog\n :target-name=\"parameters[0]\"\n :packet-name=\"parameters[1]\"\n :item-name=\"parameters[2]\"\n v-model=\"viewDetails\"\n />\n </div>\n</template>\n\n<script>\nimport { DetailsDialog } from '@/components'\nimport VWidget from './VWidget'\nimport 'sprintf-js'\n\nexport default {\n components: {\n DetailsDialog,\n },\n data: function () {\n return {\n width: 400,\n height: 400,\n bytesPerWord: 4,\n wordsPerRow: 4,\n addrFormat: null,\n formatter: '%02X',\n }\n },\n mixins: [VWidget],\n computed: {\n aging() {\n return {\n '--aging': this.grayLevel,\n }\n },\n rows: function () {\n // hack to set height since vuetify 3 removed the ability to set the\n // <textarea>'s height by px and I can't get styling the element to work, either\n const paddingHeight = 16 // px\n const rowHeight = 24 // px\n return (this.height - paddingHeight) / rowHeight\n },\n },\n created: function () {\n this.width = this.setWidth(this.parameters[3], 'px', this.width)\n this.height = this.setHeight(this.parameters[4], 'px', this.height)\n if (this.parameters[5]) {\n this.formatter = this.parameters[5]\n }\n if (this.parameters[6]) {\n this.bytesPerWord = parseInt(this.parameters[6])\n }\n if (this.parameters[7]) {\n this.wordsPerRow = parseInt(this.parameters[7])\n }\n if (this.parameters[8]) {\n this.addrFormat = this.parameters[8]\n }\n // parameter[9] is the type ... see getType()\n },\n methods: {\n getType: function () {\n let type = 'RAW'\n if (this.parameters[9]) {\n type = this.parameters[9]\n }\n return type\n },\n formatValue: function (data) {\n let text = ''\n if (data && data.raw) {\n let space = ' '\n let newLine = '\\n'\n\n let byteCount = 0\n let addr = 0\n const bytesPerRow = this.bytesPerWord * this.wordsPerRow\n\n for (const value of data.raw) {\n if (this.addrFormat && byteCount === 0) {\n text += sprintf(this.addrFormat, addr)\n addr += bytesPerRow\n }\n text += sprintf(this.formatter, value)\n byteCount += 1\n if (byteCount % bytesPerRow === 0) {\n byteCount = 0\n text += newLine\n } else if (byteCount % this.bytesPerWord === 0) {\n text += space\n }\n }\n } else {\n text = data\n }\n return text\n },\n },\n}\n</script>\n\n<style scoped>\n.block-widget-container :deep(.v-input__slot) {\n background: rgba(var(--aging), var(--aging), var(--aging), 1) !important;\n}\n.v-textarea :deep(textarea) {\n font-family: 'Courier New', Courier, monospace;\n}\n.value :deep(div) {\n min-height: 24px !important;\n display: flex !important;\n align-items: center !important;\n}\n.block-widget-container :deep(.v-field__loader) {\n display: none !important;\n}\n.block-widget-container :deep(textarea) {\n padding-right: 0 !important;\n padding-left: 12px !important;\n}\n.openc3-green :deep(input) {\n color: rgb(0, 200, 0);\n}\n.openc3-yellow :deep(input) {\n color: rgb(255, 220, 0);\n}\n.openc3-red :deep(input) {\n color: rgb(255, 45, 45);\n}\n.openc3-blue :deep(input) {\n color: rgb(0, 153, 255);\n}\n.openc3-purple :deep(input) {\n color: rgb(200, 0, 200);\n}\n.openc3-black :deep(input) {\n color: black;\n}\n.openc3-white :deep(input) {\n color: white;\n}\n</style>\n"],"names":["_sfc_main","DetailsDialog","VWidget","type","data","text","space","newLine","byteCount","addr","bytesPerRow","value","_hoisted_1","_openBlock","_createElementBlock","_createVNode","_component_v_textarea","$options","_ctx","_normalizeClass","_normalizeStyle","_component_v_menu","_cache","$event","_withCtx","_component_v_list","_Fragment","_renderList","item","index","_createBlock","_component_v_list_item","_withModifiers","_component_v_list_item_title","_createTextVNode","_toDisplayString","_component_details_dialog"],"mappings":"mXAgEKA,EAAU,CACb,WAAY,eACVC,EAAa,aACd,EACD,KAAM,UAAY,CAChB,MAAO,CACL,MAAO,IACP,OAAQ,IACR,aAAc,EACd,YAAa,EACb,WAAY,KACZ,UAAW,MACb,CACD,EACD,OAAQ,CAACC,EAAAA,OAAO,EAChB,SAAU,CACR,OAAQ,CACN,MAAO,CACL,UAAW,KAAK,SAClB,CACD,EACD,KAAM,UAAY,CAKhB,OAAQ,KAAK,OAAS,IAAiB,EACxC,CACF,EACD,QAAS,UAAY,CACnB,KAAK,MAAQ,KAAK,SAAS,KAAK,WAAW,CAAC,EAAG,KAAM,KAAK,KAAK,EAC/D,KAAK,OAAS,KAAK,UAAU,KAAK,WAAW,CAAC,EAAG,KAAM,KAAK,MAAM,EAC9D,KAAK,WAAW,CAAC,IACnB,KAAK,UAAY,KAAK,WAAW,CAAC,GAEhC,KAAK,WAAW,CAAC,IACnB,KAAK,aAAe,SAAS,KAAK,WAAW,CAAC,CAAC,GAE7C,KAAK,WAAW,CAAC,IACnB,KAAK,YAAc,SA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AtCrD,QAAAM,EAAA,QAuCM,IAQS,CARTT,EAQS,YAAAU,EAAA,KAAA,CA/Cf,QAAAD,EAAA,QAyCU,IAA2C,EAD7CX,EAAAA,UAAA,EAAA,EAAAC,EAAA,mBAMcY,gBA9CtBC,EAyCkC,WAAAT,EAAA,mBAzClC,CAyCkBU,EAAMC,mBADhBC,EAMc,YAAAC,EAAA,CAJX,IAAKF,EACL,QA3CXG,EAAAA,cA2CuBJ,EAAK,OAAM,CAAA,MAAA,CAAA,IA3ClC,QAAAJ,EAAA,QA6CU,IAAuD,CAAvDT,EAAuD,YAAAkB,EAAA,KAAA,CA7CjE,QAAAT,EAAA,QA6C6B,IAAgB,CA7C7CU,EAAAA,gBA6CgCC,EAAA,gBAAAP,EAAK,KAAK,EAAA,CAAA,IA7C1C,EAAA,WAAA,EAAA,+BAAA,EAAA,MAAA,EAAA,8BAkDIb,EAAAA,YAKEqB,EAAA,CAJC,cAAalB,EAAU,WAAA,CAAA,EACvB,cAAaA,EAAU,WAAA,CAAA,EACvB,YAAWA,EAAU,WAAA,CAAA,EArD5B,WAsDeA,EAAW,YAtD1B,sBAAAI,EAAA,CAAA,IAAAA,EAAA,CAAA,EAAAC,GAsDeL,EAAW,YAAAK"}
|
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
import "./UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_6fa47877_lang-BrapmXxi.js";
|
|
2
|
-
import { resolveComponent as o, openBlock as d, createElementBlock as u, createVNode as a, normalizeClass as _, normalizeStyle as y, withCtx as l, Fragment as V, renderList as k, createBlock as C, withModifiers as P, createTextVNode as W, toDisplayString as b } from "vue";
|
|
3
|
-
import { _ as D } from "./CosmosRuxIcon.vue_vue_type_style_index_0_scoped_9af48e85_lang-CHgC5LLL.js";
|
|
4
|
-
import { D as F } from "./DetailsDialog-ScKx0N2e.js";
|
|
5
|
-
import { V as H } from "./VWidget-D9Wk0N9r.js";
|
|
6
|
-
const M = {
|
|
7
|
-
components: {
|
|
8
|
-
DetailsDialog: F
|
|
9
|
-
},
|
|
10
|
-
data: function() {
|
|
11
|
-
return {
|
|
12
|
-
width: 400,
|
|
13
|
-
height: 400,
|
|
14
|
-
bytesPerWord: 4,
|
|
15
|
-
wordsPerRow: 4,
|
|
16
|
-
addrFormat: null,
|
|
17
|
-
formatter: "%02X"
|
|
18
|
-
};
|
|
19
|
-
},
|
|
20
|
-
mixins: [H],
|
|
21
|
-
computed: {
|
|
22
|
-
aging() {
|
|
23
|
-
return {
|
|
24
|
-
"--aging": this.grayLevel
|
|
25
|
-
};
|
|
26
|
-
},
|
|
27
|
-
rows: function() {
|
|
28
|
-
return (this.height - 16) / 24;
|
|
29
|
-
}
|
|
30
|
-
},
|
|
31
|
-
created: function() {
|
|
32
|
-
this.width = this.setWidth(this.parameters[3], "px", this.width), this.height = this.setHeight(this.parameters[4], "px", this.height), this.parameters[5] && (this.formatter = this.parameters[5]), this.parameters[6] && (this.bytesPerWord = parseInt(this.parameters[6])), this.parameters[7] && (this.wordsPerRow = parseInt(this.parameters[7])), this.parameters[8] && (this.addrFormat = this.parameters[8]);
|
|
33
|
-
},
|
|
34
|
-
methods: {
|
|
35
|
-
getType: function() {
|
|
36
|
-
let e = "RAW";
|
|
37
|
-
return this.parameters[9] && (e = this.parameters[9]), e;
|
|
38
|
-
},
|
|
39
|
-
formatValue: function(e) {
|
|
40
|
-
let t = "";
|
|
41
|
-
if (e && e.raw) {
|
|
42
|
-
let h = " ", p = `
|
|
43
|
-
`, r = 0, i = 0;
|
|
44
|
-
const n = this.bytesPerWord * this.wordsPerRow;
|
|
45
|
-
for (const m of e.raw)
|
|
46
|
-
this.addrFormat && r === 0 && (t += sprintf(this.addrFormat, i), i += n), t += sprintf(this.formatter, m), r += 1, r % n === 0 ? (r = 0, t += p) : r % this.bytesPerWord === 0 && (t += h);
|
|
47
|
-
} else
|
|
48
|
-
t = e;
|
|
49
|
-
return t;
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
}, R = { class: "block-widget-container" };
|
|
53
|
-
function S(e, t, h, p, r, i) {
|
|
54
|
-
const n = o("v-textarea"), m = o("v-list-item-title"), c = o("v-list-item"), f = o("v-list"), g = o("v-menu"), w = o("details-dialog");
|
|
55
|
-
return d(), u("div", R, [
|
|
56
|
-
a(n, {
|
|
57
|
-
variant: "solo",
|
|
58
|
-
density: "compact",
|
|
59
|
-
readonly: "",
|
|
60
|
-
"no-resize": "",
|
|
61
|
-
"hide-details": "",
|
|
62
|
-
rows: i.rows,
|
|
63
|
-
width: e.width,
|
|
64
|
-
"model-value": e._value,
|
|
65
|
-
class: _(e.valueClass),
|
|
66
|
-
style: y([e.computedStyle, i.aging]),
|
|
67
|
-
"data-test": "valueText",
|
|
68
|
-
onContextmenu: e.showContextMenu
|
|
69
|
-
}, null, 8, ["rows", "width", "model-value", "class", "style", "onContextmenu"]),
|
|
70
|
-
a(g, {
|
|
71
|
-
modelValue: e.contextMenuShown,
|
|
72
|
-
"onUpdate:modelValue": t[0] || (t[0] = (s) => e.contextMenuShown = s),
|
|
73
|
-
target: [e.x, e.y]
|
|
74
|
-
}, {
|
|
75
|
-
default: l(() => [
|
|
76
|
-
a(f, null, {
|
|
77
|
-
default: l(() => [
|
|
78
|
-
(d(!0), u(V, null, k(e.contextMenuOptions, (s, v) => (d(), C(c, {
|
|
79
|
-
key: v,
|
|
80
|
-
onClick: P(s.action, ["stop"])
|
|
81
|
-
}, {
|
|
82
|
-
default: l(() => [
|
|
83
|
-
a(m, null, {
|
|
84
|
-
default: l(() => [
|
|
85
|
-
W(b(s.title), 1)
|
|
86
|
-
]),
|
|
87
|
-
_: 2
|
|
88
|
-
}, 1024)
|
|
89
|
-
]),
|
|
90
|
-
_: 2
|
|
91
|
-
}, 1032, ["onClick"]))), 128))
|
|
92
|
-
]),
|
|
93
|
-
_: 1
|
|
94
|
-
})
|
|
95
|
-
]),
|
|
96
|
-
_: 1
|
|
97
|
-
}, 8, ["modelValue", "target"]),
|
|
98
|
-
a(w, {
|
|
99
|
-
"target-name": e.parameters[0],
|
|
100
|
-
"packet-name": e.parameters[1],
|
|
101
|
-
"item-name": e.parameters[2],
|
|
102
|
-
modelValue: e.viewDetails,
|
|
103
|
-
"onUpdate:modelValue": t[1] || (t[1] = (s) => e.viewDetails = s)
|
|
104
|
-
}, null, 8, ["target-name", "packet-name", "item-name", "modelValue"])
|
|
105
|
-
]);
|
|
106
|
-
}
|
|
107
|
-
const T = /* @__PURE__ */ D(M, [["render", S], ["__scopeId", "data-v-4d4589c2"]]);
|
|
108
|
-
export {
|
|
109
|
-
T as default
|
|
110
|
-
};
|
|
111
|
-
//# sourceMappingURL=BlockWidget-DjiPs6ID.js.map
|