@openc3/vue-common 6.0.2 → 6.2.0-fix0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ArrayWidget-BIQi_bWC.cjs +3 -0
- package/dist/ArrayWidget-BIQi_bWC.cjs.map +1 -0
- package/dist/ArrayWidget-BxEO5hEG.js +106 -0
- package/dist/ArrayWidget-BxEO5hEG.js.map +1 -0
- package/dist/ArrayplotWidget-B_VPoV4v.js +199 -0
- package/dist/ArrayplotWidget-B_VPoV4v.js.map +1 -0
- package/dist/ArrayplotWidget-Donxhd8_.cjs +2 -0
- package/dist/ArrayplotWidget-Donxhd8_.cjs.map +1 -0
- package/dist/AstroStatus-CILMWL6F.cjs +2 -0
- package/dist/AstroStatus-CILMWL6F.cjs.map +1 -0
- package/dist/AstroStatus-CY9VkeTN.js +40 -0
- package/dist/AstroStatus-CY9VkeTN.js.map +1 -0
- package/dist/BarColumn-C9dkpg2O.js +108 -0
- package/dist/BarColumn-C9dkpg2O.js.map +1 -0
- package/dist/BarColumn-CyRSZHMh.cjs +2 -0
- package/dist/BarColumn-CyRSZHMh.cjs.map +1 -0
- package/dist/BlockWidget-CuefOin6.js +112 -0
- package/dist/BlockWidget-CuefOin6.js.map +1 -0
- package/dist/BlockWidget-DPLN1jgj.cjs +3 -0
- package/dist/BlockWidget-DPLN1jgj.cjs.map +1 -0
- package/dist/ButtonWidget-B6HM0Doo.js +166 -0
- package/dist/ButtonWidget-B6HM0Doo.js.map +1 -0
- package/dist/ButtonWidget-DccYzIY3.cjs +3 -0
- package/dist/ButtonWidget-DccYzIY3.cjs.map +1 -0
- package/dist/CanvasWidget-BzTU9rc9.cjs +2 -0
- package/dist/CanvasWidget-BzTU9rc9.cjs.map +1 -0
- package/dist/CanvasWidget-DZQGG-yQ.js +39 -0
- package/dist/CanvasWidget-DZQGG-yQ.js.map +1 -0
- package/dist/CanvasdotWidget-6wuCSnw_.js +19 -0
- package/dist/CanvasdotWidget-6wuCSnw_.js.map +1 -0
- package/dist/CanvasdotWidget-B7VTS1QI.cjs +2 -0
- package/dist/CanvasdotWidget-B7VTS1QI.cjs.map +1 -0
- package/dist/CanvasimageWidget-BwYpfmDE.cjs +2 -0
- package/dist/CanvasimageWidget-BwYpfmDE.cjs.map +1 -0
- package/dist/CanvasimageWidget-mhcPpAuN.js +58 -0
- package/dist/CanvasimageWidget-mhcPpAuN.js.map +1 -0
- package/dist/CanvasimagevalueWidget-Cx-dH8Gc.js +107 -0
- package/dist/CanvasimagevalueWidget-Cx-dH8Gc.js.map +1 -0
- package/dist/CanvasimagevalueWidget-E_NsZ82T.cjs +2 -0
- package/dist/CanvasimagevalueWidget-E_NsZ82T.cjs.map +1 -0
- package/dist/CanvaslabelWidget-BBDuXWfU.cjs +2 -0
- package/dist/CanvaslabelWidget-BBDuXWfU.cjs.map +1 -0
- package/dist/CanvaslabelWidget-CQZCeohU.js +23 -0
- package/dist/CanvaslabelWidget-CQZCeohU.js.map +1 -0
- package/dist/CanvaslabelvalueWidget-CwmYDCjr.js +42 -0
- package/dist/CanvaslabelvalueWidget-CwmYDCjr.js.map +1 -0
- package/dist/CanvaslabelvalueWidget-DAdu7ujn.cjs +2 -0
- package/dist/CanvaslabelvalueWidget-DAdu7ujn.cjs.map +1 -0
- package/dist/CanvaslineWidget-Bv5da1Vy.cjs +2 -0
- package/dist/CanvaslineWidget-Bv5da1Vy.cjs.map +1 -0
- package/dist/CanvaslineWidget-nTP3fJB4.js +28 -0
- package/dist/CanvaslineWidget-nTP3fJB4.js.map +1 -0
- package/dist/CanvaslinevalueWidget-BVfUB96K.cjs +2 -0
- package/dist/CanvaslinevalueWidget-BVfUB96K.cjs.map +1 -0
- package/dist/CanvaslinevalueWidget-C3sJnjLQ.js +44 -0
- package/dist/CanvaslinevalueWidget-C3sJnjLQ.js.map +1 -0
- package/dist/CheckbuttonWidget-5-8YDsQL.js +37 -0
- package/dist/CheckbuttonWidget-5-8YDsQL.js.map +1 -0
- package/dist/CheckbuttonWidget-BGqD-BGc.cjs +2 -0
- package/dist/CheckbuttonWidget-BGqD-BGc.cjs.map +1 -0
- package/dist/ComboboxWidget-DoHMlSAr.cjs +2 -0
- package/dist/ComboboxWidget-DoHMlSAr.cjs.map +1 -0
- package/dist/ComboboxWidget-DzBL8h9f.js +37 -0
- package/dist/ComboboxWidget-DzBL8h9f.js.map +1 -0
- package/dist/CosmosRuxIcon.vue_vue_type_style_index_0_scoped_9af48e85_lang-BHFhmbuH.cjs +2 -0
- package/dist/CosmosRuxIcon.vue_vue_type_style_index_0_scoped_9af48e85_lang-BHFhmbuH.cjs.map +1 -0
- package/dist/CosmosRuxIcon.vue_vue_type_style_index_0_scoped_9af48e85_lang-CHgC5LLL.js +10 -0
- package/dist/CosmosRuxIcon.vue_vue_type_style_index_0_scoped_9af48e85_lang-CHgC5LLL.js.map +1 -0
- package/dist/CriticalCmdDialog-DLEasFsx.js +270 -0
- package/dist/CriticalCmdDialog-DLEasFsx.js.map +1 -0
- package/dist/CriticalCmdDialog-DoLBrU2k.cjs +2 -0
- package/dist/CriticalCmdDialog-DoLBrU2k.cjs.map +1 -0
- package/dist/DateWidget-CW7Od7lB.js +40 -0
- package/dist/DateWidget-CW7Od7lB.js.map +1 -0
- package/dist/DateWidget-DKZz1J9J.cjs +2 -0
- package/dist/DateWidget-DKZz1J9J.cjs.map +1 -0
- package/dist/DetailsDialog-BvbziA7Y.js +767 -0
- package/dist/DetailsDialog-BvbziA7Y.js.map +1 -0
- package/dist/DetailsDialog-CiuQYvJK.cjs +2 -0
- package/dist/DetailsDialog-CiuQYvJK.cjs.map +1 -0
- package/dist/DynamicWidget-3wHr6Ng-.cjs +2 -0
- package/dist/DynamicWidget-3wHr6Ng-.cjs.map +1 -0
- package/dist/DynamicWidget-gFSYxzvT.js +35 -0
- package/dist/DynamicWidget-gFSYxzvT.js.map +1 -0
- package/dist/FormatvalueWidget-CGpnTqVH.js +44 -0
- package/dist/FormatvalueWidget-CGpnTqVH.js.map +1 -0
- package/dist/FormatvalueWidget-DFrbeKb9.cjs +2 -0
- package/dist/FormatvalueWidget-DFrbeKb9.cjs.map +1 -0
- package/dist/Graph-3rkhFP3G.js +1983 -0
- package/dist/Graph-3rkhFP3G.js.map +1 -0
- package/dist/Graph-C3vGMcos.cjs +2 -0
- package/dist/Graph-C3vGMcos.cjs.map +1 -0
- package/dist/GraphWidget-22NxFa9k.cjs +2 -0
- package/dist/GraphWidget-22NxFa9k.cjs.map +1 -0
- package/dist/GraphWidget-Dycey-mj.js +130 -0
- package/dist/GraphWidget-Dycey-mj.js.map +1 -0
- package/dist/HorizontalWidget-BBeB0eBI.cjs +2 -0
- package/dist/HorizontalWidget-BBeB0eBI.cjs.map +1 -0
- package/dist/HorizontalWidget-D31NRWy5.js +41 -0
- package/dist/HorizontalWidget-D31NRWy5.js.map +1 -0
- package/dist/HorizontalboxWidget-Br8dSVHD.js +38 -0
- package/dist/HorizontalboxWidget-Br8dSVHD.js.map +1 -0
- package/dist/HorizontalboxWidget-DsdzrCJx.cjs +2 -0
- package/dist/HorizontalboxWidget-DsdzrCJx.cjs.map +1 -0
- package/dist/HorizontallineWidget-BCKOQase.cjs +2 -0
- package/dist/HorizontallineWidget-BCKOQase.cjs.map +1 -0
- package/dist/HorizontallineWidget-CbxREBYI.js +11 -0
- package/dist/HorizontallineWidget-CbxREBYI.js.map +1 -0
- package/dist/IframeWidget-CZwsTgvX.cjs +2 -0
- package/dist/IframeWidget-CZwsTgvX.cjs.map +1 -0
- package/dist/IframeWidget-Ctj8OIcG.js +90 -0
- package/dist/IframeWidget-Ctj8OIcG.js.map +1 -0
- package/dist/ImageLoader-BrNrCBvi.js +36 -0
- package/dist/ImageLoader-BrNrCBvi.js.map +1 -0
- package/dist/ImageLoader-D_Gq-KxR.cjs +2 -0
- package/dist/ImageLoader-D_Gq-KxR.cjs.map +1 -0
- package/dist/ImageviewerWidget-DwRPFSLR.cjs +2 -0
- package/dist/ImageviewerWidget-DwRPFSLR.cjs.map +1 -0
- package/dist/ImageviewerWidget-XrsqxmLo.js +37 -0
- package/dist/ImageviewerWidget-XrsqxmLo.js.map +1 -0
- package/dist/InterfacesTab-CLaicsHA.cjs +2 -0
- package/dist/InterfacesTab-CLaicsHA.cjs.map +1 -0
- package/dist/InterfacesTab-DAeNlGlB.js +93 -0
- package/dist/InterfacesTab-DAeNlGlB.js.map +1 -0
- package/dist/LabelWidget-C-s8OVmA.cjs +2 -0
- package/dist/LabelWidget-C-s8OVmA.cjs.map +1 -0
- package/dist/LabelWidget-t7I87dp7.js +48 -0
- package/dist/LabelWidget-t7I87dp7.js.map +1 -0
- package/dist/LabelledWidget-C7TDf92M.js +42 -0
- package/dist/LabelledWidget-C7TDf92M.js.map +1 -0
- package/dist/LabelledWidget-DUpHxc9z.cjs +2 -0
- package/dist/LabelledWidget-DUpHxc9z.cjs.map +1 -0
- package/dist/LabelprogressbarWidget-D6cpayCR.cjs +2 -0
- package/dist/LabelprogressbarWidget-D6cpayCR.cjs.map +1 -0
- package/dist/LabelprogressbarWidget-wwLURt1u.js +43 -0
- package/dist/LabelprogressbarWidget-wwLURt1u.js.map +1 -0
- package/dist/LabelsparklineWidget-B3awLUyP.js +44 -0
- package/dist/LabelsparklineWidget-B3awLUyP.js.map +1 -0
- package/dist/LabelsparklineWidget-CJRnLETe.cjs +2 -0
- package/dist/LabelsparklineWidget-CJRnLETe.cjs.map +1 -0
- package/dist/LabelvalueWidget-Zx_yHCtl.js +58 -0
- package/dist/LabelvalueWidget-Zx_yHCtl.js.map +1 -0
- package/dist/LabelvalueWidget-owiMSCYl.cjs +2 -0
- package/dist/LabelvalueWidget-owiMSCYl.cjs.map +1 -0
- package/dist/LabelvaluedescWidget-BBSBh4vI.js +59 -0
- package/dist/LabelvaluedescWidget-BBSBh4vI.js.map +1 -0
- package/dist/LabelvaluedescWidget-MRmZBUc0.cjs +2 -0
- package/dist/LabelvaluedescWidget-MRmZBUc0.cjs.map +1 -0
- package/dist/LabelvaluelimitsbarWidget-BQ2XYPNE.cjs +2 -0
- package/dist/LabelvaluelimitsbarWidget-BQ2XYPNE.cjs.map +1 -0
- package/dist/LabelvaluelimitsbarWidget-CZueHYWG.js +57 -0
- package/dist/LabelvaluelimitsbarWidget-CZueHYWG.js.map +1 -0
- package/dist/LabelvaluelimitscolumnWidget-BTvzyQMq.js +47 -0
- package/dist/LabelvaluelimitscolumnWidget-BTvzyQMq.js.map +1 -0
- package/dist/LabelvaluelimitscolumnWidget-DNmVpU8J.cjs +2 -0
- package/dist/LabelvaluelimitscolumnWidget-DNmVpU8J.cjs.map +1 -0
- package/dist/LabelvaluerangebarWidget-BhYTBgDq.js +79 -0
- package/dist/LabelvaluerangebarWidget-BhYTBgDq.js.map +1 -0
- package/dist/LabelvaluerangebarWidget-DL0U8cbw.cjs +2 -0
- package/dist/LabelvaluerangebarWidget-DL0U8cbw.cjs.map +1 -0
- package/dist/Layout-Bh7VzCZd.js +14 -0
- package/dist/Layout-Bh7VzCZd.js.map +1 -0
- package/dist/Layout-DRL0EeSA.cjs +2 -0
- package/dist/Layout-DRL0EeSA.cjs.map +1 -0
- package/dist/LedWidget-B8rjFe1b.cjs +2 -0
- package/dist/LedWidget-B8rjFe1b.cjs.map +1 -0
- package/dist/LedWidget-CxJjJBBS.js +71 -0
- package/dist/LedWidget-CxJjJBBS.js.map +1 -0
- package/dist/LimitsbarWidget-CYIH8fdp.cjs +2 -0
- package/dist/LimitsbarWidget-CYIH8fdp.cjs.map +1 -0
- package/dist/LimitsbarWidget-Djui0IpK.js +69 -0
- package/dist/LimitsbarWidget-Djui0IpK.js.map +1 -0
- package/dist/LimitscolorWidget-CS0wpX9A.cjs +2 -0
- package/dist/LimitscolorWidget-CS0wpX9A.cjs.map +1 -0
- package/dist/LimitscolorWidget-DdmvKzmx.js +63 -0
- package/dist/LimitscolorWidget-DdmvKzmx.js.map +1 -0
- package/dist/LimitscolumnWidget-C_UW6xKq.cjs +2 -0
- package/dist/LimitscolumnWidget-C_UW6xKq.cjs.map +1 -0
- package/dist/LimitscolumnWidget-Cc19IEjq.js +66 -0
- package/dist/LimitscolumnWidget-Cc19IEjq.js.map +1 -0
- package/dist/LinegraphWidget-8td_PqgU.cjs +2 -0
- package/dist/LinegraphWidget-8td_PqgU.cjs.map +1 -0
- package/dist/LinegraphWidget-BtieJxeL.js +39 -0
- package/dist/LinegraphWidget-BtieJxeL.js.map +1 -0
- package/dist/MatrixbycolumnsWidget-CGOeCNW2.cjs +2 -0
- package/dist/MatrixbycolumnsWidget-CGOeCNW2.cjs.map +1 -0
- package/dist/MatrixbycolumnsWidget-DnExVRF8.js +56 -0
- package/dist/MatrixbycolumnsWidget-DnExVRF8.js.map +1 -0
- package/dist/MicroservicesTab-IbTmbPxO.js +268 -0
- package/dist/MicroservicesTab-IbTmbPxO.js.map +1 -0
- package/dist/MicroservicesTab-uMC8NebS.cjs +2 -0
- package/dist/MicroservicesTab-uMC8NebS.cjs.map +1 -0
- package/dist/OutputDialog-B4Q0QMJ1.cjs +2 -0
- package/dist/OutputDialog-B4Q0QMJ1.cjs.map +1 -0
- package/dist/OutputDialog-Ci5OT_fH.js +245 -0
- package/dist/OutputDialog-Ci5OT_fH.js.map +1 -0
- package/dist/PackagesTab-BX8YP3H1.js +332 -0
- package/dist/PackagesTab-BX8YP3H1.js.map +1 -0
- package/dist/PackagesTab-eYbk2vw7.cjs +2 -0
- package/dist/PackagesTab-eYbk2vw7.cjs.map +1 -0
- package/dist/PluginsTab-Ck3DvEGm.cjs +6 -0
- package/dist/PluginsTab-Ck3DvEGm.cjs.map +1 -0
- package/dist/PluginsTab-Ds3jk64b.js +599 -0
- package/dist/PluginsTab-Ds3jk64b.js.map +1 -0
- package/dist/ProgressbarWidget-CUIAYySg.cjs +2 -0
- package/dist/ProgressbarWidget-CUIAYySg.cjs.map +1 -0
- package/dist/ProgressbarWidget-DIfqhHRE.js +46 -0
- package/dist/ProgressbarWidget-DIfqhHRE.js.map +1 -0
- package/dist/RadiobuttonWidget-Cjk1JAP_.cjs +2 -0
- package/dist/RadiobuttonWidget-Cjk1JAP_.cjs.map +1 -0
- package/dist/RadiobuttonWidget-QzIkNP7m.js +34 -0
- package/dist/RadiobuttonWidget-QzIkNP7m.js.map +1 -0
- package/dist/RadiogroupWidget-B4lkYWaC.cjs +2 -0
- package/dist/RadiogroupWidget-B4lkYWaC.cjs.map +1 -0
- package/dist/RadiogroupWidget-Ci9sCX39.js +48 -0
- package/dist/RadiogroupWidget-Ci9sCX39.js.map +1 -0
- package/dist/RangebarWidget-CN0YuHqy.js +67 -0
- package/dist/RangebarWidget-CN0YuHqy.js.map +1 -0
- package/dist/RangebarWidget-nl0rzj93.cjs +2 -0
- package/dist/RangebarWidget-nl0rzj93.cjs.map +1 -0
- package/dist/RedisTab-CVimDkIE.js +135 -0
- package/dist/RedisTab-CVimDkIE.js.map +1 -0
- package/dist/RedisTab-DhS4GHDj.cjs +2 -0
- package/dist/RedisTab-DhS4GHDj.cjs.map +1 -0
- package/dist/RollupWidget-Bgudi_bt.cjs +2 -0
- package/dist/RollupWidget-Bgudi_bt.cjs.map +1 -0
- package/dist/RollupWidget-y4jBtJB2.js +83 -0
- package/dist/RollupWidget-y4jBtJB2.js.map +1 -0
- package/dist/RoutersTab-CzO10cVP.cjs +2 -0
- package/dist/RoutersTab-CzO10cVP.cjs.map +1 -0
- package/dist/RoutersTab-Dki_66av.js +95 -0
- package/dist/RoutersTab-Dki_66av.js.map +1 -0
- package/dist/ScriptChooser-BNm_zXxX.cjs +2 -0
- package/dist/ScriptChooser-BNm_zXxX.cjs.map +1 -0
- package/dist/ScriptChooser-l5i8c8KP.js +199 -0
- package/dist/ScriptChooser-l5i8c8KP.js.map +1 -0
- package/dist/ScrollwindowWidget-BIiV7xwi.cjs +2 -0
- package/dist/ScrollwindowWidget-BIiV7xwi.cjs.map +1 -0
- package/dist/ScrollwindowWidget-CBzYk4Y3.js +45 -0
- package/dist/ScrollwindowWidget-CBzYk4Y3.js.map +1 -0
- package/dist/SecretsTab-BSzFZ81X.cjs +2 -0
- package/dist/SecretsTab-BSzFZ81X.cjs.map +1 -0
- package/dist/SecretsTab-BjviaTxh.js +202 -0
- package/dist/SecretsTab-BjviaTxh.js.map +1 -0
- package/dist/SettingsTab-Bo_dYXgb.js +1382 -0
- package/dist/SettingsTab-Bo_dYXgb.js.map +1 -0
- package/dist/SettingsTab-DH8LAAoG.cjs +3 -0
- package/dist/SettingsTab-DH8LAAoG.cjs.map +1 -0
- package/dist/SignalWidget-CvZkvejy.cjs +2 -0
- package/dist/SignalWidget-CvZkvejy.cjs.map +1 -0
- package/dist/SignalWidget-DQ5Uc2uV.js +66 -0
- package/dist/SignalWidget-DQ5Uc2uV.js.map +1 -0
- package/dist/SimpleTextDialog-CheuP_ls.js +108 -0
- package/dist/SimpleTextDialog-CheuP_ls.js.map +1 -0
- package/dist/SimpleTextDialog-DmeNMMCR.cjs +2 -0
- package/dist/SimpleTextDialog-DmeNMMCR.cjs.map +1 -0
- package/dist/SpacerWidget-6rsc_dSM.js +19 -0
- package/dist/SpacerWidget-6rsc_dSM.js.map +1 -0
- package/dist/SpacerWidget-BBJR6HBQ.cjs +2 -0
- package/dist/SpacerWidget-BBJR6HBQ.cjs.map +1 -0
- package/dist/SparklineWidget-BxBLnjAO.cjs +2 -0
- package/dist/SparklineWidget-BxBLnjAO.cjs.map +1 -0
- package/dist/SparklineWidget-CZtvu2ss.js +48 -0
- package/dist/SparklineWidget-CZtvu2ss.js.map +1 -0
- package/dist/TabbookWidget-DNALU0jl.js +66 -0
- package/dist/TabbookWidget-DNALU0jl.js.map +1 -0
- package/dist/TabbookWidget-DyFQnA10.cjs +2 -0
- package/dist/TabbookWidget-DyFQnA10.cjs.map +1 -0
- package/dist/TargetsTab-Cd8U1aN_.js +129 -0
- package/dist/TargetsTab-Cd8U1aN_.js.map +1 -0
- package/dist/TargetsTab-DMiOliqg.cjs +2 -0
- package/dist/TargetsTab-DMiOliqg.cjs.map +1 -0
- package/dist/TextBoxDialog-DvUf3Cak.cjs +2 -0
- package/dist/TextBoxDialog-DvUf3Cak.cjs.map +1 -0
- package/dist/TextBoxDialog-fHkDTtzI.js +110 -0
- package/dist/TextBoxDialog-fHkDTtzI.js.map +1 -0
- package/dist/TextboxWidget-5hqPj74D.js +93 -0
- package/dist/TextboxWidget-5hqPj74D.js.map +1 -0
- package/dist/TextboxWidget-D6lW_dsU.cjs +2 -0
- package/dist/TextboxWidget-D6lW_dsU.cjs.map +1 -0
- package/dist/TextfieldWidget-Df0ANSiU.js +37 -0
- package/dist/TextfieldWidget-Df0ANSiU.js.map +1 -0
- package/dist/TextfieldWidget-iHN7-fyF.cjs +2 -0
- package/dist/TextfieldWidget-iHN7-fyF.cjs.map +1 -0
- package/dist/TimeWidget-C3NZqTEG.cjs +2 -0
- package/dist/TimeWidget-C3NZqTEG.cjs.map +1 -0
- package/dist/TimeWidget-C6XQMUG2.js +40 -0
- package/dist/TimeWidget-C6XQMUG2.js.map +1 -0
- package/dist/TitleWidget-B9SPUlbW.js +26 -0
- package/dist/TitleWidget-B9SPUlbW.js.map +1 -0
- package/dist/TitleWidget-CWZs33c4.cjs +2 -0
- package/dist/TitleWidget-CWZs33c4.cjs.map +1 -0
- package/dist/ToolsTab-CUpUmkZL.cjs +7 -0
- package/dist/ToolsTab-CUpUmkZL.cjs.map +1 -0
- package/dist/ToolsTab-Cgpb2nAW.js +1521 -0
- package/dist/ToolsTab-Cgpb2nAW.js.map +1 -0
- package/dist/TopBar-DuXL27iD.cjs +2 -0
- package/dist/TopBar-DuXL27iD.cjs.map +1 -0
- package/dist/TopBar-F1jHuFan.js +248 -0
- package/dist/TopBar-F1jHuFan.js.map +1 -0
- package/dist/UpgradeToEnterpriseDialog-DVcAH30Y.js +95 -0
- package/dist/UpgradeToEnterpriseDialog-DVcAH30Y.js.map +1 -0
- package/dist/UpgradeToEnterpriseDialog-DfIKahNK.cjs +2 -0
- package/dist/UpgradeToEnterpriseDialog-DfIKahNK.cjs.map +1 -0
- package/dist/UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_6fa47877_lang-DJX55UPj.cjs +1417 -0
- package/dist/UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_6fa47877_lang-DJX55UPj.cjs.map +1 -0
- package/dist/UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_6fa47877_lang-iq-jp8dD.js +26941 -0
- package/dist/UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_6fa47877_lang-iq-jp8dD.js.map +1 -0
- package/dist/VWidget-C2x_zSC2.cjs +2 -0
- package/dist/VWidget-C2x_zSC2.cjs.map +1 -0
- package/dist/VWidget-C4spAawK.js +323 -0
- package/dist/VWidget-C4spAawK.js.map +1 -0
- package/dist/ValueWidget-D4RrYVEK.js +116 -0
- package/dist/ValueWidget-D4RrYVEK.js.map +1 -0
- package/dist/ValueWidget-Do3Yn47P.cjs +2 -0
- package/dist/ValueWidget-Do3Yn47P.cjs.map +1 -0
- package/dist/ValuelimitsbarWidget-Bc9_Vj_f.js +41 -0
- package/dist/ValuelimitsbarWidget-Bc9_Vj_f.js.map +1 -0
- package/dist/ValuelimitsbarWidget-DJuh7FOs.cjs +2 -0
- package/dist/ValuelimitsbarWidget-DJuh7FOs.cjs.map +1 -0
- package/dist/ValuelimitscolumnWidget-BFpG-H7v.cjs +2 -0
- package/dist/ValuelimitscolumnWidget-BFpG-H7v.cjs.map +1 -0
- package/dist/ValuelimitscolumnWidget-DHKIL7sf.js +40 -0
- package/dist/ValuelimitscolumnWidget-DHKIL7sf.js.map +1 -0
- package/dist/ValuerangebarWidget-BlZSaiXo.cjs +2 -0
- package/dist/ValuerangebarWidget-BlZSaiXo.cjs.map +1 -0
- package/dist/ValuerangebarWidget-CecQRIok.js +65 -0
- package/dist/ValuerangebarWidget-CecQRIok.js.map +1 -0
- package/dist/VerticalWidget--8UErB4q.cjs +2 -0
- package/dist/VerticalWidget--8UErB4q.cjs.map +1 -0
- package/dist/VerticalWidget-D8jUFxjS.js +40 -0
- package/dist/VerticalWidget-D8jUFxjS.js.map +1 -0
- package/dist/VerticalboxWidget-B4eGUSYH.js +37 -0
- package/dist/VerticalboxWidget-B4eGUSYH.js.map +1 -0
- package/dist/VerticalboxWidget-cxHq1WKQ.cjs +2 -0
- package/dist/VerticalboxWidget-cxHq1WKQ.cjs.map +1 -0
- package/dist/Widget-DNf52jRQ.cjs +2 -0
- package/dist/Widget-DNf52jRQ.cjs.map +1 -0
- package/dist/Widget-fRCERxGf.js +197 -0
- package/dist/Widget-fRCERxGf.js.map +1 -0
- package/dist/addMonths-BtG7uZLJ.js +19 -0
- package/dist/addMonths-BtG7uZLJ.js.map +1 -0
- package/dist/addMonths-n1tnl3ab.cjs +2 -0
- package/dist/addMonths-n1tnl3ab.cjs.map +1 -0
- package/dist/components.cjs +7 -0
- package/dist/components.cjs.map +1 -0
- package/dist/components.js +2971 -0
- package/dist/components.js.map +1 -0
- package/dist/fileIcon-BduOQcTc.cjs +2 -0
- package/dist/fileIcon-BduOQcTc.cjs.map +1 -0
- package/dist/fileIcon-DqRHb1_Z.js +22 -0
- package/dist/fileIcon-DqRHb1_Z.js.map +1 -0
- package/dist/format-B22VpiOS.cjs +2 -0
- package/dist/format-B22VpiOS.cjs.map +1 -0
- package/dist/format-CVeawcIv.js +1295 -0
- package/dist/format-CVeawcIv.js.map +1 -0
- package/dist/getDefaultOptions-Batab9o8.cjs +2 -0
- package/dist/getDefaultOptions-Batab9o8.cjs.map +1 -0
- package/dist/getDefaultOptions-BhSDk-Jo.js +8 -0
- package/dist/getDefaultOptions-BhSDk-Jo.js.map +1 -0
- 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 +2 -0
- package/dist/icons.cjs.map +1 -0
- package/dist/icons.js +157 -0
- package/dist/icons.js.map +1 -0
- package/dist/index-Bz_jHTkl.cjs +7 -0
- package/dist/index-Bz_jHTkl.cjs.map +1 -0
- package/dist/index-CFQnWdPA.js +1705 -0
- package/dist/index-CFQnWdPA.js.map +1 -0
- package/dist/parse-DnkEsW-3.js +1603 -0
- package/dist/parse-DnkEsW-3.js.map +1 -0
- package/dist/parse-DwfgQboe.cjs +2 -0
- package/dist/parse-DwfgQboe.cjs.map +1 -0
- package/dist/plugins.cjs +9 -0
- package/dist/plugins.cjs.map +1 -0
- package/dist/plugins.js +772 -0
- package/dist/plugins.js.map +1 -0
- package/dist/timeFilters-8SaYvcH0.cjs +2 -0
- package/dist/timeFilters-8SaYvcH0.cjs.map +1 -0
- package/dist/timeFilters-CRYpYDdf.js +622 -0
- package/dist/timeFilters-CRYpYDdf.js.map +1 -0
- package/dist/tools/admin.cjs +13 -0
- package/dist/tools/admin.cjs.map +1 -0
- package/dist/tools/admin.js +1944 -0
- package/dist/tools/admin.js.map +1 -0
- package/dist/tools/base.cjs +2 -0
- package/dist/tools/base.cjs.map +1 -0
- package/dist/tools/base.js +1683 -0
- package/dist/tools/base.js.map +1 -0
- package/dist/tools/calendar.cjs +2 -0
- package/dist/tools/calendar.cjs.map +1 -0
- package/dist/tools/calendar.js +1586 -0
- package/dist/tools/calendar.js.map +1 -0
- package/dist/util.cjs +2 -0
- package/dist/util.cjs.map +1 -0
- package/dist/util.js +9 -0
- package/dist/util.js.map +1 -0
- package/dist/vue-common.css +1 -0
- package/dist/widgets.cjs +2 -0
- package/dist/widgets.cjs.map +1 -0
- package/dist/widgets.js +132 -0
- package/dist/widgets.js.map +1 -0
- package/package.json +10 -11
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_6fa47877_lang-DJX55UPj.cjs");const e=require("vue"),g=require("./CosmosRuxIcon.vue_vue_type_style_index_0_scoped_9af48e85_lang-BHFhmbuH.cjs"),f=require("./DetailsDialog-CiuQYvJK.cjs");require("single-spa");const v=require("./VWidget-C2x_zSC2.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 a;let o="",s=" ",l=`
|
|
2
|
+
`,r=0;if(Array.isArray(t)){for(const i of t)this.formatter&&((a=this.formatter)==null?void 0:a.toLowerCase())!=="nil"?o+=sprintf(this.formatter,i):o+=i,r+=1,r%this.itemsPerRow===0?(r=0,o+=l):o+=s;return o.trim()}else return t}}},w={class:"array-widget-container"};function y(t,o,s,l,r,a){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,a.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-BIQi_bWC.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ArrayWidget-BIQi_bWC.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":"+YAgEKA,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,K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AAU,WAAA,CAAA,EACvB,cAAaA,EAAU,WAAA,CAAA,EACvB,YAAWA,EAAU,WAAA,CAAA,EArD5B,WAsDeA,EAAW,YAtD1B,sBAAAK,EAAA,CAAA,IAAAA,EAAA,CAAA,EAAAC,GAsDeN,EAAW,YAAAM"}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import "./UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_6fa47877_lang-iq-jp8dD.js";
|
|
2
|
+
import { resolveComponent as o, createElementBlock as d, openBlock as m, createVNode as i, normalizeStyle as w, normalizeClass 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-BvbziA7Y.js";
|
|
5
|
+
import "single-spa";
|
|
6
|
+
import { V as R } from "./VWidget-C4spAawK.js";
|
|
7
|
+
const z = {
|
|
8
|
+
components: {
|
|
9
|
+
DetailsDialog: L
|
|
10
|
+
},
|
|
11
|
+
data: function() {
|
|
12
|
+
return {
|
|
13
|
+
width: 200,
|
|
14
|
+
height: 100,
|
|
15
|
+
itemsPerRow: 4,
|
|
16
|
+
formatter: null
|
|
17
|
+
};
|
|
18
|
+
},
|
|
19
|
+
mixins: [R],
|
|
20
|
+
computed: {
|
|
21
|
+
aging() {
|
|
22
|
+
return {
|
|
23
|
+
"--aging": this.grayLevel
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
created: function() {
|
|
28
|
+
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]));
|
|
29
|
+
},
|
|
30
|
+
methods: {
|
|
31
|
+
getType: function() {
|
|
32
|
+
let e = "CONVERTED";
|
|
33
|
+
return this.parameters[7] && (e = this.parameters[7]), e;
|
|
34
|
+
},
|
|
35
|
+
formatValue: function(e) {
|
|
36
|
+
var n;
|
|
37
|
+
let t = "", p = " ", u = `
|
|
38
|
+
`, r = 0;
|
|
39
|
+
if (Array.isArray(e)) {
|
|
40
|
+
for (const s of e)
|
|
41
|
+
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 += u) : t += p;
|
|
42
|
+
return t.trim();
|
|
43
|
+
} else
|
|
44
|
+
return e;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}, A = { class: "array-widget-container" };
|
|
48
|
+
function B(e, t, p, u, r, n) {
|
|
49
|
+
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");
|
|
50
|
+
return m(), d("div", A, [
|
|
51
|
+
i(s, {
|
|
52
|
+
variant: "solo",
|
|
53
|
+
density: "compact",
|
|
54
|
+
readonly: "",
|
|
55
|
+
"no-resize": "",
|
|
56
|
+
"auto-grow": "",
|
|
57
|
+
rows: "2",
|
|
58
|
+
"hide-details": "",
|
|
59
|
+
"model-value": e._value,
|
|
60
|
+
class: y(e.valueClass),
|
|
61
|
+
style: w([e.computedStyle, n.aging]),
|
|
62
|
+
"data-test": "array-widget",
|
|
63
|
+
onContextmenu: e.showContextMenu
|
|
64
|
+
}, null, 8, ["model-value", "class", "style", "onContextmenu"]),
|
|
65
|
+
i(g, {
|
|
66
|
+
modelValue: e.contextMenuShown,
|
|
67
|
+
"onUpdate:modelValue": t[0] || (t[0] = (a) => e.contextMenuShown = a),
|
|
68
|
+
target: [e.x, e.y]
|
|
69
|
+
}, {
|
|
70
|
+
default: l(() => [
|
|
71
|
+
i(f, null, {
|
|
72
|
+
default: l(() => [
|
|
73
|
+
(m(!0), d(V, null, C(e.contextMenuOptions, (a, _) => (m(), k(c, {
|
|
74
|
+
key: _,
|
|
75
|
+
onClick: D(a.action, ["stop"])
|
|
76
|
+
}, {
|
|
77
|
+
default: l(() => [
|
|
78
|
+
i(h, null, {
|
|
79
|
+
default: l(() => [
|
|
80
|
+
M(S(a.title), 1)
|
|
81
|
+
]),
|
|
82
|
+
_: 2
|
|
83
|
+
}, 1024)
|
|
84
|
+
]),
|
|
85
|
+
_: 2
|
|
86
|
+
}, 1032, ["onClick"]))), 128))
|
|
87
|
+
]),
|
|
88
|
+
_: 1
|
|
89
|
+
})
|
|
90
|
+
]),
|
|
91
|
+
_: 1
|
|
92
|
+
}, 8, ["modelValue", "target"]),
|
|
93
|
+
i(v, {
|
|
94
|
+
"target-name": e.parameters[0],
|
|
95
|
+
"packet-name": e.parameters[1],
|
|
96
|
+
"item-name": e.parameters[2],
|
|
97
|
+
modelValue: e.viewDetails,
|
|
98
|
+
"onUpdate:modelValue": t[1] || (t[1] = (a) => e.viewDetails = a)
|
|
99
|
+
}, null, 8, ["target-name", "packet-name", "item-name", "modelValue"])
|
|
100
|
+
]);
|
|
101
|
+
}
|
|
102
|
+
const I = /* @__PURE__ */ x(z, [["render", B], ["__scopeId", "data-v-62b9e9e1"]]);
|
|
103
|
+
export {
|
|
104
|
+
I as default
|
|
105
|
+
};
|
|
106
|
+
//# sourceMappingURL=ArrayWidget-BxEO5hEG.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ArrayWidget-BxEO5hEG.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,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A,MACT,eAAaH,EAAe;AAAA;IAE/BF,EAUSM,GAAA;AAAA,MAhDb,YAsCqBJ,EAAgB;AAAA,MAtCrC,uBAAAK,EAAA,CAAA,MAAAA,EAAA,CAAA,IAAA,CAAAC,MAsCqBN,EAAgB,mBAAAM;AAAA,MAAG,QAAM,CAAGN,EAAC,GAAEA,EAAC,CAAA;AAAA;MAtCrD,SAAAO,EAuCM,MAQS;AAAA,QARTT,EAQSU,GAAA,MAAA;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;;;;"}
|
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
import { u as c, f as d } from "./UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_6fa47877_lang-iq-jp8dD.js";
|
|
2
|
+
import { G as h } from "./GraphWidget-Dycey-mj.js";
|
|
3
|
+
import { createElementBlock as l, openBlock as p } from "vue";
|
|
4
|
+
import { _ as u } from "./CosmosRuxIcon.vue_vue_type_style_index_0_scoped_9af48e85_lang-CHgC5LLL.js";
|
|
5
|
+
const f = {
|
|
6
|
+
data: function() {
|
|
7
|
+
return {
|
|
8
|
+
items: [],
|
|
9
|
+
indexes: {},
|
|
10
|
+
data: [[]],
|
|
11
|
+
cable: new d(),
|
|
12
|
+
subscription: null,
|
|
13
|
+
graph: null,
|
|
14
|
+
xAxis: null,
|
|
15
|
+
title: "Array Plot",
|
|
16
|
+
colorIndex: 0,
|
|
17
|
+
colors: [
|
|
18
|
+
// The first 3 are taken from the Astro css definitions for
|
|
19
|
+
// --color-data-visualization-1 through 3
|
|
20
|
+
"#00c7cb",
|
|
21
|
+
"#938bdb",
|
|
22
|
+
"#4dacff",
|
|
23
|
+
"lime",
|
|
24
|
+
"darkorange",
|
|
25
|
+
"red",
|
|
26
|
+
"gold",
|
|
27
|
+
"hotpink",
|
|
28
|
+
"tan",
|
|
29
|
+
"cyan",
|
|
30
|
+
"maroon",
|
|
31
|
+
"blue",
|
|
32
|
+
"teal",
|
|
33
|
+
"purple",
|
|
34
|
+
"green",
|
|
35
|
+
"brown",
|
|
36
|
+
"lightblue",
|
|
37
|
+
"white",
|
|
38
|
+
"black"
|
|
39
|
+
]
|
|
40
|
+
};
|
|
41
|
+
},
|
|
42
|
+
mixins: [h],
|
|
43
|
+
created() {
|
|
44
|
+
for (const [e, t] of this.items.entries())
|
|
45
|
+
this.data.push([]), this.indexes[this.subscriptionKey(t)] = e + 1, t.color = this.colors[this.colorIndex], this.colorIndex++;
|
|
46
|
+
this.appliedSettings.forEach((e) => {
|
|
47
|
+
switch (e[0]) {
|
|
48
|
+
case "TITLE":
|
|
49
|
+
this.title = e[1];
|
|
50
|
+
break;
|
|
51
|
+
case "X_AXIS":
|
|
52
|
+
this.xAxis = {
|
|
53
|
+
start: parseFloat(e[1]),
|
|
54
|
+
step: parseFloat(e[2])
|
|
55
|
+
};
|
|
56
|
+
break;
|
|
57
|
+
}
|
|
58
|
+
});
|
|
59
|
+
},
|
|
60
|
+
mounted() {
|
|
61
|
+
let e = [];
|
|
62
|
+
this.items.forEach((s) => {
|
|
63
|
+
e.push({
|
|
64
|
+
label: this.itemName(s),
|
|
65
|
+
stroke: s.color,
|
|
66
|
+
width: 2,
|
|
67
|
+
value: (r, i) => typeof i == "string" || isNaN(i) ? "NaN" : i == null ? "--" : i.toFixed(3)
|
|
68
|
+
});
|
|
69
|
+
});
|
|
70
|
+
let t = {
|
|
71
|
+
title: this.title,
|
|
72
|
+
width: this.size.width,
|
|
73
|
+
height: this.size.height,
|
|
74
|
+
scales: {
|
|
75
|
+
x: {
|
|
76
|
+
time: !1
|
|
77
|
+
},
|
|
78
|
+
y: {
|
|
79
|
+
time: !1,
|
|
80
|
+
range: (s, r, i) => [r, i]
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
axes: [
|
|
84
|
+
{
|
|
85
|
+
stroke: "white",
|
|
86
|
+
grid: {
|
|
87
|
+
show: !0,
|
|
88
|
+
stroke: "rgba(255, 255, 255, .1)",
|
|
89
|
+
width: 2
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
stroke: "white",
|
|
94
|
+
grid: {
|
|
95
|
+
show: !0,
|
|
96
|
+
stroke: "rgba(255, 255, 255, .1)",
|
|
97
|
+
width: 2
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
],
|
|
101
|
+
series: [
|
|
102
|
+
{
|
|
103
|
+
label: "X Value"
|
|
104
|
+
},
|
|
105
|
+
...e
|
|
106
|
+
]
|
|
107
|
+
};
|
|
108
|
+
this.graph = new c(
|
|
109
|
+
t,
|
|
110
|
+
this.data,
|
|
111
|
+
document.getElementById(`chart${this.id}`)
|
|
112
|
+
), this.subscribe();
|
|
113
|
+
},
|
|
114
|
+
beforeUnmount: function() {
|
|
115
|
+
this.cable.disconnect();
|
|
116
|
+
},
|
|
117
|
+
computed: {
|
|
118
|
+
dataOnly() {
|
|
119
|
+
return this.data[1];
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
watch: {
|
|
123
|
+
// This is always firing even when the data is the same
|
|
124
|
+
// Is it because we're setting the whole array data[1]?
|
|
125
|
+
dataOnly: function() {
|
|
126
|
+
this.graph && this.graph.setData(this.data);
|
|
127
|
+
}
|
|
128
|
+
},
|
|
129
|
+
methods: {
|
|
130
|
+
subscribe: function() {
|
|
131
|
+
this.cable.createSubscription("StreamingChannel", window.openc3Scope, {
|
|
132
|
+
received: (e) => this.received(e),
|
|
133
|
+
connected: () => {
|
|
134
|
+
this.addItemsToSubscription(this.items);
|
|
135
|
+
},
|
|
136
|
+
disconnected: (e) => {
|
|
137
|
+
e.allowReconnect && this.errors.push({
|
|
138
|
+
type: "disconnected",
|
|
139
|
+
message: "OpenC3 backend connection disconnected",
|
|
140
|
+
time: (/* @__PURE__ */ new Date()).getTime()
|
|
141
|
+
});
|
|
142
|
+
},
|
|
143
|
+
rejected: () => {
|
|
144
|
+
this.errors.push({
|
|
145
|
+
type: "rejected",
|
|
146
|
+
message: "OpenC3 backend connection rejected",
|
|
147
|
+
time: (/* @__PURE__ */ new Date()).getTime()
|
|
148
|
+
});
|
|
149
|
+
}
|
|
150
|
+
}).then((e) => {
|
|
151
|
+
this.subscription = e;
|
|
152
|
+
});
|
|
153
|
+
},
|
|
154
|
+
received: function(e) {
|
|
155
|
+
for (let t of e) {
|
|
156
|
+
let s = [];
|
|
157
|
+
for (const [r, i] of Object.entries(t)) {
|
|
158
|
+
r === "__time" && (this.xAxis ? s = Array.from(
|
|
159
|
+
{ length: this.data[1].length },
|
|
160
|
+
(o, a) => this.xAxis.start + a * this.xAxis.step
|
|
161
|
+
) : s.length === 0 && (s = Array.from({ length: this.data[1].length }, (o, a) => a)), this.data[0] = s);
|
|
162
|
+
let n = this.indexes[r];
|
|
163
|
+
n && (Array.isArray(i[0]) ? (this.data[n] = i[1], s = i[0]) : this.data[n] = i);
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
},
|
|
167
|
+
addItemsToSubscription: function(e = this.items) {
|
|
168
|
+
this.subscription && OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity).then(
|
|
169
|
+
(t) => {
|
|
170
|
+
t && OpenC3Auth.setTokens(), this.subscription.perform("add", {
|
|
171
|
+
scope: window.openc3Scope,
|
|
172
|
+
token: localStorage.openc3Token,
|
|
173
|
+
items: e.map(this.subscriptionKey),
|
|
174
|
+
start_time: null,
|
|
175
|
+
end_time: null
|
|
176
|
+
});
|
|
177
|
+
}
|
|
178
|
+
);
|
|
179
|
+
},
|
|
180
|
+
itemName: function(e) {
|
|
181
|
+
return `${e.targetName} ${e.packetName} ${e.itemName}`;
|
|
182
|
+
},
|
|
183
|
+
subscriptionKey: function(e) {
|
|
184
|
+
let t = `${e.reduced}__TLM__${e.targetName}__${e.packetName}__${e.itemName}__${e.valueType}`;
|
|
185
|
+
return (e.reduced === "REDUCED_MINUTE" || e.reduced === "REDUCED_HOUR" || e.reduced === "REDUCED_DAY") && (t += `__${e.reducedType}`), t;
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
}, m = ["id"];
|
|
189
|
+
function b(e, t, s, r, i, n) {
|
|
190
|
+
return p(), l("div", {
|
|
191
|
+
class: "pa-1",
|
|
192
|
+
id: `chart${e.id}`
|
|
193
|
+
}, null, 8, m);
|
|
194
|
+
}
|
|
195
|
+
const y = /* @__PURE__ */ u(f, [["render", b]]);
|
|
196
|
+
export {
|
|
197
|
+
y as default
|
|
198
|
+
};
|
|
199
|
+
//# sourceMappingURL=ArrayplotWidget-B_VPoV4v.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ArrayplotWidget-B_VPoV4v.js","sources":["../src/widgets/ArrayplotWidget.vue"],"sourcesContent":["<!--\n# Copyright 2025 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\n<template>\n <div class=\"pa-1\" :id=\"`chart${id}`\"></div>\n</template>\n\n<script>\nimport uPlot from 'uplot'\nimport 'uplot/dist/uPlot.min.css'\nimport { Cable } from '@openc3/js-common/services'\nimport GraphWidget from './GraphWidget'\n\nexport default {\n data: function () {\n return {\n items: [],\n indexes: {},\n data: [[]],\n cable: new Cable(),\n subscription: null,\n graph: null,\n xAxis: null,\n title: 'Array Plot',\n colorIndex: 0,\n colors: [\n // The first 3 are taken from the Astro css definitions for\n // --color-data-visualization-1 through 3\n '#00c7cb',\n '#938bdb',\n '#4dacff',\n 'lime',\n 'darkorange',\n 'red',\n 'gold',\n 'hotpink',\n 'tan',\n 'cyan',\n 'maroon',\n 'blue',\n 'teal',\n 'purple',\n 'green',\n 'brown',\n 'lightblue',\n 'white',\n 'black',\n ],\n }\n },\n mixins: [GraphWidget],\n created() {\n for (const [index, item] of this.items.entries()) {\n this.data.push([]) // initialize the empty data arrays\n this.indexes[this.subscriptionKey(item)] = index + 1\n item.color = this.colors[this.colorIndex]\n this.colorIndex++\n }\n\n this.appliedSettings.forEach((setting) => {\n switch (setting[0]) {\n case 'TITLE':\n this.title = setting[1]\n break\n case 'X_AXIS':\n this.xAxis = {\n start: parseFloat(setting[1]),\n step: parseFloat(setting[2]),\n }\n break\n }\n })\n },\n mounted() {\n let chartSeries = []\n this.items.forEach((item) => {\n chartSeries.push({\n label: this.itemName(item),\n stroke: item.color,\n width: 2,\n value: (self, rawValue) => {\n if (typeof rawValue === 'string' || isNaN(rawValue)) {\n return 'NaN'\n } else {\n return rawValue == null ? '--' : rawValue.toFixed(3)\n }\n },\n })\n })\n\n let chartOpts = {\n title: this.title,\n width: this.size.width,\n height: this.size.height,\n scales: {\n x: {\n time: false,\n },\n y: {\n time: false,\n range: (u, min, max) => [min, max],\n },\n },\n axes: [\n {\n stroke: 'white',\n grid: {\n show: true,\n stroke: 'rgba(255, 255, 255, .1)',\n width: 2,\n },\n },\n {\n stroke: 'white',\n grid: {\n show: true,\n stroke: 'rgba(255, 255, 255, .1)',\n width: 2,\n },\n },\n ],\n series: [\n {\n label: 'X Value',\n },\n ...chartSeries,\n ],\n }\n this.graph = new uPlot(\n chartOpts,\n this.data,\n document.getElementById(`chart${this.id}`),\n )\n this.subscribe()\n },\n beforeUnmount: function () {\n this.cable.disconnect()\n },\n computed: {\n dataOnly() {\n return this.data[1] // Ignore the x axis data\n },\n },\n watch: {\n // This is always firing even when the data is the same\n // Is it because we're setting the whole array data[1]?\n dataOnly: function () {\n if (this.graph) {\n this.graph.setData(this.data)\n }\n },\n },\n methods: {\n subscribe: function () {\n this.cable\n .createSubscription('StreamingChannel', window.openc3Scope, {\n received: (data) => this.received(data),\n connected: () => {\n this.addItemsToSubscription(this.items)\n },\n disconnected: (data) => {\n // If allowReconnect is true it means we got a disconnect due to connection lost or server disconnect\n // If allowReconnect is false this is a normal server close or client close\n if (data.allowReconnect) {\n this.errors.push({\n type: 'disconnected',\n message: 'OpenC3 backend connection disconnected',\n time: new Date().getTime(),\n })\n }\n },\n rejected: () => {\n this.errors.push({\n type: 'rejected',\n message: 'OpenC3 backend connection rejected',\n time: new Date().getTime(),\n })\n },\n })\n .then((subscription) => {\n this.subscription = subscription\n })\n },\n received: function (data_array) {\n for (let data of data_array) {\n let xaxis = [] // Declare outside the loop so we can use it for the X axis values\n for (const [key, value] of Object.entries(data)) {\n // We support 2 different kind of data, a simple array of Y values\n // or an array with both X and Y values, e.g. [[x1,x2,x3...], [y1,y2,y3...]]\n if (key === '__time') {\n // Explicitly setting the X axis values always wins\n if (this.xAxis) {\n xaxis = Array.from(\n { length: this.data[1].length },\n (_, i) => this.xAxis.start + i * this.xAxis.step,\n )\n } else if (xaxis.length === 0) {\n // If we don't have an array of X values we generate them\n xaxis = Array.from({ length: this.data[1].length }, (_, i) => i)\n }\n this.data[0] = xaxis\n }\n let key_index = this.indexes[key]\n if (key_index) {\n // Check for the array of arrays case\n if (Array.isArray(value[0])) {\n this.data[key_index] = value[1]\n xaxis = value[0]\n } else {\n this.data[key_index] = value\n }\n }\n }\n }\n },\n addItemsToSubscription: function (itemArray = this.items) {\n if (this.subscription) {\n OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity).then(\n (refreshed) => {\n if (refreshed) {\n OpenC3Auth.setTokens()\n }\n this.subscription.perform('add', {\n scope: window.openc3Scope,\n token: localStorage.openc3Token,\n items: itemArray.map(this.subscriptionKey),\n start_time: null,\n end_time: null,\n })\n },\n )\n }\n },\n itemName: function (item) {\n return `${item.targetName} ${item.packetName} ${item.itemName}`\n },\n subscriptionKey: function (item) {\n let key = `${item.reduced}__TLM__${item.targetName}__${item.packetName}__${item.itemName}__${item.valueType}`\n if (\n item.reduced === 'REDUCED_MINUTE' ||\n item.reduced === 'REDUCED_HOUR' ||\n item.reduced === 'REDUCED_DAY'\n ) {\n key += `__${item.reducedType}`\n }\n return key\n },\n },\n}\n</script>\n"],"names":["_sfc_main","Cable","GraphWidget","index","item","setting","chartSeries","self","rawValue","chartOpts","u","min","max","uPlot","data","subscription","data_array","xaxis","key","value","_","i","key_index","itemArray","refreshed","_hoisted_1","_createElementBlock","_ctx"],"mappings":";;;;AA4BA,MAAKA,IAAU;AAAA,EACb,MAAM,WAAY;AAChB,WAAO;AAAA,MACL,OAAO,CAAE;AAAA,MACT,SAAS,CAAE;AAAA,MACX,MAAM,CAAC,CAAA,CAAE;AAAA,MACT,OAAO,IAAIC,EAAO;AAAA,MAClB,cAAc;AAAA,MACd,OAAO;AAAA,MACP,OAAO;AAAA,MACP,OAAO;AAAA,MACP,YAAY;AAAA,MACZ,QAAQ;AAAA;AAAA;AAAA,QAGN;AAAA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B,KAAK,aAAa,QAAQ,OAAO;AAAA,YAC/B,OAAO,OAAO;AAAA,YACd,OAAO,aAAa;AAAA,YACpB,OAAOD,EAAU,IAAI,KAAK,eAAe;AAAA,YACzC,YAAY;AAAA,YACZ,UAAU;AAAA,UACX,CAAA;AAAA,QACF;AAAA,MACH;AAAA,IAEH;AAAA,IACD,UAAU,SAAUnB,GAAM;AACxB,aAAO,GAAGA,EAAK,UAAU,IAAIA,EAAK,UAAU,IAAIA,EAAK,QAAQ;AAAA,IAC9D;AAAA,IACD,iBAAiB,SAAUA,GAAM;AAC/B,UAAIc,IAAM,GAAGd,EAAK,OAAO,UAAUA,EAAK,UAAU,KAAKA,EAAK,UAAU,KAAKA,EAAK,QAAQ,KAAKA,EAAK,SAAS;AAC3G,cACEA,EAAK,YAAY,oBACjBA,EAAK,YAAY,kBACjBA,EAAK,YAAY,mBAEjBc,KAAO,KAAKd,EAAK,WAAW,KAEvBc;AAAA,IACR;AAAA,EACF;AACH,GAvQAO,IAAA,CAAA,IAAA;;cAmBEC,EAA2C,OAAA;AAAA,IAAtC,OAAM;AAAA,IAAQ,YAAYC,EAAE,EAAA;AAAA,EAnBnC,GAAA,MAAA,GAAAF,CAAA;;;"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_6fa47877_lang-DJX55UPj.cjs"),h=require("./GraphWidget-22NxFa9k.cjs"),c=require("vue"),l=require("./CosmosRuxIcon.vue_vue_type_style_index_0_scoped_9af48e85_lang-BHFhmbuH.cjs"),u={data:function(){return{items:[],indexes:{},data:[[]],cable:new o.fi,subscription:null,graph:null,xAxis:null,title:"Array Plot",colorIndex:0,colors:["#00c7cb","#938bdb","#4dacff","lime","darkorange","red","gold","hotpink","tan","cyan","maroon","blue","teal","purple","green","brown","lightblue","white","black"]}},mixins:[h.GraphWidget],created(){for(const[e,t]of this.items.entries())this.data.push([]),this.indexes[this.subscriptionKey(t)]=e+1,t.color=this.colors[this.colorIndex],this.colorIndex++;this.appliedSettings.forEach(e=>{switch(e[0]){case"TITLE":this.title=e[1];break;case"X_AXIS":this.xAxis={start:parseFloat(e[1]),step:parseFloat(e[2])};break}})},mounted(){let e=[];this.items.forEach(s=>{e.push({label:this.itemName(s),stroke:s.color,width:2,value:(n,i)=>typeof i=="string"||isNaN(i)?"NaN":i==null?"--":i.toFixed(3)})});let t={title:this.title,width:this.size.width,height:this.size.height,scales:{x:{time:!1},y:{time:!1,range:(s,n,i)=>[n,i]}},axes:[{stroke:"white",grid:{show:!0,stroke:"rgba(255, 255, 255, .1)",width:2}},{stroke:"white",grid:{show:!0,stroke:"rgba(255, 255, 255, .1)",width:2}}],series:[{label:"X Value"},...e]};this.graph=new o.uPlot(t,this.data,document.getElementById(`chart${this.id}`)),this.subscribe()},beforeUnmount:function(){this.cable.disconnect()},computed:{dataOnly(){return this.data[1]}},watch:{dataOnly:function(){this.graph&&this.graph.setData(this.data)}},methods:{subscribe:function(){this.cable.createSubscription("StreamingChannel",window.openc3Scope,{received:e=>this.received(e),connected:()=>{this.addItemsToSubscription(this.items)},disconnected:e=>{e.allowReconnect&&this.errors.push({type:"disconnected",message:"OpenC3 backend connection disconnected",time:new Date().getTime()})},rejected:()=>{this.errors.push({type:"rejected",message:"OpenC3 backend connection rejected",time:new Date().getTime()})}}).then(e=>{this.subscription=e})},received:function(e){for(let t of e){let s=[];for(const[n,i]of Object.entries(t)){n==="__time"&&(this.xAxis?s=Array.from({length:this.data[1].length},(d,a)=>this.xAxis.start+a*this.xAxis.step):s.length===0&&(s=Array.from({length:this.data[1].length},(d,a)=>a)),this.data[0]=s);let r=this.indexes[n];r&&(Array.isArray(i[0])?(this.data[r]=i[1],s=i[0]):this.data[r]=i)}}},addItemsToSubscription:function(e=this.items){this.subscription&&OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity).then(t=>{t&&OpenC3Auth.setTokens(),this.subscription.perform("add",{scope:window.openc3Scope,token:localStorage.openc3Token,items:e.map(this.subscriptionKey),start_time:null,end_time:null})})},itemName:function(e){return`${e.targetName} ${e.packetName} ${e.itemName}`},subscriptionKey:function(e){let t=`${e.reduced}__TLM__${e.targetName}__${e.packetName}__${e.itemName}__${e.valueType}`;return(e.reduced==="REDUCED_MINUTE"||e.reduced==="REDUCED_HOUR"||e.reduced==="REDUCED_DAY")&&(t+=`__${e.reducedType}`),t}}},p=["id"];function _(e,t,s,n,i,r){return c.openBlock(),c.createElementBlock("div",{class:"pa-1",id:`chart${e.id}`},null,8,p)}const f=l._export_sfc(u,[["render",_]]);exports.default=f;
|
|
2
|
+
//# sourceMappingURL=ArrayplotWidget-Donxhd8_.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ArrayplotWidget-Donxhd8_.cjs","sources":["../src/widgets/ArrayplotWidget.vue"],"sourcesContent":["<!--\n# Copyright 2025 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\n<template>\n <div class=\"pa-1\" :id=\"`chart${id}`\"></div>\n</template>\n\n<script>\nimport uPlot from 'uplot'\nimport 'uplot/dist/uPlot.min.css'\nimport { Cable } from '@openc3/js-common/services'\nimport GraphWidget from './GraphWidget'\n\nexport default {\n data: function () {\n return {\n items: [],\n indexes: {},\n data: [[]],\n cable: new Cable(),\n subscription: null,\n graph: null,\n xAxis: null,\n title: 'Array Plot',\n colorIndex: 0,\n colors: [\n // The first 3 are taken from the Astro css definitions for\n // --color-data-visualization-1 through 3\n '#00c7cb',\n '#938bdb',\n '#4dacff',\n 'lime',\n 'darkorange',\n 'red',\n 'gold',\n 'hotpink',\n 'tan',\n 'cyan',\n 'maroon',\n 'blue',\n 'teal',\n 'purple',\n 'green',\n 'brown',\n 'lightblue',\n 'white',\n 'black',\n ],\n }\n },\n mixins: [GraphWidget],\n created() {\n for (const [index, item] of this.items.entries()) {\n this.data.push([]) // initialize the empty data arrays\n this.indexes[this.subscriptionKey(item)] = index + 1\n item.color = this.colors[this.colorIndex]\n this.colorIndex++\n }\n\n this.appliedSettings.forEach((setting) => {\n switch (setting[0]) {\n case 'TITLE':\n this.title = setting[1]\n break\n case 'X_AXIS':\n this.xAxis = {\n start: parseFloat(setting[1]),\n step: parseFloat(setting[2]),\n }\n break\n }\n })\n },\n mounted() {\n let chartSeries = []\n this.items.forEach((item) => {\n chartSeries.push({\n label: this.itemName(item),\n stroke: item.color,\n width: 2,\n value: (self, rawValue) => {\n if (typeof rawValue === 'string' || isNaN(rawValue)) {\n return 'NaN'\n } else {\n return rawValue == null ? '--' : rawValue.toFixed(3)\n }\n },\n })\n })\n\n let chartOpts = {\n title: this.title,\n width: this.size.width,\n height: this.size.height,\n scales: {\n x: {\n time: false,\n },\n y: {\n time: false,\n range: (u, min, max) => [min, max],\n },\n },\n axes: [\n {\n stroke: 'white',\n grid: {\n show: true,\n stroke: 'rgba(255, 255, 255, .1)',\n width: 2,\n },\n },\n {\n stroke: 'white',\n grid: {\n show: true,\n stroke: 'rgba(255, 255, 255, .1)',\n width: 2,\n },\n },\n ],\n series: [\n {\n label: 'X Value',\n },\n ...chartSeries,\n ],\n }\n this.graph = new uPlot(\n chartOpts,\n this.data,\n document.getElementById(`chart${this.id}`),\n )\n this.subscribe()\n },\n beforeUnmount: function () {\n this.cable.disconnect()\n },\n computed: {\n dataOnly() {\n return this.data[1] // Ignore the x axis data\n },\n },\n watch: {\n // This is always firing even when the data is the same\n // Is it because we're setting the whole array data[1]?\n dataOnly: function () {\n if (this.graph) {\n this.graph.setData(this.data)\n }\n },\n },\n methods: {\n subscribe: function () {\n this.cable\n .createSubscription('StreamingChannel', window.openc3Scope, {\n received: (data) => this.received(data),\n connected: () => {\n this.addItemsToSubscription(this.items)\n },\n disconnected: (data) => {\n // If allowReconnect is true it means we got a disconnect due to connection lost or server disconnect\n // If allowReconnect is false this is a normal server close or client close\n if (data.allowReconnect) {\n this.errors.push({\n type: 'disconnected',\n message: 'OpenC3 backend connection disconnected',\n time: new Date().getTime(),\n })\n }\n },\n rejected: () => {\n this.errors.push({\n type: 'rejected',\n message: 'OpenC3 backend connection rejected',\n time: new Date().getTime(),\n })\n },\n })\n .then((subscription) => {\n this.subscription = subscription\n })\n },\n received: function (data_array) {\n for (let data of data_array) {\n let xaxis = [] // Declare outside the loop so we can use it for the X axis values\n for (const [key, value] of Object.entries(data)) {\n // We support 2 different kind of data, a simple array of Y values\n // or an array with both X and Y values, e.g. [[x1,x2,x3...], [y1,y2,y3...]]\n if (key === '__time') {\n // Explicitly setting the X axis values always wins\n if (this.xAxis) {\n xaxis = Array.from(\n { length: this.data[1].length },\n (_, i) => this.xAxis.start + i * this.xAxis.step,\n )\n } else if (xaxis.length === 0) {\n // If we don't have an array of X values we generate them\n xaxis = Array.from({ length: this.data[1].length }, (_, i) => i)\n }\n this.data[0] = xaxis\n }\n let key_index = this.indexes[key]\n if (key_index) {\n // Check for the array of arrays case\n if (Array.isArray(value[0])) {\n this.data[key_index] = value[1]\n xaxis = value[0]\n } else {\n this.data[key_index] = value\n }\n }\n }\n }\n },\n addItemsToSubscription: function (itemArray = this.items) {\n if (this.subscription) {\n OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity).then(\n (refreshed) => {\n if (refreshed) {\n OpenC3Auth.setTokens()\n }\n this.subscription.perform('add', {\n scope: window.openc3Scope,\n token: localStorage.openc3Token,\n items: itemArray.map(this.subscriptionKey),\n start_time: null,\n end_time: null,\n })\n },\n )\n }\n },\n itemName: function (item) {\n return `${item.targetName} ${item.packetName} ${item.itemName}`\n },\n subscriptionKey: function (item) {\n let key = `${item.reduced}__TLM__${item.targetName}__${item.packetName}__${item.itemName}__${item.valueType}`\n if (\n item.reduced === 'REDUCED_MINUTE' ||\n item.reduced === 'REDUCED_HOUR' ||\n item.reduced === 'REDUCED_DAY'\n ) {\n key += `__${item.reducedType}`\n }\n return key\n },\n },\n}\n</script>\n"],"names":["_sfc_main","Cable","GraphWidget","index","item","setting","chartSeries","self","rawValue","chartOpts","u","min","max","uPlot","data","subscription","data_array","xaxis","key","value","_","i","key_index","itemArray","refreshed","_hoisted_1","_createElementBlock","_ctx"],"mappings":"+UA4BKA,EAAU,CACb,KAAM,UAAY,CAChB,MAAO,CACL,MAAO,CAAE,EACT,QAAS,CAAE,EACX,KAAM,CAAC,CAAA,CAAE,EACT,MAAO,IAAIC,EAAAA,GACX,aAAc,KACd,MAAO,KACP,MAAO,KACP,MAAO,aACP,WAAY,EACZ,OAAQ,CAGN,UACA,UACA,UACA,OACA,aACA,MACA,OACA,UACA,MACA,OACA,SACA,OACA,OACA,SACA,QACA,QACA,YACA,QACA,OACD,CACH,CACD,EACD,OAAQ,CAACC,EAAAA,WAAW,EACpB,SAAU,CACR,SAAW,CAACC,EAAOC,CAAI,IAAK,KAAK,MAAM,UACrC,KAAK,KAAK,KAAK,EAAE,EACjB,KAAK,QAAQ,KAAK,gBAAgBA,CAAI,CAAC,EAAID,EAAQ,EACnDC,EAAK,MAAQ,KAAK,OAAO,KAAK,UAAU,EACxC,KAAK,aAGP,KAAK,gBAAgB,QAASC,GAAY,CACxC,OAAQA,EAAQ,CAAC,EAAC,CAChB,IAAK,QACH,KAAK,MAAQA,EAAQ,CAAC,EACtB,MACF,IAAK,SACH,KAAK,MAAQ,CACX,MAAO,WAAWA,EAAQ,CAAC,CAAC,EAC5B,KAAM,WAAWA,EAAQ,CAAC,CAAC,CAC7B,EACA,KACJ,CACD,CAAA,CACF,EACD,SAAU,CACR,IAAIC,EAAc,CAAA,EAClB,KAAK,MAAM,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,EAAK,UAAU,IAAIA,EAAK,UAAU,IAAIA,EAAK,QAAQ,EAC9D,EACD,gBAAiB,SAAUA,EAAM,CAC/B,IAAIc,EAAM,GAAGd,EAAK,OAAO,UAAUA,EAAK,UAAU,KAAKA,EAAK,UAAU,KAAKA,EAAK,QAAQ,KAAKA,EAAK,SAAS,GAC3G,OACEA,EAAK,UAAY,kBACjBA,EAAK,UAAY,gBACjBA,EAAK,UAAY,iBAEjBc,GAAO,KAAKd,EAAK,WAAW,IAEvBc,CACR,CACF,CACH,EAvQAO,EAAA,CAAA,IAAA,+CAmBEC,EAA2C,mBAAA,MAAA,CAAtC,MAAM,OAAQ,WAAYC,EAAE,EAAA,EAnBnC,EAAA,KAAA,EAAAF,CAAA"}
|
|
@@ -0,0 +1,2 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,40 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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;;;;;;;"}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { W as t } from "./Widget-fRCERxGf.js";
|
|
2
|
+
import { m as a } from "./UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_6fa47877_lang-iq-jp8dD.js";
|
|
3
|
+
const l = {
|
|
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
|
+
if (!e)
|
|
63
|
+
return;
|
|
64
|
+
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);
|
|
65
|
+
let h = 80;
|
|
66
|
+
return this.redLow == 0 && (h += 10), this.redHigh == 0 && (h += 10), this.scale = (e[3] - e[0]) / h, e;
|
|
67
|
+
},
|
|
68
|
+
calcPosition(e, h) {
|
|
69
|
+
if (!e || !h)
|
|
70
|
+
return;
|
|
71
|
+
let r = h[0] - 10 * this.scale;
|
|
72
|
+
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)
|
|
73
|
+
return e.raw === "-Infinity" ? 0 : 100;
|
|
74
|
+
if (e < this.min)
|
|
75
|
+
return 0;
|
|
76
|
+
if (e > this.max)
|
|
77
|
+
return 100;
|
|
78
|
+
{
|
|
79
|
+
const i = parseInt((e - r) / this.scale);
|
|
80
|
+
return i > 100 ? 100 : i < 0 ? 0 : i;
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
calcLimits(e) {
|
|
84
|
+
e && (this.yellowLow = Math.round(
|
|
85
|
+
(e[1] - e[0]) / this.scale
|
|
86
|
+
), this.yellowHigh = Math.round(
|
|
87
|
+
(e[3] - e[2]) / this.scale
|
|
88
|
+
), e.length > 4 ? (this.greenLow = Math.round(
|
|
89
|
+
(e[4] - e[1]) / this.scale
|
|
90
|
+
), this.greenHigh = Math.round(
|
|
91
|
+
(e[2] - e[5]) / this.scale
|
|
92
|
+
), this.blue = Math.round(
|
|
93
|
+
100 - this.redLow - this.yellowLow - this.greenLow - this.greenHigh - this.yellowHigh - this.redHigh
|
|
94
|
+
)) : (this.greenLow = Math.round(
|
|
95
|
+
100 - this.redLow - this.yellowLow - this.yellowHigh - this.redHigh
|
|
96
|
+
), this.greenHigh = 0, this.blue = 0));
|
|
97
|
+
},
|
|
98
|
+
getCurrentLimitsSet: function() {
|
|
99
|
+
this.api.get_limits_set().then((e) => {
|
|
100
|
+
this.currentLimitsSet = e;
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
};
|
|
105
|
+
export {
|
|
106
|
+
l as B
|
|
107
|
+
};
|
|
108
|
+
//# sourceMappingURL=BarColumn-C9dkpg2O.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BarColumn-C9dkpg2O.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 if (!limitsSettings) {\n return\n }\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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CAAC,KAAK,KAAK;AAAA,MACzD,GACQ,KAAK,OAAO,KAAK;AAAA,QACf,MACE,KAAK,SACL,KAAK,YACL,KAAK,WACL,KAAK,YACL,KAAK,aACL,KAAK;AAAA,MACjB,MAEQ,KAAK,WAAW,KAAK;AAAA,QACnB,MAAM,KAAK,SAAS,KAAK,YAAY,KAAK,aAAa,KAAK;AAAA,MACtE,GACQ,KAAK,YAAY,GACjB,KAAK,OAAO;AAAA,IAEf;AAAA,IACD,qBAAqB,WAAY;AAC/B,WAAK,IAAI,eAAgB,EAAC,KAAK,CAACG,MAAW;AACzC,aAAK,mBAAmBA;AAAA,MACzB,CAAA;AAAA,IACF;AAAA,EACF;AACH;"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";const t=require("./Widget-DNf52jRQ.cjs"),a=require("./UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_6fa47877_lang-DJX55UPj.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.mi,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){if(!e)return;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-CyRSZHMh.cjs.map
|