@openc3/vue-common 6.5.1 → 6.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (183) hide show
  1. package/dist/ArrayWidget-Bb_Ldxq7.cjs.map +1 -1
  2. package/dist/ArrayWidget-Ck6pzAyW.js.map +1 -1
  3. package/dist/ArrayplotWidget-DC41cpv1.cjs.map +1 -1
  4. package/dist/ArrayplotWidget-ntRLh6-B.js.map +1 -1
  5. package/dist/AstroStatus-CILMWL6F.cjs.map +1 -1
  6. package/dist/AstroStatus-CY9VkeTN.js.map +1 -1
  7. package/dist/BarColumn-Bgz2YJ59.js.map +1 -1
  8. package/dist/BarColumn-DtRNuOpa.cjs.map +1 -1
  9. package/dist/BlockWidget-DGH3Zz5p.js.map +1 -1
  10. package/dist/BlockWidget-DOY5lVfa.cjs.map +1 -1
  11. package/dist/ButtonWidget-CFyZXGt6.cjs.map +1 -1
  12. package/dist/ButtonWidget-D_tupiPB.js.map +1 -1
  13. package/dist/CanvasWidget-C6dc7mUw.cjs.map +1 -1
  14. package/dist/CanvasWidget-CzG2jYQb.js.map +1 -1
  15. package/dist/CanvasimageWidget-CNJlzLqo.js.map +1 -1
  16. package/dist/CanvasimageWidget-DjvdDCRS.cjs.map +1 -1
  17. package/dist/CanvasimagevalueWidget-C1fI-ftP.cjs.map +1 -1
  18. package/dist/CanvasimagevalueWidget-DudwwOD6.js.map +1 -1
  19. package/dist/CanvaslabelWidget--6Sjc4E8.cjs.map +1 -1
  20. package/dist/CanvaslabelWidget-BZQp16dH.js.map +1 -1
  21. package/dist/CanvaslabelvalueWidget-CHS36Te9.js.map +1 -1
  22. package/dist/CanvaslabelvalueWidget-DZCxsIKk.cjs.map +1 -1
  23. package/dist/CanvaslineWidget-Bn83Rb10.cjs.map +1 -1
  24. package/dist/CanvaslineWidget-nhKEAGhs.js.map +1 -1
  25. package/dist/CanvaslinevalueWidget-C6x_4Gc9.cjs.map +1 -1
  26. package/dist/CanvaslinevalueWidget-DsyIDkJy.js.map +1 -1
  27. package/dist/CheckbuttonWidget-BvggsGZY.cjs.map +1 -1
  28. package/dist/CheckbuttonWidget-DCam7Jd0.js.map +1 -1
  29. package/dist/ComboboxWidget-BS5WSbrK.cjs.map +1 -1
  30. package/dist/ComboboxWidget-ZX-k-_aK.js.map +1 -1
  31. package/dist/CriticalCmdDialog-7tOK2XQk.cjs.map +1 -1
  32. package/dist/CriticalCmdDialog-Dylpoz_4.js.map +1 -1
  33. package/dist/CustomIcon-Bop2mEnu.cjs.map +1 -1
  34. package/dist/CustomIcon-h5X7369N.js.map +1 -1
  35. package/dist/DateWidget-DuJ5uC2t.js.map +1 -1
  36. package/dist/DateWidget-jejbk2-G.cjs.map +1 -1
  37. package/dist/DetailsDialog-BQE0TraI.js.map +1 -1
  38. package/dist/DetailsDialog-DmKpPDNn.cjs.map +1 -1
  39. package/dist/DynamicWidget-BWEVCUfd.cjs.map +1 -1
  40. package/dist/DynamicWidget-CfMtj7H8.js.map +1 -1
  41. package/dist/EventListDialog-CDcJcxy5.cjs.map +1 -1
  42. package/dist/EventListDialog-CGUFCrJF.js.map +1 -1
  43. package/dist/FormatvalueWidget-DYICPNcx.js.map +1 -1
  44. package/dist/FormatvalueWidget-wu7Q3sXu.cjs.map +1 -1
  45. package/dist/Graph-DCihpnT0.js.map +1 -1
  46. package/dist/Graph-mSqImgca.cjs.map +1 -1
  47. package/dist/GraphWidget-CQjKAMPR.cjs.map +1 -1
  48. package/dist/GraphWidget-cTVq29cY.js.map +1 -1
  49. package/dist/HorizontalWidget--AkRJPlL.cjs.map +1 -1
  50. package/dist/HorizontalWidget-v1pfd94Z.js.map +1 -1
  51. package/dist/HorizontalboxWidget-B06-c_n4.js.map +1 -1
  52. package/dist/HorizontalboxWidget-synL-Bar.cjs.map +1 -1
  53. package/dist/IframeWidget-ByhwW9yG.cjs.map +1 -1
  54. package/dist/IframeWidget-n8lNXrpt.js.map +1 -1
  55. package/dist/ImageLoader-CfcErydq.js.map +1 -1
  56. package/dist/ImageLoader-DBWVFtNu.cjs.map +1 -1
  57. package/dist/ImageviewerWidget-D4mU6wLX.cjs.map +1 -1
  58. package/dist/ImageviewerWidget-DE8fj06Z.js.map +1 -1
  59. package/dist/InterfacesTab-BF-Wx5gk.js.map +1 -1
  60. package/dist/InterfacesTab-DTAAIx-y.cjs.map +1 -1
  61. package/dist/LabelWidget-DQZqRxKF.cjs.map +1 -1
  62. package/dist/LabelWidget-iUIJLhdA.js.map +1 -1
  63. package/dist/LabelledWidget-9HWChRmv.cjs.map +1 -1
  64. package/dist/LabelledWidget-KI6fMlsr.js.map +1 -1
  65. package/dist/LabelprogressbarWidget-C2lzmqBH.js.map +1 -1
  66. package/dist/LabelprogressbarWidget-DwzTP73u.cjs.map +1 -1
  67. package/dist/LabelsparklineWidget-Ci6GGm29.js.map +1 -1
  68. package/dist/LabelsparklineWidget-DMjBshq8.cjs.map +1 -1
  69. package/dist/LabelvalueWidget-mAb0eLA8.cjs.map +1 -1
  70. package/dist/LabelvalueWidget-oiW-JDw6.js.map +1 -1
  71. package/dist/LabelvaluedescWidget-CZJ0kZN-.cjs.map +1 -1
  72. package/dist/LabelvaluedescWidget-Ck0AJ9g0.js.map +1 -1
  73. package/dist/LabelvaluelimitsbarWidget-DjBqYxRr.cjs.map +1 -1
  74. package/dist/LabelvaluelimitsbarWidget-aaVLaejn.js.map +1 -1
  75. package/dist/LabelvaluerangebarWidget-Bs9locqu.js.map +1 -1
  76. package/dist/LabelvaluerangebarWidget-Ci-n_hxk.cjs.map +1 -1
  77. package/dist/LedWidget-BN8IgAxJ.js.map +1 -1
  78. package/dist/LedWidget-BUTbyEBi.cjs.map +1 -1
  79. package/dist/LimitsbarWidget-BxxoKTjp.js.map +1 -1
  80. package/dist/LimitsbarWidget-Co5GAHro.cjs.map +1 -1
  81. package/dist/LimitscolorWidget-BpTcgqRC.cjs.map +1 -1
  82. package/dist/LimitscolorWidget-DFDwf4In.js.map +1 -1
  83. package/dist/LimitscolumnWidget-CdBh2mJu.js.map +1 -1
  84. package/dist/LimitscolumnWidget-CqJJKDzz.cjs.map +1 -1
  85. package/dist/MatrixbycolumnsWidget-DCwxPjwS.js.map +1 -1
  86. package/dist/MatrixbycolumnsWidget-DxRhvPGv.cjs.map +1 -1
  87. package/dist/MicroservicesTab-B-SdMwek.js.map +1 -1
  88. package/dist/MicroservicesTab-DGaTcj-y.cjs.map +1 -1
  89. package/dist/Openc3Screen-BZN0Wtrm.js.map +1 -1
  90. package/dist/Openc3Screen-dtpBWZdA.cjs.map +1 -1
  91. package/dist/OutputDialog-CcSp-Uqo.js.map +1 -1
  92. package/dist/OutputDialog-CxKDhrg6.cjs.map +1 -1
  93. package/dist/PackagesTab-B4V2n4io.cjs.map +1 -1
  94. package/dist/PackagesTab-Dx25CfF0.js.map +1 -1
  95. package/dist/PluginsTab-DHO1tK2S.cjs.map +1 -1
  96. package/dist/PluginsTab-lHDR5v6S.js.map +1 -1
  97. package/dist/ProgressbarWidget-C0AkbX_o.cjs.map +1 -1
  98. package/dist/ProgressbarWidget-Cdu5nJC3.js.map +1 -1
  99. package/dist/RadiobuttonWidget-CZZGbvdG.js.map +1 -1
  100. package/dist/RadiobuttonWidget-DslmJO31.cjs.map +1 -1
  101. package/dist/RadiogroupWidget-CQN3v8Ip.js.map +1 -1
  102. package/dist/RadiogroupWidget-DKgBAR9E.cjs.map +1 -1
  103. package/dist/RangebarWidget-Tq80I5zA.cjs.map +1 -1
  104. package/dist/RangebarWidget-dZN9WjoZ.js.map +1 -1
  105. package/dist/RedisTab-CdiSo-CO.cjs.map +1 -1
  106. package/dist/RedisTab-CkSwEwTZ.js.map +1 -1
  107. package/dist/RollupWidget-CHdZAUCb.cjs.map +1 -1
  108. package/dist/RollupWidget-i9DnNJl6.js.map +1 -1
  109. package/dist/RoutersTab-Cp8wM-mS.cjs.map +1 -1
  110. package/dist/RoutersTab-DiYEI1Nq.js.map +1 -1
  111. package/dist/ScriptChooser-BnTP6ucF.cjs.map +1 -1
  112. package/dist/ScriptChooser-Cua8ObYv.js.map +1 -1
  113. package/dist/ScrollwindowWidget-54GU96Ve.js.map +1 -1
  114. package/dist/ScrollwindowWidget-C5_X-KwQ.cjs.map +1 -1
  115. package/dist/SecretsTab-DY16usGc.cjs.map +1 -1
  116. package/dist/SecretsTab-uWRVI1EE.js.map +1 -1
  117. package/dist/SettingsTab-BVnr4OtU.js.map +1 -1
  118. package/dist/SettingsTab-BkwaDhYo.cjs.map +1 -1
  119. package/dist/SignalWidget-B_kA9eCJ.js.map +1 -1
  120. package/dist/SignalWidget-COL8kXSJ.cjs.map +1 -1
  121. package/dist/SimpleTextDialog-BWUqPlTv.cjs.map +1 -1
  122. package/dist/SimpleTextDialog-BulqUrdH.js.map +1 -1
  123. package/dist/SpacerWidget-D_Ya_b1j.cjs.map +1 -1
  124. package/dist/SpacerWidget-XoMPHak8.js.map +1 -1
  125. package/dist/SparklineWidget-CRzXTS5z.cjs.map +1 -1
  126. package/dist/SparklineWidget-DQNsvEj9.js.map +1 -1
  127. package/dist/TabbookWidget-Bh-GDBXg.cjs.map +1 -1
  128. package/dist/TabbookWidget-_HVA72t5.js.map +1 -1
  129. package/dist/TargetsTab-BfoRYnTP.js.map +1 -1
  130. package/dist/TargetsTab-CGE-jQAz.cjs.map +1 -1
  131. package/dist/TextBoxDialog-C60jmnyN.js.map +1 -1
  132. package/dist/TextBoxDialog-DWt30tB8.cjs.map +1 -1
  133. package/dist/TextboxWidget-0JXn4bMH.js.map +1 -1
  134. package/dist/TextboxWidget-uDptDK_z.cjs.map +1 -1
  135. package/dist/TextfieldWidget-B0FCskrL.cjs.map +1 -1
  136. package/dist/TextfieldWidget-BXr9MkVW.js.map +1 -1
  137. package/dist/TimeWidget-C67uwMGH.js.map +1 -1
  138. package/dist/TimeWidget-q5tUvHC6.cjs.map +1 -1
  139. package/dist/TitleWidget-REsd7MqR.cjs.map +1 -1
  140. package/dist/TitleWidget-t_YLgUMB.js.map +1 -1
  141. package/dist/ToolsTab-CGztf9_j.cjs.map +1 -1
  142. package/dist/ToolsTab-DKYeIlXu.js.map +1 -1
  143. package/dist/TopBar-B0UcAtIW.cjs.map +1 -1
  144. package/dist/TopBar-BrCfgCxc.js.map +1 -1
  145. package/dist/UpgradeToEnterpriseDialog-CGyR2v7U.js.map +1 -1
  146. package/dist/UpgradeToEnterpriseDialog-DJ3oth3I.cjs.map +1 -1
  147. package/dist/UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_2c757408_lang-C_HFbtFB.cjs.map +1 -1
  148. package/dist/UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_2c757408_lang-NIAkCgU6.js.map +1 -1
  149. package/dist/VWidget-BMxLXtSO.cjs.map +1 -1
  150. package/dist/VWidget-j2GIGGSX.js.map +1 -1
  151. package/dist/ValueWidget-3jNtnh5i.js.map +1 -1
  152. package/dist/ValueWidget-CjZeSiPQ.cjs.map +1 -1
  153. package/dist/ValuerangebarWidget-CpZYmUl_.cjs.map +1 -1
  154. package/dist/ValuerangebarWidget-DnZrho8S.js.map +1 -1
  155. package/dist/VerticalWidget-CcJMMaK_.cjs.map +1 -1
  156. package/dist/VerticalWidget-DJvoxqLE.js.map +1 -1
  157. package/dist/VerticalboxWidget-CJR_mOLa.cjs.map +1 -1
  158. package/dist/VerticalboxWidget-CYYyLBoO.js.map +1 -1
  159. package/dist/Widget-Bn_S-zBo.js.map +1 -1
  160. package/dist/Widget-O7wkmc39.cjs.map +1 -1
  161. package/dist/components.cjs.map +1 -1
  162. package/dist/components.js.map +1 -1
  163. package/dist/fileIcon-BduOQcTc.cjs.map +1 -1
  164. package/dist/fileIcon-DqRHb1_Z.js.map +1 -1
  165. package/dist/format-B22VpiOS.cjs.map +1 -1
  166. package/dist/format-CVeawcIv.js.map +1 -1
  167. package/dist/icons.cjs.map +1 -1
  168. package/dist/icons.js.map +1 -1
  169. package/dist/index-DcL65Mqb.cjs.map +1 -1
  170. package/dist/index-qCq0L4jN.js.map +1 -1
  171. package/dist/parse-DnkEsW-3.js.map +1 -1
  172. package/dist/parse-DwfgQboe.cjs.map +1 -1
  173. package/dist/plugins.cjs.map +1 -1
  174. package/dist/plugins.js.map +1 -1
  175. package/dist/timeFilters-BKnCM4rv.js.map +1 -1
  176. package/dist/timeFilters-CJFxfjqN.cjs.map +1 -1
  177. package/dist/tools/admin.cjs.map +1 -1
  178. package/dist/tools/admin.js.map +1 -1
  179. package/dist/tools/base.cjs.map +1 -1
  180. package/dist/tools/base.js.map +1 -1
  181. package/dist/tools/scriptrunner.cjs.map +1 -1
  182. package/dist/tools/scriptrunner.js.map +1 -1
  183. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"CanvasWidget-CzG2jYQb.js","sources":["../src/widgets/CanvasWidget.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 <svg id=\"canvas\" :width=\"width\" :height=\"height\">\n <component\n v-for=\"(widget, index) in widgets\"\n v-bind=\"listeners\"\n :key=\"index\"\n :is=\"widget.type\"\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 </svg>\n</template>\n\n<script>\nimport Layout from './Layout'\nexport default {\n mixins: [Layout],\n computed: {\n width() {\n return this.parameters[0] + 'px'\n },\n height() {\n return this.parameters[1] + 'px'\n },\n },\n}\n</script>\n\n<style lang=\"scss\" scoped>\nsvg {\n background-color: white;\n}\n</style>\n"],"names":["_sfc_main","Layout","_hoisted_1","_createElementBlock","$options","_openBlock","_Fragment","_renderList","_ctx","widget","index","_createBlock","_resolveDynamicComponent","_mergeProps"],"mappings":";;;AA4CA,MAAKA,IAAU;AAAA,EACb,QAAQ,CAACC,CAAM;AAAA,EACf,UAAU;AAAA,IACR,QAAQ;AACN,aAAO,KAAK,WAAW,CAAC,IAAI;AAAA;IAE9B,SAAS;AACP,aAAO,KAAK,WAAW,CAAC,IAAI;AAAA;;AAGlC,GAtDAC,IAAA,CAAA,SAAA,QAAA;;cAuBEC,EAgBM,OAAA;AAAA,IAhBD,IAAG;AAAA,IAAU,OAAOC,EAAA;AAAA,IAAQ,QAAQA,EAAA;AAAA;KACvCC,EAAA,EAAA,GAAAF,EAcEG,SAtCNC,EAyBgCC,EAAA,SAzBhC,CAyBcC,GAAQC,YADlBC,EAxBJC,EA4BWH,EAAO,IAAI,GAJlBI,EAcE,EAtCN,SAAA,MA0BcL,EAAA,WAAS;AAAA,MAChB,KAAKE;AAAA,MAEL,QAAQD,EAAO;AAAA,MACf,YAAYA,EAAO;AAAA,MACnB,UAAUA,EAAO;AAAA,MACjB,iBAAeD,EAAA;AAAA,MACf,oBAAkBA,EAAA;AAAA,MAClB,SAASC,EAAO;AAAA,MAChB,MAAMA,EAAO;AAAA,MACb,MAAMA,EAAO;AAAA,MACb,eAAaA,EAAO;AAAA;EArC3B,GAAA,GAAAP,CAAA;;;"}
1
+ {"version":3,"file":"CanvasWidget-CzG2jYQb.js","sources":["../src/widgets/CanvasWidget.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 <svg id=\"canvas\" :width=\"width\" :height=\"height\">\n <component\n v-for=\"(widget, index) in widgets\"\n v-bind=\"listeners\"\n :key=\"index\"\n :is=\"widget.type\"\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 </svg>\n</template>\n\n<script>\nimport Layout from './Layout'\nexport default {\n mixins: [Layout],\n computed: {\n width() {\n return this.parameters[0] + 'px'\n },\n height() {\n return this.parameters[1] + 'px'\n },\n },\n}\n</script>\n\n<style lang=\"scss\" scoped>\nsvg {\n background-color: white;\n}\n</style>\n"],"names":["_sfc_main","Layout","_hoisted_1","_createElementBlock","$options","_openBlock","_Fragment","_renderList","_ctx","widget","index","_createBlock","_resolveDynamicComponent","_mergeProps"],"mappings":";;;AA4CA,MAAKA,IAAU;AAAA,EACb,QAAQ,CAACC,CAAM;AAAA,EACf,UAAU;AAAA,IACR,QAAQ;AACN,aAAO,KAAK,WAAW,CAAC,IAAI;AAAA,IAC9B;AAAA,IACA,SAAS;AACP,aAAO,KAAK,WAAW,CAAC,IAAI;AAAA,IAC9B;AAAA;AAEJ,GAtDAC,IAAA,CAAA,SAAA,QAAA;;cAuBEC,EAgBM,OAAA;AAAA,IAhBD,IAAG;AAAA,IAAU,OAAOC,EAAA;AAAA,IAAQ,QAAQA,EAAA;AAAA;KACvCC,EAAA,EAAA,GAAAF,EAcEG,SAtCNC,EAyBgCC,EAAA,SAzBhC,CAyBcC,GAAQC,YADlBC,EAxBJC,EA4BWH,EAAO,IAAI,GAJlBI,EAcE,EAtCN,SAAA,MA0BcL,EAAA,WAAS;AAAA,MAChB,KAAKE;AAAA,MAEL,QAAQD,EAAO;AAAA,MACf,YAAYA,EAAO;AAAA,MACnB,UAAUA,EAAO;AAAA,MACjB,iBAAeD,EAAA;AAAA,MACf,oBAAkBA,EAAA;AAAA,MAClB,SAASC,EAAO;AAAA,MAChB,MAAMA,EAAO;AAAA,MACb,MAAMA,EAAO;AAAA,MACb,eAAaA,EAAO;AAAA;EArC3B,GAAA,GAAAP,CAAA;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"CanvasimageWidget-CNJlzLqo.js","sources":["../src/widgets/CanvasimageWidget.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 <image\n v-if=\"imageUrl\"\n :href=\"imageUrl\"\n :x=\"parameters[1]\"\n :y=\"parameters[2]\"\n :width=\"width\"\n :height=\"height\"\n :style=\"pointerStyle\"\n @click=\"clickHandler\"\n />\n</template>\n\n<script>\nimport Widget from './Widget'\nimport ImageLoader from './ImageLoader'\n\nexport default {\n mixins: [Widget, ImageLoader],\n data: function () {\n return {\n imageUrl: null,\n screenTarget: null,\n screenName: null,\n }\n },\n computed: {\n width: function () {\n if (this.parameters[3]) {\n return `${this.parameters[3]}px`\n }\n return '100%'\n },\n height: function () {\n if (this.parameters[4]) {\n return `${this.parameters[4]}px`\n }\n return '100%'\n },\n pointerStyle() {\n if (this.screenTarget && this.screenName) {\n return {\n cursor: 'pointer',\n }\n } else {\n return {\n cursor: 'default',\n }\n }\n },\n },\n created: function () {\n // Look through the settings and get a reference to the screen\n this.appliedSettings.forEach((setting) => {\n if (setting[0] === 'SCREEN') {\n this.screenTarget = setting[1]\n this.screenName = setting[2]\n }\n })\n\n if (!this.parameters[0].startsWith('http')) {\n this.getPresignedUrl(this.parameters[0]).then((response) => {\n this.imageUrl = response\n })\n } else {\n this.imageUrl = this.parameters[0]\n }\n },\n methods: {\n clickHandler() {\n if (this.screenTarget && this.screenName) {\n this.$emit('open', this.screenTarget, this.screenName)\n }\n },\n },\n}\n</script>\n"],"names":["_sfc_main","Widget","ImageLoader","setting","response","_hoisted_1","_ctx","_createElementBlock","$options","_normalizeStyle","args","_createCommentVNode"],"mappings":";;;;AAuCA,MAAKA,IAAU;AAAA,EACb,QAAQ,CAACC,GAAQC,CAAW;AAAA,EAC5B,MAAM,WAAY;AAChB,WAAO;AAAA,MACL,UAAU;AAAA,MACV,cAAc;AAAA,MACd,YAAY;AAAA,IACd;AAAA;EAEF,UAAU;AAAA,IACR,OAAO,WAAY;AACjB,aAAI,KAAK,WAAW,CAAC,IACZ,GAAG,KAAK,WAAW,CAAC,CAAC,OAEvB;AAAA;IAET,QAAQ,WAAY;AAClB,aAAI,KAAK,WAAW,CAAC,IACZ,GAAG,KAAK,WAAW,CAAC,CAAC,OAEvB;AAAA;IAET,eAAe;AACb,aAAI,KAAK,gBAAgB,KAAK,aACrB;AAAA,QACL,QAAQ;AAAA,MACV,IAEO;AAAA,QACL,QAAQ;AAAA,MACV;AAAA;;EAIN,SAAS,WAAY;AAEnB,SAAK,gBAAgB,QAAQ,CAACC,MAAY;AACxC,MAAIA,EAAQ,CAAC,MAAM,aACjB,KAAK,eAAeA,EAAQ,CAAC,GAC7B,KAAK,aAAaA,EAAQ,CAAC;AAAA,KAE9B,GAEI,KAAK,WAAW,CAAC,EAAE,WAAW,MAAM,IAKvC,KAAK,WAAW,KAAK,WAAW,CAAC,IAJjC,KAAK,gBAAgB,KAAK,WAAW,CAAC,CAAC,EAAE,KAAK,CAACC,MAAa;AAC1D,WAAK,WAAWA;AAAA,KACjB;AAAA;EAKL,SAAS;AAAA,IACP,eAAe;AACb,MAAI,KAAK,gBAAgB,KAAK,cAC5B,KAAK,MAAM,QAAQ,KAAK,cAAc,KAAK,UAAU;AAAA;;AAI7D,GAjGAC,IAAA,CAAA,QAAA,KAAA,KAAA,SAAA,QAAA;;SAwBUC,EAAA,iBADRC,EASE,SAAA;AAAA,IAhCJ,KAAA;AAAA,IAyBK,MAAMD,EAAA;AAAA,IACN,GAAGA,EAAA,WAAU,CAAA;AAAA,IACb,GAAGA,EAAA,WAAU,CAAA;AAAA,IACb,OAAOE,EAAA;AAAA,IACP,QAAQA,EAAA;AAAA,IACR,OA9BLC,EA8BYD,EAAA,YAAY;AAAA,IACnB,mCAAOA,EAAA,gBAAAA,EAAA,aAAA,GAAAE,CAAA;AAAA,EA/BZ,GAAA,MAAA,IAAAL,CAAA,KAAAM,EAAA,IAAA,EAAA;;;"}
1
+ {"version":3,"file":"CanvasimageWidget-CNJlzLqo.js","sources":["../src/widgets/CanvasimageWidget.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 <image\n v-if=\"imageUrl\"\n :href=\"imageUrl\"\n :x=\"parameters[1]\"\n :y=\"parameters[2]\"\n :width=\"width\"\n :height=\"height\"\n :style=\"pointerStyle\"\n @click=\"clickHandler\"\n />\n</template>\n\n<script>\nimport Widget from './Widget'\nimport ImageLoader from './ImageLoader'\n\nexport default {\n mixins: [Widget, ImageLoader],\n data: function () {\n return {\n imageUrl: null,\n screenTarget: null,\n screenName: null,\n }\n },\n computed: {\n width: function () {\n if (this.parameters[3]) {\n return `${this.parameters[3]}px`\n }\n return '100%'\n },\n height: function () {\n if (this.parameters[4]) {\n return `${this.parameters[4]}px`\n }\n return '100%'\n },\n pointerStyle() {\n if (this.screenTarget && this.screenName) {\n return {\n cursor: 'pointer',\n }\n } else {\n return {\n cursor: 'default',\n }\n }\n },\n },\n created: function () {\n // Look through the settings and get a reference to the screen\n this.appliedSettings.forEach((setting) => {\n if (setting[0] === 'SCREEN') {\n this.screenTarget = setting[1]\n this.screenName = setting[2]\n }\n })\n\n if (!this.parameters[0].startsWith('http')) {\n this.getPresignedUrl(this.parameters[0]).then((response) => {\n this.imageUrl = response\n })\n } else {\n this.imageUrl = this.parameters[0]\n }\n },\n methods: {\n clickHandler() {\n if (this.screenTarget && this.screenName) {\n this.$emit('open', this.screenTarget, this.screenName)\n }\n },\n },\n}\n</script>\n"],"names":["_sfc_main","Widget","ImageLoader","setting","response","_hoisted_1","_ctx","_createElementBlock","$options","_normalizeStyle","args","_createCommentVNode"],"mappings":";;;;AAuCA,MAAKA,IAAU;AAAA,EACb,QAAQ,CAACC,GAAQC,CAAW;AAAA,EAC5B,MAAM,WAAY;AAChB,WAAO;AAAA,MACL,UAAU;AAAA,MACV,cAAc;AAAA,MACd,YAAY;AAAA,IACd;AAAA,EACF;AAAA,EACA,UAAU;AAAA,IACR,OAAO,WAAY;AACjB,aAAI,KAAK,WAAW,CAAC,I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;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"CanvasimageWidget-DjvdDCRS.cjs","sources":["../src/widgets/CanvasimageWidget.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 <image\n v-if=\"imageUrl\"\n :href=\"imageUrl\"\n :x=\"parameters[1]\"\n :y=\"parameters[2]\"\n :width=\"width\"\n :height=\"height\"\n :style=\"pointerStyle\"\n @click=\"clickHandler\"\n />\n</template>\n\n<script>\nimport Widget from './Widget'\nimport ImageLoader from './ImageLoader'\n\nexport default {\n mixins: [Widget, ImageLoader],\n data: function () {\n return {\n imageUrl: null,\n screenTarget: null,\n screenName: null,\n }\n },\n computed: {\n width: function () {\n if (this.parameters[3]) {\n return `${this.parameters[3]}px`\n }\n return '100%'\n },\n height: function () {\n if (this.parameters[4]) {\n return `${this.parameters[4]}px`\n }\n return '100%'\n },\n pointerStyle() {\n if (this.screenTarget && this.screenName) {\n return {\n cursor: 'pointer',\n }\n } else {\n return {\n cursor: 'default',\n }\n }\n },\n },\n created: function () {\n // Look through the settings and get a reference to the screen\n this.appliedSettings.forEach((setting) => {\n if (setting[0] === 'SCREEN') {\n this.screenTarget = setting[1]\n this.screenName = setting[2]\n }\n })\n\n if (!this.parameters[0].startsWith('http')) {\n this.getPresignedUrl(this.parameters[0]).then((response) => {\n this.imageUrl = response\n })\n } else {\n this.imageUrl = this.parameters[0]\n }\n },\n methods: {\n clickHandler() {\n if (this.screenTarget && this.screenName) {\n this.$emit('open', this.screenTarget, this.screenName)\n }\n },\n },\n}\n</script>\n"],"names":["_sfc_main","Widget","ImageLoader","setting","response","_hoisted_1","_ctx","_createElementBlock","$options","_normalizeStyle","args","_createCommentVNode"],"mappings":"yNAuCKA,EAAU,CACb,OAAQ,CAACC,EAAAA,OAAQC,aAAW,EAC5B,KAAM,UAAY,CAChB,MAAO,CACL,SAAU,KACV,aAAc,KACd,WAAY,IACd,GAEF,SAAU,CACR,MAAO,UAAY,CACjB,OAAI,KAAK,WAAW,CAAC,EACZ,GAAG,KAAK,WAAW,CAAC,CAAC,KAEvB,QAET,OAAQ,UAAY,CAClB,OAAI,KAAK,WAAW,CAAC,EACZ,GAAG,KAAK,WAAW,CAAC,CAAC,KAEvB,QAET,cAAe,CACb,OAAI,KAAK,cAAgB,KAAK,WACrB,CACL,OAAQ,SACV,EAEO,CACL,OAAQ,SACV,IAIN,QAAS,UAAY,CAEnB,KAAK,gBAAgB,QAASC,GAAY,CACpCA,EAAQ,CAAC,IAAM,WACjB,KAAK,aAAeA,EAAQ,CAAC,EAC7B,KAAK,WAAaA,EAAQ,CAAC,GAE9B,EAEI,KAAK,WAAW,CAAC,EAAE,WAAW,MAAM,EAKvC,KAAK,SAAW,KAAK,WAAW,CAAC,EAJjC,KAAK,gBAAgB,KAAK,WAAW,CAAC,CAAC,EAAE,KAAMC,GAAa,CAC1D,KAAK,SAAWA,EACjB,GAKL,QAAS,CACP,cAAe,CACT,KAAK,cAAgB,KAAK,YAC5B,KAAK,MAAM,OAAQ,KAAK,aAAc,KAAK,UAAU,GAI7D,EAjGAC,EAAA,CAAA,OAAA,IAAA,IAAA,QAAA,QAAA,iCAwBUC,EAAA,wBADRC,EAAAA,mBASE,QAAA,CAhCJ,IAAA,EAyBK,KAAMD,EAAA,SACN,EAAGA,EAAA,WAAU,CAAA,EACb,EAAGA,EAAA,WAAU,CAAA,EACb,MAAOE,EAAA,MACP,OAAQA,EAAA,OACR,MA9BLC,EAAAA,eA8BYD,EAAA,YAAY,EACnB,4BAAOA,EAAA,cAAAA,EAAA,aAAA,GAAAE,CAAA,EA/BZ,EAAA,KAAA,GAAAL,CAAA,GAAAM,EAAAA,mBAAA,GAAA,EAAA"}
1
+ {"version":3,"file":"CanvasimageWidget-DjvdDCRS.cjs","sources":["../src/widgets/CanvasimageWidget.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 <image\n v-if=\"imageUrl\"\n :href=\"imageUrl\"\n :x=\"parameters[1]\"\n :y=\"parameters[2]\"\n :width=\"width\"\n :height=\"height\"\n :style=\"pointerStyle\"\n @click=\"clickHandler\"\n />\n</template>\n\n<script>\nimport Widget from './Widget'\nimport ImageLoader from './ImageLoader'\n\nexport default {\n mixins: [Widget, ImageLoader],\n data: function () {\n return {\n imageUrl: null,\n screenTarget: null,\n screenName: null,\n }\n },\n computed: {\n width: function () {\n if (this.parameters[3]) {\n return `${this.parameters[3]}px`\n }\n return '100%'\n },\n height: function () {\n if (this.parameters[4]) {\n return `${this.parameters[4]}px`\n }\n return '100%'\n },\n pointerStyle() {\n if (this.screenTarget && this.screenName) {\n return {\n cursor: 'pointer',\n }\n } else {\n return {\n cursor: 'default',\n }\n }\n },\n },\n created: function () {\n // Look through the settings and get a reference to the screen\n this.appliedSettings.forEach((setting) => {\n if (setting[0] === 'SCREEN') {\n this.screenTarget = setting[1]\n this.screenName = setting[2]\n }\n })\n\n if (!this.parameters[0].startsWith('http')) {\n this.getPresignedUrl(this.parameters[0]).then((response) => {\n this.imageUrl = response\n })\n } else {\n this.imageUrl = this.parameters[0]\n }\n },\n methods: {\n clickHandler() {\n if (this.screenTarget && this.screenName) {\n this.$emit('open', this.screenTarget, this.screenName)\n }\n },\n },\n}\n</script>\n"],"names":["_sfc_main","Widget","ImageLoader","setting","response","_hoisted_1","_ctx","_createElementBlock","$options","_normalizeStyle","args","_createCommentVNode"],"mappings":"yNAuCKA,EAAU,CACb,OAAQ,CAACC,EAAAA,OAAQC,aAAW,EAC5B,KAAM,UAAY,CAChB,MAAO,CACL,SAAU,KACV,aAAc,KACd,WAAY,IACd,CACF,EACA,SAAU,CACR,MAAO,UAAY,CACjB,OAAI,KAAK,WAAW,CAAC,EACZ,GAAG,KAAK,WAAW,CAAC,CAAC,KAEvB,MACT,EACA,OAAQ,UAAY,CAClB,OAAI,KAAK,WAAW,CAAC,EACZ,GAAG,KAAK,WAAW,CAAC,CAAC,KAEvB,MACT,EACA,cAAe,CACb,OAAI,KAAK,cAAgB,KAAK,WACrB,CACL,OAAQ,SACV,EAEO,CACL,OAAQ,SACV,CAEJ,GAEF,QAAS,UAAY,CAEnB,KAAK,gBAAgB,QAASC,GAAY,CACpCA,EAAQ,CAAC,IAAM,WACjB,KAAK,aAAeA,EAAQ,CAAC,EAC7B,KAAK,WAAaA,EAAQ,CAAC,EAE/B,CAAC,EAEI,KAAK,WAAW,CAAC,EAAE,WAAW,MAAM,EAKvC,KAAK,SAAW,KAAK,WAAW,CAAC,EAJjC,KAAK,gBAAgB,KAAK,WAAW,CAAC,CAAC,EAAE,KAAMC,GAAa,CAC1D,KAAK,SAAWA,CAClB,CAAC,CAIL,EACA,QAAS,CACP,cAAe,CACT,KAAK,cAAgB,KAAK,YAC5B,KAAK,MAAM,OAAQ,KAAK,aAAc,KAAK,UAAU,CAEzD,EAEJ,EAjGAC,EAAA,CAAA,OAAA,IAAA,IAAA,QAAA,QAAA,iCAwBUC,EAAA,wBADRC,EAAAA,mBASE,QAAA,CAhCJ,IAAA,EAyBK,KAAMD,EAAA,SACN,EAAGA,EAAA,WAAU,CAAA,EACb,EAAGA,EAAA,WAAU,CAAA,EACb,MAAOE,EAAA,MACP,OAAQA,EAAA,OACR,MA9BLC,EAAAA,eA8BYD,EAAA,YAAY,EACnB,4BAAOA,EAAA,cAAAA,EAAA,aAAA,GAAAE,CAAA,EA/BZ,EAAA,KAAA,GAAAL,CAAA,GAAAM,EAAAA,mBAAA,GAAA,EAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"CanvasimagevalueWidget-C1fI-ftP.cjs","sources":["../src/widgets/CanvasimagevalueWidget.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 <g>\n <image\n v-for=\"image in images\"\n :key=\"image.value\"\n v-show=\"image.value == selectedValue\"\n :href=\"image.url\"\n :x=\"image.x\"\n :y=\"image.y\"\n :width=\"image.width\"\n :height=\"image.height\"\n :style=\"pointerStyle\"\n @click=\"clickHandler\"\n />\n <image\n v-if=\"defaultImage\"\n v-show=\"showDefault\"\n :href=\"defaultImage.url\"\n :x=\"defaultImage.x\"\n :y=\"defaultImage.y\"\n :width=\"defaultImage.width\"\n :height=\"defaultImage.height\"\n :style=\"pointerStyle\"\n @click=\"clickHandler\"\n />\n </g>\n</template>\n\n<script>\nimport Widget from './Widget'\nimport ImageLoader from './ImageLoader'\n\nexport default {\n mixins: [Widget, ImageLoader],\n data: function () {\n return {\n images: [],\n defaultImage: null,\n screenTarget: null,\n screenName: null,\n }\n },\n computed: {\n selectedValue: function () {\n if (this.screenValues[this.valueId]) {\n return this.screenValues[this.valueId][0]\n }\n return null\n },\n showDefault: function () {\n return !this.images.some((image) => image.value == this.selectedValue)\n },\n pointerStyle() {\n if (this.screenTarget && this.screenName) {\n return {\n cursor: 'pointer',\n }\n } else {\n return {\n cursor: 'default',\n }\n }\n },\n },\n created: function () {\n // Look through the settings and get a reference to the screen\n this.appliedSettings.forEach((setting) => {\n if (setting[0] === 'SCREEN') {\n this.screenTarget = setting[1]\n this.screenName = setting[2]\n }\n })\n\n this.valueId = `${this.parameters[0]}__${this.parameters[1]}__${\n this.parameters[2]\n }__${this.parameters[3] || 'RAW'}`\n this.$emit('addItem', this.valueId)\n\n // Set value images data\n const promises = this.appliedSettings\n .filter((setting) => setting[0] === 'IMAGE')\n .map(async (setting) => {\n let url = setting[2]\n if (!url.startsWith('http')) {\n url = await this.getPresignedUrl(url)\n }\n\n return {\n url,\n value: setting[1],\n x: setting[3],\n y: setting[4],\n width: setting[5],\n height: setting[6],\n }\n })\n Promise.all(promises).then((images) => {\n this.images = images\n })\n\n // Set default image data\n if (this.parameters[4]) {\n const defaultImage = {\n x: this.parameters[5],\n y: this.parameters[6],\n width: this.parameters[7] ? `${this.parameters[7]}px` : '100%',\n height: this.parameters[8] ? `${this.parameters[8]}px` : '100%',\n }\n\n let url = this.parameters[4]\n if (!url.startsWith('http')) {\n this.getPresignedUrl(url).then((response) => {\n this.defaultImage = {\n ...defaultImage,\n url: response,\n }\n })\n } else {\n this.defaultImage = {\n ...defaultImage,\n url,\n }\n }\n }\n },\n unmounted: function () {\n this.$emit('deleteItem', this.valueId)\n },\n methods: {\n clickHandler() {\n if (this.screenTarget && this.screenName) {\n this.$emit('open', this.screenTarget, this.screenName)\n }\n },\n },\n}\n</script>\n"],"names":["_sfc_main","Widget","ImageLoader","image","setting","promises","url","images","defaultImage","response","_hoisted_1","_hoisted_2","_createElementBlock","_openBlock","_Fragment","_renderList","_ctx","_normalizeStyle","$options","args","_createCommentVNode"],"mappings":"yNAsDKA,EAAU,CACb,OAAQ,CAACC,EAAAA,OAAQC,aAAW,EAC5B,KAAM,UAAY,CAChB,MAAO,CACL,OAAQ,CAAA,EACR,aAAc,KACd,aAAc,KACd,WAAY,IACd,GAEF,SAAU,CACR,cAAe,UAAY,CACzB,OAAI,KAAK,aAAa,KAAK,OAAO,EACzB,KAAK,aAAa,KAAK,OAAO,EAAE,CAAC,EAEnC,MAET,YAAa,UAAY,CACvB,MAAO,CAAC,KAAK,OAAO,KAAMC,GAAUA,EAAM,OAAS,KAAK,aAAa,GAEvE,cAAe,CACb,OAAI,KAAK,cAAgB,KAAK,WACrB,CACL,OAAQ,SACV,EAEO,CACL,OAAQ,SACV,IAIN,QAAS,UAAY,CAEnB,KAAK,gBAAgB,QAASC,GAAY,CACpCA,EAAQ,CAAC,IAAM,WACjB,KAAK,aAAeA,EAAQ,CAAC,EAC7B,KAAK,WAAaA,EAAQ,CAAC,GAE9B,EAED,KAAK,QAAU,GAAG,KAAK,WAAW,CAAC,CAAC,KAAK,KAAK,WAAW,CAAC,CAAC,KACzD,KAAK,WAAW,CAAC,CACnB,KAAK,KAAK,WAAW,CAAC,GAAK,KAAK,GAChC,KAAK,MAAM,UAAW,KAAK,OAAO,EAGlC,MAAMC,EAAW,KAAK,gBACnB,OAAQD,GAAYA,EAAQ,CAAC,IAAM,OAAO,EAC1C,IAAI,MAAOA,GAAY,CACtB,IAAIE,EAAMF,EAAQ,CAAC,EACnB,OAAKE,EAAI,WAAW,MAAM,IACxBA,EAAM,MAAM,KAAK,gBAAgBA,CAAG,GAG/B,CACL,IAAAA,EACA,MAAOF,EAAQ,CAAC,EAChB,EAAGA,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OA,EAAA,cAAAA,EAAA,aAAA,GAAAC,CAAA,EAlCd,EAAA,KAAA,GAAAT,CAAA,GAAA,UA2BcP,EAAM,OAASe,EAAA,aAAa,WAU9BF,EAAA,6CADRJ,EAAAA,mBAUE,QAAA,CA9CN,IAAA,EAuCO,KAAMI,EAAA,aAAa,IACnB,EAAGA,EAAA,aAAa,EAChB,EAAGA,EAAA,aAAa,EAChB,MAAOA,EAAA,aAAa,MACpB,OAAQA,EAAA,aAAa,OACrB,MA5CPC,EAAAA,eA4CcC,EAAA,YAAY,EACnB,4BAAOA,EAAA,cAAAA,EAAA,aAAA,GAAAC,CAAA,EA7Cd,EAAA,KAAA,GAAAR,CAAA,GAAA,UAsCcO,EAAA,WAAW,IAtCzBE,EAAAA,mBAAA,GAAA,EAAA"}
1
+ {"version":3,"file":"CanvasimagevalueWidget-C1fI-ftP.cjs","sources":["../src/widgets/CanvasimagevalueWidget.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 <g>\n <image\n v-for=\"image in images\"\n :key=\"image.value\"\n v-show=\"image.value == selectedValue\"\n :href=\"image.url\"\n :x=\"image.x\"\n :y=\"image.y\"\n :width=\"image.width\"\n :height=\"image.height\"\n :style=\"pointerStyle\"\n @click=\"clickHandler\"\n />\n <image\n v-if=\"defaultImage\"\n v-show=\"showDefault\"\n :href=\"defaultImage.url\"\n :x=\"defaultImage.x\"\n :y=\"defaultImage.y\"\n :width=\"defaultImage.width\"\n :height=\"defaultImage.height\"\n :style=\"pointerStyle\"\n @click=\"clickHandler\"\n />\n </g>\n</template>\n\n<script>\nimport Widget from './Widget'\nimport ImageLoader from './ImageLoader'\n\nexport default {\n mixins: [Widget, ImageLoader],\n data: function () {\n return {\n images: [],\n defaultImage: null,\n screenTarget: null,\n screenName: null,\n }\n },\n computed: {\n selectedValue: function () {\n if (this.screenValues[this.valueId]) {\n return this.screenValues[this.valueId][0]\n }\n return null\n },\n showDefault: function () {\n return !this.images.some((image) => image.value == this.selectedValue)\n },\n pointerStyle() {\n if (this.screenTarget && this.screenName) {\n return {\n cursor: 'pointer',\n }\n } else {\n return {\n cursor: 'default',\n }\n }\n },\n },\n created: function () {\n // Look through the settings and get a reference to the screen\n this.appliedSettings.forEach((setting) => {\n if (setting[0] === 'SCREEN') {\n this.screenTarget = setting[1]\n this.screenName = setting[2]\n }\n })\n\n this.valueId = `${this.parameters[0]}__${this.parameters[1]}__${\n this.parameters[2]\n }__${this.parameters[3] || 'RAW'}`\n this.$emit('addItem', this.valueId)\n\n // Set value images data\n const promises = this.appliedSettings\n .filter((setting) => setting[0] === 'IMAGE')\n .map(async (setting) => {\n let url = setting[2]\n if (!url.startsWith('http')) {\n url = await this.getPresignedUrl(url)\n }\n\n return {\n url,\n value: setting[1],\n x: setting[3],\n y: setting[4],\n width: setting[5],\n height: setting[6],\n }\n })\n Promise.all(promises).then((images) => {\n this.images = images\n })\n\n // Set default image data\n if (this.parameters[4]) {\n const defaultImage = {\n x: this.parameters[5],\n y: this.parameters[6],\n width: this.parameters[7] ? `${this.parameters[7]}px` : '100%',\n height: this.parameters[8] ? `${this.parameters[8]}px` : '100%',\n }\n\n let url = this.parameters[4]\n if (!url.startsWith('http')) {\n this.getPresignedUrl(url).then((response) => {\n this.defaultImage = {\n ...defaultImage,\n url: response,\n }\n })\n } else {\n this.defaultImage = {\n ...defaultImage,\n url,\n }\n }\n }\n },\n unmounted: function () {\n this.$emit('deleteItem', this.valueId)\n },\n methods: {\n clickHandler() {\n if (this.screenTarget && this.screenName) {\n this.$emit('open', this.screenTarget, this.screenName)\n }\n },\n },\n}\n</script>\n"],"names":["_sfc_main","Widget","ImageLoader","image","setting","promises","url","images","defaultImage","response","_hoisted_1","_hoisted_2","_createElementBlock","_openBlock","_Fragment","_renderList","_ctx","_normalizeStyle","$options","args","_createCommentVNode"],"mappings":"yNAsDKA,EAAU,CACb,OAAQ,CAACC,EAAAA,OAAQC,aAAW,EAC5B,KAAM,UAAY,CAChB,MAAO,CACL,OAAQ,CAAA,EACR,aAAc,KACd,aAAc,KACd,WAAY,IACd,CACF,EACA,SAAU,CACR,cAAe,UAAY,CACzB,OAAI,KAAK,aAAa,KAAK,OAAO,EACzB,KAAK,aAAa,KAAK,OAAO,EAAE,CAAC,EAEnC,IACT,EACA,YAAa,UAAY,CACvB,MAAO,CAAC,KAAK,OAAO,KAAMC,GAAUA,EAAM,OAAS,KAAK,aAAa,CACvE,EACA,cAAe,CACb,OAAI,KAAK,cAAgB,KAAK,WACrB,CACL,OAAQ,SACV,EAEO,CACL,OAAQ,SACV,CAEJ,GAEF,QAAS,UAAY,CAEnB,KAAK,gBAAgB,QAASC,GAAY,CACpCA,EAAQ,CAAC,IAAM,WACjB,KAAK,aAAeA,EAAQ,CAAC,EAC7B,KAAK,WAAaA,EAAQ,CAAC,EAE/B,CAAC,EAED,KAAK,QAAU,GAAG,KAAK,WAAW,CAAC,CAAC,KAAK,KAAK,WAAW,CAAC,CAAC,KACzD,KAAK,WAAW,CAAC,CACnB,KAAK,KAAK,WAAW,CAAC,GAAK,KAAK,GAChC,KAAK,MAAM,UAAW,KAAK,OAAO,EAGlC,MAAMC,EAAW,KAAK,gBACnB,OAAQD,GAAYA,EAAQ,CAAC,IAAM,OAAO,EAC1C,IAAI,MAAOA,GAAY,CACtB,IAAIE,EAAMF,EAAQ,CAAC,EACnB,OAAKE,EAAI,WAAW,MAAM,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,EAAM,IACZ,EAAGA,EAAM,EACT,EAAGA,EAAM,EACT,MAAOA,EAAM,MACb,OAAQA,EAAM,OACd,MAjCPc,EAAAA,eAiCcC,EAAA,YAAY,EACnB,4BAAOA,EAAA,cAAAA,EAAA,aAAA,GAAAC,CAAA,EAlCd,EAAA,KAAA,GAAAT,CAAA,GAAA,UA2BcP,EAAM,OAASe,EAAA,aAAa,WAU9BF,EAAA,6CADRJ,EAAAA,mBAUE,QAAA,CA9CN,IAAA,EAuCO,KAAMI,EAAA,aAAa,IACnB,EAAGA,EAAA,aAAa,EAChB,EAAGA,EAAA,aAAa,EAChB,MAAOA,EAAA,aAAa,MACpB,OAAQA,EAAA,aAAa,OACrB,MA5CPC,EAAAA,eA4CcC,EAAA,YAAY,EACnB,4BAAOA,EAAA,cAAAA,EAAA,aAAA,GAAAC,CAAA,EA7Cd,EAAA,KAAA,GAAAR,CAAA,GAAA,UAsCcO,EAAA,WAAW,IAtCzBE,EAAAA,mBAAA,GAAA,EAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"CanvasimagevalueWidget-DudwwOD6.js","sources":["../src/widgets/CanvasimagevalueWidget.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 <g>\n <image\n v-for=\"image in images\"\n :key=\"image.value\"\n v-show=\"image.value == selectedValue\"\n :href=\"image.url\"\n :x=\"image.x\"\n :y=\"image.y\"\n :width=\"image.width\"\n :height=\"image.height\"\n :style=\"pointerStyle\"\n @click=\"clickHandler\"\n />\n <image\n v-if=\"defaultImage\"\n v-show=\"showDefault\"\n :href=\"defaultImage.url\"\n :x=\"defaultImage.x\"\n :y=\"defaultImage.y\"\n :width=\"defaultImage.width\"\n :height=\"defaultImage.height\"\n :style=\"pointerStyle\"\n @click=\"clickHandler\"\n />\n </g>\n</template>\n\n<script>\nimport Widget from './Widget'\nimport ImageLoader from './ImageLoader'\n\nexport default {\n mixins: [Widget, ImageLoader],\n data: function () {\n return {\n images: [],\n defaultImage: null,\n screenTarget: null,\n screenName: null,\n }\n },\n computed: {\n selectedValue: function () {\n if (this.screenValues[this.valueId]) {\n return this.screenValues[this.valueId][0]\n }\n return null\n },\n showDefault: function () {\n return !this.images.some((image) => image.value == this.selectedValue)\n },\n pointerStyle() {\n if (this.screenTarget && this.screenName) {\n return {\n cursor: 'pointer',\n }\n } else {\n return {\n cursor: 'default',\n }\n }\n },\n },\n created: function () {\n // Look through the settings and get a reference to the screen\n this.appliedSettings.forEach((setting) => {\n if (setting[0] === 'SCREEN') {\n this.screenTarget = setting[1]\n this.screenName = setting[2]\n }\n })\n\n this.valueId = `${this.parameters[0]}__${this.parameters[1]}__${\n this.parameters[2]\n }__${this.parameters[3] || 'RAW'}`\n this.$emit('addItem', this.valueId)\n\n // Set value images data\n const promises = this.appliedSettings\n .filter((setting) => setting[0] === 'IMAGE')\n .map(async (setting) => {\n let url = setting[2]\n if (!url.startsWith('http')) {\n url = await this.getPresignedUrl(url)\n }\n\n return {\n url,\n value: setting[1],\n x: setting[3],\n y: setting[4],\n width: setting[5],\n height: setting[6],\n }\n })\n Promise.all(promises).then((images) => {\n this.images = images\n })\n\n // Set default image data\n if (this.parameters[4]) {\n const defaultImage = {\n x: this.parameters[5],\n y: this.parameters[6],\n width: this.parameters[7] ? `${this.parameters[7]}px` : '100%',\n height: this.parameters[8] ? `${this.parameters[8]}px` : '100%',\n }\n\n let url = this.parameters[4]\n if (!url.startsWith('http')) {\n this.getPresignedUrl(url).then((response) => {\n this.defaultImage = {\n ...defaultImage,\n url: response,\n }\n })\n } else {\n this.defaultImage = {\n ...defaultImage,\n url,\n }\n }\n }\n },\n unmounted: function () {\n this.$emit('deleteItem', this.valueId)\n },\n methods: {\n clickHandler() {\n if (this.screenTarget && this.screenName) {\n this.$emit('open', this.screenTarget, this.screenName)\n }\n },\n },\n}\n</script>\n"],"names":["_sfc_main","Widget","ImageLoader","image","setting","promises","url","images","defaultImage","response","_hoisted_1","_hoisted_2","_createElementBlock","_openBlock","_Fragment","_renderList","_ctx","_normalizeStyle","$options","args","_createCommentVNode"],"mappings":";;;;AAsDA,MAAKA,IAAU;AAAA,EACb,QAAQ,CAACC,GAAQC,CAAW;AAAA,EAC5B,MAAM,WAAY;AAChB,WAAO;AAAA,MACL,QAAQ,CAAA;AAAA,MACR,cAAc;AAAA,MACd,cAAc;AAAA,MACd,YAAY;AAAA,IACd;AAAA;EAEF,UAAU;AAAA,IACR,eAAe,WAAY;AACzB,aAAI,KAAK,aAAa,KAAK,OAAO,IACzB,KAAK,aAAa,KAAK,OAAO,EAAE,CAAC,IAEnC;AAAA;IAET,aAAa,WAAY;AACvB,aAAO,CAAC,KAAK,OAAO,KAAK,CAACC,MAAUA,EAAM,SAAS,KAAK,aAAa;AAAA;IAEvE,eAAe;AACb,aAAI,KAAK,gBAAgB,KAAK,aACrB;AAAA,QACL,QAAQ;AAAA,MACV,IAEO;AAAA,QACL,QAAQ;AAAA,MACV;AAAA;;EAIN,SAAS,WAAY;AAEnB,SAAK,gBAAgB,QAAQ,CAACC,MAAY;AACxC,MAAIA,EAAQ,CAAC,MAAM,aACjB,KAAK,eAAeA,EAAQ,CAAC,GAC7B,KAAK,aAAaA,EAAQ,CAAC;AAAA,KAE9B,GAED,KAAK,UAAU,GAAG,KAAK,WAAW,CAAC,CAAC,KAAK,KAAK,WAAW,CAAC,CAAC,KACzD,KAAK,WAAW,CAAC,CAC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ologies 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 <g>\n <image\n v-for=\"image in images\"\n :key=\"image.value\"\n v-show=\"image.value == selectedValue\"\n :href=\"image.url\"\n :x=\"image.x\"\n :y=\"image.y\"\n :width=\"image.width\"\n :height=\"image.height\"\n :style=\"pointerStyle\"\n @click=\"clickHandler\"\n />\n <image\n v-if=\"defaultImage\"\n v-show=\"showDefault\"\n :href=\"defaultImage.url\"\n :x=\"defaultImage.x\"\n :y=\"defaultImage.y\"\n :width=\"defaultImage.width\"\n :height=\"defaultImage.height\"\n :style=\"pointerStyle\"\n @click=\"clickHandler\"\n />\n </g>\n</template>\n\n<script>\nimport Widget from './Widget'\nimport ImageLoader from './ImageLoader'\n\nexport default {\n mixins: [Widget, ImageLoader],\n data: function () {\n return {\n images: [],\n defaultImage: null,\n screenTarget: null,\n screenName: null,\n }\n },\n computed: {\n selectedValue: function () {\n if (this.screenValues[this.valueId]) {\n return this.screenValues[this.valueId][0]\n }\n return null\n },\n showDefault: function () {\n return !this.images.some((image) => image.value == this.selectedValue)\n },\n pointerStyle() {\n if (this.screenTarget && this.screenName) {\n return {\n cursor: 'pointer',\n }\n } else {\n return {\n cursor: 'default',\n }\n }\n },\n },\n created: function () {\n // Look through the settings and get a reference to the screen\n this.appliedSettings.forEach((setting) => {\n if (setting[0] === 'SCREEN') {\n this.screenTarget = setting[1]\n this.screenName = setting[2]\n }\n })\n\n this.valueId = `${this.parameters[0]}__${this.parameters[1]}__${\n this.parameters[2]\n }__${this.parameters[3] || 'RAW'}`\n this.$emit('addItem', this.valueId)\n\n // Set value images data\n const promises = this.appliedSettings\n .filter((setting) => setting[0] === 'IMAGE')\n .map(async (setting) => {\n let url = setting[2]\n if (!url.startsWith('http')) {\n url = await this.getPresignedUrl(url)\n }\n\n return {\n url,\n value: setting[1],\n x: setting[3],\n y: setting[4],\n width: setting[5],\n height: setting[6],\n }\n })\n Promise.all(promises).then((images) => {\n this.images = images\n })\n\n // Set default image data\n if (this.parameters[4]) {\n const defaultImage = {\n x: this.parameters[5],\n y: this.parameters[6],\n width: this.parameters[7] ? `${this.parameters[7]}px` : '100%',\n height: this.parameters[8] ? `${this.parameters[8]}px` : '100%',\n }\n\n let url = this.parameters[4]\n if (!url.startsWith('http')) {\n this.getPresignedUrl(url).then((response) => {\n this.defaultImage = {\n ...defaultImage,\n url: response,\n }\n })\n } else {\n this.defaultImage = {\n ...defaultImage,\n url,\n }\n }\n }\n },\n unmounted: function () {\n this.$emit('deleteItem', this.valueId)\n },\n methods: {\n clickHandler() {\n if (this.screenTarget && this.screenName) {\n this.$emit('open', this.screenTarget, this.screenName)\n }\n },\n },\n}\n</script>\n"],"names":["_sfc_main","Widget","ImageLoader","image","setting","promises","url","images","defaultImage","response","_hoisted_1","_hoisted_2","_createElementBlock","_openBlock","_Fragment","_renderList","_ctx","_normalizeStyle","$options","args","_createCommentVNode"],"mappings":";;;;AAsDA,MAAKA,IAAU;AAAA,EACb,QAAQ,CAACC,GAAQC,CAAW;AAAA,EAC5B,MAAM,WAAY;AAChB,WAAO;AAAA,MACL,QAAQ,CAAA;AAAA,MACR,cAAc;AAAA,MACd,cAAc;AAAA,MACd,YAAY;AAAA,IACd;AAAA,EACF;AAAA,EACA,UAAU;AAAA,IACR,eAAe,WAAY;AACzB,aAAI,KAAK,aAAa,KAAK,OAAO,IACzB,KAAK,aAAa,KAAK,OAAO,EAAE,CAAC,IAEnC;AAAA,IACT;A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,SAASe,EAAA,aAAa;AAAA;IAU9BF,EAAA,uBADRJ,EAUE,SAAA;AAAA,MA9CN,KAAA;AAAA,MAuCO,MAAMI,EAAA,aAAa;AAAA,MACnB,GAAGA,EAAA,aAAa;AAAA,MAChB,GAAGA,EAAA,aAAa;AAAA,MAChB,OAAOA,EAAA,aAAa;AAAA,MACpB,QAAQA,EAAA,aAAa;AAAA,MACrB,OA5CPC,EA4CcC,EAAA,YAAY;AAAA,MACnB,mCAAOA,EAAA,gBAAAA,EAAA,aAAA,GAAAC,CAAA;AAAA,IA7Cd,GAAA,MAAA,IAAAR,CAAA,IAAA;AAAA,UAsCcO,EAAA,WAAW;AAAA,SAtCzBE,EAAA,IAAA,EAAA;AAAA;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"CanvaslabelWidget--6Sjc4E8.cjs","sources":["../src/widgets/CanvaslabelWidget.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 <text :x=\"parameters[0]\" :y=\"parameters[1]\" :fill=\"fillColor\">\n {{ parameters[2] }}\n </text>\n</template>\n\n<script>\nimport Widget from './Widget'\nexport default {\n mixins: [Widget],\n computed: {\n fillColor() {\n if (this.parameters[3]) {\n return this.parameters[3]\n }\n return 'black'\n },\n },\n}\n</script>\n"],"names":["_sfc_main","Widget","_hoisted_1","_createElementBlock","_ctx","$options","_toDisplayString"],"mappings":"iLA8BKA,EAAU,CACb,OAAQ,CAACC,EAAAA,MAAM,EACf,SAAU,CACR,WAAY,CACV,OAAI,KAAK,WAAW,CAAC,EACZ,KAAK,WAAW,CAAC,EAEnB,SAGb,EAxCAC,EAAA,CAAA,IAAA,IAAA,MAAA,+CAuBEC,EAAAA,mBAEO,OAAA,CAFA,EAAGC,EAAA,WAAU,CAAA,EAAM,EAAGA,EAAA,WAAU,CAAA,EAAM,KAAMC,EAAA,SAC9C,EAAAC,EAAAA,gBAAAF,EAAA,WAAU,CAAA,CAAA,EAAA,EAxBjBF,CAAA"}
1
+ {"version":3,"file":"CanvaslabelWidget--6Sjc4E8.cjs","sources":["../src/widgets/CanvaslabelWidget.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 <text :x=\"parameters[0]\" :y=\"parameters[1]\" :fill=\"fillColor\">\n {{ parameters[2] }}\n </text>\n</template>\n\n<script>\nimport Widget from './Widget'\nexport default {\n mixins: [Widget],\n computed: {\n fillColor() {\n if (this.parameters[3]) {\n return this.parameters[3]\n }\n return 'black'\n },\n },\n}\n</script>\n"],"names":["_sfc_main","Widget","_hoisted_1","_createElementBlock","_ctx","$options","_toDisplayString"],"mappings":"iLA8BKA,EAAU,CACb,OAAQ,CAACC,EAAAA,MAAM,EACf,SAAU,CACR,WAAY,CACV,OAAI,KAAK,WAAW,CAAC,EACZ,KAAK,WAAW,CAAC,EAEnB,OACT,EAEJ,EAxCAC,EAAA,CAAA,IAAA,IAAA,MAAA,+CAuBEC,EAAAA,mBAEO,OAAA,CAFA,EAAGC,EAAA,WAAU,CAAA,EAAM,EAAGA,EAAA,WAAU,CAAA,EAAM,KAAMC,EAAA,SAC9C,EAAAC,EAAAA,gBAAAF,EAAA,WAAU,CAAA,CAAA,EAAA,EAxBjBF,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"CanvaslabelWidget-BZQp16dH.js","sources":["../src/widgets/CanvaslabelWidget.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 <text :x=\"parameters[0]\" :y=\"parameters[1]\" :fill=\"fillColor\">\n {{ parameters[2] }}\n </text>\n</template>\n\n<script>\nimport Widget from './Widget'\nexport default {\n mixins: [Widget],\n computed: {\n fillColor() {\n if (this.parameters[3]) {\n return this.parameters[3]\n }\n return 'black'\n },\n },\n}\n</script>\n"],"names":["_sfc_main","Widget","_hoisted_1","_createElementBlock","_ctx","$options","_toDisplayString"],"mappings":";;;AA8BA,MAAKA,IAAU;AAAA,EACb,QAAQ,CAACC,CAAM;AAAA,EACf,UAAU;AAAA,IACR,YAAY;AACV,aAAI,KAAK,WAAW,CAAC,IACZ,KAAK,WAAW,CAAC,IAEnB;AAAA;;AAGb,GAxCAC,IAAA,CAAA,KAAA,KAAA,MAAA;;cAuBEC,EAEO,QAAA;AAAA,IAFA,GAAGC,EAAA,WAAU,CAAA;AAAA,IAAM,GAAGA,EAAA,WAAU,CAAA;AAAA,IAAM,MAAMC,EAAA;AAAA,EAC9C,GAAAC,EAAAF,EAAA,WAAU,CAAA,CAAA,GAAA,GAxBjBF,CAAA;;;"}
1
+ {"version":3,"file":"CanvaslabelWidget-BZQp16dH.js","sources":["../src/widgets/CanvaslabelWidget.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 <text :x=\"parameters[0]\" :y=\"parameters[1]\" :fill=\"fillColor\">\n {{ parameters[2] }}\n </text>\n</template>\n\n<script>\nimport Widget from './Widget'\nexport default {\n mixins: [Widget],\n computed: {\n fillColor() {\n if (this.parameters[3]) {\n return this.parameters[3]\n }\n return 'black'\n },\n },\n}\n</script>\n"],"names":["_sfc_main","Widget","_hoisted_1","_createElementBlock","_ctx","$options","_toDisplayString"],"mappings":";;;AA8BA,MAAKA,IAAU;AAAA,EACb,QAAQ,CAACC,CAAM;AAAA,EACf,UAAU;AAAA,IACR,YAAY;AACV,aAAI,KAAK,WAAW,CAAC,IACZ,KAAK,WAAW,CAAC,IAEnB;AAAA,IACT;AAAA;AAEJ,GAxCAC,IAAA,CAAA,KAAA,KAAA,MAAA;;cAuBEC,EAEO,QAAA;AAAA,IAFA,GAAGC,EAAA,WAAU,CAAA;AAAA,IAAM,GAAGA,EAAA,WAAU,CAAA;AAAA,IAAM,MAAMC,EAAA;AAAA,EAC9C,GAAAC,EAAAF,EAAA,WAAU,CAAA,CAAA,GAAA,GAxBjBF,CAAA;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"CanvaslabelvalueWidget-CHS36Te9.js","sources":["../src/widgets/CanvaslabelvalueWidget.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 <text\n :x=\"parameters[3]\"\n :y=\"parameters[4]\"\n :font-size=\"fontSize\"\n :fill=\"fillColor\"\n >\n {{ _value }}\n </text>\n</template>\n\n<script>\nimport Widget from './Widget'\nexport default {\n mixins: [Widget],\n data() {\n return {\n valueId: null,\n }\n },\n computed: {\n _value() {\n return this.screenValues[this.valueId][0]\n },\n fontSize() {\n if (this.parameters[5]) {\n return this.parameters[5] + 'px'\n }\n return '14px'\n },\n fillColor() {\n if (this.parameters[6]) {\n return this.parameters[6]\n }\n return 'black'\n },\n },\n created() {\n let type = 'CONVERTED'\n if (this.parameters[7]) {\n type = this.parameters[7]\n }\n this.valueId = `${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__${type}`\n this.$emit('addItem', this.valueId)\n },\n unmounted() {\n this.$emit('deleteItem', this.valueId)\n },\n}\n</script>\n"],"names":["_sfc_main","Widget","type","_hoisted_1","_createElementBlock","_ctx","$options","_toDisplayString"],"mappings":";;;AAmCA,MAAKA,IAAU;AAAA,EACb,QAAQ,CAACC,CAAM;AAAA,EACf,OAAO;AACL,WAAO;AAAA,MACL,SAAS;AAAA,IACX;AAAA;EAEF,UAAU;AAAA,IACR,SAAS;AACP,aAAO,KAAK,aAAa,KAAK,OAAO,EAAE,CAAC;AAAA;IAE1C,WAAW;AACT,aAAI,KAAK,WAAW,CAAC,IACZ,KAAK,WAAW,CAAC,IAAI,OAEvB;AAAA;IAET,YAAY;AACV,aAAI,KAAK,WAAW,CAAC,IACZ,KAAK,WAAW,CAAC,IAEnB;AAAA;;EAGX,UAAU;AACR,QAAIC,IAAO;AACX,IAAI,KAAK,WAAW,CAAC,MACnBA,IAAO,KAAK,WAAW,CAAC,IAE1B,KAAK,UAAU,GAAG,KAAK,WAAW,CAAC,CAAC,KAAK,KAAK,WAAW,CAAC,CAAC,KAAK,KAAK,WAAW,CAAC,CAAC,KAAKA,CAAI,IAC3F,KAAK,MAAM,WAAW,KAAK,OAAO;AAAA;EAEpC,YAAY;AACV,SAAK,MAAM,cAAc,KAAK,OAAO;AAAA;AAEzC,GAtEAC,IAAA,CAAA,KAAA,KAAA,aAAA,MAAA;;cAuBEC,EAOO,QAAA;AAAA,IANJ,GAAGC,EAAA,WAAU,CAAA;AAAA,IACb,GAAGA,EAAA,WAAU,CAAA;AAAA,IACb,aAAWC,EAAA;AAAA,IACX,MAAMA,EAAA;AAAA,EAEJ,GAAAC,EAAAD,EAAA,MAAM,GAAA,GA7BbH,CAAA;;;"}
1
+ {"version":3,"file":"CanvaslabelvalueWidget-CHS36Te9.js","sources":["../src/widgets/CanvaslabelvalueWidget.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 <text\n :x=\"parameters[3]\"\n :y=\"parameters[4]\"\n :font-size=\"fontSize\"\n :fill=\"fillColor\"\n >\n {{ _value }}\n </text>\n</template>\n\n<script>\nimport Widget from './Widget'\nexport default {\n mixins: [Widget],\n data() {\n return {\n valueId: null,\n }\n },\n computed: {\n _value() {\n return this.screenValues[this.valueId][0]\n },\n fontSize() {\n if (this.parameters[5]) {\n return this.parameters[5] + 'px'\n }\n return '14px'\n },\n fillColor() {\n if (this.parameters[6]) {\n return this.parameters[6]\n }\n return 'black'\n },\n },\n created() {\n let type = 'CONVERTED'\n if (this.parameters[7]) {\n type = this.parameters[7]\n }\n this.valueId = `${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__${type}`\n this.$emit('addItem', this.valueId)\n },\n unmounted() {\n this.$emit('deleteItem', this.valueId)\n },\n}\n</script>\n"],"names":["_sfc_main","Widget","type","_hoisted_1","_createElementBlock","_ctx","$options","_toDisplayString"],"mappings":";;;AAmCA,MAAKA,IAAU;AAAA,EACb,QAAQ,CAACC,CAAM;AAAA,EACf,OAAO;AACL,WAAO;AAAA,MACL,SAAS;AAAA,IACX;AAAA,EACF;AAAA,EACA,UAAU;AAAA,IACR,SAAS;AACP,aAAO,KAAK,aAAa,KAAK,OAAO,EAAE,CAAC;AAAA,IAC1C;AAAA,IACA,WAAW;AACT,aAAI,KAAK,WAAW,CAAC,IACZ,KAAK,WAAW,CAAC,IAAI,OAEvB;AAAA,IACT;AAAA,IACA,YAAY;AACV,aAAI,KAAK,WAAW,CAAC,IACZ,KAAK,WAAW,CAAC,IAEnB;AAAA,IACT;AAAA;EAEF,UAAU;AACR,QAAIC,IAAO;AACX,IAAI,KAAK,WAAW,CAAC,MACnBA,IAAO,KAAK,WAAW,CAAC,IAE1B,KAAK,UAAU,GAAG,KAAK,WAAW,CAAC,CAAC,KAAK,KAAK,WAAW,CAAC,CAAC,KAAK,KAAK,WAAW,CAAC,CAAC,KAAKA,CAAI,IAC3F,KAAK,MAAM,WAAW,KAAK,OAAO;AAAA,EACpC;AAAA,EACA,YAAY;AACV,SAAK,MAAM,cAAc,KAAK,OAAO;AAAA,EACvC;AACF,GAtEAC,IAAA,CAAA,KAAA,KAAA,aAAA,MAAA;;cAuBEC,EAOO,QAAA;AAAA,IANJ,GAAGC,EAAA,WAAU,CAAA;AAAA,IACb,GAAGA,EAAA,WAAU,CAAA;AAAA,IACb,aAAWC,EAAA;AAAA,IACX,MAAMA,EAAA;AAAA,EAEJ,GAAAC,EAAAD,EAAA,MAAM,GAAA,GA7BbH,CAAA;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"CanvaslabelvalueWidget-DZCxsIKk.cjs","sources":["../src/widgets/CanvaslabelvalueWidget.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 <text\n :x=\"parameters[3]\"\n :y=\"parameters[4]\"\n :font-size=\"fontSize\"\n :fill=\"fillColor\"\n >\n {{ _value }}\n </text>\n</template>\n\n<script>\nimport Widget from './Widget'\nexport default {\n mixins: [Widget],\n data() {\n return {\n valueId: null,\n }\n },\n computed: {\n _value() {\n return this.screenValues[this.valueId][0]\n },\n fontSize() {\n if (this.parameters[5]) {\n return this.parameters[5] + 'px'\n }\n return '14px'\n },\n fillColor() {\n if (this.parameters[6]) {\n return this.parameters[6]\n }\n return 'black'\n },\n },\n created() {\n let type = 'CONVERTED'\n if (this.parameters[7]) {\n type = this.parameters[7]\n }\n this.valueId = `${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__${type}`\n this.$emit('addItem', this.valueId)\n },\n unmounted() {\n this.$emit('deleteItem', this.valueId)\n },\n}\n</script>\n"],"names":["_sfc_main","Widget","type","_hoisted_1","_createElementBlock","_ctx","$options","_toDisplayString"],"mappings":"iLAmCKA,EAAU,CACb,OAAQ,CAACC,EAAAA,MAAM,EACf,MAAO,CACL,MAAO,CACL,QAAS,IACX,GAEF,SAAU,CACR,QAAS,CACP,OAAO,KAAK,aAAa,KAAK,OAAO,EAAE,CAAC,GAE1C,UAAW,CACT,OAAI,KAAK,WAAW,CAAC,EACZ,KAAK,WAAW,CAAC,EAAI,KAEvB,QAET,WAAY,CACV,OAAI,KAAK,WAAW,CAAC,EACZ,KAAK,WAAW,CAAC,EAEnB,UAGX,SAAU,CACR,IAAIC,EAAO,YACP,KAAK,WAAW,CAAC,IACnBA,EAAO,KAAK,WAAW,CAAC,GAE1B,KAAK,QAAU,GAAG,KAAK,WAAW,CAAC,CAAC,KAAK,KAAK,WAAW,CAAC,CAAC,KAAK,KAAK,WAAW,CAAC,CAAC,KAAKA,CAAI,GAC3F,KAAK,MAAM,UAAW,KAAK,OAAO,GAEpC,WAAY,CACV,KAAK,MAAM,aAAc,KAAK,OAAO,EAEzC,EAtEAC,EAAA,CAAA,IAAA,IAAA,YAAA,MAAA,+CAuBEC,EAAAA,mBAOO,OAAA,CANJ,EAAGC,EAAA,WAAU,CAAA,EACb,EAAGA,EAAA,WAAU,CAAA,EACb,YAAWC,EAAA,SACX,KAAMA,EAAA,SAEJ,EAAAC,EAAAA,gBAAAD,EAAA,MAAM,EAAA,EA7BbH,CAAA"}
1
+ {"version":3,"file":"CanvaslabelvalueWidget-DZCxsIKk.cjs","sources":["../src/widgets/CanvaslabelvalueWidget.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 <text\n :x=\"parameters[3]\"\n :y=\"parameters[4]\"\n :font-size=\"fontSize\"\n :fill=\"fillColor\"\n >\n {{ _value }}\n </text>\n</template>\n\n<script>\nimport Widget from './Widget'\nexport default {\n mixins: [Widget],\n data() {\n return {\n valueId: null,\n }\n },\n computed: {\n _value() {\n return this.screenValues[this.valueId][0]\n },\n fontSize() {\n if (this.parameters[5]) {\n return this.parameters[5] + 'px'\n }\n return '14px'\n },\n fillColor() {\n if (this.parameters[6]) {\n return this.parameters[6]\n }\n return 'black'\n },\n },\n created() {\n let type = 'CONVERTED'\n if (this.parameters[7]) {\n type = this.parameters[7]\n }\n this.valueId = `${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__${type}`\n this.$emit('addItem', this.valueId)\n },\n unmounted() {\n this.$emit('deleteItem', this.valueId)\n },\n}\n</script>\n"],"names":["_sfc_main","Widget","type","_hoisted_1","_createElementBlock","_ctx","$options","_toDisplayString"],"mappings":"iLAmCKA,EAAU,CACb,OAAQ,CAACC,EAAAA,MAAM,EACf,MAAO,CACL,MAAO,CACL,QAAS,IACX,CACF,EACA,SAAU,CACR,QAAS,CACP,OAAO,KAAK,aAAa,KAAK,OAAO,EAAE,CAAC,CAC1C,EACA,UAAW,CACT,OAAI,KAAK,WAAW,CAAC,EACZ,KAAK,WAAW,CAAC,EAAI,KAEvB,MACT,EACA,WAAY,CACV,OAAI,KAAK,WAAW,CAAC,EACZ,KAAK,WAAW,CAAC,EAEnB,OACT,GAEF,SAAU,CACR,IAAIC,EAAO,YACP,KAAK,WAAW,CAAC,IACnBA,EAAO,KAAK,WAAW,CAAC,GAE1B,KAAK,QAAU,GAAG,KAAK,WAAW,CAAC,CAAC,KAAK,KAAK,WAAW,CAAC,CAAC,KAAK,KAAK,WAAW,CAAC,CAAC,KAAKA,CAAI,GAC3F,KAAK,MAAM,UAAW,KAAK,OAAO,CACpC,EACA,WAAY,CACV,KAAK,MAAM,aAAc,KAAK,OAAO,CACvC,CACF,EAtEAC,EAAA,CAAA,IAAA,IAAA,YAAA,MAAA,+CAuBEC,EAAAA,mBAOO,OAAA,CANJ,EAAGC,EAAA,WAAU,CAAA,EACb,EAAGA,EAAA,WAAU,CAAA,EACb,YAAWC,EAAA,SACX,KAAMA,EAAA,SAEJ,EAAAC,EAAAA,gBAAAD,EAAA,MAAM,EAAA,EA7BbH,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"CanvaslineWidget-Bn83Rb10.cjs","sources":["../src/widgets/CanvaslineWidget.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 <line\n :x1=\"parameters[0]\"\n :y1=\"parameters[1]\"\n :x2=\"parameters[2]\"\n :y2=\"parameters[3]\"\n :style=\"calcStyle\"\n />\n</template>\n\n<script>\nimport Widget from './Widget'\nexport default {\n mixins: [Widget],\n computed: {\n calcStyle() {\n let color = 'black'\n if (this.parameters[4]) {\n color = this.parameters[4]\n }\n let width = 1\n if (this.parameters[5]) {\n width = this.parameters[5]\n }\n return 'stroke:' + color + ';stroke-width:' + width\n },\n },\n}\n</script>\n"],"names":["_sfc_main","Widget","color","width","_hoisted_1","_createElementBlock","_ctx","_normalizeStyle","$options"],"mappings":"iLAkCKA,EAAU,CACb,OAAQ,CAACC,EAAAA,MAAM,EACf,SAAU,CACR,WAAY,CACV,IAAIC,EAAQ,QACR,KAAK,WAAW,CAAC,IACnBA,EAAQ,KAAK,WAAW,CAAC,GAE3B,IAAIC,EAAQ,EACZ,OAAI,KAAK,WAAW,CAAC,IACnBA,EAAQ,KAAK,WAAW,CAAC,GAEpB,UAAYD,EAAQ,iBAAmBC,GAGpD,EAjDAC,EAAA,CAAA,KAAA,KAAA,KAAA,IAAA,+CAuBEC,EAAAA,mBAME,OAAA,CALC,GAAIC,EAAA,WAAU,CAAA,EACd,GAAIA,EAAA,WAAU,CAAA,EACd,GAAIA,EAAA,WAAU,CAAA,EACd,GAAIA,EAAA,WAAU,CAAA,EACd,MA5BLC,EAAAA,eA4BYC,EAAA,SAAS,CA5BrB,EAAA,KAAA,GAAAJ,CAAA"}
1
+ {"version":3,"file":"CanvaslineWidget-Bn83Rb10.cjs","sources":["../src/widgets/CanvaslineWidget.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 <line\n :x1=\"parameters[0]\"\n :y1=\"parameters[1]\"\n :x2=\"parameters[2]\"\n :y2=\"parameters[3]\"\n :style=\"calcStyle\"\n />\n</template>\n\n<script>\nimport Widget from './Widget'\nexport default {\n mixins: [Widget],\n computed: {\n calcStyle() {\n let color = 'black'\n if (this.parameters[4]) {\n color = this.parameters[4]\n }\n let width = 1\n if (this.parameters[5]) {\n width = this.parameters[5]\n }\n return 'stroke:' + color + ';stroke-width:' + width\n },\n },\n}\n</script>\n"],"names":["_sfc_main","Widget","color","width","_hoisted_1","_createElementBlock","_ctx","_normalizeStyle","$options"],"mappings":"iLAkCKA,EAAU,CACb,OAAQ,CAACC,EAAAA,MAAM,EACf,SAAU,CACR,WAAY,CACV,IAAIC,EAAQ,QACR,KAAK,WAAW,CAAC,IACnBA,EAAQ,KAAK,WAAW,CAAC,GAE3B,IAAIC,EAAQ,EACZ,OAAI,KAAK,WAAW,CAAC,IACnBA,EAAQ,KAAK,WAAW,CAAC,GAEpB,UAAYD,EAAQ,iBAAmBC,CAChD,EAEJ,EAjDAC,EAAA,CAAA,KAAA,KAAA,KAAA,IAAA,+CAuBEC,EAAAA,mBAME,OAAA,CALC,GAAIC,EAAA,WAAU,CAAA,EACd,GAAIA,EAAA,WAAU,CAAA,EACd,GAAIA,EAAA,WAAU,CAAA,EACd,GAAIA,EAAA,WAAU,CAAA,EACd,MA5BLC,EAAAA,eA4BYC,EAAA,SAAS,CA5BrB,EAAA,KAAA,GAAAJ,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"CanvaslineWidget-nhKEAGhs.js","sources":["../src/widgets/CanvaslineWidget.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 <line\n :x1=\"parameters[0]\"\n :y1=\"parameters[1]\"\n :x2=\"parameters[2]\"\n :y2=\"parameters[3]\"\n :style=\"calcStyle\"\n />\n</template>\n\n<script>\nimport Widget from './Widget'\nexport default {\n mixins: [Widget],\n computed: {\n calcStyle() {\n let color = 'black'\n if (this.parameters[4]) {\n color = this.parameters[4]\n }\n let width = 1\n if (this.parameters[5]) {\n width = this.parameters[5]\n }\n return 'stroke:' + color + ';stroke-width:' + width\n },\n },\n}\n</script>\n"],"names":["_sfc_main","Widget","color","width","_hoisted_1","_createElementBlock","_ctx","_normalizeStyle","$options"],"mappings":";;;AAkCA,MAAKA,IAAU;AAAA,EACb,QAAQ,CAACC,CAAM;AAAA,EACf,UAAU;AAAA,IACR,YAAY;AACV,UAAIC,IAAQ;AACZ,MAAI,KAAK,WAAW,CAAC,MACnBA,IAAQ,KAAK,WAAW,CAAC;AAE3B,UAAIC,IAAQ;AACZ,aAAI,KAAK,WAAW,CAAC,MACnBA,IAAQ,KAAK,WAAW,CAAC,IAEpB,YAAYD,IAAQ,mBAAmBC;AAAA;;AAGpD,GAjDAC,IAAA,CAAA,MAAA,MAAA,MAAA,IAAA;;cAuBEC,EAME,QAAA;AAAA,IALC,IAAIC,EAAA,WAAU,CAAA;AAAA,IACd,IAAIA,EAAA,WAAU,CAAA;AAAA,IACd,IAAIA,EAAA,WAAU,CAAA;AAAA,IACd,IAAIA,EAAA,WAAU,CAAA;AAAA,IACd,OA5BLC,EA4BYC,EAAA,SAAS;AAAA,EA5BrB,GAAA,MAAA,IAAAJ,CAAA;;;"}
1
+ {"version":3,"file":"CanvaslineWidget-nhKEAGhs.js","sources":["../src/widgets/CanvaslineWidget.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 <line\n :x1=\"parameters[0]\"\n :y1=\"parameters[1]\"\n :x2=\"parameters[2]\"\n :y2=\"parameters[3]\"\n :style=\"calcStyle\"\n />\n</template>\n\n<script>\nimport Widget from './Widget'\nexport default {\n mixins: [Widget],\n computed: {\n calcStyle() {\n let color = 'black'\n if (this.parameters[4]) {\n color = this.parameters[4]\n }\n let width = 1\n if (this.parameters[5]) {\n width = this.parameters[5]\n }\n return 'stroke:' + color + ';stroke-width:' + width\n },\n },\n}\n</script>\n"],"names":["_sfc_main","Widget","color","width","_hoisted_1","_createElementBlock","_ctx","_normalizeStyle","$options"],"mappings":";;;AAkCA,MAAKA,IAAU;AAAA,EACb,QAAQ,CAACC,CAAM;AAAA,EACf,UAAU;AAAA,IACR,YAAY;AACV,UAAIC,IAAQ;AACZ,MAAI,KAAK,WAAW,CAAC,MACnBA,IAAQ,KAAK,WAAW,CAAC;AAE3B,UAAIC,IAAQ;AACZ,aAAI,KAAK,WAAW,CAAC,MACnBA,IAAQ,KAAK,WAAW,CAAC,IAEpB,YAAYD,IAAQ,mBAAmBC;AAAA,IAChD;AAAA;AAEJ,GAjDAC,IAAA,CAAA,MAAA,MAAA,MAAA,IAAA;;cAuBEC,EAME,QAAA;AAAA,IALC,IAAIC,EAAA,WAAU,CAAA;AAAA,IACd,IAAIA,EAAA,WAAU,CAAA;AAAA,IACd,IAAIA,EAAA,WAAU,CAAA;AAAA,IACd,IAAIA,EAAA,WAAU,CAAA;AAAA,IACd,OA5BLC,EA4BYC,EAAA,SAAS;AAAA,EA5BrB,GAAA,MAAA,IAAAJ,CAAA;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"CanvaslinevalueWidget-C6x_4Gc9.cjs","sources":["../src/widgets/CanvaslinevalueWidget.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 <line\n :x1=\"parameters[3]\"\n :y1=\"parameters[4]\"\n :x2=\"parameters[5]\"\n :y2=\"parameters[6]\"\n :style=\"calcStyle\"\n />\n</template>\n\n<script>\nimport Widget from './Widget'\nexport default {\n mixins: [Widget],\n data() {\n return {\n valueId: 0,\n valueMap: {},\n }\n },\n computed: {\n calcStyle() {\n let color = 'black'\n if (this.screenValues[this.valueId]) {\n color = this.valueMap[this.screenValues[this.valueId][0]]\n }\n let width = 1\n if (this.parameters[7]) {\n width = this.parameters[7]\n }\n return 'stroke:' + color + ';stroke-width:' + width\n },\n },\n created() {\n // Look through the settings for our color value mappings\n this.appliedSettings.forEach((setting) => {\n if (setting[0] === 'VALUE_EQ') {\n this.valueMap[setting[1]] = setting[2]\n }\n })\n\n let type = 'CONVERTED'\n if (this.parameters[8]) {\n type = this.parameters[8]\n }\n this.valueId = `${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__${type}`\n this.$emit('addItem', this.valueId)\n },\n unmounted() {\n this.$emit('deleteItem', this.valueId)\n },\n}\n</script>\n"],"names":["_sfc_main","Widget","color","width","setting","type","_hoisted_1","_createElementBlock","_ctx","_normalizeStyle","$options"],"mappings":"iLAkCKA,EAAU,CACb,OAAQ,CAACC,EAAAA,MAAM,EACf,MAAO,CACL,MAAO,CACL,QAAS,EACT,SAAU,CAAA,CACZ,GAEF,SAAU,CACR,WAAY,CACV,IAAIC,EAAQ,QACR,KAAK,aAAa,KAAK,OAAO,IAChCA,EAAQ,KAAK,SAAS,KAAK,aAAa,KAAK,OAAO,EAAE,CAAC,CAAC,GAE1D,IAAIC,EAAQ,EACZ,OAAI,KAAK,WAAW,CAAC,IACnBA,EAAQ,KAAK,WAAW,CAAC,GAEpB,UAAYD,EAAQ,iBAAmBC,IAGlD,SAAU,CAER,KAAK,gBAAgB,QAASC,GAAY,CACpCA,EAAQ,CAAC,IAAM,aACjB,KAAK,SAASA,EAAQ,CAAC,CAAC,EAAIA,EAAQ,CAAC,GAExC,EAED,IAAIC,EAAO,YACP,KAAK,WAAW,CAAC,IACnBA,EAAO,KAAK,WAAW,CAAC,GAE1B,KAAK,QAAU,GAAG,KAAK,WAAW,CAAC,CAAC,KAAK,KAAK,WAAW,CAAC,CAAC,KAAK,KAAK,WAAW,CAAC,CAAC,KAAKA,CAAI,GAC3F,KAAK,MAAM,UAAW,KAAK,OAAO,GAEpC,WAAY,CACV,KAAK,MAAM,aAAc,KAAK,OAAO,EAEzC,EAzEAC,EAAA,CAAA,KAAA,KAAA,KAAA,IAAA,+CAuBEC,EAAAA,mBAME,OAAA,CALC,GAAIC,EAAA,WAAU,CAAA,EACd,GAAIA,EAAA,WAAU,CAAA,EACd,GAAIA,EAAA,WAAU,CAAA,EACd,GAAIA,EAAA,WAAU,CAAA,EACd,MA5BLC,EAAAA,eA4BYC,EAAA,SAAS,CA5BrB,EAAA,KAAA,GAAAJ,CAAA"}
1
+ {"version":3,"file":"CanvaslinevalueWidget-C6x_4Gc9.cjs","sources":["../src/widgets/CanvaslinevalueWidget.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 <line\n :x1=\"parameters[3]\"\n :y1=\"parameters[4]\"\n :x2=\"parameters[5]\"\n :y2=\"parameters[6]\"\n :style=\"calcStyle\"\n />\n</template>\n\n<script>\nimport Widget from './Widget'\nexport default {\n mixins: [Widget],\n data() {\n return {\n valueId: 0,\n valueMap: {},\n }\n },\n computed: {\n calcStyle() {\n let color = 'black'\n if (this.screenValues[this.valueId]) {\n color = this.valueMap[this.screenValues[this.valueId][0]]\n }\n let width = 1\n if (this.parameters[7]) {\n width = this.parameters[7]\n }\n return 'stroke:' + color + ';stroke-width:' + width\n },\n },\n created() {\n // Look through the settings for our color value mappings\n this.appliedSettings.forEach((setting) => {\n if (setting[0] === 'VALUE_EQ') {\n this.valueMap[setting[1]] = setting[2]\n }\n })\n\n let type = 'CONVERTED'\n if (this.parameters[8]) {\n type = this.parameters[8]\n }\n this.valueId = `${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__${type}`\n this.$emit('addItem', this.valueId)\n },\n unmounted() {\n this.$emit('deleteItem', this.valueId)\n },\n}\n</script>\n"],"names":["_sfc_main","Widget","color","width","setting","type","_hoisted_1","_createElementBlock","_ctx","_normalizeStyle","$options"],"mappings":"iLAkCKA,EAAU,CACb,OAAQ,CAACC,EAAAA,MAAM,EACf,MAAO,CACL,MAAO,CACL,QAAS,EACT,SAAU,CAAA,CACZ,CACF,EACA,SAAU,CACR,WAAY,CACV,IAAIC,EAAQ,QACR,KAAK,aAAa,KAAK,OAAO,IAChCA,EAAQ,KAAK,SAAS,KAAK,aAAa,KAAK,OAAO,EAAE,CAAC,CAAC,GAE1D,IAAIC,EAAQ,EACZ,OAAI,KAAK,WAAW,CAAC,IACnBA,EAAQ,KAAK,WAAW,CAAC,GAEpB,UAAYD,EAAQ,iBAAmBC,CAChD,GAEF,SAAU,CAER,KAAK,gBAAgB,QAASC,GAAY,CACpCA,EAAQ,CAAC,IAAM,aACjB,KAAK,SAASA,EAAQ,CAAC,CAAC,EAAIA,EAAQ,CAAC,EAEzC,CAAC,EAED,IAAIC,EAAO,YACP,KAAK,WAAW,CAAC,IACnBA,EAAO,KAAK,WAAW,CAAC,GAE1B,KAAK,QAAU,GAAG,KAAK,WAAW,CAAC,CAAC,KAAK,KAAK,WAAW,CAAC,CAAC,KAAK,KAAK,WAAW,CAAC,CAAC,KAAKA,CAAI,GAC3F,KAAK,MAAM,UAAW,KAAK,OAAO,CACpC,EACA,WAAY,CACV,KAAK,MAAM,aAAc,KAAK,OAAO,CACvC,CACF,EAzEAC,EAAA,CAAA,KAAA,KAAA,KAAA,IAAA,+CAuBEC,EAAAA,mBAME,OAAA,CALC,GAAIC,EAAA,WAAU,CAAA,EACd,GAAIA,EAAA,WAAU,CAAA,EACd,GAAIA,EAAA,WAAU,CAAA,EACd,GAAIA,EAAA,WAAU,CAAA,EACd,MA5BLC,EAAAA,eA4BYC,EAAA,SAAS,CA5BrB,EAAA,KAAA,GAAAJ,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"CanvaslinevalueWidget-DsyIDkJy.js","sources":["../src/widgets/CanvaslinevalueWidget.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 <line\n :x1=\"parameters[3]\"\n :y1=\"parameters[4]\"\n :x2=\"parameters[5]\"\n :y2=\"parameters[6]\"\n :style=\"calcStyle\"\n />\n</template>\n\n<script>\nimport Widget from './Widget'\nexport default {\n mixins: [Widget],\n data() {\n return {\n valueId: 0,\n valueMap: {},\n }\n },\n computed: {\n calcStyle() {\n let color = 'black'\n if (this.screenValues[this.valueId]) {\n color = this.valueMap[this.screenValues[this.valueId][0]]\n }\n let width = 1\n if (this.parameters[7]) {\n width = this.parameters[7]\n }\n return 'stroke:' + color + ';stroke-width:' + width\n },\n },\n created() {\n // Look through the settings for our color value mappings\n this.appliedSettings.forEach((setting) => {\n if (setting[0] === 'VALUE_EQ') {\n this.valueMap[setting[1]] = setting[2]\n }\n })\n\n let type = 'CONVERTED'\n if (this.parameters[8]) {\n type = this.parameters[8]\n }\n this.valueId = `${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__${type}`\n this.$emit('addItem', this.valueId)\n },\n unmounted() {\n this.$emit('deleteItem', this.valueId)\n },\n}\n</script>\n"],"names":["_sfc_main","Widget","color","width","setting","type","_hoisted_1","_createElementBlock","_ctx","_normalizeStyle","$options"],"mappings":";;;AAkCA,MAAKA,IAAU;AAAA,EACb,QAAQ,CAACC,CAAM;AAAA,EACf,OAAO;AACL,WAAO;AAAA,MACL,SAAS;AAAA,MACT,UAAU,CAAA;AAAA,IACZ;AAAA;EAEF,UAAU;AAAA,IACR,YAAY;AACV,UAAIC,IAAQ;AACZ,MAAI,KAAK,aAAa,KAAK,OAAO,MAChCA,IAAQ,KAAK,SAAS,KAAK,aAAa,KAAK,OAAO,EAAE,CAAC,CAAC;AAE1D,UAAIC,IAAQ;AACZ,aAAI,KAAK,WAAW,CAAC,MACnBA,IAAQ,KAAK,WAAW,CAAC,IAEpB,YAAYD,IAAQ,mBAAmBC;AAAA;;EAGlD,UAAU;AAER,SAAK,gBAAgB,QAAQ,CAACC,MAAY;AACxC,MAAIA,EAAQ,CAAC,MAAM,eACjB,KAAK,SAASA,EAAQ,CAAC,CAAC,IAAIA,EAAQ,CAAC;AAAA,KAExC;AAED,QAAIC,IAAO;AACX,IAAI,KAAK,WAAW,CAAC,MACnBA,IAAO,KAAK,WAAW,CAAC,IAE1B,KAAK,UAAU,GAAG,KAAK,WAAW,CAAC,CAAC,KAAK,KAAK,WAAW,CAAC,CAAC,KAAK,KAAK,WAAW,CAAC,CAAC,KAAKA,CAAI,IAC3F,KAAK,MAAM,WAAW,KAAK,OAAO;AAAA;EAEpC,YAAY;AACV,SAAK,MAAM,cAAc,KAAK,OAAO;AAAA;AAEzC,GAzEAC,IAAA,CAAA,MAAA,MAAA,MAAA,IAAA;;cAuBEC,EAME,QAAA;AAAA,IALC,IAAIC,EAAA,WAAU,CAAA;AAAA,IACd,IAAIA,EAAA,WAAU,CAAA;AAAA,IACd,IAAIA,EAAA,WAAU,CAAA;AAAA,IACd,IAAIA,EAAA,WAAU,CAAA;AAAA,IACd,OA5BLC,EA4BYC,EAAA,SAAS;AAAA,EA5BrB,GAAA,MAAA,IAAAJ,CAAA;;;"}
1
+ {"version":3,"file":"CanvaslinevalueWidget-DsyIDkJy.js","sources":["../src/widgets/CanvaslinevalueWidget.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 <line\n :x1=\"parameters[3]\"\n :y1=\"parameters[4]\"\n :x2=\"parameters[5]\"\n :y2=\"parameters[6]\"\n :style=\"calcStyle\"\n />\n</template>\n\n<script>\nimport Widget from './Widget'\nexport default {\n mixins: [Widget],\n data() {\n return {\n valueId: 0,\n valueMap: {},\n }\n },\n computed: {\n calcStyle() {\n let color = 'black'\n if (this.screenValues[this.valueId]) {\n color = this.valueMap[this.screenValues[this.valueId][0]]\n }\n let width = 1\n if (this.parameters[7]) {\n width = this.parameters[7]\n }\n return 'stroke:' + color + ';stroke-width:' + width\n },\n },\n created() {\n // Look through the settings for our color value mappings\n this.appliedSettings.forEach((setting) => {\n if (setting[0] === 'VALUE_EQ') {\n this.valueMap[setting[1]] = setting[2]\n }\n })\n\n let type = 'CONVERTED'\n if (this.parameters[8]) {\n type = this.parameters[8]\n }\n this.valueId = `${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__${type}`\n this.$emit('addItem', this.valueId)\n },\n unmounted() {\n this.$emit('deleteItem', this.valueId)\n },\n}\n</script>\n"],"names":["_sfc_main","Widget","color","width","setting","type","_hoisted_1","_createElementBlock","_ctx","_normalizeStyle","$options"],"mappings":";;;AAkCA,MAAKA,IAAU;AAAA,EACb,QAAQ,CAACC,CAAM;AAAA,EACf,OAAO;AACL,WAAO;AAAA,MACL,SAAS;AAAA,MACT,UAAU,CAAA;AAAA,IACZ;AAAA,EACF;AAAA,EACA,UAAU;AAAA,IACR,YAAY;AACV,UAAIC,IAAQ;AACZ,MAAI,KAAK,aAAa,KAAK,OAAO,MAChCA,IAAQ,KAAK,SAAS,KAAK,aAAa,KAAK,OAAO,EAAE,CAAC,CAAC;AAE1D,UAAIC,IAAQ;AACZ,aAAI,KAAK,WAAW,CAAC,MACnBA,IAAQ,KAAK,WAAW,CAAC,IAEpB,YAAYD,IAAQ,mBAAmBC;AAAA,IAChD;AAAA;EAEF,UAAU;AAER,SAAK,gBAAgB,QAAQ,CAACC,MAAY;AACxC,MAAIA,EAAQ,CAAC,MAAM,eACjB,KAAK,SAASA,EAAQ,CAAC,CAAC,IAAIA,EAAQ,CAAC;AAAA,IAEzC,CAAC;AAED,QAAIC,IAAO;AACX,IAAI,KAAK,WAAW,CAAC,MACnBA,IAAO,KAAK,WAAW,CAAC,IAE1B,KAAK,UAAU,GAAG,KAAK,WAAW,CAAC,CAAC,KAAK,KAAK,WAAW,CAAC,CAAC,KAAK,KAAK,WAAW,CAAC,CAAC,KAAKA,CAAI,IAC3F,KAAK,MAAM,WAAW,KAAK,OAAO;AAAA,EACpC;AAAA,EACA,YAAY;AACV,SAAK,MAAM,cAAc,KAAK,OAAO;AAAA,EACvC;AACF,GAzEAC,IAAA,CAAA,MAAA,MAAA,MAAA,IAAA;;cAuBEC,EAME,QAAA;AAAA,IALC,IAAIC,EAAA,WAAU,CAAA;AAAA,IACd,IAAIA,EAAA,WAAU,CAAA;AAAA,IACd,IAAIA,EAAA,WAAU,CAAA;AAAA,IACd,IAAIA,EAAA,WAAU,CAAA;AAAA,IACd,OA5BLC,EA4BYC,EAAA,SAAS;AAAA,EA5BrB,GAAA,MAAA,IAAAJ,CAAA;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"CheckbuttonWidget-BvggsGZY.cjs","sources":["../src/widgets/CheckbuttonWidget.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 <v-checkbox\n hide-details\n density=\"compact\"\n :label=\"label\"\n v-model=\"value\"\n :style=\"computedStyle\"\n >\n </v-checkbox>\n</template>\n\n<script>\nimport Widget from './Widget'\n\nexport default {\n mixins: [Widget],\n data() {\n return {\n items: [],\n label: 'Checkbox',\n value: false,\n }\n },\n created() {\n this.label = this.parameters[0]\n // Any additional parameter we interpret as \"checked\"\n if (this.parameters[1]) {\n this.value = true\n }\n },\n methods: {\n checked() {\n return this.value\n },\n },\n}\n</script>\n"],"names":["_sfc_main","Widget","_createBlock","_component_v_checkbox","$data","_cache","$event","_normalizeStyle","_ctx"],"mappings":"iLAoCKA,EAAU,CACb,OAAQ,CAACC,EAAAA,MAAM,EACf,MAAO,CACL,MAAO,CACL,MAAO,CAAA,EACP,MAAO,WACP,MAAO,EACT,GAEF,SAAU,CACR,KAAK,MAAQ,KAAK,WAAW,CAAC,EAE1B,KAAK,WAAW,CAAC,IACnB,KAAK,MAAQ,KAGjB,QAAS,CACP,SAAU,CACR,OAAO,KAAK,OAGlB,wFAlCEC,EAAAA,YAOaC,EAAA,CANX,eAAA,GACA,QAAQ,UACP,MAAOC,EAAA,MA1BZ,WA2BaA,EAAA,MA3Bb,sBAAAC,EAAA,CAAA,IAAAA,EAAA,CAAA,EAAAC,GA2BaF,EAAA,MAAKE,GACb,MA5BLC,EAAAA,eA4BYC,EAAA,aAAa"}
1
+ {"version":3,"file":"CheckbuttonWidget-BvggsGZY.cjs","sources":["../src/widgets/CheckbuttonWidget.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 <v-checkbox\n hide-details\n density=\"compact\"\n :label=\"label\"\n v-model=\"value\"\n :style=\"computedStyle\"\n >\n </v-checkbox>\n</template>\n\n<script>\nimport Widget from './Widget'\n\nexport default {\n mixins: [Widget],\n data() {\n return {\n items: [],\n label: 'Checkbox',\n value: false,\n }\n },\n created() {\n this.label = this.parameters[0]\n // Any additional parameter we interpret as \"checked\"\n if (this.parameters[1]) {\n this.value = true\n }\n },\n methods: {\n checked() {\n return this.value\n },\n },\n}\n</script>\n"],"names":["_sfc_main","Widget","_createBlock","_component_v_checkbox","$data","_cache","$event","_normalizeStyle","_ctx"],"mappings":"iLAoCKA,EAAU,CACb,OAAQ,CAACC,EAAAA,MAAM,EACf,MAAO,CACL,MAAO,CACL,MAAO,CAAA,EACP,MAAO,WACP,MAAO,EACT,CACF,EACA,SAAU,CACR,KAAK,MAAQ,KAAK,WAAW,CAAC,EAE1B,KAAK,WAAW,CAAC,IACnB,KAAK,MAAQ,GAEjB,EACA,QAAS,CACP,SAAU,CACR,OAAO,KAAK,KACd,EAEJ,wFAlCEC,EAAAA,YAOaC,EAAA,CANX,eAAA,GACA,QAAQ,UACP,MAAOC,EAAA,MA1BZ,WA2BaA,EAAA,MA3Bb,sBAAAC,EAAA,CAAA,IAAAA,EAAA,CAAA,EAAAC,GA2BaF,EAAA,MAAKE,GACb,MA5BLC,EAAAA,eA4BYC,EAAA,aAAa"}
@@ -1 +1 @@
1
- {"version":3,"file":"CheckbuttonWidget-DCam7Jd0.js","sources":["../src/widgets/CheckbuttonWidget.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 <v-checkbox\n hide-details\n density=\"compact\"\n :label=\"label\"\n v-model=\"value\"\n :style=\"computedStyle\"\n >\n </v-checkbox>\n</template>\n\n<script>\nimport Widget from './Widget'\n\nexport default {\n mixins: [Widget],\n data() {\n return {\n items: [],\n label: 'Checkbox',\n value: false,\n }\n },\n created() {\n this.label = this.parameters[0]\n // Any additional parameter we interpret as \"checked\"\n if (this.parameters[1]) {\n this.value = true\n }\n },\n methods: {\n checked() {\n return this.value\n },\n },\n}\n</script>\n"],"names":["_sfc_main","Widget","_createBlock","_component_v_checkbox","$data","_cache","$event","_normalizeStyle","_ctx"],"mappings":";;;AAoCA,MAAKA,IAAU;AAAA,EACb,QAAQ,CAACC,CAAM;AAAA,EACf,OAAO;AACL,WAAO;AAAA,MACL,OAAO,CAAA;AAAA,MACP,OAAO;AAAA,MACP,OAAO;AAAA,IACT;AAAA;EAEF,UAAU;AACR,SAAK,QAAQ,KAAK,WAAW,CAAC,GAE1B,KAAK,WAAW,CAAC,MACnB,KAAK,QAAQ;AAAA;EAGjB,SAAS;AAAA,IACP,UAAU;AACR,aAAO,KAAK;AAAA;;AAGlB;;;cAlCEC,EAOaC,GAAA;AAAA,IANX,gBAAA;AAAA,IACA,SAAQ;AAAA,IACP,OAAOC,EAAA;AAAA,IA1BZ,YA2BaA,EAAA;AAAA,IA3Bb,uBAAAC,EAAA,CAAA,MAAAA,EAAA,CAAA,IAAA,CAAAC,MA2BaF,EAAA,QAAKE;AAAA,IACb,OA5BLC,EA4BYC,EAAA,aAAa;AAAA;;;"}
1
+ {"version":3,"file":"CheckbuttonWidget-DCam7Jd0.js","sources":["../src/widgets/CheckbuttonWidget.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 <v-checkbox\n hide-details\n density=\"compact\"\n :label=\"label\"\n v-model=\"value\"\n :style=\"computedStyle\"\n >\n </v-checkbox>\n</template>\n\n<script>\nimport Widget from './Widget'\n\nexport default {\n mixins: [Widget],\n data() {\n return {\n items: [],\n label: 'Checkbox',\n value: false,\n }\n },\n created() {\n this.label = this.parameters[0]\n // Any additional parameter we interpret as \"checked\"\n if (this.parameters[1]) {\n this.value = true\n }\n },\n methods: {\n checked() {\n return this.value\n },\n },\n}\n</script>\n"],"names":["_sfc_main","Widget","_createBlock","_component_v_checkbox","$data","_cache","$event","_normalizeStyle","_ctx"],"mappings":";;;AAoCA,MAAKA,IAAU;AAAA,EACb,QAAQ,CAACC,CAAM;AAAA,EACf,OAAO;AACL,WAAO;AAAA,MACL,OAAO,CAAA;AAAA,MACP,OAAO;AAAA,MACP,OAAO;AAAA,IACT;AAAA,EACF;AAAA,EACA,UAAU;AACR,SAAK,QAAQ,KAAK,WAAW,CAAC,GAE1B,KAAK,WAAW,CAAC,MACnB,KAAK,QAAQ;AAAA,EAEjB;AAAA,EACA,SAAS;AAAA,IACP,UAAU;AACR,aAAO,KAAK;AAAA,IACd;AAAA;AAEJ;;;cAlCEC,EAOaC,GAAA;AAAA,IANX,gBAAA;AAAA,IACA,SAAQ;AAAA,IACP,OAAOC,EAAA;AAAA,IA1BZ,YA2BaA,EAAA;AAAA,IA3Bb,uBAAAC,EAAA,CAAA,MAAAA,EAAA,CAAA,IAAA,CAAAC,MA2BaF,EAAA,QAAKE;AAAA,IACb,OA5BLC,EA4BYC,EAAA,aAAa;AAAA;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"ComboboxWidget-BS5WSbrK.cjs","sources":["../src/widgets/ComboboxWidget.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 2023, OpenC3, Inc.\n# All Rights Reserved\n#\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n-->\n\n<template>\n <v-select\n hide-details\n density=\"compact\"\n variant=\"outlined\"\n :items=\"items\"\n v-model=\"value\"\n :style=\"computedStyle\"\n >\n </v-select>\n</template>\n\n<script>\nimport Widget from './Widget'\n\nexport default {\n mixins: [Widget],\n data() {\n return {\n items: [],\n value: null,\n }\n },\n created() {\n this.value = this.parameters[0]\n this.items = this.parameters\n },\n methods: {\n text() {\n return this.value\n },\n },\n}\n</script>\n"],"names":["_sfc_main","Widget","_createBlock","_component_v_select","$data","_cache","$event","_normalizeStyle","_ctx"],"mappings":"iLAqCKA,EAAU,CACb,OAAQ,CAACC,EAAAA,MAAM,EACf,MAAO,CACL,MAAO,CACL,MAAO,CAAA,EACP,MAAO,IACT,GAEF,SAAU,CACR,KAAK,MAAQ,KAAK,WAAW,CAAC,EAC9B,KAAK,MAAQ,KAAK,YAEpB,QAAS,CACP,MAAO,CACL,OAAO,KAAK,OAGlB,sFA/BEC,EAAAA,YAQWC,EAAA,CAPT,eAAA,GACA,QAAQ,UACR,QAAQ,WACP,MAAOC,EAAA,MA3BZ,WA4BaA,EAAA,MA5Bb,sBAAAC,EAAA,CAAA,IAAAA,EAAA,CAAA,EAAAC,GA4BaF,EAAA,MAAKE,GACb,MA7BLC,EAAAA,eA6BYC,EAAA,aAAa"}
1
+ {"version":3,"file":"ComboboxWidget-BS5WSbrK.cjs","sources":["../src/widgets/ComboboxWidget.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 2023, OpenC3, Inc.\n# All Rights Reserved\n#\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n-->\n\n<template>\n <v-select\n hide-details\n density=\"compact\"\n variant=\"outlined\"\n :items=\"items\"\n v-model=\"value\"\n :style=\"computedStyle\"\n >\n </v-select>\n</template>\n\n<script>\nimport Widget from './Widget'\n\nexport default {\n mixins: [Widget],\n data() {\n return {\n items: [],\n value: null,\n }\n },\n created() {\n this.value = this.parameters[0]\n this.items = this.parameters\n },\n methods: {\n text() {\n return this.value\n },\n },\n}\n</script>\n"],"names":["_sfc_main","Widget","_createBlock","_component_v_select","$data","_cache","$event","_normalizeStyle","_ctx"],"mappings":"iLAqCKA,EAAU,CACb,OAAQ,CAACC,EAAAA,MAAM,EACf,MAAO,CACL,MAAO,CACL,MAAO,CAAA,EACP,MAAO,IACT,CACF,EACA,SAAU,CACR,KAAK,MAAQ,KAAK,WAAW,CAAC,EAC9B,KAAK,MAAQ,KAAK,UACpB,EACA,QAAS,CACP,MAAO,CACL,OAAO,KAAK,KACd,EAEJ,sFA/BEC,EAAAA,YAQWC,EAAA,CAPT,eAAA,GACA,QAAQ,UACR,QAAQ,WACP,MAAOC,EAAA,MA3BZ,WA4BaA,EAAA,MA5Bb,sBAAAC,EAAA,CAAA,IAAAA,EAAA,CAAA,EAAAC,GA4BaF,EAAA,MAAKE,GACb,MA7BLC,EAAAA,eA6BYC,EAAA,aAAa"}
@@ -1 +1 @@
1
- {"version":3,"file":"ComboboxWidget-ZX-k-_aK.js","sources":["../src/widgets/ComboboxWidget.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 2023, OpenC3, Inc.\n# All Rights Reserved\n#\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n-->\n\n<template>\n <v-select\n hide-details\n density=\"compact\"\n variant=\"outlined\"\n :items=\"items\"\n v-model=\"value\"\n :style=\"computedStyle\"\n >\n </v-select>\n</template>\n\n<script>\nimport Widget from './Widget'\n\nexport default {\n mixins: [Widget],\n data() {\n return {\n items: [],\n value: null,\n }\n },\n created() {\n this.value = this.parameters[0]\n this.items = this.parameters\n },\n methods: {\n text() {\n return this.value\n },\n },\n}\n</script>\n"],"names":["_sfc_main","Widget","_createBlock","_component_v_select","$data","_cache","$event","_normalizeStyle","_ctx"],"mappings":";;;AAqCA,MAAKA,IAAU;AAAA,EACb,QAAQ,CAACC,CAAM;AAAA,EACf,OAAO;AACL,WAAO;AAAA,MACL,OAAO,CAAA;AAAA,MACP,OAAO;AAAA,IACT;AAAA;EAEF,UAAU;AACR,SAAK,QAAQ,KAAK,WAAW,CAAC,GAC9B,KAAK,QAAQ,KAAK;AAAA;EAEpB,SAAS;AAAA,IACP,OAAO;AACL,aAAO,KAAK;AAAA;;AAGlB;;;cA/BEC,EAQWC,GAAA;AAAA,IAPT,gBAAA;AAAA,IACA,SAAQ;AAAA,IACR,SAAQ;AAAA,IACP,OAAOC,EAAA;AAAA,IA3BZ,YA4BaA,EAAA;AAAA,IA5Bb,uBAAAC,EAAA,CAAA,MAAAA,EAAA,CAAA,IAAA,CAAAC,MA4BaF,EAAA,QAAKE;AAAA,IACb,OA7BLC,EA6BYC,EAAA,aAAa;AAAA;;;"}
1
+ {"version":3,"file":"ComboboxWidget-ZX-k-_aK.js","sources":["../src/widgets/ComboboxWidget.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 2023, OpenC3, Inc.\n# All Rights Reserved\n#\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n-->\n\n<template>\n <v-select\n hide-details\n density=\"compact\"\n variant=\"outlined\"\n :items=\"items\"\n v-model=\"value\"\n :style=\"computedStyle\"\n >\n </v-select>\n</template>\n\n<script>\nimport Widget from './Widget'\n\nexport default {\n mixins: [Widget],\n data() {\n return {\n items: [],\n value: null,\n }\n },\n created() {\n this.value = this.parameters[0]\n this.items = this.parameters\n },\n methods: {\n text() {\n return this.value\n },\n },\n}\n</script>\n"],"names":["_sfc_main","Widget","_createBlock","_component_v_select","$data","_cache","$event","_normalizeStyle","_ctx"],"mappings":";;;AAqCA,MAAKA,IAAU;AAAA,EACb,QAAQ,CAACC,CAAM;AAAA,EACf,OAAO;AACL,WAAO;AAAA,MACL,OAAO,CAAA;AAAA,MACP,OAAO;AAAA,IACT;AAAA,EACF;AAAA,EACA,UAAU;AACR,SAAK,QAAQ,KAAK,WAAW,CAAC,GAC9B,KAAK,QAAQ,KAAK;AAAA,EACpB;AAAA,EACA,SAAS;AAAA,IACP,OAAO;AACL,aAAO,KAAK;AAAA,IACd;AAAA;AAEJ;;;cA/BEC,EAQWC,GAAA;AAAA,IAPT,gBAAA;AAAA,IACA,SAAQ;AAAA,IACR,SAAQ;AAAA,IACP,OAAOC,EAAA;AAAA,IA3BZ,YA4BaA,EAAA;AAAA,IA5Bb,uBAAAC,EAAA,CAAA,MAAAA,EAAA,CAAA,IAAA,CAAAC,MA4BaF,EAAA,QAAKE;AAAA,IACb,OA7BLC,EA6BYC,EAAA,aAAa;AAAA;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"CriticalCmdDialog-7tOK2XQk.cjs","sources":["../src/components/CriticalCmdDialog.vue"],"sourcesContent":["<!--\n# Copyright 2024 OpenC3, Inc.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n#\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n-->\n\n<template>\n <v-dialog v-model=\"show\" :persistent=\"persistent\" width=\"600\">\n <v-card>\n <v-toolbar height=\"24\">\n <v-spacer />\n <span> Waiting for Critical Command Approval </span>\n <v-spacer />\n </v-toolbar>\n\n <v-card-text>\n <v-container fluid>\n <v-alert v-model=\"error\" type=\"error\" dismissible>\n {{ errorText }}\n </v-alert>\n <v-row class=\"pt-4\" style=\"color: white\"\n >User {{ cmdUser }} is waiting for approval to execute:\n </v-row>\n <v-row class=\"pa-4\" style=\"color: white\">{{ cmdString }}</v-row>\n <v-row class=\"text-subtitle-2\">UUID: {{ uuid }}</v-row>\n\n <v-row v-if=\"!canApprove\">\n <v-text-field\n v-model=\"username\"\n label=\"Username\"\n data-test=\"username\"\n />\n </v-row>\n <v-row v-if=\"!canApprove\">\n <v-text-field\n v-model=\"password\"\n type=\"password\"\n label=\"Password\"\n data-test=\"password\"\n />\n </v-row>\n <v-row class=\"pt-2\">\n <v-spacer />\n <v-btn\n type=\"submit\"\n class=\"mx-2\"\n color=\"secondary\"\n outlined\n :disabled=\"disableButtons\"\n data-test=\"reject\"\n @click.prevent=\"reject\"\n >\n Reject\n </v-btn>\n <v-btn\n type=\"submit\"\n class=\"mx-2\"\n color=\"primary\"\n :disabled=\"disableButtons\"\n data-test=\"approve\"\n @click.prevent=\"approve\"\n >\n Approve\n </v-btn>\n </v-row>\n </v-container>\n </v-card-text>\n </v-card>\n </v-dialog>\n</template>\n\n<script>\nimport axios from 'axios'\nimport { Api } from '@openc3/js-common/services'\n\nexport default {\n props: {\n uuid: String,\n cmdUser: String,\n cmdString: String,\n persistent: {\n type: Boolean,\n default: false,\n },\n modelValue: Boolean, // modelValue is the default prop when using v-model\n },\n data() {\n return {\n updater: null,\n username: null,\n password: null,\n canApprove: false,\n error: false,\n errorText: '',\n }\n },\n computed: {\n show: {\n get() {\n return this.modelValue\n },\n set(value) {\n this.$emit('update:modelValue', value) // update:modelValue is the default event when using v-model\n },\n },\n formValid: function () {\n return !!this.password && !!this.username\n },\n disableButtons: function () {\n return !this.formValid && !this.canApprove\n },\n },\n watch: {\n // Create a watcher on value which is the indicator to display the dialog\n // If value is true we request the details from the server\n // If this is a tlm dialog we setup an interval to get the telemetry values\n modelValue: function (newValue, oldValue) {\n if (newValue) {\n // Check if we can approve without username/password\n Api.get('/openc3-api/criticalcmd/canapprove/' + this.uuid).then(\n (response) => {\n if (response.data.status === 'ok') {\n this.canApprove = true\n }\n },\n )\n\n // Clear if approved/rejected\n this.updater = setInterval(() => {\n if (this.uuid) {\n Api.get('/openc3-api/criticalcmd/status/' + this.uuid).then(\n (response) => {\n if (response.data.status !== 'WAITING') {\n this.$emit('status', response.data.status)\n this.show = false\n }\n },\n )\n } else {\n this.show = false\n }\n }, 1000)\n } else {\n clearInterval(this.updater)\n this.updater = null\n this.canApprove = false\n this.username = null\n this.password = null\n }\n },\n },\n beforeUnmount() {\n clearInterval(this.updater)\n this.updater = null\n this.canApprove = false\n this.username = null\n this.password = null\n },\n methods: {\n async approve() {\n if (this.canApprove) {\n await Api.post('/openc3-api/criticalcmd/approve/' + this.uuid, {}).then(\n (response) => {\n if (response.status == 200) {\n this.$emit('status', 'APPROVED')\n this.show = false\n this.error = false\n }\n },\n )\n } else {\n let token = await this.getKeycloakToken()\n axios\n .post(\n '/openc3-api/criticalcmd/approve/' + this.uuid,\n {},\n {\n headers: {\n Authorization: token,\n 'Content-Type': 'application/json',\n },\n params: {\n scope: window.openc3Scope,\n },\n timeout: 5000,\n },\n )\n .then((_response) => {\n this.$emit('status', 'APPROVED')\n this.show = false\n this.error = false\n })\n .catch((error) => {\n this.error = true\n if (error.response) {\n this.errorText = error.response.data.message\n } else {\n this.errorText = error.message\n }\n })\n }\n },\n async reject() {\n if (this.canApprove) {\n await Api.post('/openc3-api/criticalcmd/reject/' + this.uuid, {}).then(\n (response) => {\n if (response.status == 200) {\n this.$emit('status', 'REJECTED')\n this.show = false\n this.error = false\n }\n },\n )\n } else {\n let token = await this.getKeycloakToken()\n const response = await axios.post(\n '/openc3-api/criticalcmd/reject/' + this.uuid,\n {},\n {\n headers: {\n Authorization: token,\n 'Content-Type': 'application/json',\n },\n params: {\n scope: window.openc3Scope,\n },\n timeout: 5000,\n },\n )\n if (response.status == 200) {\n this.$emit('status', 'REJECTED')\n this.show = false\n this.error = false\n }\n }\n },\n async getKeycloakToken() {\n const response = await axios.post(\n localStorage.keycloakUrl +\n '/realms/' +\n localStorage.keycloakRealm +\n '/protocol/openid-connect/token',\n {\n username: this.username,\n password: this.password,\n client_id: localStorage.keycloakClientId,\n grant_type: 'password',\n scope: 'openid',\n },\n {\n headers: {\n 'Content-Type': 'application/x-www-form-urlencoded',\n },\n timeout: 5000,\n },\n )\n return response.data.access_token\n },\n },\n}\n</script>\n\n<style scoped>\n.label {\n font-weight: bold;\n text-transform: capitalize;\n}\n\n:deep(.v-input--selection-controls) {\n padding: 0px;\n margin: 0px;\n}\n</style>\n"],"names":["_sfc_main","value","newValue","oldValue","Api","response","token","axios","_response","error","_createBlock","_component_v_dialog","$options","_cache","$event","$props","_withCtx","_createVNode","_component_v_card","_component_v_toolbar","_component_v_spacer","_createElementVNode","_component_v_card_text","_component_v_container","_component_v_alert","$data","_createTextVNode","_toDisplayString","_component_v_row","_createCommentVNode","_openBlock","_component_v_text_field","_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CAAA,IAAAA,EAAA,CAAA,EAAA,CAjEZa,EAAAA,gBA+Da,UAED,KAjEZ,EAAA,6BAkEYT,EAAAA,YASQe,EAAA,CARN,KAAK,SACL,MAAM,OACN,MAAM,UACL,SAAUpB,EAAA,eACX,YAAU,UACT,QAxEfqB,EAAAA,cAwE8BrB,EAAA,QAAO,CAAA,SAAA,CAAA,IAxErC,QAAAI,EAAAA,QAyEa,IAEDH,EAAA,CAAA,IAAAA,EAAA,CAAA,EAAA,CA3EZa,EAAAA,gBAyEa,WAED,KA3EZ,EAAA,+BAAA,EAAA,MAAA,EAAA,MAAA,EAAA,MAAA,EAAA,MAAA,EAAA"}
1
+ {"version":3,"file":"CriticalCmdDialog-7tOK2XQk.cjs","sources":["../src/components/CriticalCmdDialog.vue"],"sourcesContent":["<!--\n# Copyright 2024 OpenC3, Inc.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n#\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n-->\n\n<template>\n <v-dialog v-model=\"show\" :persistent=\"persistent\" width=\"600\">\n <v-card>\n <v-toolbar height=\"24\">\n <v-spacer />\n <span> Waiting for Critical Command Approval </span>\n <v-spacer />\n </v-toolbar>\n\n <v-card-text>\n <v-container fluid>\n <v-alert v-model=\"error\" type=\"error\" dismissible>\n {{ errorText }}\n </v-alert>\n <v-row class=\"pt-4\" style=\"color: white\"\n >User {{ cmdUser }} is waiting for approval to execute:\n </v-row>\n <v-row class=\"pa-4\" style=\"color: white\">{{ cmdString }}</v-row>\n <v-row class=\"text-subtitle-2\">UUID: {{ uuid }}</v-row>\n\n <v-row v-if=\"!canApprove\">\n <v-text-field\n v-model=\"username\"\n label=\"Username\"\n data-test=\"username\"\n />\n </v-row>\n <v-row v-if=\"!canApprove\">\n <v-text-field\n v-model=\"password\"\n type=\"password\"\n label=\"Password\"\n data-test=\"password\"\n />\n </v-row>\n <v-row class=\"pt-2\">\n <v-spacer />\n <v-btn\n type=\"submit\"\n class=\"mx-2\"\n color=\"secondary\"\n outlined\n :disabled=\"disableButtons\"\n data-test=\"reject\"\n @click.prevent=\"reject\"\n >\n Reject\n </v-btn>\n <v-btn\n type=\"submit\"\n class=\"mx-2\"\n color=\"primary\"\n :disabled=\"disableButtons\"\n data-test=\"approve\"\n @click.prevent=\"approve\"\n >\n Approve\n </v-btn>\n </v-row>\n </v-container>\n </v-card-text>\n </v-card>\n </v-dialog>\n</template>\n\n<script>\nimport axios from 'axios'\nimport { Api } from '@openc3/js-common/services'\n\nexport default {\n props: {\n uuid: String,\n cmdUser: String,\n cmdString: String,\n persistent: {\n type: Boolean,\n default: false,\n },\n modelValue: Boolean, // modelValue is the default prop when using v-model\n },\n data() {\n return {\n updater: null,\n username: null,\n password: null,\n canApprove: false,\n error: false,\n errorText: '',\n }\n },\n computed: {\n show: {\n get() {\n return this.modelValue\n },\n set(value) {\n this.$emit('update:modelValue', value) // update:modelValue is the default event when using v-model\n },\n },\n formValid: function () {\n return !!this.password && !!this.username\n },\n disableButtons: function () {\n return !this.formValid && !this.canApprove\n },\n },\n watch: {\n // Create a watcher on value which is the indicator to display the dialog\n // If value is true we request the details from the server\n // If this is a tlm dialog we setup an interval to get the telemetry values\n modelValue: function (newValue, oldValue) {\n if (newValue) {\n // Check if we can approve without username/password\n Api.get('/openc3-api/criticalcmd/canapprove/' + this.uuid).then(\n (response) => {\n if (response.data.status === 'ok') {\n this.canApprove = true\n }\n },\n )\n\n // Clear if approved/rejected\n this.updater = setInterval(() => {\n if (this.uuid) {\n Api.get('/openc3-api/criticalcmd/status/' + this.uuid).then(\n (response) => {\n if (response.data.status !== 'WAITING') {\n this.$emit('status', response.data.status)\n this.show = false\n }\n },\n )\n } else {\n this.show = false\n }\n }, 1000)\n } else {\n clearInterval(this.updater)\n this.updater = null\n this.canApprove = false\n this.username = null\n this.password = null\n }\n },\n },\n beforeUnmount() {\n clearInterval(this.updater)\n this.updater = null\n this.canApprove = false\n this.username = null\n this.password = null\n },\n methods: {\n async approve() {\n if (this.canApprove) {\n await Api.post('/openc3-api/criticalcmd/approve/' + this.uuid, {}).then(\n (response) => {\n if (response.status == 200) {\n this.$emit('status', 'APPROVED')\n this.show = false\n this.error = false\n }\n },\n )\n } else {\n let token = await this.getKeycloakToken()\n axios\n .post(\n '/openc3-api/criticalcmd/approve/' + this.uuid,\n {},\n {\n headers: {\n Authorization: token,\n 'Content-Type': 'application/json',\n },\n params: {\n scope: window.openc3Scope,\n },\n timeout: 5000,\n },\n )\n .then((_response) => {\n this.$emit('status', 'APPROVED')\n this.show = false\n this.error = false\n })\n .catch((error) => {\n this.error = true\n if (error.response) {\n this.errorText = error.response.data.message\n } else {\n this.errorText = error.message\n }\n })\n }\n },\n async reject() {\n if (this.canApprove) {\n await Api.post('/openc3-api/criticalcmd/reject/' + this.uuid, {}).then(\n (response) => {\n if (response.status == 200) {\n this.$emit('status', 'REJECTED')\n this.show = false\n this.error = false\n }\n },\n )\n } else {\n let token = await this.getKeycloakToken()\n const response = await axios.post(\n '/openc3-api/criticalcmd/reject/' + this.uuid,\n {},\n {\n headers: {\n Authorization: token,\n 'Content-Type': 'application/json',\n },\n params: {\n scope: window.openc3Scope,\n },\n timeout: 5000,\n },\n )\n if (response.status == 200) {\n this.$emit('status', 'REJECTED')\n this.show = false\n this.error = false\n }\n }\n },\n async getKeycloakToken() {\n const response = await axios.post(\n localStorage.keycloakUrl +\n '/realms/' +\n localStorage.keycloakRealm +\n '/protocol/openid-connect/token',\n {\n username: this.username,\n password: this.password,\n client_id: localStorage.keycloakClientId,\n grant_type: 'password',\n scope: 'openid',\n },\n {\n headers: {\n 'Content-Type': 'application/x-www-form-urlencoded',\n },\n timeout: 5000,\n },\n )\n return response.data.access_token\n },\n },\n}\n</script>\n\n<style scoped>\n.label {\n font-weight: bold;\n text-transform: capitalize;\n}\n\n:deep(.v-input--selection-controls) {\n padding: 0px;\n margin: 0px;\n}\n</style>\n"],"names":["_sfc_main","value","newValue","oldValue","Api","response","token","axios","_response","error","_createBlock","_component_v_dialog","$options","_cache","$event","$props","_withCtx","_createVNode","_component_v_card","_component_v_toolbar","_component_v_spacer","_createElementVNode","_component_v_card_text","_component_v_container","_component_v_alert","$data","_createTextVNode","_toDisplayString","_component_v_row","_createCommentVNode","_openBlock","_component_v_text_field","_component_v_btn","_withModifiers"],"mappings":"mNAuFKA,EAAU,CACb,MAAO,CACL,KAAM,OACN,QAAS,OACT,UAAW,OACX,WAAY,CACV,KAAM,QACN,QAAS,IAEX,WAAY,SAEd,MAAO,CACL,MAAO,CACL,QAAS,KACT,SAAU,KACV,SAAU,KACV,WAAY,GACZ,MAAO,GACP,UAAW,EACb,CACF,EACA,SAAU,CACR,KAAM,CACJ,KAAM,CACJ,OAAO,KAAK,UACd,EACA,IAAIC,EAAO,CACT,KAAK,MAAM,oBAAqBA,CAAK,CACvC,GAEF,UAAW,UAAY,CACrB,MAAO,CAAC,CAAC,KAAK,UAAY,CAAC,CAAC,KAAK,QACnC,EACA,eAAgB,UAAY,CAC1B,MAAO,CAAC,KAAK,WAAa,CAAC,KAAK,UAClC,GAEF,MAAO,CAIL,WAAY,SAAUC,EAAUC,EAAU,CACpCD,GAEFE,EAAAA,GAAI,IAAI,sCAAwC,KAAK,IAAI,EAAE,KACxDC,GAAa,CACRA,EAAS,KAAK,SAAW,OAC3B,KAAK,WAAa,GAEtB,CACF,EAGA,KAAK,QAAU,YAAY,IAAM,CAC3B,KAAK,KACPD,EAAAA,GAAI,IAAI,kCAAoC,KAAK,IAAI,EAAE,KACpDC,GAAa,CACRA,EAAS,KAAK,SAAW,YAC3B,KAAK,MAAM,SAAUA,EAAS,KAAK,MAAM,EACzC,KAAK,KAA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AA,SA/CvB,sBAAAZ,EAAA,CAAA,IAAAA,EAAA,CAAA,EAAAC,GA+CuBW,EAAA,SAAQX,GACjB,KAAK,WACL,MAAM,WACN,YAAU,qCAlDxB,EAAA,KAqDUG,EAAAA,YAuBQW,EAAA,CAvBD,MAAM,MAAM,EAAA,CArD7B,QAAAZ,EAAAA,QAsDY,IAAY,CAAZC,EAAAA,YAAYG,CAAA,EACZH,EAAAA,YAUQe,EAAA,CATN,KAAK,SACL,MAAM,OACN,MAAM,YACN,SAAA,GACC,SAAUpB,EAAA,eACX,YAAU,SACT,QA9DfqB,EAAAA,cA8D8BrB,EAAA,OAAM,CAAA,SAAA,CAAA,IA9DpC,QAAAI,EAAAA,QA+Da,IAEDH,EAAA,CAAA,IAAAA,EAAA,CAAA,EAAA,CAjEZa,EAAAA,gBA+Da,UAED,KAjEZ,EAAA,6BAkEYT,EAAAA,YASQe,EAAA,CARN,KAAK,SACL,MAAM,OACN,MAAM,UACL,SAAUpB,EAAA,eACX,YAAU,UACT,QAxEfqB,EAAAA,cAwE8BrB,EAAA,QAAO,CAAA,SAAA,CAAA,IAxErC,QAAAI,EAAAA,QAyEa,IAEDH,EAAA,CAAA,IAAAA,EAAA,CAAA,EAAA,CA3EZa,EAAAA,gBAyEa,WAED,KA3EZ,EAAA,+BAAA,EAAA,MAAA,EAAA,MAAA,EAAA,MAAA,EAAA,MAAA,EAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"CriticalCmdDialog-Dylpoz_4.js","sources":["../src/components/CriticalCmdDialog.vue"],"sourcesContent":["<!--\n# Copyright 2024 OpenC3, Inc.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n#\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n-->\n\n<template>\n <v-dialog v-model=\"show\" :persistent=\"persistent\" width=\"600\">\n <v-card>\n <v-toolbar height=\"24\">\n <v-spacer />\n <span> Waiting for Critical Command Approval </span>\n <v-spacer />\n </v-toolbar>\n\n <v-card-text>\n <v-container fluid>\n <v-alert v-model=\"error\" type=\"error\" dismissible>\n {{ errorText }}\n </v-alert>\n <v-row class=\"pt-4\" style=\"color: white\"\n >User {{ cmdUser }} is waiting for approval to execute:\n </v-row>\n <v-row class=\"pa-4\" style=\"color: white\">{{ cmdString }}</v-row>\n <v-row class=\"text-subtitle-2\">UUID: {{ uuid }}</v-row>\n\n <v-row v-if=\"!canApprove\">\n <v-text-field\n v-model=\"username\"\n label=\"Username\"\n data-test=\"username\"\n />\n </v-row>\n <v-row v-if=\"!canApprove\">\n <v-text-field\n v-model=\"password\"\n type=\"password\"\n label=\"Password\"\n data-test=\"password\"\n />\n </v-row>\n <v-row class=\"pt-2\">\n <v-spacer />\n <v-btn\n type=\"submit\"\n class=\"mx-2\"\n color=\"secondary\"\n outlined\n :disabled=\"disableButtons\"\n data-test=\"reject\"\n @click.prevent=\"reject\"\n >\n Reject\n </v-btn>\n <v-btn\n type=\"submit\"\n class=\"mx-2\"\n color=\"primary\"\n :disabled=\"disableButtons\"\n data-test=\"approve\"\n @click.prevent=\"approve\"\n >\n Approve\n </v-btn>\n </v-row>\n </v-container>\n </v-card-text>\n </v-card>\n </v-dialog>\n</template>\n\n<script>\nimport axios from 'axios'\nimport { Api } from '@openc3/js-common/services'\n\nexport default {\n props: {\n uuid: String,\n cmdUser: String,\n cmdString: String,\n persistent: {\n type: Boolean,\n default: false,\n },\n modelValue: Boolean, // modelValue is the default prop when using v-model\n },\n data() {\n return {\n updater: null,\n username: null,\n password: null,\n canApprove: false,\n error: false,\n errorText: '',\n }\n },\n computed: {\n show: {\n get() {\n return this.modelValue\n },\n set(value) {\n this.$emit('update:modelValue', value) // update:modelValue is the default event when using v-model\n },\n },\n formValid: function () {\n return !!this.password && !!this.username\n },\n disableButtons: function () {\n return !this.formValid && !this.canApprove\n },\n },\n watch: {\n // Create a watcher on value which is the indicator to display the dialog\n // If value is true we request the details from the server\n // If this is a tlm dialog we setup an interval to get the telemetry values\n modelValue: function (newValue, oldValue) {\n if (newValue) {\n // Check if we can approve without username/password\n Api.get('/openc3-api/criticalcmd/canapprove/' + this.uuid).then(\n (response) => {\n if (response.data.status === 'ok') {\n this.canApprove = true\n }\n },\n )\n\n // Clear if approved/rejected\n this.updater = setInterval(() => {\n if (this.uuid) {\n Api.get('/openc3-api/criticalcmd/status/' + this.uuid).then(\n (response) => {\n if (response.data.status !== 'WAITING') {\n this.$emit('status', response.data.status)\n this.show = false\n }\n },\n )\n } else {\n this.show = false\n }\n }, 1000)\n } else {\n clearInterval(this.updater)\n this.updater = null\n this.canApprove = false\n this.username = null\n this.password = null\n }\n },\n },\n beforeUnmount() {\n clearInterval(this.updater)\n this.updater = null\n this.canApprove = false\n this.username = null\n this.password = null\n },\n methods: {\n async approve() {\n if (this.canApprove) {\n await Api.post('/openc3-api/criticalcmd/approve/' + this.uuid, {}).then(\n (response) => {\n if (response.status == 200) {\n this.$emit('status', 'APPROVED')\n this.show = false\n this.error = false\n }\n },\n )\n } else {\n let token = await this.getKeycloakToken()\n axios\n .post(\n '/openc3-api/criticalcmd/approve/' + this.uuid,\n {},\n {\n headers: {\n Authorization: token,\n 'Content-Type': 'application/json',\n },\n params: {\n scope: window.openc3Scope,\n },\n timeout: 5000,\n },\n )\n .then((_response) => {\n this.$emit('status', 'APPROVED')\n this.show = false\n this.error = false\n })\n .catch((error) => {\n this.error = true\n if (error.response) {\n this.errorText = error.response.data.message\n } else {\n this.errorText = error.message\n }\n })\n }\n },\n async reject() {\n if (this.canApprove) {\n await Api.post('/openc3-api/criticalcmd/reject/' + this.uuid, {}).then(\n (response) => {\n if (response.status == 200) {\n this.$emit('status', 'REJECTED')\n this.show = false\n this.error = false\n }\n },\n )\n } else {\n let token = await this.getKeycloakToken()\n const response = await axios.post(\n '/openc3-api/criticalcmd/reject/' + this.uuid,\n {},\n {\n headers: {\n Authorization: token,\n 'Content-Type': 'application/json',\n },\n params: {\n scope: window.openc3Scope,\n },\n timeout: 5000,\n },\n )\n if (response.status == 200) {\n this.$emit('status', 'REJECTED')\n this.show = false\n this.error = false\n }\n }\n },\n async getKeycloakToken() {\n const response = await axios.post(\n localStorage.keycloakUrl +\n '/realms/' +\n localStorage.keycloakRealm +\n '/protocol/openid-connect/token',\n {\n username: this.username,\n password: this.password,\n client_id: localStorage.keycloakClientId,\n grant_type: 'password',\n scope: 'openid',\n },\n {\n headers: {\n 'Content-Type': 'application/x-www-form-urlencoded',\n },\n timeout: 5000,\n },\n )\n return response.data.access_token\n },\n },\n}\n</script>\n\n<style scoped>\n.label {\n font-weight: bold;\n text-transform: capitalize;\n}\n\n:deep(.v-input--selection-controls) {\n padding: 0px;\n margin: 0px;\n}\n</style>\n"],"names":["_sfc_main","value","newValue","oldValue","Api","response","token","axios","_response","error","_createBlock","_component_v_dialog","$options","_cache","$event","$props","_withCtx","_createVNode","_component_v_card","_component_v_toolbar","_component_v_spacer","_createElementVNode","_component_v_card_text","_component_v_container","_component_v_alert","$data","_createTextVNode","_toDisplayString","_component_v_row","_createCommentVNode","_openBlock","_component_v_text_field","_component_v_btn","_withModifiers"],"mappings":";;;;AAuFA,MAAKA,IAAU;AAAA,EACb,OAAO;AAAA,IACL,MAAM;AAAA,IACN,SAAS;AAAA,IACT,WAAW;AAAA,IACX,YAAY;AAAA,MACV,MAAM;AAAA,MACN,SAAS;AAAA;IAEX,YAAY;AAAA;AAAA;EAEd,OAAO;AACL,WAAO;AAAA,MACL,SAAS;AAAA,MACT,UAAU;AAAA,MACV,UAAU;AAAA,MACV,YAAY;AAAA,MACZ,OAAO;AAAA,MACP,WAAW;AAAA,IACb;AAAA;EAEF,UAAU;AAAA,IACR,MAAM;AAAA,MACJ,MAA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AvBD,OAAM,OAAM,GAAA;AAAA,oBArD7B,SAAAZ,EAsDY,MAAY;AAAA,sBAAZC,EAAYG,CAAA;AAAA,sBACZH,EAUQe,GAAA;AAAA,wBATN,MAAK;AAAA,wBACL,OAAM;AAAA,wBACN,OAAM;AAAA,wBACN,UAAA;AAAA,wBACC,UAAUpB,EAAA;AAAA,wBACX,aAAU;AAAA,wBACT,SA9DfqB,EA8D8BrB,EAAA,QAAM,CAAA,SAAA,CAAA;AAAA;wBA9DpC,SAAAI,EA+Da,MAEDH,EAAA,CAAA,MAAAA,EAAA,CAAA,IAAA;AAAA,0BAjEZa,EA+Da,UAED;AAAA;wBAjEZ,GAAA;AAAA;sBAkEYT,EASQe,GAAA;AAAA,wBARN,MAAK;AAAA,wBACL,OAAM;AAAA,wBACN,OAAM;AAAA,wBACL,UAAUpB,EAAA;AAAA,wBACX,aAAU;AAAA,wBACT,SAxEfqB,EAwE8BrB,EAAA,SAAO,CAAA,SAAA,CAAA;AAAA;wBAxErC,SAAAI,EAyEa,MAEDH,EAAA,CAAA,MAAAA,EAAA,CAAA,IAAA;AAAA,0BA3EZa,EAyEa,WAED;AAAA;wBA3EZ,GAAA;AAAA;;oBAAA,GAAA;AAAA;;gBAAA,GAAA;AAAA;;YAAA,GAAA;AAAA;;QAAA,GAAA;AAAA;;IAAA,GAAA;AAAA;;;"}
1
+ {"version":3,"file":"CriticalCmdDialog-Dylpoz_4.js","sources":["../src/components/CriticalCmdDialog.vue"],"sourcesContent":["<!--\n# Copyright 2024 OpenC3, Inc.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n#\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n-->\n\n<template>\n <v-dialog v-model=\"show\" :persistent=\"persistent\" width=\"600\">\n <v-card>\n <v-toolbar height=\"24\">\n <v-spacer />\n <span> Waiting for Critical Command Approval </span>\n <v-spacer />\n </v-toolbar>\n\n <v-card-text>\n <v-container fluid>\n <v-alert v-model=\"error\" type=\"error\" dismissible>\n {{ errorText }}\n </v-alert>\n <v-row class=\"pt-4\" style=\"color: white\"\n >User {{ cmdUser }} is waiting for approval to execute:\n </v-row>\n <v-row class=\"pa-4\" style=\"color: white\">{{ cmdString }}</v-row>\n <v-row class=\"text-subtitle-2\">UUID: {{ uuid }}</v-row>\n\n <v-row v-if=\"!canApprove\">\n <v-text-field\n v-model=\"username\"\n label=\"Username\"\n data-test=\"username\"\n />\n </v-row>\n <v-row v-if=\"!canApprove\">\n <v-text-field\n v-model=\"password\"\n type=\"password\"\n label=\"Password\"\n data-test=\"password\"\n />\n </v-row>\n <v-row class=\"pt-2\">\n <v-spacer />\n <v-btn\n type=\"submit\"\n class=\"mx-2\"\n color=\"secondary\"\n outlined\n :disabled=\"disableButtons\"\n data-test=\"reject\"\n @click.prevent=\"reject\"\n >\n Reject\n </v-btn>\n <v-btn\n type=\"submit\"\n class=\"mx-2\"\n color=\"primary\"\n :disabled=\"disableButtons\"\n data-test=\"approve\"\n @click.prevent=\"approve\"\n >\n Approve\n </v-btn>\n </v-row>\n </v-container>\n </v-card-text>\n </v-card>\n </v-dialog>\n</template>\n\n<script>\nimport axios from 'axios'\nimport { Api } from '@openc3/js-common/services'\n\nexport default {\n props: {\n uuid: String,\n cmdUser: String,\n cmdString: String,\n persistent: {\n type: Boolean,\n default: false,\n },\n modelValue: Boolean, // modelValue is the default prop when using v-model\n },\n data() {\n return {\n updater: null,\n username: null,\n password: null,\n canApprove: false,\n error: false,\n errorText: '',\n }\n },\n computed: {\n show: {\n get() {\n return this.modelValue\n },\n set(value) {\n this.$emit('update:modelValue', value) // update:modelValue is the default event when using v-model\n },\n },\n formValid: function () {\n return !!this.password && !!this.username\n },\n disableButtons: function () {\n return !this.formValid && !this.canApprove\n },\n },\n watch: {\n // Create a watcher on value which is the indicator to display the dialog\n // If value is true we request the details from the server\n // If this is a tlm dialog we setup an interval to get the telemetry values\n modelValue: function (newValue, oldValue) {\n if (newValue) {\n // Check if we can approve without username/password\n Api.get('/openc3-api/criticalcmd/canapprove/' + this.uuid).then(\n (response) => {\n if (response.data.status === 'ok') {\n this.canApprove = true\n }\n },\n )\n\n // Clear if approved/rejected\n this.updater = setInterval(() => {\n if (this.uuid) {\n Api.get('/openc3-api/criticalcmd/status/' + this.uuid).then(\n (response) => {\n if (response.data.status !== 'WAITING') {\n this.$emit('status', response.data.status)\n this.show = false\n }\n },\n )\n } else {\n this.show = false\n }\n }, 1000)\n } else {\n clearInterval(this.updater)\n this.updater = null\n this.canApprove = false\n this.username = null\n this.password = null\n }\n },\n },\n beforeUnmount() {\n clearInterval(this.updater)\n this.updater = null\n this.canApprove = false\n this.username = null\n this.password = null\n },\n methods: {\n async approve() {\n if (this.canApprove) {\n await Api.post('/openc3-api/criticalcmd/approve/' + this.uuid, {}).then(\n (response) => {\n if (response.status == 200) {\n this.$emit('status', 'APPROVED')\n this.show = false\n this.error = false\n }\n },\n )\n } else {\n let token = await this.getKeycloakToken()\n axios\n .post(\n '/openc3-api/criticalcmd/approve/' + this.uuid,\n {},\n {\n headers: {\n Authorization: token,\n 'Content-Type': 'application/json',\n },\n params: {\n scope: window.openc3Scope,\n },\n timeout: 5000,\n },\n )\n .then((_response) => {\n this.$emit('status', 'APPROVED')\n this.show = false\n this.error = false\n })\n .catch((error) => {\n this.error = true\n if (error.response) {\n this.errorText = error.response.data.message\n } else {\n this.errorText = error.message\n }\n })\n }\n },\n async reject() {\n if (this.canApprove) {\n await Api.post('/openc3-api/criticalcmd/reject/' + this.uuid, {}).then(\n (response) => {\n if (response.status == 200) {\n this.$emit('status', 'REJECTED')\n this.show = false\n this.error = false\n }\n },\n )\n } else {\n let token = await this.getKeycloakToken()\n const response = await axios.post(\n '/openc3-api/criticalcmd/reject/' + this.uuid,\n {},\n {\n headers: {\n Authorization: token,\n 'Content-Type': 'application/json',\n },\n params: {\n scope: window.openc3Scope,\n },\n timeout: 5000,\n },\n )\n if (response.status == 200) {\n this.$emit('status', 'REJECTED')\n this.show = false\n this.error = false\n }\n }\n },\n async getKeycloakToken() {\n const response = await axios.post(\n localStorage.keycloakUrl +\n '/realms/' +\n localStorage.keycloakRealm +\n '/protocol/openid-connect/token',\n {\n username: this.username,\n password: this.password,\n client_id: localStorage.keycloakClientId,\n grant_type: 'password',\n scope: 'openid',\n },\n {\n headers: {\n 'Content-Type': 'application/x-www-form-urlencoded',\n },\n timeout: 5000,\n },\n )\n return response.data.access_token\n },\n },\n}\n</script>\n\n<style scoped>\n.label {\n font-weight: bold;\n text-transform: capitalize;\n}\n\n:deep(.v-input--selection-controls) {\n padding: 0px;\n margin: 0px;\n}\n</style>\n"],"names":["_sfc_main","value","newValue","oldValue","Api","response","token","axios","_response","error","_createBlock","_component_v_dialog","$options","_cache","$event","$props","_withCtx","_createVNode","_component_v_card","_component_v_toolbar","_component_v_spacer","_createElementVNode","_component_v_card_text","_component_v_container","_component_v_alert","$data","_createTextVNode","_toDisplayString","_component_v_row","_createCommentVNode","_openBlock","_component_v_text_field","_component_v_btn","_withModifiers"],"mappings":";;;;AAuFA,MAAKA,IAAU;AAAA,EACb,OAAO;AAAA,IACL,MAAM;AAAA,IACN,SAAS;AAAA,IACT,WAAW;AAAA,IACX,YAAY;AAAA,MACV,MAAM;AAAA,MACN,SAAS;AAAA;IAEX,YAAY;AAAA;AAAA;EAEd,OAAO;AACL,WAAO;AAAA,MACL,SAAS;AAAA,MACT,UAAU;AAAA,MACV,UAAU;AAAA,MACV,YAAY;AAAA,MACZ,OAAO;AAAA,MACP,WAAW;AAAA,IACb;AAAA,EACF;AAAA,EACA,UAAU;AAAA,IACR,MAAM;AAAA,MACJ,MAAM;AACJ,eAAO,KAAK;AAAA,MACd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WAAQX;AAAA,wBACjB,MAAK;AAAA,wBACL,OAAM;AAAA,wBACN,aAAU;AAAA;;oBAlDxB,GAAA;AAAA;kBAqDUG,EAuBQW,GAAA,EAvBD,OAAM,OAAM,GAAA;AAAA,oBArD7B,SAAAZ,EAsDY,MAAY;AAAA,sBAAZC,EAAYG,CAAA;AAAA,sBACZH,EAUQe,GAAA;AAAA,wBATN,MAAK;AAAA,wBACL,OAAM;AAAA,wBACN,OAAM;AAAA,wBACN,UAAA;AAAA,wBACC,UAAUpB,EAAA;AAAA,wBACX,aAAU;AAAA,wBACT,SA9DfqB,EA8D8BrB,EAAA,QAAM,CAAA,SAAA,CAAA;AAAA;wBA9DpC,SAAAI,EA+Da,MAEDH,EAAA,CAAA,MAAAA,EAAA,CAAA,IAAA;AAAA,0BAjEZa,EA+Da,UAED;AAAA;wBAjEZ,GAAA;AAAA;sBAkEYT,EASQe,GAAA;AAAA,wBARN,MAAK;AAAA,wBACL,OAAM;AAAA,wBACN,OAAM;AAAA,wBACL,UAAUpB,EAAA;AAAA,wBACX,aAAU;AAAA,wBACT,SAxEfqB,EAwE8BrB,EAAA,SAAO,CAAA,SAAA,CAAA;AAAA;wBAxErC,SAAAI,EAyEa,MAEDH,EAAA,CAAA,MAAAA,EAAA,CAAA,IAAA;AAAA,0BA3EZa,EAyEa,WAED;AAAA;wBA3EZ,GAAA;AAAA;;oBAAA,GAAA;AAAA;;gBAAA,GAAA;AAAA;;YAAA,GAAA;AAAA;;QAAA,GAAA;AAAA;;IAAA,GAAA;AAAA;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"CustomIcon-Bop2mEnu.cjs","sources":["../src/icons/CustomIcon.vue"],"sourcesContent":["<!--\n# Copyright 2025 OpenC3, Inc.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n#\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n-->\n\n<template>\n <span class=\"cosmos-custom-icon\">\n <!-- Camel case props because svg -->\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n preserveAspectRatio=\"xMidYMid meet\"\n focusable=\"false\"\n >\n <use :href=\"iconSrc\" />\n </svg>\n </span>\n</template>\n\n<script>\nconst ICON_LIBRARY = '/icons/customIcons.svg'\n\nexport default {\n props: {\n icon: {\n type: String,\n },\n size: {\n type: String,\n default: 'small',\n },\n color: {\n type: String,\n default: 'white'\n },\n },\n computed: {\n iconSrc: function () {\n return ICON_LIBRARY + '#' + this.icon\n },\n },\n}\n</script>\n\n<style scoped>\n.cosmos-custom-icon {\n fill: v-bind(color);\n}\n</style>\n"],"names":["ICON_LIBRARY","_sfc_main","_hoisted_1","_hoisted_3","_openBlock","_createElementBlock","_hoisted_2","_createElementVNode","$options"],"mappings":"yGAiCMA,EAAe,yBAEhBC,EAAU,CACb,MAAO,CACL,KAAM,CACJ,KAAM,QAER,KAAM,CACJ,KAAM,OACN,QAAS,SAEX,MAAO,CACL,KAAM,OACN,QAAS,UAGb,SAAU,CACR,QAAS,UAAY,CACnB,OAAOD,EAAe,IAAM,KAAK,MAGvC,4FAnCQ,MAAAE,EAAA,CAAA,MAAM,oBAAoB,KAG5B,MAAM,6BACN,QAAQ,YACR,oBAAoB,gBACpB,UAAU,SAzBhBC,EAAA,CAAA,MAAA,0BAmBE,OAAAC,YAAA,EAAAC,qBAUO,OAVPH,EAUO,EARLE,EAAAA,YAAAC,EAAAA,mBAOM,MAPNC,EAOM,CADJC,qBAAuB,MAAA,CAAjB,KAAMC,EAAA,SAAO,KAAA,EA3BzBL,CAAA"}
1
+ {"version":3,"file":"CustomIcon-Bop2mEnu.cjs","sources":["../src/icons/CustomIcon.vue"],"sourcesContent":["<!--\n# Copyright 2025 OpenC3, Inc.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n#\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n-->\n\n<template>\n <span class=\"cosmos-custom-icon\">\n <!-- Camel case props because svg -->\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n preserveAspectRatio=\"xMidYMid meet\"\n focusable=\"false\"\n >\n <use :href=\"iconSrc\" />\n </svg>\n </span>\n</template>\n\n<script>\nconst ICON_LIBRARY = '/icons/customIcons.svg'\n\nexport default {\n props: {\n icon: {\n type: String,\n },\n size: {\n type: String,\n default: 'small',\n },\n color: {\n type: String,\n default: 'white'\n },\n },\n computed: {\n iconSrc: function () {\n return ICON_LIBRARY + '#' + this.icon\n },\n },\n}\n</script>\n\n<style scoped>\n.cosmos-custom-icon {\n fill: v-bind(color);\n}\n</style>\n"],"names":["ICON_LIBRARY","_sfc_main","_hoisted_1","_hoisted_3","_openBlock","_createElementBlock","_hoisted_2","_createElementVNode","$options"],"mappings":"yGAiCMA,EAAe,yBAEhBC,EAAU,CACb,MAAO,CACL,KAAM,CACJ,KAAM,QAER,KAAM,CACJ,KAAM,OACN,QAAS,SAEX,MAAO,CACL,KAAM,OACN,QAAS,UAGb,SAAU,CACR,QAAS,UAAY,CACnB,OAAOD,EAAe,IAAM,KAAK,IACnC,EAEJ,4FAnCQ,MAAAE,EAAA,CAAA,MAAM,oBAAoB,KAG5B,MAAM,6BACN,QAAQ,YACR,oBAAoB,gBACpB,UAAU,SAzBhBC,EAAA,CAAA,MAAA,0BAmBE,OAAAC,YAAA,EAAAC,qBAUO,OAVPH,EAUO,EARLE,EAAAA,YAAAC,EAAAA,mBAOM,MAPNC,EAOM,CADJC,qBAAuB,MAAA,CAAjB,KAAMC,EAAA,SAAO,KAAA,EA3BzBL,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"CustomIcon-h5X7369N.js","sources":["../src/icons/CustomIcon.vue"],"sourcesContent":["<!--\n# Copyright 2025 OpenC3, Inc.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n#\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n-->\n\n<template>\n <span class=\"cosmos-custom-icon\">\n <!-- Camel case props because svg -->\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n preserveAspectRatio=\"xMidYMid meet\"\n focusable=\"false\"\n >\n <use :href=\"iconSrc\" />\n </svg>\n </span>\n</template>\n\n<script>\nconst ICON_LIBRARY = '/icons/customIcons.svg'\n\nexport default {\n props: {\n icon: {\n type: String,\n },\n size: {\n type: String,\n default: 'small',\n },\n color: {\n type: String,\n default: 'white'\n },\n },\n computed: {\n iconSrc: function () {\n return ICON_LIBRARY + '#' + this.icon\n },\n },\n}\n</script>\n\n<style scoped>\n.cosmos-custom-icon {\n fill: v-bind(color);\n}\n</style>\n"],"names":["ICON_LIBRARY","_sfc_main","_hoisted_1","_hoisted_3","_openBlock","_createElementBlock","_hoisted_2","_createElementVNode","$options"],"mappings":";;;;;;GAiCMA,IAAe,0BAEhBC,IAAU;AAAA,EACb,OAAO;AAAA,IACL,MAAM;AAAA,MACJ,MAAM;AAAA;IAER,MAAM;AAAA,MACJ,MAAM;AAAA,MACN,SAAS;AAAA;IAEX,OAAO;AAAA,MACL,MAAM;AAAA,MACN,SAAS;AAAA;;EAGb,UAAU;AAAA,IACR,SAAS,WAAY;AACnB,aAAOD,IAAe,MAAM,KAAK;AAAA;;AAGvC;;;;;;AAnCQ,MAAAE,IAAA,EAAA,OAAM,qBAAoB;EAG5B,OAAM;AAAA,EACN,SAAQ;AAAA,EACR,qBAAoB;AAAA,EACpB,WAAU;GAzBhBC,IAAA,CAAA,MAAA;;AAmBE,SAAAC,EAAA,GAAAC,EAUO,QAVPH,GAUO;AAAA,KARLE,KAAAC,EAOM,OAPNC,GAOM;AAAA,MADJC,EAAuB,OAAA,EAAjB,MAAMC,EAAA,WAAO,MAAA,GA3BzBL,CAAA;AAAA;;;;"}
1
+ {"version":3,"file":"CustomIcon-h5X7369N.js","sources":["../src/icons/CustomIcon.vue"],"sourcesContent":["<!--\n# Copyright 2025 OpenC3, Inc.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n#\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n-->\n\n<template>\n <span class=\"cosmos-custom-icon\">\n <!-- Camel case props because svg -->\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n preserveAspectRatio=\"xMidYMid meet\"\n focusable=\"false\"\n >\n <use :href=\"iconSrc\" />\n </svg>\n </span>\n</template>\n\n<script>\nconst ICON_LIBRARY = '/icons/customIcons.svg'\n\nexport default {\n props: {\n icon: {\n type: String,\n },\n size: {\n type: String,\n default: 'small',\n },\n color: {\n type: String,\n default: 'white'\n },\n },\n computed: {\n iconSrc: function () {\n return ICON_LIBRARY + '#' + this.icon\n },\n },\n}\n</script>\n\n<style scoped>\n.cosmos-custom-icon {\n fill: v-bind(color);\n}\n</style>\n"],"names":["ICON_LIBRARY","_sfc_main","_hoisted_1","_hoisted_3","_openBlock","_createElementBlock","_hoisted_2","_createElementVNode","$options"],"mappings":";;;;;;GAiCMA,IAAe,0BAEhBC,IAAU;AAAA,EACb,OAAO;AAAA,IACL,MAAM;AAAA,MACJ,MAAM;AAAA;IAER,MAAM;AAAA,MACJ,MAAM;AAAA,MACN,SAAS;AAAA;IAEX,OAAO;AAAA,MACL,MAAM;AAAA,MACN,SAAS;AAAA;;EAGb,UAAU;AAAA,IACR,SAAS,WAAY;AACnB,aAAOD,IAAe,MAAM,KAAK;AAAA,IACnC;AAAA;AAEJ;;;;;;AAnCQ,MAAAE,IAAA,EAAA,OAAM,qBAAoB;EAG5B,OAAM;AAAA,EACN,SAAQ;AAAA,EACR,qBAAoB;AAAA,EACpB,WAAU;GAzBhBC,IAAA,CAAA,MAAA;;AAmBE,SAAAC,EAAA,GAAAC,EAUO,QAVPH,GAUO;AAAA,KARLE,KAAAC,EAOM,OAPNC,GAOM;AAAA,MADJC,EAAuB,OAAA,EAAjB,MAAMC,EAAA,WAAO,MAAA,GA3BzBL,CAAA;AAAA;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"DateWidget-DuJ5uC2t.js","sources":["../src/widgets/DateWidget.vue"],"sourcesContent":["<!--\n# Copyright 2024 OpenC3, Inc.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n-->\n\n<template>\n <v-text-field\n v-model=\"dateValue\"\n :label=\"label\"\n :style=\"computedStyle\"\n type=\"date\"\n hide-details\n />\n</template>\n\n<script>\nimport Widget from './Widget'\nimport { TimeFilters } from '@/util'\n\nexport default {\n mixins: [Widget, TimeFilters],\n data() {\n return {\n label: 'Date',\n dateValue: '',\n }\n },\n created() {\n if (this.parameters[0]) {\n this.label = this.parameters[0]\n }\n this.dateValue = this.formatDate(new Date(), this.screenTimeZone)\n },\n methods: {\n text() {\n return this.dateValue\n },\n date() {\n return this.dateValue\n },\n },\n}\n</script>\n"],"names":["_sfc_main","Widget","TimeFilters","_createBlock","_component_v_text_field","$data","_cache","$event","_normalizeStyle","_ctx"],"mappings":";;;;AAgCA,MAAKA,IAAU;AAAA,EACb,QAAQ,CAACC,GAAQC,CAAW;AAAA,EAC5B,OAAO;AACL,WAAO;AAAA,MACL,OAAO;AAAA,MACP,WAAW;AAAA,IACb;AAAA;EAEF,UAAU;AACR,IAAI,KAAK,WAAW,CAAC,MACnB,KAAK,QAAQ,KAAK,WAAW,CAAC,IAEhC,KAAK,YAAY,KAAK,WAAW,oBAAI,KAAI,GAAI,KAAK,cAAc;AAAA;EAElE,SAAS;AAAA,IACP,OAAO;AACL,aAAO,KAAK;AAAA;IAEd,OAAO;AACL,aAAO,KAAK;AAAA;;AAGlB;;;cAnCEC,EAMEC,GAAA;AAAA,IAzBJ,YAoBaC,EAAA;AAAA,IApBb,uBAAAC,EAAA,CAAA,MAAAA,EAAA,CAAA,IAAA,CAAAC,MAoBaF,EAAA,YAASE;AAAA,IACjB,OAAOF,EAAA;AAAA,IACP,OAtBLG,EAsBYC,EAAA,aAAa;AAAA,IACrB,MAAK;AAAA,IACL,gBAAA;AAAA;;;"}
1
+ {"version":3,"file":"DateWidget-DuJ5uC2t.js","sources":["../src/widgets/DateWidget.vue"],"sourcesContent":["<!--\n# Copyright 2024 OpenC3, Inc.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n-->\n\n<template>\n <v-text-field\n v-model=\"dateValue\"\n :label=\"label\"\n :style=\"computedStyle\"\n type=\"date\"\n hide-details\n />\n</template>\n\n<script>\nimport Widget from './Widget'\nimport { TimeFilters } from '@/util'\n\nexport default {\n mixins: [Widget, TimeFilters],\n data() {\n return {\n label: 'Date',\n dateValue: '',\n }\n },\n created() {\n if (this.parameters[0]) {\n this.label = this.parameters[0]\n }\n this.dateValue = this.formatDate(new Date(), this.screenTimeZone)\n },\n methods: {\n text() {\n return this.dateValue\n },\n date() {\n return this.dateValue\n },\n },\n}\n</script>\n"],"names":["_sfc_main","Widget","TimeFilters","_createBlock","_component_v_text_field","$data","_cache","$event","_normalizeStyle","_ctx"],"mappings":";;;;AAgCA,MAAKA,IAAU;AAAA,EACb,QAAQ,CAACC,GAAQC,CAAW;AAAA,EAC5B,OAAO;AACL,WAAO;AAAA,MACL,OAAO;AAAA,MACP,WAAW;AAAA,IACb;AAAA,EACF;AAAA,EACA,UAAU;AACR,IAAI,KAAK,WAAW,CAAC,MACnB,KAAK,QAAQ,KAAK,WAAW,CAAC,IAEhC,KAAK,YAAY,KAAK,WAAW,oBAAI,KAAI,GAAI,KAAK,cAAc;AAAA,EAClE;AAAA,EACA,SAAS;AAAA,IACP,OAAO;AACL,aAAO,KAAK;AAAA,IACd;AAAA,IACA,OAAO;AACL,aAAO,KAAK;AAAA,IACd;AAAA;AAEJ;;;cAnCEC,EAMEC,GAAA;AAAA,IAzBJ,YAoBaC,EAAA;AAAA,IApBb,uBAAAC,EAAA,CAAA,MAAAA,EAAA,CAAA,IAAA,CAAAC,MAoBaF,EAAA,YAASE;AAAA,IACjB,OAAOF,EAAA;AAAA,IACP,OAtBLG,EAsBYC,EAAA,aAAa;AAAA,IACrB,MAAK;AAAA,IACL,gBAAA;AAAA;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"DateWidget-jejbk2-G.cjs","sources":["../src/widgets/DateWidget.vue"],"sourcesContent":["<!--\n# Copyright 2024 OpenC3, Inc.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n-->\n\n<template>\n <v-text-field\n v-model=\"dateValue\"\n :label=\"label\"\n :style=\"computedStyle\"\n type=\"date\"\n hide-details\n />\n</template>\n\n<script>\nimport Widget from './Widget'\nimport { TimeFilters } from '@/util'\n\nexport default {\n mixins: [Widget, TimeFilters],\n data() {\n return {\n label: 'Date',\n dateValue: '',\n }\n },\n created() {\n if (this.parameters[0]) {\n this.label = this.parameters[0]\n }\n this.dateValue = this.formatDate(new Date(), this.screenTimeZone)\n },\n methods: {\n text() {\n return this.dateValue\n },\n date() {\n return this.dateValue\n },\n },\n}\n</script>\n"],"names":["_sfc_main","Widget","TimeFilters","_createBlock","_component_v_text_field","$data","_cache","$event","_normalizeStyle","_ctx"],"mappings":"yNAgCKA,EAAU,CACb,OAAQ,CAACC,EAAAA,OAAQC,aAAW,EAC5B,MAAO,CACL,MAAO,CACL,MAAO,OACP,UAAW,EACb,GAEF,SAAU,CACJ,KAAK,WAAW,CAAC,IACnB,KAAK,MAAQ,KAAK,WAAW,CAAC,GAEhC,KAAK,UAAY,KAAK,WAAW,IAAI,KAAQ,KAAK,cAAc,GAElE,QAAS,CACP,MAAO,CACL,OAAO,KAAK,WAEd,MAAO,CACL,OAAO,KAAK,WAGlB,0FAnCEC,EAAAA,YAMEC,EAAA,CAzBJ,WAoBaC,EAAA,UApBb,sBAAAC,EAAA,CAAA,IAAAA,EAAA,CAAA,EAAAC,GAoBaF,EAAA,UAASE,GACjB,MAAOF,EAAA,MACP,MAtBLG,EAAAA,eAsBYC,EAAA,aAAa,EACrB,KAAK,OACL,eAAA"}
1
+ {"version":3,"file":"DateWidget-jejbk2-G.cjs","sources":["../src/widgets/DateWidget.vue"],"sourcesContent":["<!--\n# Copyright 2024 OpenC3, Inc.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n-->\n\n<template>\n <v-text-field\n v-model=\"dateValue\"\n :label=\"label\"\n :style=\"computedStyle\"\n type=\"date\"\n hide-details\n />\n</template>\n\n<script>\nimport Widget from './Widget'\nimport { TimeFilters } from '@/util'\n\nexport default {\n mixins: [Widget, TimeFilters],\n data() {\n return {\n label: 'Date',\n dateValue: '',\n }\n },\n created() {\n if (this.parameters[0]) {\n this.label = this.parameters[0]\n }\n this.dateValue = this.formatDate(new Date(), this.screenTimeZone)\n },\n methods: {\n text() {\n return this.dateValue\n },\n date() {\n return this.dateValue\n },\n },\n}\n</script>\n"],"names":["_sfc_main","Widget","TimeFilters","_createBlock","_component_v_text_field","$data","_cache","$event","_normalizeStyle","_ctx"],"mappings":"yNAgCKA,EAAU,CACb,OAAQ,CAACC,EAAAA,OAAQC,aAAW,EAC5B,MAAO,CACL,MAAO,CACL,MAAO,OACP,UAAW,EACb,CACF,EACA,SAAU,CACJ,KAAK,WAAW,CAAC,IACnB,KAAK,MAAQ,KAAK,WAAW,CAAC,GAEhC,KAAK,UAAY,KAAK,WAAW,IAAI,KAAQ,KAAK,cAAc,CAClE,EACA,QAAS,CACP,MAAO,CACL,OAAO,KAAK,SACd,EACA,MAAO,CACL,OAAO,KAAK,SACd,EAEJ,0FAnCEC,EAAAA,YAMEC,EAAA,CAzBJ,WAoBaC,EAAA,UApBb,sBAAAC,EAAA,CAAA,IAAAA,EAAA,CAAA,EAAAC,GAoBaF,EAAA,UAASE,GACjB,MAAOF,EAAA,MACP,MAtBLG,EAAAA,eAsBYC,EAAA,aAAa,EACrB,KAAK,OACL,eAAA"}