@openc3/vue-common 6.5.0 → 6.5.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/dist/{ArrayWidget-DaQV8y9D.cjs → ArrayWidget-Bb_Ldxq7.cjs} +2 -2
- package/dist/{ArrayWidget-DaQV8y9D.cjs.map → ArrayWidget-Bb_Ldxq7.cjs.map} +1 -1
- package/dist/{ArrayWidget-CC3iwyQc.js → ArrayWidget-Ck6pzAyW.js} +4 -4
- package/dist/{ArrayWidget-CC3iwyQc.js.map → ArrayWidget-Ck6pzAyW.js.map} +1 -1
- package/dist/{ArrayplotWidget-CkiRBYrb.cjs → ArrayplotWidget-DC41cpv1.cjs} +2 -2
- package/dist/{ArrayplotWidget-CkiRBYrb.cjs.map → ArrayplotWidget-DC41cpv1.cjs.map} +1 -1
- package/dist/{ArrayplotWidget-CiQdsmVy.js → ArrayplotWidget-ntRLh6-B.js} +3 -3
- package/dist/{ArrayplotWidget-CiQdsmVy.js.map → ArrayplotWidget-ntRLh6-B.js.map} +1 -1
- package/dist/AstroStatus-CILMWL6F.cjs.map +1 -1
- package/dist/AstroStatus-CY9VkeTN.js.map +1 -1
- package/dist/{BarColumn-BhjcS87D.js → BarColumn-Bgz2YJ59.js} +3 -3
- package/dist/{BarColumn-BhjcS87D.js.map → BarColumn-Bgz2YJ59.js.map} +1 -1
- package/dist/{BarColumn-Ci9fqSL1.cjs → BarColumn-DtRNuOpa.cjs} +2 -2
- package/dist/{BarColumn-Ci9fqSL1.cjs.map → BarColumn-DtRNuOpa.cjs.map} +1 -1
- package/dist/{BlockWidget-LLPHBYVU.js → BlockWidget-DGH3Zz5p.js} +4 -4
- package/dist/{BlockWidget-LLPHBYVU.js.map → BlockWidget-DGH3Zz5p.js.map} +1 -1
- package/dist/{BlockWidget-yNjXB1gO.cjs → BlockWidget-DOY5lVfa.cjs} +2 -2
- package/dist/{BlockWidget-yNjXB1gO.cjs.map → BlockWidget-DOY5lVfa.cjs.map} +1 -1
- package/dist/{ButtonWidget-C_R8sVl5.cjs → ButtonWidget-CFyZXGt6.cjs} +2 -2
- package/dist/{ButtonWidget-C_R8sVl5.cjs.map → ButtonWidget-CFyZXGt6.cjs.map} +1 -1
- package/dist/{ButtonWidget-Co0KMkIG.js → ButtonWidget-D_tupiPB.js} +4 -4
- package/dist/{ButtonWidget-Co0KMkIG.js.map → ButtonWidget-D_tupiPB.js.map} +1 -1
- package/dist/{CanvasWidget-CMVhjpJc.cjs → CanvasWidget-C6dc7mUw.cjs} +2 -2
- package/dist/{CanvasWidget-CMVhjpJc.cjs.map → CanvasWidget-C6dc7mUw.cjs.map} +1 -1
- package/dist/{CanvasWidget-DPrxnI7M.js → CanvasWidget-CzG2jYQb.js} +2 -2
- package/dist/{CanvasWidget-DPrxnI7M.js.map → CanvasWidget-CzG2jYQb.js.map} +1 -1
- package/dist/{CanvasdotWidget-s1ALDR4k.js → CanvasdotWidget-0FAaw4G2.js} +2 -2
- package/dist/{CanvasdotWidget-s1ALDR4k.js.map → CanvasdotWidget-0FAaw4G2.js.map} +1 -1
- package/dist/{CanvasdotWidget-DskyFyIC.cjs → CanvasdotWidget-9bBVHC1l.cjs} +2 -2
- package/dist/{CanvasdotWidget-DskyFyIC.cjs.map → CanvasdotWidget-9bBVHC1l.cjs.map} +1 -1
- package/dist/{CanvasimageWidget-Cs-KjdqK.js → CanvasimageWidget-CNJlzLqo.js} +3 -3
- package/dist/{CanvasimageWidget-Cs-KjdqK.js.map → CanvasimageWidget-CNJlzLqo.js.map} +1 -1
- package/dist/{CanvasimageWidget-BngTI0bl.cjs → CanvasimageWidget-DjvdDCRS.cjs} +2 -2
- package/dist/{CanvasimageWidget-BngTI0bl.cjs.map → CanvasimageWidget-DjvdDCRS.cjs.map} +1 -1
- package/dist/{CanvasimagevalueWidget-0qTn6Gb5.cjs → CanvasimagevalueWidget-C1fI-ftP.cjs} +2 -2
- package/dist/{CanvasimagevalueWidget-0qTn6Gb5.cjs.map → CanvasimagevalueWidget-C1fI-ftP.cjs.map} +1 -1
- package/dist/{CanvasimagevalueWidget-B-wBQisl.js → CanvasimagevalueWidget-DudwwOD6.js} +3 -3
- package/dist/{CanvasimagevalueWidget-B-wBQisl.js.map → CanvasimagevalueWidget-DudwwOD6.js.map} +1 -1
- package/dist/{CanvaslabelWidget-b2yvqZBZ.cjs → CanvaslabelWidget--6Sjc4E8.cjs} +2 -2
- package/dist/{CanvaslabelWidget-b2yvqZBZ.cjs.map → CanvaslabelWidget--6Sjc4E8.cjs.map} +1 -1
- package/dist/{CanvaslabelWidget-CLBK52pP.js → CanvaslabelWidget-BZQp16dH.js} +2 -2
- package/dist/{CanvaslabelWidget-CLBK52pP.js.map → CanvaslabelWidget-BZQp16dH.js.map} +1 -1
- package/dist/{CanvaslabelvalueWidget-CAa70y_o.js → CanvaslabelvalueWidget-CHS36Te9.js} +2 -2
- package/dist/{CanvaslabelvalueWidget-CAa70y_o.js.map → CanvaslabelvalueWidget-CHS36Te9.js.map} +1 -1
- package/dist/{CanvaslabelvalueWidget-CA03ncx0.cjs → CanvaslabelvalueWidget-DZCxsIKk.cjs} +2 -2
- package/dist/{CanvaslabelvalueWidget-CA03ncx0.cjs.map → CanvaslabelvalueWidget-DZCxsIKk.cjs.map} +1 -1
- package/dist/{CanvaslineWidget-B-yhgIlR.cjs → CanvaslineWidget-Bn83Rb10.cjs} +2 -2
- package/dist/{CanvaslineWidget-B-yhgIlR.cjs.map → CanvaslineWidget-Bn83Rb10.cjs.map} +1 -1
- package/dist/{CanvaslineWidget-PdwVJOQ5.js → CanvaslineWidget-nhKEAGhs.js} +2 -2
- package/dist/{CanvaslineWidget-PdwVJOQ5.js.map → CanvaslineWidget-nhKEAGhs.js.map} +1 -1
- package/dist/{CanvaslinevalueWidget-PVW-_nOk.cjs → CanvaslinevalueWidget-C6x_4Gc9.cjs} +2 -2
- package/dist/{CanvaslinevalueWidget-PVW-_nOk.cjs.map → CanvaslinevalueWidget-C6x_4Gc9.cjs.map} +1 -1
- package/dist/{CanvaslinevalueWidget-CKrp1f3Z.js → CanvaslinevalueWidget-DsyIDkJy.js} +2 -2
- package/dist/{CanvaslinevalueWidget-CKrp1f3Z.js.map → CanvaslinevalueWidget-DsyIDkJy.js.map} +1 -1
- package/dist/{CheckbuttonWidget-BItae9qq.cjs → CheckbuttonWidget-BvggsGZY.cjs} +2 -2
- package/dist/{CheckbuttonWidget-BItae9qq.cjs.map → CheckbuttonWidget-BvggsGZY.cjs.map} +1 -1
- package/dist/{CheckbuttonWidget-CTSfH4NN.js → CheckbuttonWidget-DCam7Jd0.js} +2 -2
- package/dist/{CheckbuttonWidget-CTSfH4NN.js.map → CheckbuttonWidget-DCam7Jd0.js.map} +1 -1
- package/dist/{ComboboxWidget-BFKz1kva.cjs → ComboboxWidget-BS5WSbrK.cjs} +2 -2
- package/dist/{ComboboxWidget-BFKz1kva.cjs.map → ComboboxWidget-BS5WSbrK.cjs.map} +1 -1
- package/dist/{ComboboxWidget-BQzv9zk5.js → ComboboxWidget-ZX-k-_aK.js} +2 -2
- package/dist/{ComboboxWidget-BQzv9zk5.js.map → ComboboxWidget-ZX-k-_aK.js.map} +1 -1
- package/dist/{CriticalCmdDialog-CfUGhKPh.cjs → CriticalCmdDialog-7tOK2XQk.cjs} +2 -2
- package/dist/{CriticalCmdDialog-CfUGhKPh.cjs.map → CriticalCmdDialog-7tOK2XQk.cjs.map} +1 -1
- package/dist/{CriticalCmdDialog-D5m3w1fr.js → CriticalCmdDialog-Dylpoz_4.js} +2 -2
- package/dist/{CriticalCmdDialog-D5m3w1fr.js.map → CriticalCmdDialog-Dylpoz_4.js.map} +1 -1
- package/dist/CustomIcon-Bop2mEnu.cjs.map +1 -1
- package/dist/CustomIcon-h5X7369N.js.map +1 -1
- package/dist/{DateWidget-DKXxXT1g.js → DateWidget-DuJ5uC2t.js} +2 -2
- package/dist/{DateWidget-DKXxXT1g.js.map → DateWidget-DuJ5uC2t.js.map} +1 -1
- package/dist/{DateWidget-CuUySNFb.cjs → DateWidget-jejbk2-G.cjs} +2 -2
- package/dist/{DateWidget-CuUySNFb.cjs.map → DateWidget-jejbk2-G.cjs.map} +1 -1
- package/dist/{DetailsDialog-DEjAO6yp.js → DetailsDialog-BQE0TraI.js} +2 -2
- package/dist/DetailsDialog-BQE0TraI.js.map +1 -0
- package/dist/{DetailsDialog-DlUuDdFa.cjs → DetailsDialog-DmKpPDNn.cjs} +2 -2
- package/dist/{DetailsDialog-DlUuDdFa.cjs.map → DetailsDialog-DmKpPDNn.cjs.map} +1 -1
- package/dist/DynamicWidget-BWEVCUfd.cjs.map +1 -1
- package/dist/DynamicWidget-CfMtj7H8.js.map +1 -1
- package/dist/{EventListDialog-CPYg1a2g.cjs → EventListDialog-CDcJcxy5.cjs} +2 -2
- package/dist/{EventListDialog-CPYg1a2g.cjs.map → EventListDialog-CDcJcxy5.cjs.map} +1 -1
- package/dist/{EventListDialog-CabnKWVX.js → EventListDialog-CGUFCrJF.js} +3 -3
- package/dist/{EventListDialog-CabnKWVX.js.map → EventListDialog-CGUFCrJF.js.map} +1 -1
- package/dist/{FormatvalueWidget-7Yp9jfgX.js → FormatvalueWidget-DYICPNcx.js} +3 -3
- package/dist/{FormatvalueWidget-7Yp9jfgX.js.map → FormatvalueWidget-DYICPNcx.js.map} +1 -1
- package/dist/{FormatvalueWidget-LNNT9pLh.cjs → FormatvalueWidget-wu7Q3sXu.cjs} +2 -2
- package/dist/{FormatvalueWidget-LNNT9pLh.cjs.map → FormatvalueWidget-wu7Q3sXu.cjs.map} +1 -1
- package/dist/{Graph-hzxapkW-.js → Graph-DCihpnT0.js} +2 -2
- package/dist/{Graph-hzxapkW-.js.map → Graph-DCihpnT0.js.map} +1 -1
- package/dist/{Graph-ZGEBRGOA.cjs → Graph-mSqImgca.cjs} +2 -2
- package/dist/{Graph-ZGEBRGOA.cjs.map → Graph-mSqImgca.cjs.map} +1 -1
- package/dist/{GraphWidget-caScsshg.cjs → GraphWidget-CQjKAMPR.cjs} +2 -2
- package/dist/{GraphWidget-caScsshg.cjs.map → GraphWidget-CQjKAMPR.cjs.map} +1 -1
- package/dist/{GraphWidget-Dn0ZaxHo.js → GraphWidget-cTVq29cY.js} +2 -2
- package/dist/{GraphWidget-Dn0ZaxHo.js.map → GraphWidget-cTVq29cY.js.map} +1 -1
- package/dist/{HorizontalWidget-Bt7N0bIN.cjs → HorizontalWidget--AkRJPlL.cjs} +2 -2
- package/dist/{HorizontalWidget-Bt7N0bIN.cjs.map → HorizontalWidget--AkRJPlL.cjs.map} +1 -1
- package/dist/{HorizontalWidget-BFzi3rMl.js → HorizontalWidget-v1pfd94Z.js} +2 -2
- package/dist/{HorizontalWidget-BFzi3rMl.js.map → HorizontalWidget-v1pfd94Z.js.map} +1 -1
- package/dist/{HorizontalboxWidget-DIagyace.js → HorizontalboxWidget-B06-c_n4.js} +5 -5
- package/dist/{HorizontalboxWidget-DIagyace.js.map → HorizontalboxWidget-B06-c_n4.js.map} +1 -1
- package/dist/{HorizontalboxWidget-Dv6NWovB.cjs → HorizontalboxWidget-synL-Bar.cjs} +2 -2
- package/dist/{HorizontalboxWidget-Dv6NWovB.cjs.map → HorizontalboxWidget-synL-Bar.cjs.map} +1 -1
- package/dist/{HorizontallineWidget-BOZNWM3a.js → HorizontallineWidget-DEODVJCk.js} +2 -2
- package/dist/{HorizontallineWidget-BOZNWM3a.js.map → HorizontallineWidget-DEODVJCk.js.map} +1 -1
- package/dist/{HorizontallineWidget-CFsWevmI.cjs → HorizontallineWidget-lTr2JTFY.cjs} +2 -2
- package/dist/{HorizontallineWidget-CFsWevmI.cjs.map → HorizontallineWidget-lTr2JTFY.cjs.map} +1 -1
- package/dist/{IframeWidget-J6g6EhHh.cjs → IframeWidget-ByhwW9yG.cjs} +2 -2
- package/dist/{IframeWidget-J6g6EhHh.cjs.map → IframeWidget-ByhwW9yG.cjs.map} +1 -1
- package/dist/{IframeWidget-BU24bhc2.js → IframeWidget-n8lNXrpt.js} +2 -2
- package/dist/{IframeWidget-BU24bhc2.js.map → IframeWidget-n8lNXrpt.js.map} +1 -1
- package/dist/{ImageLoader-xxDrxPAX.js → ImageLoader-CfcErydq.js} +2 -2
- package/dist/{ImageLoader-xxDrxPAX.js.map → ImageLoader-CfcErydq.js.map} +1 -1
- package/dist/{ImageLoader-BVVI9FSl.cjs → ImageLoader-DBWVFtNu.cjs} +2 -2
- package/dist/{ImageLoader-BVVI9FSl.cjs.map → ImageLoader-DBWVFtNu.cjs.map} +1 -1
- package/dist/{ImageviewerWidget-BSTS4nPw.cjs → ImageviewerWidget-D4mU6wLX.cjs} +2 -2
- package/dist/{ImageviewerWidget-BSTS4nPw.cjs.map → ImageviewerWidget-D4mU6wLX.cjs.map} +1 -1
- package/dist/{ImageviewerWidget-YMA4CVsl.js → ImageviewerWidget-DE8fj06Z.js} +2 -2
- package/dist/{ImageviewerWidget-YMA4CVsl.js.map → ImageviewerWidget-DE8fj06Z.js.map} +1 -1
- package/dist/{InterfacesTab-Cv50gOTl.js → InterfacesTab-BF-Wx5gk.js} +3 -3
- package/dist/{InterfacesTab-Cv50gOTl.js.map → InterfacesTab-BF-Wx5gk.js.map} +1 -1
- package/dist/{InterfacesTab-DOjyTYVC.cjs → InterfacesTab-DTAAIx-y.cjs} +2 -2
- package/dist/{InterfacesTab-DOjyTYVC.cjs.map → InterfacesTab-DTAAIx-y.cjs.map} +1 -1
- package/dist/{LabelWidget-t-nltZ16.cjs → LabelWidget-DQZqRxKF.cjs} +2 -2
- package/dist/{LabelWidget-t-nltZ16.cjs.map → LabelWidget-DQZqRxKF.cjs.map} +1 -1
- package/dist/{LabelWidget-2402SA18.js → LabelWidget-iUIJLhdA.js} +2 -2
- package/dist/{LabelWidget-2402SA18.js.map → LabelWidget-iUIJLhdA.js.map} +1 -1
- package/dist/{LabelledWidget-tWrIx1sj.cjs → LabelledWidget-9HWChRmv.cjs} +2 -2
- package/dist/{LabelledWidget-tWrIx1sj.cjs.map → LabelledWidget-9HWChRmv.cjs.map} +1 -1
- package/dist/{LabelledWidget-Cbubzj_g.js → LabelledWidget-KI6fMlsr.js} +4 -4
- package/dist/{LabelledWidget-Cbubzj_g.js.map → LabelledWidget-KI6fMlsr.js.map} +1 -1
- package/dist/{LabelprogressbarWidget-s8V7w6LJ.js → LabelprogressbarWidget-C2lzmqBH.js} +4 -4
- package/dist/{LabelprogressbarWidget-s8V7w6LJ.js.map → LabelprogressbarWidget-C2lzmqBH.js.map} +1 -1
- package/dist/{LabelprogressbarWidget-1k8njgQG.cjs → LabelprogressbarWidget-DwzTP73u.cjs} +2 -2
- package/dist/{LabelprogressbarWidget-1k8njgQG.cjs.map → LabelprogressbarWidget-DwzTP73u.cjs.map} +1 -1
- package/dist/{LabelsparklineWidget-qbM_OXLh.js → LabelsparklineWidget-Ci6GGm29.js} +4 -4
- package/dist/{LabelsparklineWidget-qbM_OXLh.js.map → LabelsparklineWidget-Ci6GGm29.js.map} +1 -1
- package/dist/{LabelsparklineWidget-4yoeI7gJ.cjs → LabelsparklineWidget-DMjBshq8.cjs} +2 -2
- package/dist/{LabelsparklineWidget-4yoeI7gJ.cjs.map → LabelsparklineWidget-DMjBshq8.cjs.map} +1 -1
- package/dist/{LabelvalueWidget-CEua41bt.cjs → LabelvalueWidget-mAb0eLA8.cjs} +2 -2
- package/dist/{LabelvalueWidget-CEua41bt.cjs.map → LabelvalueWidget-mAb0eLA8.cjs.map} +1 -1
- package/dist/{LabelvalueWidget-B5Ihc2yP.js → LabelvalueWidget-oiW-JDw6.js} +4 -4
- package/dist/{LabelvalueWidget-B5Ihc2yP.js.map → LabelvalueWidget-oiW-JDw6.js.map} +1 -1
- package/dist/{LabelvaluedescWidget-7jth-OmG.cjs → LabelvaluedescWidget-CZJ0kZN-.cjs} +2 -2
- package/dist/{LabelvaluedescWidget-7jth-OmG.cjs.map → LabelvaluedescWidget-CZJ0kZN-.cjs.map} +1 -1
- package/dist/{LabelvaluedescWidget-Cl3JHPGR.js → LabelvaluedescWidget-Ck0AJ9g0.js} +5 -5
- package/dist/{LabelvaluedescWidget-Cl3JHPGR.js.map → LabelvaluedescWidget-Ck0AJ9g0.js.map} +1 -1
- package/dist/{LabelvaluelimitsbarWidget-BDhDe4-V.cjs → LabelvaluelimitsbarWidget-DjBqYxRr.cjs} +2 -2
- package/dist/{LabelvaluelimitsbarWidget-BDhDe4-V.cjs.map → LabelvaluelimitsbarWidget-DjBqYxRr.cjs.map} +1 -1
- package/dist/{LabelvaluelimitsbarWidget-DnpfRyHl.js → LabelvaluelimitsbarWidget-aaVLaejn.js} +4 -4
- package/dist/{LabelvaluelimitsbarWidget-DnpfRyHl.js.map → LabelvaluelimitsbarWidget-aaVLaejn.js.map} +1 -1
- package/dist/{LabelvaluelimitscolumnWidget-d1puBx2r.cjs → LabelvaluelimitscolumnWidget-GputlDZq.cjs} +2 -2
- package/dist/{LabelvaluelimitscolumnWidget-d1puBx2r.cjs.map → LabelvaluelimitscolumnWidget-GputlDZq.cjs.map} +1 -1
- package/dist/{LabelvaluelimitscolumnWidget-D4L9L5oa.js → LabelvaluelimitscolumnWidget-Uur6aqOg.js} +5 -5
- package/dist/{LabelvaluelimitscolumnWidget-D4L9L5oa.js.map → LabelvaluelimitscolumnWidget-Uur6aqOg.js.map} +1 -1
- package/dist/{LabelvaluerangebarWidget-BivnHCbE.js → LabelvaluerangebarWidget-Bs9locqu.js} +4 -4
- package/dist/{LabelvaluerangebarWidget-BivnHCbE.js.map → LabelvaluerangebarWidget-Bs9locqu.js.map} +1 -1
- package/dist/{LabelvaluerangebarWidget-BczxhVFU.cjs → LabelvaluerangebarWidget-Ci-n_hxk.cjs} +2 -2
- package/dist/{LabelvaluerangebarWidget-BczxhVFU.cjs.map → LabelvaluerangebarWidget-Ci-n_hxk.cjs.map} +1 -1
- package/dist/{Layout-B7KU2jmu.js → Layout-1z8iJV5-.js} +2 -2
- package/dist/{Layout-B7KU2jmu.js.map → Layout-1z8iJV5-.js.map} +1 -1
- package/dist/Layout-kOQnicRa.cjs +2 -0
- package/dist/{Layout-DoI_Bpyu.cjs.map → Layout-kOQnicRa.cjs.map} +1 -1
- package/dist/{LedWidget-DpdthKEd.js → LedWidget-BN8IgAxJ.js} +4 -4
- package/dist/{LedWidget-DpdthKEd.js.map → LedWidget-BN8IgAxJ.js.map} +1 -1
- package/dist/{LedWidget-BSZWv-hh.cjs → LedWidget-BUTbyEBi.cjs} +2 -2
- package/dist/{LedWidget-BSZWv-hh.cjs.map → LedWidget-BUTbyEBi.cjs.map} +1 -1
- package/dist/{LimitsbarWidget-CLyj3Kb-.js → LimitsbarWidget-BxxoKTjp.js} +2 -2
- package/dist/{LimitsbarWidget-CLyj3Kb-.js.map → LimitsbarWidget-BxxoKTjp.js.map} +1 -1
- package/dist/{LimitsbarWidget-CaBnnZR-.cjs → LimitsbarWidget-Co5GAHro.cjs} +2 -2
- package/dist/{LimitsbarWidget-CaBnnZR-.cjs.map → LimitsbarWidget-Co5GAHro.cjs.map} +1 -1
- package/dist/{LimitscolorWidget-DilOPB_Q.cjs → LimitscolorWidget-BpTcgqRC.cjs} +2 -2
- package/dist/{LimitscolorWidget-DilOPB_Q.cjs.map → LimitscolorWidget-BpTcgqRC.cjs.map} +1 -1
- package/dist/{LimitscolorWidget-ChvzYoug.js → LimitscolorWidget-DFDwf4In.js} +2 -2
- package/dist/{LimitscolorWidget-ChvzYoug.js.map → LimitscolorWidget-DFDwf4In.js.map} +1 -1
- package/dist/{LimitscolumnWidget-IOhsLFZ1.js → LimitscolumnWidget-CdBh2mJu.js} +2 -2
- package/dist/{LimitscolumnWidget-IOhsLFZ1.js.map → LimitscolumnWidget-CdBh2mJu.js.map} +1 -1
- package/dist/{LimitscolumnWidget-C8m6Sqp8.cjs → LimitscolumnWidget-CqJJKDzz.cjs} +2 -2
- package/dist/{LimitscolumnWidget-C8m6Sqp8.cjs.map → LimitscolumnWidget-CqJJKDzz.cjs.map} +1 -1
- package/dist/{LinegraphWidget-DOPBUi0Y.cjs → LinegraphWidget-Bay0EtbI.cjs} +2 -2
- package/dist/{LinegraphWidget-DOPBUi0Y.cjs.map → LinegraphWidget-Bay0EtbI.cjs.map} +1 -1
- package/dist/{LinegraphWidget-DZdqMqjw.js → LinegraphWidget-jXksfbPb.js} +4 -4
- package/dist/{LinegraphWidget-DZdqMqjw.js.map → LinegraphWidget-jXksfbPb.js.map} +1 -1
- package/dist/{MatrixbycolumnsWidget-BzGYMhJ2.js → MatrixbycolumnsWidget-DCwxPjwS.js} +3 -3
- package/dist/{MatrixbycolumnsWidget-BzGYMhJ2.js.map → MatrixbycolumnsWidget-DCwxPjwS.js.map} +1 -1
- package/dist/{MatrixbycolumnsWidget-BrynJcbR.cjs → MatrixbycolumnsWidget-DxRhvPGv.cjs} +2 -2
- package/dist/{MatrixbycolumnsWidget-BrynJcbR.cjs.map → MatrixbycolumnsWidget-DxRhvPGv.cjs.map} +1 -1
- package/dist/{MicroservicesTab-DrqUNTBZ.js → MicroservicesTab-B-SdMwek.js} +3 -3
- package/dist/{MicroservicesTab-DrqUNTBZ.js.map → MicroservicesTab-B-SdMwek.js.map} +1 -1
- package/dist/{MicroservicesTab-pL6PYFy5.cjs → MicroservicesTab-DGaTcj-y.cjs} +2 -2
- package/dist/{MicroservicesTab-pL6PYFy5.cjs.map → MicroservicesTab-DGaTcj-y.cjs.map} +1 -1
- package/dist/{Openc3Screen-CPknMmN8.js → Openc3Screen-BZN0Wtrm.js} +8 -4
- package/dist/Openc3Screen-BZN0Wtrm.js.map +1 -0
- package/dist/{Openc3Screen-CQkUFNEH.cjs → Openc3Screen-dtpBWZdA.cjs} +3 -3
- package/dist/Openc3Screen-dtpBWZdA.cjs.map +1 -0
- package/dist/{OutputDialog-B6i5yvkr.js → OutputDialog-CcSp-Uqo.js} +2 -2
- package/dist/{OutputDialog-B6i5yvkr.js.map → OutputDialog-CcSp-Uqo.js.map} +1 -1
- package/dist/{OutputDialog-BwBPgVHK.cjs → OutputDialog-CxKDhrg6.cjs} +2 -2
- package/dist/{OutputDialog-BwBPgVHK.cjs.map → OutputDialog-CxKDhrg6.cjs.map} +1 -1
- package/dist/{PackagesTab-DYoGxaWx.cjs → PackagesTab-B4V2n4io.cjs} +2 -2
- package/dist/{PackagesTab-DYoGxaWx.cjs.map → PackagesTab-B4V2n4io.cjs.map} +1 -1
- package/dist/{PackagesTab-CjcBp95A.js → PackagesTab-Dx25CfF0.js} +3 -3
- package/dist/{PackagesTab-CjcBp95A.js.map → PackagesTab-Dx25CfF0.js.map} +1 -1
- package/dist/{PluginsTab-UcluFu7J.cjs → PluginsTab-DHO1tK2S.cjs} +3 -3
- package/dist/PluginsTab-DHO1tK2S.cjs.map +1 -0
- package/dist/{PluginsTab-Diu6vzUR.js → PluginsTab-lHDR5v6S.js} +6 -4
- package/dist/PluginsTab-lHDR5v6S.js.map +1 -0
- package/dist/{ProgressbarWidget-BwnZ2_h4.cjs → ProgressbarWidget-C0AkbX_o.cjs} +2 -2
- package/dist/{ProgressbarWidget-BwnZ2_h4.cjs.map → ProgressbarWidget-C0AkbX_o.cjs.map} +1 -1
- package/dist/{ProgressbarWidget-Bre-0zcS.js → ProgressbarWidget-Cdu5nJC3.js} +2 -2
- package/dist/{ProgressbarWidget-Bre-0zcS.js.map → ProgressbarWidget-Cdu5nJC3.js.map} +1 -1
- package/dist/{RadiobuttonWidget-CLbfhrkc.js → RadiobuttonWidget-CZZGbvdG.js} +2 -2
- package/dist/{RadiobuttonWidget-CLbfhrkc.js.map → RadiobuttonWidget-CZZGbvdG.js.map} +1 -1
- package/dist/{RadiobuttonWidget-BzO43-f0.cjs → RadiobuttonWidget-DslmJO31.cjs} +2 -2
- package/dist/{RadiobuttonWidget-BzO43-f0.cjs.map → RadiobuttonWidget-DslmJO31.cjs.map} +1 -1
- package/dist/{RadiogroupWidget-DvRc70_Q.js → RadiogroupWidget-CQN3v8Ip.js} +2 -2
- package/dist/{RadiogroupWidget-DvRc70_Q.js.map → RadiogroupWidget-CQN3v8Ip.js.map} +1 -1
- package/dist/{RadiogroupWidget-CCHJJuvX.cjs → RadiogroupWidget-DKgBAR9E.cjs} +2 -2
- package/dist/{RadiogroupWidget-CCHJJuvX.cjs.map → RadiogroupWidget-DKgBAR9E.cjs.map} +1 -1
- package/dist/{RangebarWidget-DbmeAM6e.cjs → RangebarWidget-Tq80I5zA.cjs} +2 -2
- package/dist/{RangebarWidget-DbmeAM6e.cjs.map → RangebarWidget-Tq80I5zA.cjs.map} +1 -1
- package/dist/{RangebarWidget-BvzVWcfZ.js → RangebarWidget-dZN9WjoZ.js} +2 -2
- package/dist/{RangebarWidget-BvzVWcfZ.js.map → RangebarWidget-dZN9WjoZ.js.map} +1 -1
- package/dist/{RedisTab-Dq_xGlhh.cjs → RedisTab-CdiSo-CO.cjs} +2 -2
- package/dist/{RedisTab-Dq_xGlhh.cjs.map → RedisTab-CdiSo-CO.cjs.map} +1 -1
- package/dist/{RedisTab-BWYQfcqX.js → RedisTab-CkSwEwTZ.js} +2 -2
- package/dist/{RedisTab-BWYQfcqX.js.map → RedisTab-CkSwEwTZ.js.map} +1 -1
- package/dist/{RollupWidget-BnhD1fw1.cjs → RollupWidget-CHdZAUCb.cjs} +2 -2
- package/dist/{RollupWidget-BnhD1fw1.cjs.map → RollupWidget-CHdZAUCb.cjs.map} +1 -1
- package/dist/{RollupWidget-KT243Ed8.js → RollupWidget-i9DnNJl6.js} +2 -2
- package/dist/{RollupWidget-KT243Ed8.js.map → RollupWidget-i9DnNJl6.js.map} +1 -1
- package/dist/{RoutersTab-DS95AQxI.cjs → RoutersTab-Cp8wM-mS.cjs} +2 -2
- package/dist/{RoutersTab-DS95AQxI.cjs.map → RoutersTab-Cp8wM-mS.cjs.map} +1 -1
- package/dist/{RoutersTab-CLwJ6J7T.js → RoutersTab-DiYEI1Nq.js} +3 -3
- package/dist/{RoutersTab-CLwJ6J7T.js.map → RoutersTab-DiYEI1Nq.js.map} +1 -1
- package/dist/{ScriptChooser-D2-VTc4T.cjs → ScriptChooser-BnTP6ucF.cjs} +2 -2
- package/dist/{ScriptChooser-D2-VTc4T.cjs.map → ScriptChooser-BnTP6ucF.cjs.map} +1 -1
- package/dist/{ScriptChooser-CA2eMEE2.js → ScriptChooser-Cua8ObYv.js} +2 -2
- package/dist/{ScriptChooser-CA2eMEE2.js.map → ScriptChooser-Cua8ObYv.js.map} +1 -1
- package/dist/{ScrollwindowWidget-DcpdXyrP.js → ScrollwindowWidget-54GU96Ve.js} +3 -3
- package/dist/{ScrollwindowWidget-DcpdXyrP.js.map → ScrollwindowWidget-54GU96Ve.js.map} +1 -1
- package/dist/{ScrollwindowWidget-vnhzeIMy.cjs → ScrollwindowWidget-C5_X-KwQ.cjs} +2 -2
- package/dist/{ScrollwindowWidget-vnhzeIMy.cjs.map → ScrollwindowWidget-C5_X-KwQ.cjs.map} +1 -1
- package/dist/{SecretsTab-HP8E21SW.cjs → SecretsTab-DY16usGc.cjs} +2 -2
- package/dist/{SecretsTab-HP8E21SW.cjs.map → SecretsTab-DY16usGc.cjs.map} +1 -1
- package/dist/{SecretsTab-CQNTFJAM.js → SecretsTab-uWRVI1EE.js} +2 -2
- package/dist/{SecretsTab-CQNTFJAM.js.map → SecretsTab-uWRVI1EE.js.map} +1 -1
- package/dist/{SettingsTab-BAOaLzuc.js → SettingsTab-BVnr4OtU.js} +3 -3
- package/dist/{SettingsTab-BAOaLzuc.js.map → SettingsTab-BVnr4OtU.js.map} +1 -1
- package/dist/{SettingsTab-CMQxLfkn.cjs → SettingsTab-BkwaDhYo.cjs} +2 -2
- package/dist/{SettingsTab-CMQxLfkn.cjs.map → SettingsTab-BkwaDhYo.cjs.map} +1 -1
- package/dist/{SignalWidget-CoTi0Uzy.js → SignalWidget-B_kA9eCJ.js} +2 -2
- package/dist/{SignalWidget-CoTi0Uzy.js.map → SignalWidget-B_kA9eCJ.js.map} +1 -1
- package/dist/{SignalWidget-DqxDT42W.cjs → SignalWidget-COL8kXSJ.cjs} +2 -2
- package/dist/{SignalWidget-DqxDT42W.cjs.map → SignalWidget-COL8kXSJ.cjs.map} +1 -1
- package/dist/{SimpleTextDialog-BdV90ARp.cjs → SimpleTextDialog-BWUqPlTv.cjs} +2 -2
- package/dist/{SimpleTextDialog-BdV90ARp.cjs.map → SimpleTextDialog-BWUqPlTv.cjs.map} +1 -1
- package/dist/{SimpleTextDialog-BqVdFj1n.js → SimpleTextDialog-BulqUrdH.js} +2 -2
- package/dist/{SimpleTextDialog-BqVdFj1n.js.map → SimpleTextDialog-BulqUrdH.js.map} +1 -1
- package/dist/{SpacerWidget--x9MPrff.cjs → SpacerWidget-D_Ya_b1j.cjs} +2 -2
- package/dist/{SpacerWidget--x9MPrff.cjs.map → SpacerWidget-D_Ya_b1j.cjs.map} +1 -1
- package/dist/{SpacerWidget-CTekSgNO.js → SpacerWidget-XoMPHak8.js} +2 -2
- package/dist/{SpacerWidget-CTekSgNO.js.map → SpacerWidget-XoMPHak8.js.map} +1 -1
- package/dist/{SparklineWidget-BHdwgOeC.cjs → SparklineWidget-CRzXTS5z.cjs} +2 -2
- package/dist/{SparklineWidget-BHdwgOeC.cjs.map → SparklineWidget-CRzXTS5z.cjs.map} +1 -1
- package/dist/{SparklineWidget-BxwPKrIr.js → SparklineWidget-DQNsvEj9.js} +4 -4
- package/dist/{SparklineWidget-BxwPKrIr.js.map → SparklineWidget-DQNsvEj9.js.map} +1 -1
- package/dist/{TabbookWidget-DuszE8ho.cjs → TabbookWidget-Bh-GDBXg.cjs} +2 -2
- package/dist/{TabbookWidget-DuszE8ho.cjs.map → TabbookWidget-Bh-GDBXg.cjs.map} +1 -1
- package/dist/{TabbookWidget-B6Nx3Kmt.js → TabbookWidget-_HVA72t5.js} +2 -2
- package/dist/{TabbookWidget-B6Nx3Kmt.js.map → TabbookWidget-_HVA72t5.js.map} +1 -1
- package/dist/{TargetsTab-u-6nY7FX.js → TargetsTab-BfoRYnTP.js} +3 -3
- package/dist/{TargetsTab-u-6nY7FX.js.map → TargetsTab-BfoRYnTP.js.map} +1 -1
- package/dist/{TargetsTab-B8appkxl.cjs → TargetsTab-CGE-jQAz.cjs} +2 -2
- package/dist/{TargetsTab-B8appkxl.cjs.map → TargetsTab-CGE-jQAz.cjs.map} +1 -1
- package/dist/TextBoxDialog-C60jmnyN.js.map +1 -1
- package/dist/TextBoxDialog-DWt30tB8.cjs.map +1 -1
- package/dist/{TextboxWidget-DJgAfLFU.js → TextboxWidget-0JXn4bMH.js} +4 -4
- package/dist/{TextboxWidget-DJgAfLFU.js.map → TextboxWidget-0JXn4bMH.js.map} +1 -1
- package/dist/{TextboxWidget-CBdukKN5.cjs → TextboxWidget-uDptDK_z.cjs} +2 -2
- package/dist/{TextboxWidget-CBdukKN5.cjs.map → TextboxWidget-uDptDK_z.cjs.map} +1 -1
- package/dist/{TextfieldWidget-u6w1_wqO.cjs → TextfieldWidget-B0FCskrL.cjs} +2 -2
- package/dist/{TextfieldWidget-u6w1_wqO.cjs.map → TextfieldWidget-B0FCskrL.cjs.map} +1 -1
- package/dist/{TextfieldWidget-Bc2xGs8v.js → TextfieldWidget-BXr9MkVW.js} +2 -2
- package/dist/{TextfieldWidget-Bc2xGs8v.js.map → TextfieldWidget-BXr9MkVW.js.map} +1 -1
- package/dist/{TimeWidget-DO6ZuMLO.js → TimeWidget-C67uwMGH.js} +2 -2
- package/dist/{TimeWidget-DO6ZuMLO.js.map → TimeWidget-C67uwMGH.js.map} +1 -1
- package/dist/{TimeWidget-Bmzei1k_.cjs → TimeWidget-q5tUvHC6.cjs} +2 -2
- package/dist/{TimeWidget-Bmzei1k_.cjs.map → TimeWidget-q5tUvHC6.cjs.map} +1 -1
- package/dist/{TitleWidget-B8f0Sa7B.cjs → TitleWidget-REsd7MqR.cjs} +2 -2
- package/dist/{TitleWidget-B8f0Sa7B.cjs.map → TitleWidget-REsd7MqR.cjs.map} +1 -1
- package/dist/{TitleWidget-CkZhMme1.js → TitleWidget-t_YLgUMB.js} +2 -2
- package/dist/{TitleWidget-CkZhMme1.js.map → TitleWidget-t_YLgUMB.js.map} +1 -1
- package/dist/{ToolsTab-WSIi50nR.cjs → ToolsTab-CGztf9_j.cjs} +2 -2
- package/dist/{ToolsTab-WSIi50nR.cjs.map → ToolsTab-CGztf9_j.cjs.map} +1 -1
- package/dist/{ToolsTab-BI6lImcw.js → ToolsTab-DKYeIlXu.js} +3 -3
- package/dist/{ToolsTab-BI6lImcw.js.map → ToolsTab-DKYeIlXu.js.map} +1 -1
- package/dist/{TopBar-BwdXu4vD.cjs → TopBar-B0UcAtIW.cjs} +2 -2
- package/dist/{TopBar-BwdXu4vD.cjs.map → TopBar-B0UcAtIW.cjs.map} +1 -1
- package/dist/{TopBar-h_jaZ23r.js → TopBar-BrCfgCxc.js} +2 -2
- package/dist/{TopBar-h_jaZ23r.js.map → TopBar-BrCfgCxc.js.map} +1 -1
- package/dist/{UpgradeToEnterpriseDialog-DE2DoA0l.js → UpgradeToEnterpriseDialog-CGyR2v7U.js} +2 -2
- package/dist/{UpgradeToEnterpriseDialog-DE2DoA0l.js.map → UpgradeToEnterpriseDialog-CGyR2v7U.js.map} +1 -1
- package/dist/{UpgradeToEnterpriseDialog-B2LIPuO6.cjs → UpgradeToEnterpriseDialog-DJ3oth3I.cjs} +2 -2
- package/dist/{UpgradeToEnterpriseDialog-B2LIPuO6.cjs.map → UpgradeToEnterpriseDialog-DJ3oth3I.cjs.map} +1 -1
- package/dist/{UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_2c757408_lang-CKn4Dnn-.cjs → UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_2c757408_lang-C_HFbtFB.cjs} +2 -2
- package/dist/{UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_2c757408_lang-CKn4Dnn-.cjs.map → UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_2c757408_lang-C_HFbtFB.cjs.map} +1 -1
- package/dist/{UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_2c757408_lang-Vn0OLZcG.js → UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_2c757408_lang-NIAkCgU6.js} +2 -2
- package/dist/{UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_2c757408_lang-Vn0OLZcG.js.map → UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_2c757408_lang-NIAkCgU6.js.map} +1 -1
- package/dist/{VWidget-DKQBzANO.cjs → VWidget-BMxLXtSO.cjs} +2 -2
- package/dist/{VWidget-DKQBzANO.cjs.map → VWidget-BMxLXtSO.cjs.map} +1 -1
- package/dist/{VWidget-DzhcRBQe.js → VWidget-j2GIGGSX.js} +6 -3
- package/dist/{VWidget-DzhcRBQe.js.map → VWidget-j2GIGGSX.js.map} +1 -1
- package/dist/{ValueWidget-tieHz2H1.js → ValueWidget-3jNtnh5i.js} +4 -4
- package/dist/{ValueWidget-tieHz2H1.js.map → ValueWidget-3jNtnh5i.js.map} +1 -1
- package/dist/{ValueWidget-BpS7e3Ks.cjs → ValueWidget-CjZeSiPQ.cjs} +2 -2
- package/dist/{ValueWidget-BpS7e3Ks.cjs.map → ValueWidget-CjZeSiPQ.cjs.map} +1 -1
- package/dist/{ValuelimitsbarWidget-COsc2aMd.cjs → ValuelimitsbarWidget-CkLbRP8P.cjs} +2 -2
- package/dist/{ValuelimitsbarWidget-COsc2aMd.cjs.map → ValuelimitsbarWidget-CkLbRP8P.cjs.map} +1 -1
- package/dist/{ValuelimitsbarWidget-oFqxZu0t.js → ValuelimitsbarWidget-JSceOzGS.js} +4 -4
- package/dist/{ValuelimitsbarWidget-oFqxZu0t.js.map → ValuelimitsbarWidget-JSceOzGS.js.map} +1 -1
- package/dist/{ValuelimitscolumnWidget-DPmkVEuC.cjs → ValuelimitscolumnWidget-DpU4BoB7.cjs} +2 -2
- package/dist/{ValuelimitscolumnWidget-DPmkVEuC.cjs.map → ValuelimitscolumnWidget-DpU4BoB7.cjs.map} +1 -1
- package/dist/{ValuelimitscolumnWidget-DYBv8POg.js → ValuelimitscolumnWidget-HR1TNHwQ.js} +4 -4
- package/dist/{ValuelimitscolumnWidget-DYBv8POg.js.map → ValuelimitscolumnWidget-HR1TNHwQ.js.map} +1 -1
- package/dist/{ValuerangebarWidget-D5zHCKXQ.cjs → ValuerangebarWidget-CpZYmUl_.cjs} +2 -2
- package/dist/{ValuerangebarWidget-D5zHCKXQ.cjs.map → ValuerangebarWidget-CpZYmUl_.cjs.map} +1 -1
- package/dist/{ValuerangebarWidget-m3gFyG4v.js → ValuerangebarWidget-DnZrho8S.js} +4 -4
- package/dist/{ValuerangebarWidget-m3gFyG4v.js.map → ValuerangebarWidget-DnZrho8S.js.map} +1 -1
- package/dist/{VerticalWidget-DHWIKJUB.cjs → VerticalWidget-CcJMMaK_.cjs} +2 -2
- package/dist/{VerticalWidget-DHWIKJUB.cjs.map → VerticalWidget-CcJMMaK_.cjs.map} +1 -1
- package/dist/{VerticalWidget-CcdRZmQK.js → VerticalWidget-DJvoxqLE.js} +2 -2
- package/dist/{VerticalWidget-CcdRZmQK.js.map → VerticalWidget-DJvoxqLE.js.map} +1 -1
- package/dist/{VerticalboxWidget-BHNt0RrX.cjs → VerticalboxWidget-CJR_mOLa.cjs} +2 -2
- package/dist/{VerticalboxWidget-BHNt0RrX.cjs.map → VerticalboxWidget-CJR_mOLa.cjs.map} +1 -1
- package/dist/{VerticalboxWidget-DfsCYhrX.js → VerticalboxWidget-CYYyLBoO.js} +5 -5
- package/dist/{VerticalboxWidget-DfsCYhrX.js.map → VerticalboxWidget-CYYyLBoO.js.map} +1 -1
- package/dist/{Widget-B5HKasz2.js → Widget-Bn_S-zBo.js} +2 -2
- package/dist/{Widget-B5HKasz2.js.map → Widget-Bn_S-zBo.js.map} +1 -1
- package/dist/{Widget-CMzBJCGp.cjs → Widget-O7wkmc39.cjs} +2 -2
- package/dist/{Widget-CMzBJCGp.cjs.map → Widget-O7wkmc39.cjs.map} +1 -1
- package/dist/addMonths-BtG7uZLJ.js.map +1 -1
- package/dist/addMonths-n1tnl3ab.cjs.map +1 -1
- package/dist/components.cjs +2 -2
- package/dist/components.cjs.map +1 -1
- package/dist/components.js +13 -13
- package/dist/components.js.map +1 -1
- package/dist/format-B22VpiOS.cjs.map +1 -1
- package/dist/format-CVeawcIv.js.map +1 -1
- package/dist/getDefaultOptions-Batab9o8.cjs.map +1 -1
- package/dist/getDefaultOptions-BhSDk-Jo.js.map +1 -1
- package/dist/icons.cjs.map +1 -1
- package/dist/icons.js.map +1 -1
- package/dist/index-DcL65Mqb.cjs.map +1 -1
- package/dist/index-qCq0L4jN.js.map +1 -1
- package/dist/parse-DnkEsW-3.js.map +1 -1
- package/dist/parse-DwfgQboe.cjs.map +1 -1
- package/dist/plugins.cjs.map +1 -1
- package/dist/plugins.js.map +1 -1
- package/dist/timeFilters-BKnCM4rv.js.map +1 -1
- package/dist/timeFilters-CJFxfjqN.cjs.map +1 -1
- package/dist/tools/admin.cjs +1 -1
- package/dist/tools/admin.cjs.map +1 -1
- package/dist/tools/admin.js +12 -12
- package/dist/tools/admin.js.map +1 -1
- package/dist/tools/base.cjs +1 -1
- package/dist/tools/base.cjs.map +1 -1
- package/dist/tools/base.js +483 -481
- package/dist/tools/base.js.map +1 -1
- package/dist/tools/calendar.cjs +1 -1
- package/dist/tools/calendar.js +1 -1
- package/dist/tools/scriptrunner.cjs +2 -2
- package/dist/tools/scriptrunner.cjs.map +1 -1
- package/dist/tools/scriptrunner.js +10 -9
- package/dist/tools/scriptrunner.js.map +1 -1
- package/dist/vue-common.css +1 -1
- package/dist/widgets.cjs +1 -1
- package/dist/widgets.js +63 -63
- package/package.json +2 -2
- package/dist/DetailsDialog-DEjAO6yp.js.map +0 -1
- package/dist/Layout-DoI_Bpyu.cjs +0 -2
- package/dist/Openc3Screen-CPknMmN8.js.map +0 -1
- package/dist/Openc3Screen-CQkUFNEH.cjs.map +0 -1
- package/dist/PluginsTab-Diu6vzUR.js.map +0 -1
- package/dist/PluginsTab-UcluFu7J.cjs.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import o from "./ValueWidget-
|
|
2
|
-
import m from "./LimitscolumnWidget-
|
|
3
|
-
import { W as a } from "./Widget-
|
|
1
|
+
import o from "./ValueWidget-3jNtnh5i.js";
|
|
2
|
+
import m from "./LimitscolumnWidget-CdBh2mJu.js";
|
|
3
|
+
import { W as a } from "./Widget-Bn_S-zBo.js";
|
|
4
4
|
import { resolveComponent as n, createElementBlock as l, openBlock as p, normalizeStyle as u, createVNode as t, mergeProps as s } from "vue";
|
|
5
5
|
import { _ as c } from "./CustomIcon-h5X7369N.js";
|
|
6
6
|
const d = {
|
|
@@ -37,4 +37,4 @@ const z = /* @__PURE__ */ c(d, [["render", g]]);
|
|
|
37
37
|
export {
|
|
38
38
|
z as default
|
|
39
39
|
};
|
|
40
|
-
//# sourceMappingURL=ValuelimitscolumnWidget-
|
|
40
|
+
//# sourceMappingURL=ValuelimitscolumnWidget-HR1TNHwQ.js.map
|
package/dist/{ValuelimitscolumnWidget-DYBv8POg.js.map → ValuelimitscolumnWidget-HR1TNHwQ.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ValuelimitscolumnWidget-
|
|
1
|
+
{"version":3,"file":"ValuelimitscolumnWidget-HR1TNHwQ.js","sources":["../src/widgets/ValuelimitscolumnWidget.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 2022, 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 ref=\"container\" :style=\"computedStyle\">\n <!-- The widget-index is the order in the widget name: VALUELIMITSCOLUMN -->\n <limitscolumn-widget\n v-bind=\"$attrs\"\n :parameters=\"parameters\"\n :settings=\"[...appliedSettings]\"\n :screen-values=\"screenValues\"\n :widget-index=\"1\"\n :line=\"line\"\n :lineNumber=\"lineNumber\"\n />\n <value-widget\n v-bind=\"$attrs\"\n :parameters=\"parameters\"\n :settings=\"[...appliedSettings]\"\n :screen-values=\"screenValues\"\n :screen-time-zone=\"screenTimeZone\"\n :widget-index=\"0\"\n />\n </div>\n</template>\n\n<script>\nimport ValueWidget from './ValueWidget.vue'\nimport LimitscolumnWidget from './LimitscolumnWidget.vue'\nimport Widget from './Widget'\n\nexport default {\n mixins: [Widget],\n components: {\n ValueWidget,\n LimitscolumnWidget,\n },\n}\n</script>\n"],"names":["_sfc_main","Widget","ValueWidget","LimitscolumnWidget","_createElementBlock","_normalizeStyle","_ctx","_createVNode","_component_limitscolumn_widget","_mergeProps","_component_value_widget"],"mappings":";;;;;AAkDA,MAAKA,IAAU;AAAA,EACb,QAAQ,CAACC,CAAM;AAAA,EACf,YAAY;AAAA,IACV,aAAAC;AAAA,IACA,oBAAAC;AAAA;AAEJ;;;cAjCEC,EAmBM,OAAA;AAAA,IAnBD,KAAI;AAAA,IAAa,OAvBxBC,EAuB+BC,EAAA,aAAa;AAAA;IAExCC,EAQEC,GARFC,EACUH,EAAA,QAAM;AAAA,MACb,YAAYA,EAAA;AAAA,MACZ,cAAcA,EAAA,eAAe;AAAA,MAC7B,iBAAeA,EAAA;AAAA,MACf,gBAAc;AAAA,MACd,MAAMA,EAAA;AAAA,MACN,YAAYA,EAAA;AAAA;IAEfC,EAOEG,GAPFD,EACUH,EAAA,QAAM;AAAA,MACb,YAAYA,EAAA;AAAA,MACZ,cAAcA,EAAA,eAAe;AAAA,MAC7B,iBAAeA,EAAA;AAAA,MACf,oBAAkBA,EAAA;AAAA,MAClB,gBAAc;AAAA;;;;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./ValueWidget-
|
|
2
|
-
//# sourceMappingURL=ValuerangebarWidget-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./ValueWidget-CjZeSiPQ.cjs"),i=require("./RangebarWidget-Tq80I5zA.cjs"),o=require("./Widget-O7wkmc39.cjs"),e=require("vue"),m=require("./CustomIcon-Bop2mEnu.cjs"),l={mixins:[o.Widget],components:{ValueWidget:n.default,RangebarWidget:i.default},computed:{valueParameters(){return[this.parameters[0],this.parameters[1],this.parameters[2],this.parameters[5],this.parameters[6]]},rangeBarParameters(){return[this.parameters[0],this.parameters[1],this.parameters[2],this.parameters[3],this.parameters[4],this.parameters[5],this.parameters[7],this.parameters[8]]}}};function p(r,c,d,g,h,t){const a=e.resolveComponent("value-widget"),s=e.resolveComponent("rangebar-widget");return e.openBlock(),e.createElementBlock("div",{ref:"container",class:"d-flex flex-row",style:e.normalizeStyle(r.computedStyle)},[e.createVNode(a,e.mergeProps(r.$attrs,{parameters:t.valueParameters,settings:[...r.appliedSettings],"screen-values":r.screenValues,"screen-time-zone":r.screenTimeZone,"widget-index":0}),null,16,["parameters","settings","screen-values","screen-time-zone"]),e.createVNode(s,e.mergeProps(r.$attrs,{parameters:t.rangeBarParameters,settings:[...r.appliedSettings],"screen-values":r.screenValues,"widget-index":1}),null,16,["parameters","settings","screen-values"])],4)}const u=m._export_sfc(l,[["render",p]]);exports.default=u;
|
|
2
|
+
//# sourceMappingURL=ValuerangebarWidget-CpZYmUl_.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ValuerangebarWidget-
|
|
1
|
+
{"version":3,"file":"ValuerangebarWidget-CpZYmUl_.cjs","sources":["../src/widgets/ValuerangebarWidget.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 2022, 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 ref=\"container\" class=\"d-flex flex-row\" :style=\"computedStyle\">\n <value-widget\n v-bind=\"$attrs\"\n :parameters=\"valueParameters\"\n :settings=\"[...appliedSettings]\"\n :screen-values=\"screenValues\"\n :screen-time-zone=\"screenTimeZone\"\n :widget-index=\"0\"\n />\n <rangebar-widget\n v-bind=\"$attrs\"\n :parameters=\"rangeBarParameters\"\n :settings=\"[...appliedSettings]\"\n :screen-values=\"screenValues\"\n :widget-index=\"1\"\n />\n </div>\n</template>\n\n<script>\nimport ValueWidget from './ValueWidget.vue'\nimport RangebarWidget from './RangebarWidget.vue'\nimport Widget from './Widget'\n\nexport default {\n mixins: [Widget],\n components: {\n ValueWidget,\n RangebarWidget,\n },\n computed: {\n valueParameters() {\n return [\n this.parameters[0],\n this.parameters[1],\n this.parameters[2],\n // Skip 3,4 which is range min,max\n this.parameters[5],\n this.parameters[6], // num characters\n ]\n },\n rangeBarParameters() {\n return [\n this.parameters[0],\n this.parameters[1],\n this.parameters[2],\n this.parameters[3],\n this.parameters[4],\n this.parameters[5],\n // Skip 6 which is num chars\n this.parameters[7],\n this.parameters[8],\n ]\n },\n },\n}\n</script>\n"],"names":["_sfc_main","Widget","ValueWidget","RangebarWidget","_createElementBlock","_normalizeStyle","_ctx","_createVNode","_component_value_widget","_mergeProps","$options","_component_rangebar_widget"],"mappings":"oQA+CKA,EAAU,CACb,OAAQ,CAACC,EAAAA,MAAM,EACf,WAAY,aACVC,EAAAA,QACA,eAAAC,EAAAA,SAEF,SAAU,CACR,iBAAkB,CAChB,MAAO,CACL,KAAK,WAAW,CAAC,EACjB,KAAK,WAAW,CAAC,EACjB,KAAK,WAAW,CAAC,EAEjB,KAAK,WAAW,CAAC,EACjB,KAAK,WAAW,CAAC,CACnB,GAEF,oBAAqB,CACnB,MAAO,CACL,KAAK,WAAW,CAAC,EACjB,KAAK,WAAW,CAAC,EACjB,KAAK,WAAW,CAAC,EACjB,KAAK,WAAW,CAAC,EACjB,KAAK,WAAW,CAAC,EACjB,KAAK,WAAW,CAAC,EAEjB,KAAK,WAAW,CAAC,EACjB,KAAK,WAAW,CAAC,CACnB,GAGN,kIAvDEC,EAAAA,mBAgBM,MAAA,CAhBD,IAAI,YAAY,MAAM,kBAAmB,MAvBhDC,EAAAA,eAuBuDC,EAAA,aAAa,IAChEC,EAAAA,YAOEC,EAPFC,aACUH,EAAA,OAAM,CACb,WAAYI,EAAA,gBACZ,aAAcJ,EAAA,eAAe,EAC7B,gBAAeA,EAAA,aACf,mBAAkBA,EAAA,eAClB,eAAc,0EAEjBC,EAAAA,YAMEI,EANFF,aACUH,EAAA,OAAM,CACb,WAAYI,EAAA,mBACZ,aAAcJ,EAAA,eAAe,EAC7B,gBAAeA,EAAA,aACf,eAAc"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import m from "./ValueWidget-
|
|
2
|
-
import o from "./RangebarWidget-
|
|
3
|
-
import { W as p } from "./Widget-
|
|
1
|
+
import m from "./ValueWidget-3jNtnh5i.js";
|
|
2
|
+
import o from "./RangebarWidget-dZN9WjoZ.js";
|
|
3
|
+
import { W as p } from "./Widget-Bn_S-zBo.js";
|
|
4
4
|
import { resolveComponent as t, createElementBlock as l, openBlock as c, normalizeStyle as d, createVNode as a, mergeProps as s } from "vue";
|
|
5
5
|
import { _ as g } from "./CustomIcon-h5X7369N.js";
|
|
6
6
|
const u = {
|
|
@@ -62,4 +62,4 @@ const S = /* @__PURE__ */ g(u, [["render", h]]);
|
|
|
62
62
|
export {
|
|
63
63
|
S as default
|
|
64
64
|
};
|
|
65
|
-
//# sourceMappingURL=ValuerangebarWidget-
|
|
65
|
+
//# sourceMappingURL=ValuerangebarWidget-DnZrho8S.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ValuerangebarWidget-
|
|
1
|
+
{"version":3,"file":"ValuerangebarWidget-DnZrho8S.js","sources":["../src/widgets/ValuerangebarWidget.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 2022, 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 ref=\"container\" class=\"d-flex flex-row\" :style=\"computedStyle\">\n <value-widget\n v-bind=\"$attrs\"\n :parameters=\"valueParameters\"\n :settings=\"[...appliedSettings]\"\n :screen-values=\"screenValues\"\n :screen-time-zone=\"screenTimeZone\"\n :widget-index=\"0\"\n />\n <rangebar-widget\n v-bind=\"$attrs\"\n :parameters=\"rangeBarParameters\"\n :settings=\"[...appliedSettings]\"\n :screen-values=\"screenValues\"\n :widget-index=\"1\"\n />\n </div>\n</template>\n\n<script>\nimport ValueWidget from './ValueWidget.vue'\nimport RangebarWidget from './RangebarWidget.vue'\nimport Widget from './Widget'\n\nexport default {\n mixins: [Widget],\n components: {\n ValueWidget,\n RangebarWidget,\n },\n computed: {\n valueParameters() {\n return [\n this.parameters[0],\n this.parameters[1],\n this.parameters[2],\n // Skip 3,4 which is range min,max\n this.parameters[5],\n this.parameters[6], // num characters\n ]\n },\n rangeBarParameters() {\n return [\n this.parameters[0],\n this.parameters[1],\n this.parameters[2],\n this.parameters[3],\n this.parameters[4],\n this.parameters[5],\n // Skip 6 which is num chars\n this.parameters[7],\n this.parameters[8],\n ]\n },\n },\n}\n</script>\n"],"names":["_sfc_main","Widget","ValueWidget","RangebarWidget","_createElementBlock","_normalizeStyle","_ctx","_createVNode","_component_value_widget","_mergeProps","$options","_component_rangebar_widget"],"mappings":";;;;;AA+CA,MAAKA,IAAU;AAAA,EACb,QAAQ,CAACC,CAAM;AAAA,EACf,YAAY;AAAA,IACV,aAAAC;AAAA,IACA,gBAAAC;AAAA;EAEF,UAAU;AAAA,IACR,kBAAkB;AAChB,aAAO;AAAA,QACL,KAAK,WAAW,CAAC;AAAA,QACjB,KAAK,WAAW,CAAC;AAAA,QACjB,KAAK,WAAW,CAAC;AAAA;AAAA,QAEjB,KAAK,WAAW,CAAC;AAAA,QACjB,KAAK,WAAW,CAAC;AAAA;AAAA,MACnB;AAAA;IAEF,qBAAqB;AACnB,aAAO;AAAA,QACL,KAAK,WAAW,CAAC;AAAA,QACjB,KAAK,WAAW,CAAC;AAAA,QACjB,KAAK,WAAW,CAAC;AAAA,QACjB,KAAK,WAAW,CAAC;AAAA,QACjB,KAAK,WAAW,CAAC;AAAA,QACjB,KAAK,WAAW,CAAC;AAAA;AAAA,QAEjB,KAAK,WAAW,CAAC;AAAA,QACjB,KAAK,WAAW,CAAC;AAAA,MACnB;AAAA;;AAGN;;;cAvDEC,EAgBM,OAAA;AAAA,IAhBD,KAAI;AAAA,IAAY,OAAM;AAAA,IAAmB,OAvBhDC,EAuBuDC,EAAA,aAAa;AAAA;IAChEC,EAOEC,GAPFC,EACUH,EAAA,QAAM;AAAA,MACb,YAAYI,EAAA;AAAA,MACZ,cAAcJ,EAAA,eAAe;AAAA,MAC7B,iBAAeA,EAAA;AAAA,MACf,oBAAkBA,EAAA;AAAA,MAClB,gBAAc;AAAA;IAEjBC,EAMEI,GANFF,EACUH,EAAA,QAAM;AAAA,MACb,YAAYI,EAAA;AAAA,MACZ,cAAcJ,EAAA,eAAe;AAAA,MAC7B,iBAAeA,EAAA;AAAA,MACf,gBAAc;AAAA;;;;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./Layout-
|
|
2
|
-
//# sourceMappingURL=VerticalWidget-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./Layout-kOQnicRa.cjs"),e=require("vue"),c=require("./CustomIcon-Bop2mEnu.cjs"),l={mixins:[i.Layout],created:function(){if(this.parameters[0]){let r=this.parameters[0];this.widgets.forEach(s=>{s.settings.find(t=>t[0]==="MARGIN"||t[0]==="RAW"&&t[1].toUpperCase().includes("MARGIN"))===void 0&&s.settings.push(["MARGIN",r])})}}};function u(r,s,o,t,p,f){return e.openBlock(),e.createElementBlock("div",{ref:"container",style:e.normalizeStyle(r.computedStyle)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.widgets,(n,a)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n.type),e.mergeProps({ref_for:!0},r.listeners,{key:a,target:n.target,parameters:n.parameters,settings:n.settings,"screen-values":r.screenValues,"screen-time-zone":r.screenTimeZone,widgets:n.widgets,name:n.name,line:n.line,"line-number":n.lineNumber}),null,16,["target","parameters","settings","screen-values","screen-time-zone","widgets","name","line","line-number"]))),128))],4)}const m=c._export_sfc(l,[["render",u]]);exports.default=m;
|
|
2
|
+
//# sourceMappingURL=VerticalWidget-CcJMMaK_.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VerticalWidget-
|
|
1
|
+
{"version":3,"file":"VerticalWidget-CcJMMaK_.cjs","sources":["../src/widgets/VerticalWidget.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 ref=\"container\" :style=\"computedStyle\">\n <component\n :is=\"widget.type\"\n v-for=\"(widget, index) in widgets\"\n v-bind=\"listeners\"\n :key=\"index\"\n :target=\"widget.target\"\n :parameters=\"widget.parameters\"\n :settings=\"widget.settings\"\n :screen-values=\"screenValues\"\n :screen-time-zone=\"screenTimeZone\"\n :widgets=\"widget.widgets\"\n :name=\"widget.name\"\n :line=\"widget.line\"\n :line-number=\"widget.lineNumber\"\n />\n </div>\n</template>\n\n<script>\nimport Layout from './Layout'\nexport default {\n mixins: [Layout],\n created: function () {\n if (this.parameters[0]) {\n let margin = this.parameters[0]\n this.widgets.forEach((widget) => {\n // Don't push MARGIN on a widget that's already defined it\n const found = widget.settings.find(\n (setting) =>\n setting[0] === 'MARGIN' ||\n (setting[0] === 'RAW' &&\n setting[1].toUpperCase().includes('MARGIN')),\n )\n if (found === undefined) {\n widget.settings.push(['MARGIN', margin])\n }\n })\n }\n },\n}\n</script>\n"],"names":["_sfc_main","Layout","margin","widget","setting","_createElementBlock","_normalizeStyle","_ctx","_openBlock","_Fragment","_renderList","index","_createBlock","_resolveDynamicComponent","_mergeProps"],"mappings":"iLA4CKA,EAAU,CACb,OAAQ,CAACC,EAAAA,MAAM,EACf,QAAS,UAAY,CACnB,GAAI,KAAK,WAAW,CAAC,EAAG,CACtB,IAAIC,EAAS,KAAK,WAAW,CAAC,EAC9B,KAAK,QAAQ,QAASC,GAAW,CAEjBA,EAAO,SAAS,KAC3BC,GACCA,EAAQ,CAAC,IAAM,UACdA,EAAQ,CAAC,IAAM,OACdA,EAAQ,CAAC,EAAE,YAAW,EAAG,SAAS,QAAQ,CAChD,IACc,QACZD,EAAO,SAAS,KAAK,CAAC,SAAUD,CAAM,CAAC,EAE1C,CACH,EAEJ,+CAxCEG,EAAAA,mBAgBM,MAAA,CAhBD,IAAI,YAAa,MAvBxBC,EAAAA,eAuB+BC,EAAA,aAAa,KACxCC,EAAAA,UAAA,EAAA,EAAAH,EAAAA,mBAcEI,gBAtCNC,EAAAA,WA0BgCH,EAAA,QA1BhC,CA0BcJ,EAAQQ,mBAFlBC,EAAAA,YAxBJC,EAAAA,wBAyBWV,EAAO,IAAI,EADlBW,EAAAA,WAcE,CAtCN,QAAA,IA2BcP,EAAA,UAAS,CAChB,IAAKI,EACL,OAAQR,EAAO,OACf,WAAYA,EAAO,WACnB,SAAUA,EAAO,SACjB,gBAAeI,EAAA,aACf,mBAAkBA,EAAA,eAClB,QAASJ,EAAO,QAChB,KAAMA,EAAO,KACb,KAAMA,EAAO,KACb,cAAaA,EAAO"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { L as m } from "./Layout-
|
|
1
|
+
import { L as m } from "./Layout-1z8iJV5-.js";
|
|
2
2
|
import { createElementBlock as a, openBlock as t, normalizeStyle as l, Fragment as c, renderList as u, createBlock as p, resolveDynamicComponent as f, mergeProps as d } from "vue";
|
|
3
3
|
import { _ as g } from "./CustomIcon-h5X7369N.js";
|
|
4
4
|
const y = {
|
|
@@ -37,4 +37,4 @@ const R = /* @__PURE__ */ g(y, [["render", h]]);
|
|
|
37
37
|
export {
|
|
38
38
|
R as default
|
|
39
39
|
};
|
|
40
|
-
//# sourceMappingURL=VerticalWidget-
|
|
40
|
+
//# sourceMappingURL=VerticalWidget-DJvoxqLE.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VerticalWidget-
|
|
1
|
+
{"version":3,"file":"VerticalWidget-DJvoxqLE.js","sources":["../src/widgets/VerticalWidget.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 ref=\"container\" :style=\"computedStyle\">\n <component\n :is=\"widget.type\"\n v-for=\"(widget, index) in widgets\"\n v-bind=\"listeners\"\n :key=\"index\"\n :target=\"widget.target\"\n :parameters=\"widget.parameters\"\n :settings=\"widget.settings\"\n :screen-values=\"screenValues\"\n :screen-time-zone=\"screenTimeZone\"\n :widgets=\"widget.widgets\"\n :name=\"widget.name\"\n :line=\"widget.line\"\n :line-number=\"widget.lineNumber\"\n />\n </div>\n</template>\n\n<script>\nimport Layout from './Layout'\nexport default {\n mixins: [Layout],\n created: function () {\n if (this.parameters[0]) {\n let margin = this.parameters[0]\n this.widgets.forEach((widget) => {\n // Don't push MARGIN on a widget that's already defined it\n const found = widget.settings.find(\n (setting) =>\n setting[0] === 'MARGIN' ||\n (setting[0] === 'RAW' &&\n setting[1].toUpperCase().includes('MARGIN')),\n )\n if (found === undefined) {\n widget.settings.push(['MARGIN', margin])\n }\n })\n }\n },\n}\n</script>\n"],"names":["_sfc_main","Layout","margin","widget","setting","_createElementBlock","_normalizeStyle","_ctx","_openBlock","_Fragment","_renderList","index","_createBlock","_resolveDynamicComponent","_mergeProps"],"mappings":";;;AA4CA,MAAKA,IAAU;AAAA,EACb,QAAQ,CAACC,CAAM;AAAA,EACf,SAAS,WAAY;AACnB,QAAI,KAAK,WAAW,CAAC,GAAG;AACtB,UAAIC,IAAS,KAAK,WAAW,CAAC;AAC9B,WAAK,QAAQ,QAAQ,CAACC,MAAW;AAQ/B,QANcA,EAAO,SAAS;AAAA,UAC5B,CAACC,MACCA,EAAQ,CAAC,MAAM,YACdA,EAAQ,CAAC,MAAM,SACdA,EAAQ,CAAC,EAAE,YAAW,EAAG,SAAS,QAAQ;AAAA,QAChD,MACc,UACZD,EAAO,SAAS,KAAK,CAAC,UAAUD,CAAM,CAAC;AAAA,OAE1C;AAAA,IACH;AAAA;AAEJ;;cAxCEG,EAgBM,OAAA;AAAA,IAhBD,KAAI;AAAA,IAAa,OAvBxBC,EAuB+BC,EAAA,aAAa;AAAA;KACxCC,EAAA,EAAA,GAAAH,EAcEI,SAtCNC,EA0BgCH,EAAA,SA1BhC,CA0BcJ,GAAQQ,YAFlBC,EAxBJC,EAyBWV,EAAO,IAAI,GADlBW,EAcE,EAtCN,SAAA,MA2BcP,EAAA,WAAS;AAAA,MAChB,KAAKI;AAAA,MACL,QAAQR,EAAO;AAAA,MACf,YAAYA,EAAO;AAAA,MACnB,UAAUA,EAAO;AAAA,MACjB,iBAAeI,EAAA;AAAA,MACf,oBAAkBA,EAAA;AAAA,MAClB,SAASJ,EAAO;AAAA,MAChB,MAAMA,EAAO;AAAA,MACb,MAAMA,EAAO;AAAA,MACb,eAAaA,EAAO;AAAA;;;;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./LabelWidget-
|
|
2
|
-
//# sourceMappingURL=VerticalboxWidget-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./LabelWidget-DQZqRxKF.cjs"),l=require("./HorizontallineWidget-lTr2JTFY.cjs"),a=require("./VerticalWidget-CcJMMaK_.cjs"),c=require("./Layout-kOQnicRa.cjs"),t=require("vue"),g=require("./CustomIcon-Bop2mEnu.cjs"),d={mixins:[c.Layout],components:{LabelWidget:r.default,HorizontalLineWidget:l.default,VerticalWidget:a.default},created(){this.labelSettings=[...this.appliedSettings],this.labelSettings.find(n=>n[0]==="0"&&n[1]==="RAW"&&n[2]==="font-weight")||this.labelSettings.push(["0","RAW","font-weight","bold"])}};function u(e,n,m,f,h,w){const i=t.resolveComponent("label-widget"),s=t.resolveComponent("horizontal-line-widget"),o=t.resolveComponent("vertical-widget");return t.openBlock(),t.createElementBlock("div",null,[e.parameters.length>0?(t.openBlock(),t.createBlock(i,{key:0,parameters:e.parameters.slice(0,1),settings:[...e.labelSettings],"widget-index":0},null,8,["parameters","settings"])):t.createCommentVNode("",!0),t.createVNode(s,{settings:[...e.appliedSettings],"widget-index":1},null,8,["settings"]),t.createVNode(o,t.mergeProps(e.listeners,{parameters:e.parameters.slice(1),settings:e.settings,widgets:e.widgets,"screen-values":e.screenValues,"screen-time-zone":e.screenTimeZone}),null,16,["parameters","settings","widgets","screen-values","screen-time-zone"])])}const p=g._export_sfc(d,[["render",u]]);exports.default=p;
|
|
2
|
+
//# sourceMappingURL=VerticalboxWidget-CJR_mOLa.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VerticalboxWidget-
|
|
1
|
+
{"version":3,"file":"VerticalboxWidget-CJR_mOLa.cjs","sources":["../src/widgets/VerticalboxWidget.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 2025, 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>\n <label-widget\n v-if=\"parameters.length > 0\"\n :parameters=\"parameters.slice(0, 1)\"\n :settings=\"[...labelSettings]\"\n :widget-index=\"0\"\n />\n <horizontal-line-widget\n :settings=\"[...appliedSettings]\"\n :widget-index=\"1\"\n />\n <vertical-widget\n v-bind=\"listeners\"\n :parameters=\"parameters.slice(1)\"\n :settings=\"settings\"\n :widgets=\"widgets\"\n :screen-values=\"screenValues\"\n :screen-time-zone=\"screenTimeZone\"\n />\n </div>\n</template>\n\n<script>\nimport LabelWidget from './LabelWidget.vue'\nimport HorizontalLineWidget from './HorizontallineWidget.vue'\nimport VerticalWidget from './VerticalWidget.vue'\nimport Layout from './Layout'\n\nexport default {\n mixins: [Layout],\n components: {\n LabelWidget,\n HorizontalLineWidget,\n VerticalWidget,\n },\n created() {\n this.labelSettings = [...this.appliedSettings]\n // Set the font-weight to bold if not already set\n const fontWeightSetting = this.labelSettings.find(\n (setting) =>\n setting[0] === '0' &&\n setting[1] === 'RAW' &&\n setting[2] === 'font-weight',\n )\n if (!fontWeightSetting) {\n this.labelSettings.push(['0', 'RAW', 'font-weight', 'bold'])\n }\n },\n}\n</script>\n"],"names":["_sfc_main","Layout","LabelWidget","HorizontalLineWidget","VerticalWidget","setting","_createElementBlock","_ctx","_createBlock","_component_label_widget","_createCommentVNode","_createVNode","_component_horizontal_line_widget","_component_vertical_widget","_mergeProps"],"mappings":"qTAmDKA,EAAU,CACb,OAAQ,CAACC,EAAAA,MAAM,EACf,WAAY,aACVC,EAAAA,QACA,qBAAAC,EAAAA,QACA,eAAAC,EAAAA,SAEF,SAAU,CACR,KAAK,cAAgB,CAAC,GAAG,KAAK,eAAe,EAEnB,KAAK,cAAc,KAC1CC,GACCA,EAAQ,CAAC,IAAM,KACfA,EAAQ,CAAC,IAAM,OACfA,EAAQ,CAAC,IAAM,aACnB,GAEE,KAAK,cAAc,KAAK,CAAC,IAAK,MAAO,cAAe,MAAM,CAAC,EAGjE,iLAhDEC,qBAmBM,MAAA,KAAA,CAjBIC,EAAA,WAAW,OAAM,iBADzBC,EAAAA,YAKEC,EAAA,CA7BN,IAAA,EA0BO,WAAYF,EAAA,WAAW,MAAK,EAAA,CAAA,EAC5B,aAAcA,EAAA,aAAa,EAC3B,eAAc,sCA5BrBG,EAAAA,mBAAA,GAAA,EAAA,EA8BIC,EAAAA,YAGEC,EAAA,CAFC,aAAcL,EAAA,eAAe,EAC7B,eAAc,wBAEjBI,EAAAA,YAOEE,EAPFC,aACUP,EAAA,UAAS,CAChB,WAAYA,EAAA,WAAW,MAAK,CAAA,EAC5B,SAAUA,EAAA,SACV,QAASA,EAAA,QACT,gBAAeA,EAAA,aACf,mBAAkBA,EAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import l from "./LabelWidget-
|
|
2
|
-
import g from "./HorizontallineWidget-
|
|
3
|
-
import m from "./VerticalWidget-
|
|
4
|
-
import { L as p } from "./Layout-
|
|
1
|
+
import l from "./LabelWidget-iUIJLhdA.js";
|
|
2
|
+
import g from "./HorizontallineWidget-DEODVJCk.js";
|
|
3
|
+
import m from "./VerticalWidget-DJvoxqLE.js";
|
|
4
|
+
import { L as p } from "./Layout-1z8iJV5-.js";
|
|
5
5
|
import { resolveComponent as i, createElementBlock as d, openBlock as n, createBlock as c, createCommentVNode as f, createVNode as s, mergeProps as u } from "vue";
|
|
6
6
|
import { _ as h } from "./CustomIcon-h5X7369N.js";
|
|
7
7
|
const w = {
|
|
@@ -43,4 +43,4 @@ const y = /* @__PURE__ */ h(w, [["render", b]]);
|
|
|
43
43
|
export {
|
|
44
44
|
y as default
|
|
45
45
|
};
|
|
46
|
-
//# sourceMappingURL=VerticalboxWidget-
|
|
46
|
+
//# sourceMappingURL=VerticalboxWidget-CYYyLBoO.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VerticalboxWidget-
|
|
1
|
+
{"version":3,"file":"VerticalboxWidget-CYYyLBoO.js","sources":["../src/widgets/VerticalboxWidget.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 2025, 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>\n <label-widget\n v-if=\"parameters.length > 0\"\n :parameters=\"parameters.slice(0, 1)\"\n :settings=\"[...labelSettings]\"\n :widget-index=\"0\"\n />\n <horizontal-line-widget\n :settings=\"[...appliedSettings]\"\n :widget-index=\"1\"\n />\n <vertical-widget\n v-bind=\"listeners\"\n :parameters=\"parameters.slice(1)\"\n :settings=\"settings\"\n :widgets=\"widgets\"\n :screen-values=\"screenValues\"\n :screen-time-zone=\"screenTimeZone\"\n />\n </div>\n</template>\n\n<script>\nimport LabelWidget from './LabelWidget.vue'\nimport HorizontalLineWidget from './HorizontallineWidget.vue'\nimport VerticalWidget from './VerticalWidget.vue'\nimport Layout from './Layout'\n\nexport default {\n mixins: [Layout],\n components: {\n LabelWidget,\n HorizontalLineWidget,\n VerticalWidget,\n },\n created() {\n this.labelSettings = [...this.appliedSettings]\n // Set the font-weight to bold if not already set\n const fontWeightSetting = this.labelSettings.find(\n (setting) =>\n setting[0] === '0' &&\n setting[1] === 'RAW' &&\n setting[2] === 'font-weight',\n )\n if (!fontWeightSetting) {\n this.labelSettings.push(['0', 'RAW', 'font-weight', 'bold'])\n }\n },\n}\n</script>\n"],"names":["_sfc_main","Layout","LabelWidget","HorizontalLineWidget","VerticalWidget","setting","_createElementBlock","_ctx","_createBlock","_component_label_widget","_createCommentVNode","_createVNode","_component_horizontal_line_widget","_component_vertical_widget","_mergeProps"],"mappings":";;;;;;AAmDA,MAAKA,IAAU;AAAA,EACb,QAAQ,CAACC,CAAM;AAAA,EACf,YAAY;AAAA,IACV,aAAAC;AAAA,IACA,sBAAAC;AAAA,IACA,gBAAAC;AAAA;EAEF,UAAU;AACR,SAAK,gBAAgB,CAAC,GAAG,KAAK,eAAe,GAEnB,KAAK,cAAc;AAAA,MAC3C,CAACC,MACCA,EAAQ,CAAC,MAAM,OACfA,EAAQ,CAAC,MAAM,SACfA,EAAQ,CAAC,MAAM;AAAA,IACnB,KAEE,KAAK,cAAc,KAAK,CAAC,KAAK,OAAO,eAAe,MAAM,CAAC;AAAA;AAGjE;;;cAhDEC,EAmBM,OAAA,MAAA;AAAA,IAjBIC,EAAA,WAAW,SAAM,UADzBC,EAKEC,GAAA;AAAA,MA7BN,KAAA;AAAA,MA0BO,YAAYF,EAAA,WAAW,MAAK,GAAA,CAAA;AAAA,MAC5B,cAAcA,EAAA,aAAa;AAAA,MAC3B,gBAAc;AAAA,+CA5BrBG,EAAA,IAAA,EAAA;AAAA,IA8BIC,EAGEC,GAAA;AAAA,MAFC,cAAcL,EAAA,eAAe;AAAA,MAC7B,gBAAc;AAAA;IAEjBI,EAOEE,GAPFC,EACUP,EAAA,WAAS;AAAA,MAChB,YAAYA,EAAA,WAAW,MAAK,CAAA;AAAA,MAC5B,UAAUA,EAAA;AAAA,MACV,SAASA,EAAA;AAAA,MACT,iBAAeA,EAAA;AAAA,MACf,oBAAkBA,EAAA;AAAA;;;;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { W as p, a as l } from "./UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_2c757408_lang-
|
|
1
|
+
import { W as p, a as l } from "./UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_2c757408_lang-NIAkCgU6.js";
|
|
2
2
|
const o = {
|
|
3
3
|
mixins: [p],
|
|
4
4
|
props: {
|
|
@@ -194,4 +194,4 @@ const o = {
|
|
|
194
194
|
export {
|
|
195
195
|
o as W
|
|
196
196
|
};
|
|
197
|
-
//# sourceMappingURL=Widget-
|
|
197
|
+
//# sourceMappingURL=Widget-Bn_S-zBo.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Widget-B5HKasz2.js","sources":["../src/widgets/Widget.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 2025, 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\nimport { ConfigParserError } from '@openc3/js-common/services'\nimport WidgetComponents from './WidgetComponents'\n\nexport default {\n mixins: [WidgetComponents],\n props: {\n widgetIndex: {\n type: Number,\n default: null,\n },\n parameters: {\n type: Array,\n default: () => [],\n },\n settings: {\n type: Array,\n default: () => [],\n },\n screenValues: {\n type: Object,\n default: () => {},\n },\n screenTimeZone: {\n type: String,\n default: 'local',\n },\n namedWidgets: {\n type: Object,\n default: {},\n },\n line: {\n type: String,\n default: '',\n },\n lineNumber: {\n type: Number,\n default: 0,\n },\n },\n data() {\n return {\n // The settings that apply to the current widget based on widgetIndex\n // Calculated in created, updated in setWidth & setHeight and used in computedStyle\n appliedSettings: [],\n // We make style a data attribute so as we recurse through nested\n // widgets we can check to see if style attributes have been applied\n // at any level of the widget, i.e. if LABELVALUE applies a style\n // to the VALUE component then we don't want the VALUE widget to think\n // it doesn't have a style when it renders.\n appliedStyle: {},\n widgetName: null,\n screenId: 'NO_SCREEN', // only used for named widgets - hopefully overwritten by settings value in created()\n }\n },\n computed: {\n computedStyle: function () {\n // Take all the COSMOS settings and create appliedStyle with actual css values\n this.appliedSettings.forEach((setting) => {\n this.applyStyleSetting(setting)\n })\n\n // If nothing has yet defined a width or height then we add flex to the style\n if (\n this.appliedStyle['width'] === undefined &&\n this.appliedStyle['height'] === undefined\n ) {\n // This flex allows for alignment in our widgets\n // The value of '1 1 auto' means allow items to grow and shrink proportionally\n // and by default try to take an equal portion of the parent\n this.appliedStyle['flex'] = '1 1 auto' // flex-grow, flex-shrink, flex-basis\n }\n return this.appliedStyle\n },\n screen: function () {\n // This exists for backwards compatibility of screen definitions since widgets no longer have a reference\n // to the Openc3Screen component instance\n const that = this\n return {\n getNamedWidget: function (widgetName) {\n return that.$store.getters.namedWidget(\n that.toQualifiedWidgetName(widgetName),\n )\n },\n open: function (target, screen) {\n that.$emit('open', target, screen)\n },\n close: function (target, screen) {\n that.$emit('close', target, screen)\n },\n closeAll: function () {\n that.$emit('closeAll')\n },\n }\n },\n listeners: function () {\n // Vue 3 deprecated $listeners, which was used to bubble up events to the Openc3Screen component. The new way is\n // to use v-bind=\"$attrs\", but that also passes the `style` DOM attribute to children, which makes widgets\n // inherit styles from the layout like height and flex.\n // This is a workaround to let us v-bind to just the event listeners (which were previously in the $listeners\n // object in Vue 2).\n return Object.entries(this.$attrs).reduce((listeners, entry) => {\n if (entry[0].startsWith('on')) {\n return {\n ...listeners,\n [entry[0]]: entry[1],\n }\n }\n return listeners\n }, {})\n },\n },\n watch: {\n widgetName: function (newName, oldName) {\n this.$store.commit(\n 'clearNamedWidget',\n this.toQualifiedWidgetName(oldName),\n )\n this.$store.commit('setNamedWidget', {\n [this.toQualifiedWidgetName(newName)]: this,\n })\n },\n },\n created() {\n // Look through the settings and get a reference to the screen\n this.screenId = this.settings\n .find((setting) => setting[0] === '__SCREEN_ID__')\n ?.at(1)\n\n this.widgetName = this.settings\n .find((setting) => setting[0] === 'NAMED_WIDGET')\n ?.at(1)\n\n // Figure out any subsettings that apply\n this.appliedSettings = this.settings\n .map((setting) => {\n const index = parseInt(setting[0])\n // If the first value isn't a number or if there isn't a widgetIndex\n // then it's not a subsetting so just return the setting\n if (isNaN(index) || this.widgetIndex === null) {\n return setting\n }\n // This is our setting so slice off the index and return\n // this effectively promotes the subsetting to a setting\n // on the current widget\n if (this.widgetIndex === index) {\n return setting.slice(1)\n }\n })\n // Remove any settings that we filtered out with null\n .filter((setting) => setting !== undefined)\n },\n beforeUnmount() {\n if (this.widgetName) {\n this.$store.commit(\n 'clearNamedWidget',\n this.toQualifiedWidgetName(this.widgetName),\n )\n }\n },\n methods: {\n applyStyleSetting(setting) {\n switch (setting[0]) {\n case 'TEXTALIGN':\n this.appliedStyle['text-align'] =\n setting[1].toLowerCase() + ' !important'\n this.appliedStyle['--text-align'] = setting[1].toLowerCase()\n break\n case 'PADDING':\n if (!isNaN(Number(setting[1]))) {\n setting[1] += 'px'\n }\n this.appliedStyle['padding'] = setting[1] + ' !important'\n break\n case 'MARGIN':\n if (!isNaN(Number(setting[1]))) {\n setting[1] += 'px'\n }\n this.appliedStyle['margin'] = setting[1] + ' !important'\n break\n case 'BACKCOLOR':\n this.appliedStyle['background-color'] =\n this.getColor(setting.slice(1)) + ' !important'\n break\n case 'TEXTCOLOR':\n this.appliedStyle['color'] =\n this.getColor(setting.slice(1)) + ' !important'\n break\n case 'BORDERCOLOR':\n this.appliedStyle['border-width'] = '1px!important'\n this.appliedStyle['border-style'] = 'solid!important'\n this.appliedStyle['border-color'] =\n this.getColor(setting.slice(1)) + ' !important'\n break\n case 'WIDTH':\n if (!isNaN(Number(setting[1]))) {\n setting[1] += 'px'\n }\n this.appliedStyle['width'] = setting[1] + ' !important'\n break\n case 'HEIGHT':\n if (!isNaN(Number(setting[1]))) {\n setting[1] += 'px'\n }\n this.appliedStyle['height'] = setting[1] + ' !important'\n break\n case 'RAW':\n this.appliedStyle[setting[1].toLowerCase()] =\n setting[2] + ' !important'\n break\n }\n },\n verifyNumParams(keyword, min_num_params, max_num_params, usage = '') {\n let parser = {\n line: this.line,\n lineNumber: this.lineNumber,\n keyword: keyword,\n parameters: this.parameters,\n }\n\n // This syntax works with 0 because each doesn't return any values\n // for a backwards range\n for (let index = 1; index <= min_num_params; index++) {\n // If the parameter is nil (0 based) then we have a problem\n if (this.parameters[index - 1] === undefined) {\n throw new ConfigParserError(\n parser,\n `Not enough parameters for ${keyword}.`,\n usage,\n 'https://docs.openc3.com/docs/configuration',\n )\n }\n }\n // If they pass null for max_params we don't check for a maximum number\n if (max_num_params !== null && this.parameters.length > max_num_params) {\n throw new ConfigParserError(\n parser,\n `Too many parameters for ${keyword}.`,\n usage,\n 'https://docs.openc3.com/docs/configuration',\n )\n }\n },\n setWidth(width, units = 'px', defaultWidth = '120') {\n // Don't set the width if someone has already set it\n // This is important in PacketViewer which uses the value-widget\n // and passes an explicit width setting to use\n let foundSetting = this.appliedSettings.find(\n (setting) => setting[0] === 'WIDTH',\n )\n if (foundSetting) {\n return foundSetting['WIDTH']\n } else {\n if (width) {\n this.appliedSettings.push(['WIDTH', `${width}${units}`])\n return parseInt(width)\n } else {\n this.appliedSettings.push(['WIDTH', `${defaultWidth}${units}`])\n return parseInt(defaultWidth)\n }\n }\n },\n setHeight(height, units = 'px', defaultHeight = '20') {\n // Don't set the height if someone has already set it\n let foundSetting = null\n foundSetting = this.appliedSettings.find(\n (setting) => setting[0] === 'HEIGHT',\n )\n if (foundSetting) {\n return foundSetting['HEIGHT']\n } else {\n if (height) {\n this.appliedSettings.push(['HEIGHT', `${height}${units}`])\n return parseInt(height)\n } else {\n this.appliedSettings.push(['HEIGHT', `${defaultHeight}${units}`])\n return parseInt(defaultHeight)\n }\n }\n },\n // Expects an array, can either be a single color or 3 rgb values\n getColor(setting) {\n switch (setting.length) {\n case 1:\n return setting[0].toLowerCase()\n case 3:\n return `rgb(${setting[0]},${setting[1]},${setting[2]})`\n }\n },\n toQualifiedWidgetName(widgetName) {\n return `${this.screenId}:${widgetName}`\n },\n },\n}\n"],"names":["Widget","WidgetComponents","setting","that","widgetName","target","screen","listeners","entry","newName","oldName","_a","_b","index","keyword","min_num_params","max_num_params","usage","parser","ConfigParserError","width","units","defaultWidth","foundSetting","height","defaultHeight"],"mappings":";AAyBA,MAAeA,IAAA;AAAA,EACb,QAAQ,CAACC,CAAgB;AAAA,EACzB,OAAO;AAAA,IACL,aAAa;AAAA,MACX,MAAM;AAAA,MACN,SAAS;AAAA,IACV;AAAA,IACD,YAAY;AAAA,MACV,MAAM;AAAA,MACN,SAAS,MAAM,CAAE;AAAA,IAClB;AAAA,IACD,UAAU;AAAA,MACR,MAAM;AAAA,MACN,SAAS,MAAM,CAAE;AAAA,IAClB;AAAA,IACD,cAAc;AAAA,MACZ,MAAM;AAAA,MACN,SAAS,MAAM;AAAA,MAAE;AAAA,IAClB;AAAA,IACD,gBAAgB;AAAA,MACd,MAAM;AAAA,MACN,SAAS;AAAA,IACV;AAAA,IACD,cAAc;AAAA,MACZ,MAAM;AAAA,MACN,SAAS,CAAE;AAAA,IACZ;AAAA,IACD,MAAM;AAAA,MACJ,MAAM;AAAA,MACN,SAAS;AAAA,IACV;AAAA,IACD,YAAY;AAAA,MACV,MAAM;AAAA,MACN,SAAS;AAAA,IACV;AAAA,EACF;AAAA,EACD,OAAO;AACL,WAAO;AAAA;AAAA;AAAA,MAGL,iBAAiB,CAAE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,MAMnB,cAAc,CAAE;AAAA,MAChB,YAAY;AAAA,MACZ,UAAU;AAAA;AAAA,IAChB;AAAA,EACG;AAAA,EACD,UAAU;AAAA,IACR,eAAe,WAAY;AAEzB,kBAAK,gBAAgB,QAAQ,CAACC,MAAY;AACxC,aAAK,kBAAkBA,CAAO;AAAA,MAC/B,CAAA,GAIC,KAAK,aAAa,UAAa,UAC/B,KAAK,aAAa,WAAc,WAKhC,KAAK,aAAa,OAAU,aAEvB,K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,gBAAgB,KAAK,CAAC,SAAS,GAAGE,CAAY,GAAGD,CAAK,EAAE,CAAC,GACvD,SAASC,CAAY;AAAA,IAGjC;AAAA,IACD,UAAUE,GAAQH,IAAQ,MAAMI,IAAgB,MAAM;AAEpD,UAAIF,IAAe;AAInB,aAHAA,IAAe,KAAK,gBAAgB;AAAA,QAClC,CAACrB,MAAYA,EAAQ,CAAC,MAAM;AAAA,MACpC,GACUqB,IACKA,EAAa,SAEhBC,KACF,KAAK,gBAAgB,KAAK,CAAC,UAAU,GAAGA,CAAM,GAAGH,CAAK,EAAE,CAAC,GAClD,SAASG,CAAM,MAEtB,KAAK,gBAAgB,KAAK,CAAC,UAAU,GAAGC,CAAa,GAAGJ,CAAK,EAAE,CAAC,GACzD,SAASI,CAAa;AAAA,IAGlC;AAAA;AAAA,IAED,SAASvB,GAAS;AAChB,cAAQA,EAAQ,QAAM;AAAA,QACpB,KAAK;AACH,iBAAOA,EAAQ,CAAC,EAAE,YAAW;AAAA,QAC/B,KAAK;AACH,iBAAO,OAAOA,EAAQ,CAAC,CAAC,IAAIA,EAAQ,CAAC,CAAC,IAAIA,EAAQ,CAAC,CAAC;AAAA,MAC9D;AAAA,IACK;AAAA,IACD,sBAAsBE,GAAY;AAChC,aAAO,GAAG,KAAK,QAAQ,IAAIA,CAAU;AAAA,IACtC;AAAA,EACF;AACH;"}
|
|
1
|
+
{"version":3,"file":"Widget-Bn_S-zBo.js","sources":["../src/widgets/Widget.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 2025, 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\nimport { ConfigParserError } from '@openc3/js-common/services'\nimport WidgetComponents from './WidgetComponents'\n\nexport default {\n mixins: [WidgetComponents],\n props: {\n widgetIndex: {\n type: Number,\n default: null,\n },\n parameters: {\n type: Array,\n default: () => [],\n },\n settings: {\n type: Array,\n default: () => [],\n },\n screenValues: {\n type: Object,\n default: () => {},\n },\n screenTimeZone: {\n type: String,\n default: 'local',\n },\n namedWidgets: {\n type: Object,\n default: {},\n },\n line: {\n type: String,\n default: '',\n },\n lineNumber: {\n type: Number,\n default: 0,\n },\n },\n data() {\n return {\n // The settings that apply to the current widget based on widgetIndex\n // Calculated in created, updated in setWidth & setHeight and used in computedStyle\n appliedSettings: [],\n // We make style a data attribute so as we recurse through nested\n // widgets we can check to see if style attributes have been applied\n // at any level of the widget, i.e. if LABELVALUE applies a style\n // to the VALUE component then we don't want the VALUE widget to think\n // it doesn't have a style when it renders.\n appliedStyle: {},\n widgetName: null,\n screenId: 'NO_SCREEN', // only used for named widgets - hopefully overwritten by settings value in created()\n }\n },\n computed: {\n computedStyle: function () {\n // Take all the COSMOS settings and create appliedStyle with actual css values\n this.appliedSettings.forEach((setting) => {\n this.applyStyleSetting(setting)\n })\n\n // If nothing has yet defined a width or height then we add flex to the style\n if (\n this.appliedStyle['width'] === undefined &&\n this.appliedStyle['height'] === undefined\n ) {\n // This flex allows for alignment in our widgets\n // The value of '1 1 auto' means allow items to grow and shrink proportionally\n // and by default try to take an equal portion of the parent\n this.appliedStyle['flex'] = '1 1 auto' // flex-grow, flex-shrink, flex-basis\n }\n return this.appliedStyle\n },\n screen: function () {\n // This exists for backwards compatibility of screen definitions since widgets no longer have a reference\n // to the Openc3Screen component instance\n const that = this\n return {\n getNamedWidget: function (widgetName) {\n return that.$store.getters.namedWidget(\n that.toQualifiedWidgetName(widgetName),\n )\n },\n open: function (target, screen) {\n that.$emit('open', target, screen)\n },\n close: function (target, screen) {\n that.$emit('close', target, screen)\n },\n closeAll: function () {\n that.$emit('closeAll')\n },\n }\n },\n listeners: function () {\n // Vue 3 deprecated $listeners, which was used to bubble up events to the Openc3Screen component. The new way is\n // to use v-bind=\"$attrs\", but that also passes the `style` DOM attribute to children, which makes widgets\n // inherit styles from the layout like height and flex.\n // This is a workaround to let us v-bind to just the event listeners (which were previously in the $listeners\n // object in Vue 2).\n return Object.entries(this.$attrs).reduce((listeners, entry) => {\n if (entry[0].startsWith('on')) {\n return {\n ...listeners,\n [entry[0]]: entry[1],\n }\n }\n return listeners\n }, {})\n },\n },\n watch: {\n widgetName: function (newName, oldName) {\n this.$store.commit(\n 'clearNamedWidget',\n this.toQualifiedWidgetName(oldName),\n )\n this.$store.commit('setNamedWidget', {\n [this.toQualifiedWidgetName(newName)]: this,\n })\n },\n },\n created() {\n // Look through the settings and get a reference to the screen\n this.screenId = this.settings\n .find((setting) => setting[0] === '__SCREEN_ID__')\n ?.at(1)\n\n this.widgetName = this.settings\n .find((setting) => setting[0] === 'NAMED_WIDGET')\n ?.at(1)\n\n // Figure out any subsettings that apply\n this.appliedSettings = this.settings\n .map((setting) => {\n const index = parseInt(setting[0])\n // If the first value isn't a number or if there isn't a widgetIndex\n // then it's not a subsetting so just return the setting\n if (isNaN(index) || this.widgetIndex === null) {\n return setting\n }\n // This is our setting so slice off the index and return\n // this effectively promotes the subsetting to a setting\n // on the current widget\n if (this.widgetIndex === index) {\n return setting.slice(1)\n }\n })\n // Remove any settings that we filtered out with null\n .filter((setting) => setting !== undefined)\n },\n beforeUnmount() {\n if (this.widgetName) {\n this.$store.commit(\n 'clearNamedWidget',\n this.toQualifiedWidgetName(this.widgetName),\n )\n }\n },\n methods: {\n applyStyleSetting(setting) {\n switch (setting[0]) {\n case 'TEXTALIGN':\n this.appliedStyle['text-align'] =\n setting[1].toLowerCase() + ' !important'\n this.appliedStyle['--text-align'] = setting[1].toLowerCase()\n break\n case 'PADDING':\n if (!isNaN(Number(setting[1]))) {\n setting[1] += 'px'\n }\n this.appliedStyle['padding'] = setting[1] + ' !important'\n break\n case 'MARGIN':\n if (!isNaN(Number(setting[1]))) {\n setting[1] += 'px'\n }\n this.appliedStyle['margin'] = setting[1] + ' !important'\n break\n case 'BACKCOLOR':\n this.appliedStyle['background-color'] =\n this.getColor(setting.slice(1)) + ' !important'\n break\n case 'TEXTCOLOR':\n this.appliedStyle['color'] =\n this.getColor(setting.slice(1)) + ' !important'\n break\n case 'BORDERCOLOR':\n this.appliedStyle['border-width'] = '1px!important'\n this.appliedStyle['border-style'] = 'solid!important'\n this.appliedStyle['border-color'] =\n this.getColor(setting.slice(1)) + ' !important'\n break\n case 'WIDTH':\n if (!isNaN(Number(setting[1]))) {\n setting[1] += 'px'\n }\n this.appliedStyle['width'] = setting[1] + ' !important'\n break\n case 'HEIGHT':\n if (!isNaN(Number(setting[1]))) {\n setting[1] += 'px'\n }\n this.appliedStyle['height'] = setting[1] + ' !important'\n break\n case 'RAW':\n this.appliedStyle[setting[1].toLowerCase()] =\n setting[2] + ' !important'\n break\n }\n },\n verifyNumParams(keyword, min_num_params, max_num_params, usage = '') {\n let parser = {\n line: this.line,\n lineNumber: this.lineNumber,\n keyword: keyword,\n parameters: this.parameters,\n }\n\n // This syntax works with 0 because each doesn't return any values\n // for a backwards range\n for (let index = 1; index <= min_num_params; index++) {\n // If the parameter is nil (0 based) then we have a problem\n if (this.parameters[index - 1] === undefined) {\n throw new ConfigParserError(\n parser,\n `Not enough parameters for ${keyword}.`,\n usage,\n 'https://docs.openc3.com/docs/configuration',\n )\n }\n }\n // If they pass null for max_params we don't check for a maximum number\n if (max_num_params !== null && this.parameters.length > max_num_params) {\n throw new ConfigParserError(\n parser,\n `Too many parameters for ${keyword}.`,\n usage,\n 'https://docs.openc3.com/docs/configuration',\n )\n }\n },\n setWidth(width, units = 'px', defaultWidth = '120') {\n // Don't set the width if someone has already set it\n // This is important in PacketViewer which uses the value-widget\n // and passes an explicit width setting to use\n let foundSetting = this.appliedSettings.find(\n (setting) => setting[0] === 'WIDTH',\n )\n if (foundSetting) {\n return foundSetting['WIDTH']\n } else {\n if (width) {\n this.appliedSettings.push(['WIDTH', `${width}${units}`])\n return parseInt(width)\n } else {\n this.appliedSettings.push(['WIDTH', `${defaultWidth}${units}`])\n return parseInt(defaultWidth)\n }\n }\n },\n setHeight(height, units = 'px', defaultHeight = '20') {\n // Don't set the height if someone has already set it\n let foundSetting = null\n foundSetting = this.appliedSettings.find(\n (setting) => setting[0] === 'HEIGHT',\n )\n if (foundSetting) {\n return foundSetting['HEIGHT']\n } else {\n if (height) {\n this.appliedSettings.push(['HEIGHT', `${height}${units}`])\n return parseInt(height)\n } else {\n this.appliedSettings.push(['HEIGHT', `${defaultHeight}${units}`])\n return parseInt(defaultHeight)\n }\n }\n },\n // Expects an array, can either be a single color or 3 rgb values\n getColor(setting) {\n switch (setting.length) {\n case 1:\n return setting[0].toLowerCase()\n case 3:\n return `rgb(${setting[0]},${setting[1]},${setting[2]})`\n }\n },\n toQualifiedWidgetName(widgetName) {\n return `${this.screenId}:${widgetName}`\n },\n },\n}\n"],"names":["Widget","WidgetComponents","setting","that","widgetName","target","screen","listeners","entry","newName","oldName","_a","_b","index","keyword","min_num_params","max_num_params","usage","parser","ConfigParserError","width","units","defaultWidth","foundSetting","height","defaultHeight"],"mappings":";AAyBA,MAAAA,IAAe;AAAA,EACb,QAAQ,CAACC,CAAgB;AAAA,EACzB,OAAO;AAAA,IACL,aAAa;AAAA,MACX,MAAM;AAAA,MACN,SAAS;AAAA,IACf;AAAA,IACI,YAAY;AAAA,MACV,MAAM;AAAA,MACN,SAAS,MAAM,CAAA;AAAA,IACrB;AAAA,IACI,UAAU;AAAA,MACR,MAAM;AAAA,MACN,SAAS,MAAM,CAAA;AAAA,IACrB;AAAA,IACI,cAAc;AAAA,MACZ,MAAM;AAAA,MACN,SAAS,MAAM;AAAA,MAAA;AAAA,IACrB;AAAA,IACI,gBAAgB;AA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,EAAQ,CAAC,EAAE,YAAW;AAAA,QAC/B,KAAK;AACH,iBAAO,OAAOA,EAAQ,CAAC,CAAC,IAAIA,EAAQ,CAAC,CAAC,IAAIA,EAAQ,CAAC,CAAC;AAAA,MAC9D;AAAA,IACA;AAAA,IACI,sBAAsBE,GAAY;AAChC,aAAO,GAAG,KAAK,QAAQ,IAAIA,CAAU;AAAA,IAC3C;AAAA,EACA;AACA;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const l=require("./UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_2c757408_lang-
|
|
2
|
-
//# sourceMappingURL=Widget-
|
|
1
|
+
"use strict";const l=require("./UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_2c757408_lang-C_HFbtFB.cjs"),p={mixins:[l.WidgetComponents],props:{widgetIndex:{type:Number,default:null},parameters:{type:Array,default:()=>[]},settings:{type:Array,default:()=>[]},screenValues:{type:Object,default:()=>{}},screenTimeZone:{type:String,default:"local"},namedWidgets:{type:Object,default:{}},line:{type:String,default:""},lineNumber:{type:Number,default:0}},data(){return{appliedSettings:[],appliedStyle:{},widgetName:null,screenId:"NO_SCREEN"}},computed:{computedStyle:function(){return this.appliedSettings.forEach(e=>{this.applyStyleSetting(e)}),this.appliedStyle.width===void 0&&this.appliedStyle.height===void 0&&(this.appliedStyle.flex="1 1 auto"),this.appliedStyle},screen:function(){const e=this;return{getNamedWidget:function(t){return e.$store.getters.namedWidget(e.toQualifiedWidgetName(t))},open:function(t,i){e.$emit("open",t,i)},close:function(t,i){e.$emit("close",t,i)},closeAll:function(){e.$emit("closeAll")}}},listeners:function(){return Object.entries(this.$attrs).reduce((e,t)=>t[0].startsWith("on")?{...e,[t[0]]:t[1]}:e,{})}},watch:{widgetName:function(e,t){this.$store.commit("clearNamedWidget",this.toQualifiedWidgetName(t)),this.$store.commit("setNamedWidget",{[this.toQualifiedWidgetName(e)]:this})}},created(){var e,t;this.screenId=(e=this.settings.find(i=>i[0]==="__SCREEN_ID__"))==null?void 0:e.at(1),this.widgetName=(t=this.settings.find(i=>i[0]==="NAMED_WIDGET"))==null?void 0:t.at(1),this.appliedSettings=this.settings.map(i=>{const r=parseInt(i[0]);if(isNaN(r)||this.widgetIndex===null)return i;if(this.widgetIndex===r)return i.slice(1)}).filter(i=>i!==void 0)},beforeUnmount(){this.widgetName&&this.$store.commit("clearNamedWidget",this.toQualifiedWidgetName(this.widgetName))},methods:{applyStyleSetting(e){switch(e[0]){case"TEXTALIGN":this.appliedStyle["text-align"]=e[1].toLowerCase()+" !important",this.appliedStyle["--text-align"]=e[1].toLowerCase();break;case"PADDING":isNaN(Number(e[1]))||(e[1]+="px"),this.appliedStyle.padding=e[1]+" !important";break;case"MARGIN":isNaN(Number(e[1]))||(e[1]+="px"),this.appliedStyle.margin=e[1]+" !important";break;case"BACKCOLOR":this.appliedStyle["background-color"]=this.getColor(e.slice(1))+" !important";break;case"TEXTCOLOR":this.appliedStyle.color=this.getColor(e.slice(1))+" !important";break;case"BORDERCOLOR":this.appliedStyle["border-width"]="1px!important",this.appliedStyle["border-style"]="solid!important",this.appliedStyle["border-color"]=this.getColor(e.slice(1))+" !important";break;case"WIDTH":isNaN(Number(e[1]))||(e[1]+="px"),this.appliedStyle.width=e[1]+" !important";break;case"HEIGHT":isNaN(Number(e[1]))||(e[1]+="px"),this.appliedStyle.height=e[1]+" !important";break;case"RAW":this.appliedStyle[e[1].toLowerCase()]=e[2]+" !important";break}},verifyNumParams(e,t,i,r=""){let a={line:this.line,lineNumber:this.lineNumber,keyword:e,parameters:this.parameters};for(let s=1;s<=t;s++)if(this.parameters[s-1]===void 0)throw new l.lt(a,`Not enough parameters for ${e}.`,r,"https://docs.openc3.com/docs/configuration");if(i!==null&&this.parameters.length>i)throw new l.lt(a,`Too many parameters for ${e}.`,r,"https://docs.openc3.com/docs/configuration")},setWidth(e,t="px",i="120"){let r=this.appliedSettings.find(a=>a[0]==="WIDTH");return r?r.WIDTH:e?(this.appliedSettings.push(["WIDTH",`${e}${t}`]),parseInt(e)):(this.appliedSettings.push(["WIDTH",`${i}${t}`]),parseInt(i))},setHeight(e,t="px",i="20"){let r=null;return r=this.appliedSettings.find(a=>a[0]==="HEIGHT"),r?r.HEIGHT:e?(this.appliedSettings.push(["HEIGHT",`${e}${t}`]),parseInt(e)):(this.appliedSettings.push(["HEIGHT",`${i}${t}`]),parseInt(i))},getColor(e){switch(e.length){case 1:return e[0].toLowerCase();case 3:return`rgb(${e[0]},${e[1]},${e[2]})`}},toQualifiedWidgetName(e){return`${this.screenId}:${e}`}}};exports.Widget=p;
|
|
2
|
+
//# sourceMappingURL=Widget-O7wkmc39.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Widget-CMzBJCGp.cjs","sources":["../src/widgets/Widget.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 2025, 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\nimport { ConfigParserError } from '@openc3/js-common/services'\nimport WidgetComponents from './WidgetComponents'\n\nexport default {\n mixins: [WidgetComponents],\n props: {\n widgetIndex: {\n type: Number,\n default: null,\n },\n parameters: {\n type: Array,\n default: () => [],\n },\n settings: {\n type: Array,\n default: () => [],\n },\n screenValues: {\n type: Object,\n default: () => {},\n },\n screenTimeZone: {\n type: String,\n default: 'local',\n },\n namedWidgets: {\n type: Object,\n default: {},\n },\n line: {\n type: String,\n default: '',\n },\n lineNumber: {\n type: Number,\n default: 0,\n },\n },\n data() {\n return {\n // The settings that apply to the current widget based on widgetIndex\n // Calculated in created, updated in setWidth & setHeight and used in computedStyle\n appliedSettings: [],\n // We make style a data attribute so as we recurse through nested\n // widgets we can check to see if style attributes have been applied\n // at any level of the widget, i.e. if LABELVALUE applies a style\n // to the VALUE component then we don't want the VALUE widget to think\n // it doesn't have a style when it renders.\n appliedStyle: {},\n widgetName: null,\n screenId: 'NO_SCREEN', // only used for named widgets - hopefully overwritten by settings value in created()\n }\n },\n computed: {\n computedStyle: function () {\n // Take all the COSMOS settings and create appliedStyle with actual css values\n this.appliedSettings.forEach((setting) => {\n this.applyStyleSetting(setting)\n })\n\n // If nothing has yet defined a width or height then we add flex to the style\n if (\n this.appliedStyle['width'] === undefined &&\n this.appliedStyle['height'] === undefined\n ) {\n // This flex allows for alignment in our widgets\n // The value of '1 1 auto' means allow items to grow and shrink proportionally\n // and by default try to take an equal portion of the parent\n this.appliedStyle['flex'] = '1 1 auto' // flex-grow, flex-shrink, flex-basis\n }\n return this.appliedStyle\n },\n screen: function () {\n // This exists for backwards compatibility of screen definitions since widgets no longer have a reference\n // to the Openc3Screen component instance\n const that = this\n return {\n getNamedWidget: function (widgetName) {\n return that.$store.getters.namedWidget(\n that.toQualifiedWidgetName(widgetName),\n )\n },\n open: function (target, screen) {\n that.$emit('open', target, screen)\n },\n close: function (target, screen) {\n that.$emit('close', target, screen)\n },\n closeAll: function () {\n that.$emit('closeAll')\n },\n }\n },\n listeners: function () {\n // Vue 3 deprecated $listeners, which was used to bubble up events to the Openc3Screen component. The new way is\n // to use v-bind=\"$attrs\", but that also passes the `style` DOM attribute to children, which makes widgets\n // inherit styles from the layout like height and flex.\n // This is a workaround to let us v-bind to just the event listeners (which were previously in the $listeners\n // object in Vue 2).\n return Object.entries(this.$attrs).reduce((listeners, entry) => {\n if (entry[0].startsWith('on')) {\n return {\n ...listeners,\n [entry[0]]: entry[1],\n }\n }\n return listeners\n }, {})\n },\n },\n watch: {\n widgetName: function (newName, oldName) {\n this.$store.commit(\n 'clearNamedWidget',\n this.toQualifiedWidgetName(oldName),\n )\n this.$store.commit('setNamedWidget', {\n [this.toQualifiedWidgetName(newName)]: this,\n })\n },\n },\n created() {\n // Look through the settings and get a reference to the screen\n this.screenId = this.settings\n .find((setting) => setting[0] === '__SCREEN_ID__')\n ?.at(1)\n\n this.widgetName = this.settings\n .find((setting) => setting[0] === 'NAMED_WIDGET')\n ?.at(1)\n\n // Figure out any subsettings that apply\n this.appliedSettings = this.settings\n .map((setting) => {\n const index = parseInt(setting[0])\n // If the first value isn't a number or if there isn't a widgetIndex\n // then it's not a subsetting so just return the setting\n if (isNaN(index) || this.widgetIndex === null) {\n return setting\n }\n // This is our setting so slice off the index and return\n // this effectively promotes the subsetting to a setting\n // on the current widget\n if (this.widgetIndex === index) {\n return setting.slice(1)\n }\n })\n // Remove any settings that we filtered out with null\n .filter((setting) => setting !== undefined)\n },\n beforeUnmount() {\n if (this.widgetName) {\n this.$store.commit(\n 'clearNamedWidget',\n this.toQualifiedWidgetName(this.widgetName),\n )\n }\n },\n methods: {\n applyStyleSetting(setting) {\n switch (setting[0]) {\n case 'TEXTALIGN':\n this.appliedStyle['text-align'] =\n setting[1].toLowerCase() + ' !important'\n this.appliedStyle['--text-align'] = setting[1].toLowerCase()\n break\n case 'PADDING':\n if (!isNaN(Number(setting[1]))) {\n setting[1] += 'px'\n }\n this.appliedStyle['padding'] = setting[1] + ' !important'\n break\n case 'MARGIN':\n if (!isNaN(Number(setting[1]))) {\n setting[1] += 'px'\n }\n this.appliedStyle['margin'] = setting[1] + ' !important'\n break\n case 'BACKCOLOR':\n this.appliedStyle['background-color'] =\n this.getColor(setting.slice(1)) + ' !important'\n break\n case 'TEXTCOLOR':\n this.appliedStyle['color'] =\n this.getColor(setting.slice(1)) + ' !important'\n break\n case 'BORDERCOLOR':\n this.appliedStyle['border-width'] = '1px!important'\n this.appliedStyle['border-style'] = 'solid!important'\n this.appliedStyle['border-color'] =\n this.getColor(setting.slice(1)) + ' !important'\n break\n case 'WIDTH':\n if (!isNaN(Number(setting[1]))) {\n setting[1] += 'px'\n }\n this.appliedStyle['width'] = setting[1] + ' !important'\n break\n case 'HEIGHT':\n if (!isNaN(Number(setting[1]))) {\n setting[1] += 'px'\n }\n this.appliedStyle['height'] = setting[1] + ' !important'\n break\n case 'RAW':\n this.appliedStyle[setting[1].toLowerCase()] =\n setting[2] + ' !important'\n break\n }\n },\n verifyNumParams(keyword, min_num_params, max_num_params, usage = '') {\n let parser = {\n line: this.line,\n lineNumber: this.lineNumber,\n keyword: keyword,\n parameters: this.parameters,\n }\n\n // This syntax works with 0 because each doesn't return any values\n // for a backwards range\n for (let index = 1; index <= min_num_params; index++) {\n // If the parameter is nil (0 based) then we have a problem\n if (this.parameters[index - 1] === undefined) {\n throw new ConfigParserError(\n parser,\n `Not enough parameters for ${keyword}.`,\n usage,\n 'https://docs.openc3.com/docs/configuration',\n )\n }\n }\n // If they pass null for max_params we don't check for a maximum number\n if (max_num_params !== null && this.parameters.length > max_num_params) {\n throw new ConfigParserError(\n parser,\n `Too many parameters for ${keyword}.`,\n usage,\n 'https://docs.openc3.com/docs/configuration',\n )\n }\n },\n setWidth(width, units = 'px', defaultWidth = '120') {\n // Don't set the width if someone has already set it\n // This is important in PacketViewer which uses the value-widget\n // and passes an explicit width setting to use\n let foundSetting = this.appliedSettings.find(\n (setting) => setting[0] === 'WIDTH',\n )\n if (foundSetting) {\n return foundSetting['WIDTH']\n } else {\n if (width) {\n this.appliedSettings.push(['WIDTH', `${width}${units}`])\n return parseInt(width)\n } else {\n this.appliedSettings.push(['WIDTH', `${defaultWidth}${units}`])\n return parseInt(defaultWidth)\n }\n }\n },\n setHeight(height, units = 'px', defaultHeight = '20') {\n // Don't set the height if someone has already set it\n let foundSetting = null\n foundSetting = this.appliedSettings.find(\n (setting) => setting[0] === 'HEIGHT',\n )\n if (foundSetting) {\n return foundSetting['HEIGHT']\n } else {\n if (height) {\n this.appliedSettings.push(['HEIGHT', `${height}${units}`])\n return parseInt(height)\n } else {\n this.appliedSettings.push(['HEIGHT', `${defaultHeight}${units}`])\n return parseInt(defaultHeight)\n }\n }\n },\n // Expects an array, can either be a single color or 3 rgb values\n getColor(setting) {\n switch (setting.length) {\n case 1:\n return setting[0].toLowerCase()\n case 3:\n return `rgb(${setting[0]},${setting[1]},${setting[2]})`\n }\n },\n toQualifiedWidgetName(widgetName) {\n return `${this.screenId}:${widgetName}`\n },\n },\n}\n"],"names":["Widget","WidgetComponents","setting","that","widgetName","target","screen","listeners","entry","newName","oldName","_a","_b","index","keyword","min_num_params","max_num_params","usage","parser","ConfigParserError","width","units","defaultWidth","foundSetting","height","defaultHeight"],"mappings":"yHAyBeA,EAAA,CACb,OAAQ,CAACC,EAAAA,gBAAgB,EACzB,MAAO,CACL,YAAa,CACX,KAAM,OACN,QAAS,IACV,EACD,WAAY,CACV,KAAM,MACN,QAAS,IAAM,CAAE,CAClB,EACD,SAAU,CACR,KAAM,MACN,QAAS,IAAM,CAAE,CAClB,EACD,aAAc,CACZ,KAAM,OACN,QAAS,IAAM,CAAE,CAClB,EACD,eAAgB,CACd,KAAM,OACN,QAAS,OACV,EACD,aAAc,CACZ,KAAM,OACN,QAAS,CAAE,CACZ,EACD,KAAM,CACJ,KAAM,OACN,QAAS,EACV,EACD,WAAY,CACV,KAAM,OACN,QAAS,CACV,CACF,EACD,MAAO,CACL,MAAO,CAGL,gBAAiB,CAAE,EAMnB,aAAc,CAAE,EAChB,WAAY,KACZ,SAAU,WAChB,CACG,EACD,SAAU,CACR,cAAe,UAAY,CAEzB,YAAK,gBAAgB,QAASC,GAAY,CACxC,KAAK,kBAAkBA,CAAO,CAC/B,CAAA,EAIC,KAAK,aAAa,QAAa,QAC/B,KAAK,aAAa,SAAc,SAKhC,KAAK,aAAa,KAAU,YAEvB,KAAK,YACb,EACD,OAAQ,UAAY,CAGlB,MAAMC,EAAO,KACb,MAAO,CACL,eAAgB,SAAUC,EAAY,CACpC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O,OAAOA,EAAQ,CAAC,CAAC,IAAIA,EAAQ,CAAC,CAAC,IAAIA,EAAQ,CAAC,CAAC,GAC9D,CACK,EACD,sBAAsBE,EAAY,CAChC,MAAO,GAAG,KAAK,QAAQ,IAAIA,CAAU,EACtC,CACF,CACH"}
|
|
1
|
+
{"version":3,"file":"Widget-O7wkmc39.cjs","sources":["../src/widgets/Widget.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 2025, 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\nimport { ConfigParserError } from '@openc3/js-common/services'\nimport WidgetComponents from './WidgetComponents'\n\nexport default {\n mixins: [WidgetComponents],\n props: {\n widgetIndex: {\n type: Number,\n default: null,\n },\n parameters: {\n type: Array,\n default: () => [],\n },\n settings: {\n type: Array,\n default: () => [],\n },\n screenValues: {\n type: Object,\n default: () => {},\n },\n screenTimeZone: {\n type: String,\n default: 'local',\n },\n namedWidgets: {\n type: Object,\n default: {},\n },\n line: {\n type: String,\n default: '',\n },\n lineNumber: {\n type: Number,\n default: 0,\n },\n },\n data() {\n return {\n // The settings that apply to the current widget based on widgetIndex\n // Calculated in created, updated in setWidth & setHeight and used in computedStyle\n appliedSettings: [],\n // We make style a data attribute so as we recurse through nested\n // widgets we can check to see if style attributes have been applied\n // at any level of the widget, i.e. if LABELVALUE applies a style\n // to the VALUE component then we don't want the VALUE widget to think\n // it doesn't have a style when it renders.\n appliedStyle: {},\n widgetName: null,\n screenId: 'NO_SCREEN', // only used for named widgets - hopefully overwritten by settings value in created()\n }\n },\n computed: {\n computedStyle: function () {\n // Take all the COSMOS settings and create appliedStyle with actual css values\n this.appliedSettings.forEach((setting) => {\n this.applyStyleSetting(setting)\n })\n\n // If nothing has yet defined a width or height then we add flex to the style\n if (\n this.appliedStyle['width'] === undefined &&\n this.appliedStyle['height'] === undefined\n ) {\n // This flex allows for alignment in our widgets\n // The value of '1 1 auto' means allow items to grow and shrink proportionally\n // and by default try to take an equal portion of the parent\n this.appliedStyle['flex'] = '1 1 auto' // flex-grow, flex-shrink, flex-basis\n }\n return this.appliedStyle\n },\n screen: function () {\n // This exists for backwards compatibility of screen definitions since widgets no longer have a reference\n // to the Openc3Screen component instance\n const that = this\n return {\n getNamedWidget: function (widgetName) {\n return that.$store.getters.namedWidget(\n that.toQualifiedWidgetName(widgetName),\n )\n },\n open: function (target, screen) {\n that.$emit('open', target, screen)\n },\n close: function (target, screen) {\n that.$emit('close', target, screen)\n },\n closeAll: function () {\n that.$emit('closeAll')\n },\n }\n },\n listeners: function () {\n // Vue 3 deprecated $listeners, which was used to bubble up events to the Openc3Screen component. The new way is\n // to use v-bind=\"$attrs\", but that also passes the `style` DOM attribute to children, which makes widgets\n // inherit styles from the layout like height and flex.\n // This is a workaround to let us v-bind to just the event listeners (which were previously in the $listeners\n // object in Vue 2).\n return Object.entries(this.$attrs).reduce((listeners, entry) => {\n if (entry[0].startsWith('on')) {\n return {\n ...listeners,\n [entry[0]]: entry[1],\n }\n }\n return listeners\n }, {})\n },\n },\n watch: {\n widgetName: function (newName, oldName) {\n this.$store.commit(\n 'clearNamedWidget',\n this.toQualifiedWidgetName(oldName),\n )\n this.$store.commit('setNamedWidget', {\n [this.toQualifiedWidgetName(newName)]: this,\n })\n },\n },\n created() {\n // Look through the settings and get a reference to the screen\n this.screenId = this.settings\n .find((setting) => setting[0] === '__SCREEN_ID__')\n ?.at(1)\n\n this.widgetName = this.settings\n .find((setting) => setting[0] === 'NAMED_WIDGET')\n ?.at(1)\n\n // Figure out any subsettings that apply\n this.appliedSettings = this.settings\n .map((setting) => {\n const index = parseInt(setting[0])\n // If the first value isn't a number or if there isn't a widgetIndex\n // then it's not a subsetting so just return the setting\n if (isNaN(index) || this.widgetIndex === null) {\n return setting\n }\n // This is our setting so slice off the index and return\n // this effectively promotes the subsetting to a setting\n // on the current widget\n if (this.widgetIndex === index) {\n return setting.slice(1)\n }\n })\n // Remove any settings that we filtered out with null\n .filter((setting) => setting !== undefined)\n },\n beforeUnmount() {\n if (this.widgetName) {\n this.$store.commit(\n 'clearNamedWidget',\n this.toQualifiedWidgetName(this.widgetName),\n )\n }\n },\n methods: {\n applyStyleSetting(setting) {\n switch (setting[0]) {\n case 'TEXTALIGN':\n this.appliedStyle['text-align'] =\n setting[1].toLowerCase() + ' !important'\n this.appliedStyle['--text-align'] = setting[1].toLowerCase()\n break\n case 'PADDING':\n if (!isNaN(Number(setting[1]))) {\n setting[1] += 'px'\n }\n this.appliedStyle['padding'] = setting[1] + ' !important'\n break\n case 'MARGIN':\n if (!isNaN(Number(setting[1]))) {\n setting[1] += 'px'\n }\n this.appliedStyle['margin'] = setting[1] + ' !important'\n break\n case 'BACKCOLOR':\n this.appliedStyle['background-color'] =\n this.getColor(setting.slice(1)) + ' !important'\n break\n case 'TEXTCOLOR':\n this.appliedStyle['color'] =\n this.getColor(setting.slice(1)) + ' !important'\n break\n case 'BORDERCOLOR':\n this.appliedStyle['border-width'] = '1px!important'\n this.appliedStyle['border-style'] = 'solid!important'\n this.appliedStyle['border-color'] =\n this.getColor(setting.slice(1)) + ' !important'\n break\n case 'WIDTH':\n if (!isNaN(Number(setting[1]))) {\n setting[1] += 'px'\n }\n this.appliedStyle['width'] = setting[1] + ' !important'\n break\n case 'HEIGHT':\n if (!isNaN(Number(setting[1]))) {\n setting[1] += 'px'\n }\n this.appliedStyle['height'] = setting[1] + ' !important'\n break\n case 'RAW':\n this.appliedStyle[setting[1].toLowerCase()] =\n setting[2] + ' !important'\n break\n }\n },\n verifyNumParams(keyword, min_num_params, max_num_params, usage = '') {\n let parser = {\n line: this.line,\n lineNumber: this.lineNumber,\n keyword: keyword,\n parameters: this.parameters,\n }\n\n // This syntax works with 0 because each doesn't return any values\n // for a backwards range\n for (let index = 1; index <= min_num_params; index++) {\n // If the parameter is nil (0 based) then we have a problem\n if (this.parameters[index - 1] === undefined) {\n throw new ConfigParserError(\n parser,\n `Not enough parameters for ${keyword}.`,\n usage,\n 'https://docs.openc3.com/docs/configuration',\n )\n }\n }\n // If they pass null for max_params we don't check for a maximum number\n if (max_num_params !== null && this.parameters.length > max_num_params) {\n throw new ConfigParserError(\n parser,\n `Too many parameters for ${keyword}.`,\n usage,\n 'https://docs.openc3.com/docs/configuration',\n )\n }\n },\n setWidth(width, units = 'px', defaultWidth = '120') {\n // Don't set the width if someone has already set it\n // This is important in PacketViewer which uses the value-widget\n // and passes an explicit width setting to use\n let foundSetting = this.appliedSettings.find(\n (setting) => setting[0] === 'WIDTH',\n )\n if (foundSetting) {\n return foundSetting['WIDTH']\n } else {\n if (width) {\n this.appliedSettings.push(['WIDTH', `${width}${units}`])\n return parseInt(width)\n } else {\n this.appliedSettings.push(['WIDTH', `${defaultWidth}${units}`])\n return parseInt(defaultWidth)\n }\n }\n },\n setHeight(height, units = 'px', defaultHeight = '20') {\n // Don't set the height if someone has already set it\n let foundSetting = null\n foundSetting = this.appliedSettings.find(\n (setting) => setting[0] === 'HEIGHT',\n )\n if (foundSetting) {\n return foundSetting['HEIGHT']\n } else {\n if (height) {\n this.appliedSettings.push(['HEIGHT', `${height}${units}`])\n return parseInt(height)\n } else {\n this.appliedSettings.push(['HEIGHT', `${defaultHeight}${units}`])\n return parseInt(defaultHeight)\n }\n }\n },\n // Expects an array, can either be a single color or 3 rgb values\n getColor(setting) {\n switch (setting.length) {\n case 1:\n return setting[0].toLowerCase()\n case 3:\n return `rgb(${setting[0]},${setting[1]},${setting[2]})`\n }\n },\n toQualifiedWidgetName(widgetName) {\n return `${this.screenId}:${widgetName}`\n },\n },\n}\n"],"names":["Widget","WidgetComponents","setting","that","widgetName","target","screen","listeners","entry","newName","oldName","_a","_b","index","keyword","min_num_params","max_num_params","usage","parser","ConfigParserError","width","units","defaultWidth","foundSetting","height","defaultHeight"],"mappings":"yHAyBAA,EAAe,CACb,OAAQ,CAACC,EAAAA,gBAAgB,EACzB,MAAO,CACL,YAAa,CACX,KAAM,OACN,QAAS,IACf,EACI,WAAY,CACV,KAAM,MACN,QAAS,IAAM,CAAA,CACrB,EACI,SAAU,CACR,KAAM,MACN,QAAS,IAAM,CAAA,CACrB,EACI,aAAc,CACZ,KAAM,OACN,QAAS,IAAM,CAAA,CACrB,EACI,eAAgB,CACd,KAAM,OACN,QAAS,OACf,EACI,aAAc,CACZ,KAAM,OACN,QAAS,CAAA,CACf,EACI,KAAM,CACJ,KAAM,OACN,QAAS,EACf,EACI,WAAY,CACV,KAAM,OACN,QAAS,CACf,CACA,EACE,MAAO,CACL,MAAO,CAGL,gBAAiB,CAAA,EAMjB,aAAc,CAAA,EACd,WAAY,KACZ,SAAU,WAChB,CACA,EACE,SAAU,CACR,cAAe,UAAY,CAEzB,YAAK,gBAAgB,QAASC,GAAY,CACxC,KAAK,kBAAkBA,CAAO,CACtC,CAAO,EAIC,KAAK,aAAa,QAAa,QAC/B,KAAK,aAAa,SAAc,SAKhC,KAAK,aAAa,KAAU,YAEvB,KAAK,YAClB,EACI,OAAQ,UAAY,CAGlB,MAAMC,EAAO,KACb,MAAO,CACL,eAAgB,SAAUC,EAAY,CACpC,OAAOD,EAAK,OAAO,QAAQ,YACzBA,EAAK,sBAAsBC,CAAU,CACjD,CACA,EACQ,KAAM,SAAUC,EAAQC,EAAQ,CAC9BH,EAAK,MAAM,OAAQE,EAAQC,CAAM,CAC3C,EACQ,MAAO,SAAUD,EAAQC,EAAQ,CAC/BH,EAAK,MAAM,QAASE,EAAQC,CAAM,CAC5C,EACQ,SAAU,UAAY,CACpBH,EAAK,MAAM,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fns/addMonths.js"],"sourcesContent":["import { constructFrom } from \"./constructFrom.js\";\nimport { toDate } from \"./toDate.js\";\n\n/**\n * The {@link addMonths} function options.\n */\n\n/**\n * @name addMonths\n * @category Month Helpers\n * @summary Add the specified number of months to the given date.\n *\n * @description\n * Add the specified number of months to the given date.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.\n *\n * @param date - The date to be changed\n * @param amount - The amount of months to be added.\n * @param options - The options object\n *\n * @returns The new date with the months added\n *\n * @example\n * // Add 5 months to 1 September 2014:\n * const result = addMonths(new Date(2014, 8, 1), 5)\n * //=> Sun Feb 01 2015 00:00:00\n *\n * // Add one month to 30 January 2023:\n * const result = addMonths(new Date(2023, 0, 30), 1)\n * //=> Tue Feb 28 2023 00:00:00\n */\nexport function addMonths(date, amount, options) {\n const _date = toDate(date, options?.in);\n if (isNaN(amount)) return constructFrom(options?.in || date, NaN);\n if (!amount) {\n // If 0 months, no-op to avoid changing times in the hour before end of DST\n return _date;\n }\n const dayOfMonth = _date.getDate();\n\n // The JS Date object supports date math by accepting out-of-bounds values for\n // month, day, etc. For example, new Date(2020, 0, 0) returns 31 Dec 2019 and\n // new Date(2020, 13, 1) returns 1 Feb 2021. This is *almost* the behavior we\n // want except that dates will wrap around the end of a month, meaning that\n // new Date(2020, 13, 31) will return 3 Mar 2021 not 28 Feb 2021 as desired. So\n // we'll default to the end of the desired month by adding 1 to the desired\n // month and using a date of 0 to back up one day to the end of the desired\n // month.\n const endOfDesiredMonth = constructFrom(options?.in || date, _date.getTime());\n endOfDesiredMonth.setMonth(_date.getMonth() + amount + 1, 0);\n const daysInMonth = endOfDesiredMonth.getDate();\n if (dayOfMonth >= daysInMonth) {\n // If we're already at the end of the month, then this is the correct date\n // and we're done.\n return endOfDesiredMonth;\n } else {\n // Otherwise, we now know that setting the original day-of-month value won't\n // cause an overflow, so set the desired day-of-month. Note that we can't\n // just set the date of `endOfDesiredMonth` because that object may have had\n // its time changed in the unusual case where where a DST transition was on\n // the last day of the month and its local time was in the hour skipped or\n // repeated next to a DST transition. So we use `date` instead which is\n // guaranteed to still have the original time.\n _date.setFullYear(\n endOfDesiredMonth.getFullYear(),\n endOfDesiredMonth.getMonth(),\n dayOfMonth,\n );\n return _date;\n }\n}\n\n// Fallback for modularized imports:\nexport default addMonths;\n"],"names":["addMonths","date","amount","options","_date","toDate","constructFrom","dayOfMonth","endOfDesiredMonth","daysInMonth"],"mappings":";AAiCO,SAASA,EAAUC,GAAMC,GAAQC,GAAS;AAC/C,QAAMC,IAAQC,EAAOJ,GAAME,KAAA,gBAAAA,EAAS,EAAE;AACtC,MAAI,MAAMD,CAAM,EAAG,QAAOI,EAA6BL,GAAM,GAAG;AAChE,MAAI,CAACC;AAEH,WAAOE;AAET,QAAMG,IAAaH,EAAM,
|
|
1
|
+
{"version":3,"file":"addMonths-BtG7uZLJ.js","sources":["../../../node_modules/date-fns/addMonths.js"],"sourcesContent":["import { constructFrom } from \"./constructFrom.js\";\nimport { toDate } from \"./toDate.js\";\n\n/**\n * The {@link addMonths} function options.\n */\n\n/**\n * @name addMonths\n * @category Month Helpers\n * @summary Add the specified number of months to the given date.\n *\n * @description\n * Add the specified number of months to the given date.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.\n *\n * @param date - The date to be changed\n * @param amount - The amount of months to be added.\n * @param options - The options object\n *\n * @returns The new date with the months added\n *\n * @example\n * // Add 5 months to 1 September 2014:\n * const result = addMonths(new Date(2014, 8, 1), 5)\n * //=> Sun Feb 01 2015 00:00:00\n *\n * // Add one month to 30 January 2023:\n * const result = addMonths(new Date(2023, 0, 30), 1)\n * //=> Tue Feb 28 2023 00:00:00\n */\nexport function addMonths(date, amount, options) {\n const _date = toDate(date, options?.in);\n if (isNaN(amount)) return constructFrom(options?.in || date, NaN);\n if (!amount) {\n // If 0 months, no-op to avoid changing times in the hour before end of DST\n return _date;\n }\n const dayOfMonth = _date.getDate();\n\n // The JS Date object supports date math by accepting out-of-bounds values for\n // month, day, etc. For example, new Date(2020, 0, 0) returns 31 Dec 2019 and\n // new Date(2020, 13, 1) returns 1 Feb 2021. This is *almost* the behavior we\n // want except that dates will wrap around the end of a month, meaning that\n // new Date(2020, 13, 31) will return 3 Mar 2021 not 28 Feb 2021 as desired. So\n // we'll default to the end of the desired month by adding 1 to the desired\n // month and using a date of 0 to back up one day to the end of the desired\n // month.\n const endOfDesiredMonth = constructFrom(options?.in || date, _date.getTime());\n endOfDesiredMonth.setMonth(_date.getMonth() + amount + 1, 0);\n const daysInMonth = endOfDesiredMonth.getDate();\n if (dayOfMonth >= daysInMonth) {\n // If we're already at the end of the month, then this is the correct date\n // and we're done.\n return endOfDesiredMonth;\n } else {\n // Otherwise, we now know that setting the original day-of-month value won't\n // cause an overflow, so set the desired day-of-month. Note that we can't\n // just set the date of `endOfDesiredMonth` because that object may have had\n // its time changed in the unusual case where where a DST transition was on\n // the last day of the month and its local time was in the hour skipped or\n // repeated next to a DST transition. So we use `date` instead which is\n // guaranteed to still have the original time.\n _date.setFullYear(\n endOfDesiredMonth.getFullYear(),\n endOfDesiredMonth.getMonth(),\n dayOfMonth,\n );\n return _date;\n }\n}\n\n// Fallback for modularized imports:\nexport default addMonths;\n"],"names":["addMonths","date","amount","options","_date","toDate","constructFrom","dayOfMonth","endOfDesiredMonth","daysInMonth"],"mappings":";AAiCO,SAASA,EAAUC,GAAMC,GAAQC,GAAS;AAC/C,QAAMC,IAAQC,EAAOJ,GAAME,KAAA,gBAAAA,EAAS,EAAE;AACtC,MAAI,MAAMD,CAAM,EAAG,QAAOI,EAA6BL,GAAM,GAAG;AAChE,MAAI,CAACC;AAEH,WAAOE;AAET,QAAMG,IAAaH,EAAM,QAAO,GAU1BI,IAAoBF,EAA6BL,GAAMG,EAAM,QAAO,CAAE;AAC5E,EAAAI,EAAkB,SAASJ,EAAM,SAAQ,IAAKF,IAAS,GAAG,CAAC;AAC3D,QAAMO,IAAcD,EAAkB,QAAO;AAC7C,SAAID,KAAcE,IAGTD,KASPJ,EAAM;AAAA,IACJI,EAAkB,YAAW;AAAA,IAC7BA,EAAkB,SAAQ;AAAA,IAC1BD;AAAA,EACN,GACWH;AAEX;","x_google_ignoreList":[0]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"addMonths-n1tnl3ab.cjs","sources":["../../../node_modules/date-fns/addMonths.js"],"sourcesContent":["import { constructFrom } from \"./constructFrom.js\";\nimport { toDate } from \"./toDate.js\";\n\n/**\n * The {@link addMonths} function options.\n */\n\n/**\n * @name addMonths\n * @category Month Helpers\n * @summary Add the specified number of months to the given date.\n *\n * @description\n * Add the specified number of months to the given date.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.\n *\n * @param date - The date to be changed\n * @param amount - The amount of months to be added.\n * @param options - The options object\n *\n * @returns The new date with the months added\n *\n * @example\n * // Add 5 months to 1 September 2014:\n * const result = addMonths(new Date(2014, 8, 1), 5)\n * //=> Sun Feb 01 2015 00:00:00\n *\n * // Add one month to 30 January 2023:\n * const result = addMonths(new Date(2023, 0, 30), 1)\n * //=> Tue Feb 28 2023 00:00:00\n */\nexport function addMonths(date, amount, options) {\n const _date = toDate(date, options?.in);\n if (isNaN(amount)) return constructFrom(options?.in || date, NaN);\n if (!amount) {\n // If 0 months, no-op to avoid changing times in the hour before end of DST\n return _date;\n }\n const dayOfMonth = _date.getDate();\n\n // The JS Date object supports date math by accepting out-of-bounds values for\n // month, day, etc. For example, new Date(2020, 0, 0) returns 31 Dec 2019 and\n // new Date(2020, 13, 1) returns 1 Feb 2021. This is *almost* the behavior we\n // want except that dates will wrap around the end of a month, meaning that\n // new Date(2020, 13, 31) will return 3 Mar 2021 not 28 Feb 2021 as desired. So\n // we'll default to the end of the desired month by adding 1 to the desired\n // month and using a date of 0 to back up one day to the end of the desired\n // month.\n const endOfDesiredMonth = constructFrom(options?.in || date, _date.getTime());\n endOfDesiredMonth.setMonth(_date.getMonth() + amount + 1, 0);\n const daysInMonth = endOfDesiredMonth.getDate();\n if (dayOfMonth >= daysInMonth) {\n // If we're already at the end of the month, then this is the correct date\n // and we're done.\n return endOfDesiredMonth;\n } else {\n // Otherwise, we now know that setting the original day-of-month value won't\n // cause an overflow, so set the desired day-of-month. Note that we can't\n // just set the date of `endOfDesiredMonth` because that object may have had\n // its time changed in the unusual case where where a DST transition was on\n // the last day of the month and its local time was in the hour skipped or\n // repeated next to a DST transition. So we use `date` instead which is\n // guaranteed to still have the original time.\n _date.setFullYear(\n endOfDesiredMonth.getFullYear(),\n endOfDesiredMonth.getMonth(),\n dayOfMonth,\n );\n return _date;\n }\n}\n\n// Fallback for modularized imports:\nexport default addMonths;\n"],"names":["addMonths","date","amount","options","_date","toDate","constructFrom","dayOfMonth","endOfDesiredMonth","daysInMonth"],"mappings":"sDAiCO,SAASA,EAAUC,EAAMC,EAAQC,EAAS,CAC/C,MAAMC,EAAQC,
|
|
1
|
+
{"version":3,"file":"addMonths-n1tnl3ab.cjs","sources":["../../../node_modules/date-fns/addMonths.js"],"sourcesContent":["import { constructFrom } from \"./constructFrom.js\";\nimport { toDate } from \"./toDate.js\";\n\n/**\n * The {@link addMonths} function options.\n */\n\n/**\n * @name addMonths\n * @category Month Helpers\n * @summary Add the specified number of months to the given date.\n *\n * @description\n * Add the specified number of months to the given date.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.\n *\n * @param date - The date to be changed\n * @param amount - The amount of months to be added.\n * @param options - The options object\n *\n * @returns The new date with the months added\n *\n * @example\n * // Add 5 months to 1 September 2014:\n * const result = addMonths(new Date(2014, 8, 1), 5)\n * //=> Sun Feb 01 2015 00:00:00\n *\n * // Add one month to 30 January 2023:\n * const result = addMonths(new Date(2023, 0, 30), 1)\n * //=> Tue Feb 28 2023 00:00:00\n */\nexport function addMonths(date, amount, options) {\n const _date = toDate(date, options?.in);\n if (isNaN(amount)) return constructFrom(options?.in || date, NaN);\n if (!amount) {\n // If 0 months, no-op to avoid changing times in the hour before end of DST\n return _date;\n }\n const dayOfMonth = _date.getDate();\n\n // The JS Date object supports date math by accepting out-of-bounds values for\n // month, day, etc. For example, new Date(2020, 0, 0) returns 31 Dec 2019 and\n // new Date(2020, 13, 1) returns 1 Feb 2021. This is *almost* the behavior we\n // want except that dates will wrap around the end of a month, meaning that\n // new Date(2020, 13, 31) will return 3 Mar 2021 not 28 Feb 2021 as desired. So\n // we'll default to the end of the desired month by adding 1 to the desired\n // month and using a date of 0 to back up one day to the end of the desired\n // month.\n const endOfDesiredMonth = constructFrom(options?.in || date, _date.getTime());\n endOfDesiredMonth.setMonth(_date.getMonth() + amount + 1, 0);\n const daysInMonth = endOfDesiredMonth.getDate();\n if (dayOfMonth >= daysInMonth) {\n // If we're already at the end of the month, then this is the correct date\n // and we're done.\n return endOfDesiredMonth;\n } else {\n // Otherwise, we now know that setting the original day-of-month value won't\n // cause an overflow, so set the desired day-of-month. Note that we can't\n // just set the date of `endOfDesiredMonth` because that object may have had\n // its time changed in the unusual case where where a DST transition was on\n // the last day of the month and its local time was in the hour skipped or\n // repeated next to a DST transition. So we use `date` instead which is\n // guaranteed to still have the original time.\n _date.setFullYear(\n endOfDesiredMonth.getFullYear(),\n endOfDesiredMonth.getMonth(),\n dayOfMonth,\n );\n return _date;\n }\n}\n\n// Fallback for modularized imports:\nexport default addMonths;\n"],"names":["addMonths","date","amount","options","_date","toDate","constructFrom","dayOfMonth","endOfDesiredMonth","daysInMonth"],"mappings":"sDAiCO,SAASA,EAAUC,EAAMC,EAAQC,EAAS,CAC/C,MAAMC,EAAQC,EAAAA,OAAOJ,EAAME,GAAA,YAAAA,EAAS,EAAE,EACtC,GAAI,MAAMD,CAAM,EAAG,OAAOI,EAAAA,cAA6BL,EAAM,GAAG,EAChE,GAAI,CAACC,EAEH,OAAOE,EAET,MAAMG,EAAaH,EAAM,QAAO,EAU1BI,EAAoBF,EAAAA,cAA6BL,EAAMG,EAAM,QAAO,CAAE,EAC5EI,EAAkB,SAASJ,EAAM,SAAQ,EAAKF,EAAS,EAAG,CAAC,EAC3D,MAAMO,EAAcD,EAAkB,QAAO,EAC7C,OAAID,GAAcE,EAGTD,GASPJ,EAAM,YACJI,EAAkB,YAAW,EAC7BA,EAAkB,SAAQ,EAC1BD,CACN,EACWH,EAEX","x_google_ignoreList":[0]}
|