@mxtommy/kip 3.10.0 → 3.10.3

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 (486) hide show
  1. package/CHANGELOG.md +3 -0
  2. package/README.md +39 -59
  3. package/dist/out-tsc/kip-plugin/src/index.js +223 -0
  4. package/dist/out-tsc/kip-plugin/src/index.js.map +1 -0
  5. package/dist/out-tsc/kip-plugin/src/openApi.json +367 -0
  6. package/dist/out-tsc/package.json +118 -0
  7. package/dist/out-tsc/schematics/widget/index.js +70 -0
  8. package/dist/out-tsc/schematics/widget/index.js.map +1 -0
  9. package/dist/out-tsc/src/app/app.component.js +286 -0
  10. package/dist/out-tsc/src/app/app.component.js.map +1 -0
  11. package/dist/out-tsc/src/app/app.component.spec.js +26 -0
  12. package/dist/out-tsc/src/app/app.component.spec.js.map +1 -0
  13. package/dist/out-tsc/src/app/app.routes.js +35 -0
  14. package/dist/out-tsc/src/app/app.routes.js.map +1 -0
  15. package/dist/out-tsc/src/app/core/components/app-help/app-help.component.js +60 -0
  16. package/dist/out-tsc/src/app/core/components/app-help/app-help.component.js.map +1 -0
  17. package/dist/out-tsc/src/app/core/components/app-help/app-help.component.spec.js +150 -0
  18. package/dist/out-tsc/src/app/core/components/app-help/app-help.component.spec.js.map +1 -0
  19. package/dist/out-tsc/src/app/core/components/dashboard/dashboard.component.js +361 -0
  20. package/dist/out-tsc/src/app/core/components/dashboard/dashboard.component.js.map +1 -0
  21. package/dist/out-tsc/src/app/core/components/dashboard/dashboard.component.spec.js +19 -0
  22. package/dist/out-tsc/src/app/core/components/dashboard/dashboard.component.spec.js.map +1 -0
  23. package/dist/out-tsc/src/app/core/components/dashboard-scroller/dashboard-scroller.component.js +33 -0
  24. package/dist/out-tsc/src/app/core/components/dashboard-scroller/dashboard-scroller.component.js.map +1 -0
  25. package/dist/out-tsc/src/app/core/components/dashboard-scroller/dashboard-scroller.component.spec.js +19 -0
  26. package/dist/out-tsc/src/app/core/components/dashboard-scroller/dashboard-scroller.component.spec.js.map +1 -0
  27. package/dist/out-tsc/src/app/core/components/dashboards-editor/dashboards-editor.component.js +183 -0
  28. package/dist/out-tsc/src/app/core/components/dashboards-editor/dashboards-editor.component.js.map +1 -0
  29. package/dist/out-tsc/src/app/core/components/dashboards-editor/dashboards-editor.component.spec.js +19 -0
  30. package/dist/out-tsc/src/app/core/components/dashboards-editor/dashboards-editor.component.spec.js.map +1 -0
  31. package/dist/out-tsc/src/app/core/components/dashboards-manage-bottom-sheet/dashboards-manage-bottom-sheet.component.js +28 -0
  32. package/dist/out-tsc/src/app/core/components/dashboards-manage-bottom-sheet/dashboards-manage-bottom-sheet.component.js.map +1 -0
  33. package/dist/out-tsc/src/app/core/components/dashboards-manage-bottom-sheet/dashboards-manage-bottom-sheet.component.spec.js +19 -0
  34. package/dist/out-tsc/src/app/core/components/dashboards-manage-bottom-sheet/dashboards-manage-bottom-sheet.component.spec.js.map +1 -0
  35. package/dist/out-tsc/src/app/core/components/data-inspector/data-inspector.component.js +130 -0
  36. package/dist/out-tsc/src/app/core/components/data-inspector/data-inspector.component.js.map +1 -0
  37. package/dist/out-tsc/src/app/core/components/data-inspector/data-inspector.component.spec.js +21 -0
  38. package/dist/out-tsc/src/app/core/components/data-inspector/data-inspector.component.spec.js.map +1 -0
  39. package/dist/out-tsc/src/app/core/components/data-inspector-row/data-inspector-row.component.js +82 -0
  40. package/dist/out-tsc/src/app/core/components/data-inspector-row/data-inspector-row.component.js.map +1 -0
  41. package/dist/out-tsc/src/app/core/components/datasets/datasets.component.js +168 -0
  42. package/dist/out-tsc/src/app/core/components/datasets/datasets.component.js.map +1 -0
  43. package/dist/out-tsc/src/app/core/components/datasets/datasets.component.spec.js +21 -0
  44. package/dist/out-tsc/src/app/core/components/datasets/datasets.component.spec.js.map +1 -0
  45. package/dist/out-tsc/src/app/core/components/dialog-confirmation/dialog-confirmation.component.js +24 -0
  46. package/dist/out-tsc/src/app/core/components/dialog-confirmation/dialog-confirmation.component.js.map +1 -0
  47. package/dist/out-tsc/src/app/core/components/dialog-confirmation/dialog-confirmation.component.spec.js +19 -0
  48. package/dist/out-tsc/src/app/core/components/dialog-confirmation/dialog-confirmation.component.spec.js.map +1 -0
  49. package/dist/out-tsc/src/app/core/components/dialog-dashboard-page-editor/dialog-dashboard-page-editor.component.js +45 -0
  50. package/dist/out-tsc/src/app/core/components/dialog-dashboard-page-editor/dialog-dashboard-page-editor.component.js.map +1 -0
  51. package/dist/out-tsc/src/app/core/components/dialog-dashboard-page-editor/dialog-dashboard-page-editor.component.spec.js +19 -0
  52. package/dist/out-tsc/src/app/core/components/dialog-dashboard-page-editor/dialog-dashboard-page-editor.component.spec.js.map +1 -0
  53. package/dist/out-tsc/src/app/core/components/dialog-frame/dialog-frame.component.js +25 -0
  54. package/dist/out-tsc/src/app/core/components/dialog-frame/dialog-frame.component.js.map +1 -0
  55. package/dist/out-tsc/src/app/core/components/dialog-frame/dialog-frame.component.spec.js +19 -0
  56. package/dist/out-tsc/src/app/core/components/dialog-frame/dialog-frame.component.spec.js.map +1 -0
  57. package/dist/out-tsc/src/app/core/components/dialog-name/dialog-name.component.js +31 -0
  58. package/dist/out-tsc/src/app/core/components/dialog-name/dialog-name.component.js.map +1 -0
  59. package/dist/out-tsc/src/app/core/components/dialog-name/dialog-name.component.spec.js +19 -0
  60. package/dist/out-tsc/src/app/core/components/dialog-name/dialog-name.component.spec.js.map +1 -0
  61. package/dist/out-tsc/src/app/core/components/menu-actions/menu-actions.component.js +100 -0
  62. package/dist/out-tsc/src/app/core/components/menu-actions/menu-actions.component.js.map +1 -0
  63. package/dist/out-tsc/src/app/core/components/menu-actions/menu-actions.component.spec.js +19 -0
  64. package/dist/out-tsc/src/app/core/components/menu-actions/menu-actions.component.spec.js.map +1 -0
  65. package/dist/out-tsc/src/app/core/components/menu-notifications/menu-notifications.component.js +60 -0
  66. package/dist/out-tsc/src/app/core/components/menu-notifications/menu-notifications.component.js.map +1 -0
  67. package/dist/out-tsc/src/app/core/components/menu-notifications/menu-notifications.component.spec.js +21 -0
  68. package/dist/out-tsc/src/app/core/components/menu-notifications/menu-notifications.component.spec.js.map +1 -0
  69. package/dist/out-tsc/src/app/core/components/modal-user-credential/modal-user-credential.component.js +32 -0
  70. package/dist/out-tsc/src/app/core/components/modal-user-credential/modal-user-credential.component.js.map +1 -0
  71. package/dist/out-tsc/src/app/core/components/modal-user-credential/modal-user-credential.component.spec.js +21 -0
  72. package/dist/out-tsc/src/app/core/components/modal-user-credential/modal-user-credential.component.spec.js.map +1 -0
  73. package/dist/out-tsc/src/app/core/components/notification-badge/notification-badge.component.js +51 -0
  74. package/dist/out-tsc/src/app/core/components/notification-badge/notification-badge.component.js.map +1 -0
  75. package/dist/out-tsc/src/app/core/components/notification-badge/notification-badge.component.spec.js +19 -0
  76. package/dist/out-tsc/src/app/core/components/notification-badge/notification-badge.component.spec.js.map +1 -0
  77. package/dist/out-tsc/src/app/core/components/options/configuration/config.component.js +228 -0
  78. package/dist/out-tsc/src/app/core/components/options/configuration/config.component.js.map +1 -0
  79. package/dist/out-tsc/src/app/core/components/options/configuration/config.component.spec.js +21 -0
  80. package/dist/out-tsc/src/app/core/components/options/configuration/config.component.spec.js.map +1 -0
  81. package/dist/out-tsc/src/app/core/components/options/display/display.component.js +142 -0
  82. package/dist/out-tsc/src/app/core/components/options/display/display.component.js.map +1 -0
  83. package/dist/out-tsc/src/app/core/components/options/display/display.component.spec.js +21 -0
  84. package/dist/out-tsc/src/app/core/components/options/display/display.component.spec.js.map +1 -0
  85. package/dist/out-tsc/src/app/core/components/options/notifications/notifications.component.js +66 -0
  86. package/dist/out-tsc/src/app/core/components/options/notifications/notifications.component.js.map +1 -0
  87. package/dist/out-tsc/src/app/core/components/options/notifications/notifications.component.spec.js +21 -0
  88. package/dist/out-tsc/src/app/core/components/options/notifications/notifications.component.spec.js.map +1 -0
  89. package/dist/out-tsc/src/app/core/components/options/signalk/signalk.component.js +255 -0
  90. package/dist/out-tsc/src/app/core/components/options/signalk/signalk.component.js.map +1 -0
  91. package/dist/out-tsc/src/app/core/components/options/signalk/signalk.component.spec.js +21 -0
  92. package/dist/out-tsc/src/app/core/components/options/signalk/signalk.component.spec.js.map +1 -0
  93. package/dist/out-tsc/src/app/core/components/options/tabs/tabs.component.js +44 -0
  94. package/dist/out-tsc/src/app/core/components/options/tabs/tabs.component.js.map +1 -0
  95. package/dist/out-tsc/src/app/core/components/options/tabs/tabs.component.spec.js +21 -0
  96. package/dist/out-tsc/src/app/core/components/options/tabs/tabs.component.spec.js.map +1 -0
  97. package/dist/out-tsc/src/app/core/components/options/units/units.component.js +55 -0
  98. package/dist/out-tsc/src/app/core/components/options/units/units.component.js.map +1 -0
  99. package/dist/out-tsc/src/app/core/components/options/units/units.component.spec.js +21 -0
  100. package/dist/out-tsc/src/app/core/components/options/units/units.component.spec.js.map +1 -0
  101. package/dist/out-tsc/src/app/core/components/page-header/page-header.component.js +31 -0
  102. package/dist/out-tsc/src/app/core/components/page-header/page-header.component.js.map +1 -0
  103. package/dist/out-tsc/src/app/core/components/page-header/page-header.component.spec.js +19 -0
  104. package/dist/out-tsc/src/app/core/components/page-header/page-header.component.spec.js.map +1 -0
  105. package/dist/out-tsc/src/app/core/components/remote-control/remote-control.component.js +63 -0
  106. package/dist/out-tsc/src/app/core/components/remote-control/remote-control.component.js.map +1 -0
  107. package/dist/out-tsc/src/app/core/components/remote-control/remote-control.component.spec.js +19 -0
  108. package/dist/out-tsc/src/app/core/components/remote-control/remote-control.component.spec.js.map +1 -0
  109. package/dist/out-tsc/src/app/core/components/select-icon/select-icon.component.js +75 -0
  110. package/dist/out-tsc/src/app/core/components/select-icon/select-icon.component.js.map +1 -0
  111. package/dist/out-tsc/src/app/core/components/select-icon/select-icon.component.spec.js +19 -0
  112. package/dist/out-tsc/src/app/core/components/select-icon/select-icon.component.spec.js.map +1 -0
  113. package/dist/out-tsc/src/app/core/components/settings/settings.component.js +56 -0
  114. package/dist/out-tsc/src/app/core/components/settings/settings.component.js.map +1 -0
  115. package/dist/out-tsc/src/app/core/components/settings/settings.component.spec.js +19 -0
  116. package/dist/out-tsc/src/app/core/components/settings/settings.component.spec.js.map +1 -0
  117. package/dist/out-tsc/src/app/core/components/tile-large-icon/tile-large-icon.component.js +28 -0
  118. package/dist/out-tsc/src/app/core/components/tile-large-icon/tile-large-icon.component.js.map +1 -0
  119. package/dist/out-tsc/src/app/core/components/tile-large-icon/tile-large-icon.component.spec.js +19 -0
  120. package/dist/out-tsc/src/app/core/components/tile-large-icon/tile-large-icon.component.spec.js.map +1 -0
  121. package/dist/out-tsc/src/app/core/components/upgrade-config/upgrade-config.component.js +336 -0
  122. package/dist/out-tsc/src/app/core/components/upgrade-config/upgrade-config.component.js.map +1 -0
  123. package/dist/out-tsc/src/app/core/components/upgrade-config/upgrade-config.component.spec.js +19 -0
  124. package/dist/out-tsc/src/app/core/components/upgrade-config/upgrade-config.component.spec.js.map +1 -0
  125. package/dist/out-tsc/src/app/core/components/upgrade-config/v10-config-interface.js +2 -0
  126. package/dist/out-tsc/src/app/core/components/upgrade-config/v10-config-interface.js.map +1 -0
  127. package/dist/out-tsc/src/app/core/components/widget-host/widget-host.component.js +77 -0
  128. package/dist/out-tsc/src/app/core/components/widget-host/widget-host.component.js.map +1 -0
  129. package/dist/out-tsc/src/app/core/components/widget-host/widget-host.component.spec.js +19 -0
  130. package/dist/out-tsc/src/app/core/components/widget-host/widget-host.component.spec.js.map +1 -0
  131. package/dist/out-tsc/src/app/core/components/widget-host-bottom-sheet/widget-host-bottom-sheet.component.js +29 -0
  132. package/dist/out-tsc/src/app/core/components/widget-host-bottom-sheet/widget-host-bottom-sheet.component.js.map +1 -0
  133. package/dist/out-tsc/src/app/core/components/widget-host-bottom-sheet/widget-host-bottom-sheet.component.spec.js +19 -0
  134. package/dist/out-tsc/src/app/core/components/widget-host-bottom-sheet/widget-host-bottom-sheet.component.spec.js.map +1 -0
  135. package/dist/out-tsc/src/app/core/components/widget-list-card/widget-list-card.component.js +34 -0
  136. package/dist/out-tsc/src/app/core/components/widget-list-card/widget-list-card.component.js.map +1 -0
  137. package/dist/out-tsc/src/app/core/components/widget-list-card/widget-list-card.component.spec.js +19 -0
  138. package/dist/out-tsc/src/app/core/components/widget-list-card/widget-list-card.component.spec.js.map +1 -0
  139. package/dist/out-tsc/src/app/core/components/widget-title/widget-title.component.js +70 -0
  140. package/dist/out-tsc/src/app/core/components/widget-title/widget-title.component.js.map +1 -0
  141. package/dist/out-tsc/src/app/core/components/widget-title/widget-title.component.spec.js +19 -0
  142. package/dist/out-tsc/src/app/core/components/widget-title/widget-title.component.spec.js.map +1 -0
  143. package/dist/out-tsc/src/app/core/components/widgets-list/widgets-list.component.js +61 -0
  144. package/dist/out-tsc/src/app/core/components/widgets-list/widgets-list.component.js.map +1 -0
  145. package/dist/out-tsc/src/app/core/components/widgets-list/widgets-list.component.spec.js +19 -0
  146. package/dist/out-tsc/src/app/core/components/widgets-list/widgets-list.component.spec.js.map +1 -0
  147. package/dist/out-tsc/src/app/core/directives/gesture.directive.js +457 -0
  148. package/dist/out-tsc/src/app/core/directives/gesture.directive.js.map +1 -0
  149. package/dist/out-tsc/src/app/core/interceptors/authentication-interceptor.js +43 -0
  150. package/dist/out-tsc/src/app/core/interceptors/authentication-interceptor.js.map +1 -0
  151. package/dist/out-tsc/src/app/core/interceptors/authentication-interceptor.spec.js +7 -0
  152. package/dist/out-tsc/src/app/core/interceptors/authentication-interceptor.spec.js.map +1 -0
  153. package/dist/out-tsc/src/app/core/interfaces/app-interfaces.js +8 -0
  154. package/dist/out-tsc/src/app/core/interfaces/app-interfaces.js.map +1 -0
  155. package/dist/out-tsc/src/app/core/interfaces/app-settings.interfaces.js +2 -0
  156. package/dist/out-tsc/src/app/core/interfaces/app-settings.interfaces.js.map +1 -0
  157. package/dist/out-tsc/src/app/core/interfaces/dialog-data.js +2 -0
  158. package/dist/out-tsc/src/app/core/interfaces/dialog-data.js.map +1 -0
  159. package/dist/out-tsc/src/app/core/interfaces/signalk-autopilot-interfaces.js +11 -0
  160. package/dist/out-tsc/src/app/core/interfaces/signalk-autopilot-interfaces.js.map +1 -0
  161. package/dist/out-tsc/src/app/core/interfaces/signalk-interfaces.js +45 -0
  162. package/dist/out-tsc/src/app/core/interfaces/signalk-interfaces.js.map +1 -0
  163. package/dist/out-tsc/src/app/core/interfaces/widgets-interface.js +7 -0
  164. package/dist/out-tsc/src/app/core/interfaces/widgets-interface.js.map +1 -0
  165. package/dist/out-tsc/src/app/core/pipes/filter-self.pipe.js +24 -0
  166. package/dist/out-tsc/src/app/core/pipes/filter-self.pipe.js.map +1 -0
  167. package/dist/out-tsc/src/app/core/pipes/filter-self.pipe.spec.js +8 -0
  168. package/dist/out-tsc/src/app/core/pipes/filter-self.pipe.spec.js.map +1 -0
  169. package/dist/out-tsc/src/app/core/pipes/object-keys.pipe.js +20 -0
  170. package/dist/out-tsc/src/app/core/pipes/object-keys.pipe.js.map +1 -0
  171. package/dist/out-tsc/src/app/core/pipes/object-keys.pipe.spec.js +8 -0
  172. package/dist/out-tsc/src/app/core/pipes/object-keys.pipe.spec.js.map +1 -0
  173. package/dist/out-tsc/src/app/core/pipes/safe.pipe.js +22 -0
  174. package/dist/out-tsc/src/app/core/pipes/safe.pipe.js.map +1 -0
  175. package/dist/out-tsc/src/app/core/services/app-initNetwork.service.js +199 -0
  176. package/dist/out-tsc/src/app/core/services/app-initNetwork.service.js.map +1 -0
  177. package/dist/out-tsc/src/app/core/services/app-initNetwork.service.spec.js +13 -0
  178. package/dist/out-tsc/src/app/core/services/app-initNetwork.service.spec.js.map +1 -0
  179. package/dist/out-tsc/src/app/core/services/app-service.js +249 -0
  180. package/dist/out-tsc/src/app/core/services/app-service.js.map +1 -0
  181. package/dist/out-tsc/src/app/core/services/app-service.spec.js +13 -0
  182. package/dist/out-tsc/src/app/core/services/app-service.spec.js.map +1 -0
  183. package/dist/out-tsc/src/app/core/services/app-settings.service.js +566 -0
  184. package/dist/out-tsc/src/app/core/services/app-settings.service.js.map +1 -0
  185. package/dist/out-tsc/src/app/core/services/app-settings.service.spec.js +13 -0
  186. package/dist/out-tsc/src/app/core/services/app-settings.service.spec.js.map +1 -0
  187. package/dist/out-tsc/src/app/core/services/authentication.service.js +308 -0
  188. package/dist/out-tsc/src/app/core/services/authentication.service.js.map +1 -0
  189. package/dist/out-tsc/src/app/core/services/authentication.service.spec.js +13 -0
  190. package/dist/out-tsc/src/app/core/services/authentication.service.spec.js.map +1 -0
  191. package/dist/out-tsc/src/app/core/services/canvas.service.js +566 -0
  192. package/dist/out-tsc/src/app/core/services/canvas.service.js.map +1 -0
  193. package/dist/out-tsc/src/app/core/services/canvas.service.spec.js +13 -0
  194. package/dist/out-tsc/src/app/core/services/canvas.service.spec.js.map +1 -0
  195. package/dist/out-tsc/src/app/core/services/connection-state-machine.service.js +325 -0
  196. package/dist/out-tsc/src/app/core/services/connection-state-machine.service.js.map +1 -0
  197. package/dist/out-tsc/src/app/core/services/dashboard.service.js +273 -0
  198. package/dist/out-tsc/src/app/core/services/dashboard.service.js.map +1 -0
  199. package/dist/out-tsc/src/app/core/services/dashboard.service.spec.js +13 -0
  200. package/dist/out-tsc/src/app/core/services/dashboard.service.spec.js.map +1 -0
  201. package/dist/out-tsc/src/app/core/services/data-set.service.js +515 -0
  202. package/dist/out-tsc/src/app/core/services/data-set.service.js.map +1 -0
  203. package/dist/out-tsc/src/app/core/services/data-set.service.spec.js +13 -0
  204. package/dist/out-tsc/src/app/core/services/data-set.service.spec.js.map +1 -0
  205. package/dist/out-tsc/src/app/core/services/data.service.js +425 -0
  206. package/dist/out-tsc/src/app/core/services/data.service.js.map +1 -0
  207. package/dist/out-tsc/src/app/core/services/data.service.spec.js +13 -0
  208. package/dist/out-tsc/src/app/core/services/data.service.spec.js.map +1 -0
  209. package/dist/out-tsc/src/app/core/services/dialog.service.js +73 -0
  210. package/dist/out-tsc/src/app/core/services/dialog.service.js.map +1 -0
  211. package/dist/out-tsc/src/app/core/services/dialog.service.spec.js +13 -0
  212. package/dist/out-tsc/src/app/core/services/dialog.service.spec.js.map +1 -0
  213. package/dist/out-tsc/src/app/core/services/notification-overlay.service.js +106 -0
  214. package/dist/out-tsc/src/app/core/services/notification-overlay.service.js.map +1 -0
  215. package/dist/out-tsc/src/app/core/services/notifications.service.js +322 -0
  216. package/dist/out-tsc/src/app/core/services/notifications.service.js.map +1 -0
  217. package/dist/out-tsc/src/app/core/services/notifications.service.spec.js +10 -0
  218. package/dist/out-tsc/src/app/core/services/notifications.service.spec.js.map +1 -0
  219. package/dist/out-tsc/src/app/core/services/remote-dashboards.service.js +125 -0
  220. package/dist/out-tsc/src/app/core/services/remote-dashboards.service.js.map +1 -0
  221. package/dist/out-tsc/src/app/core/services/remote-dashboards.service.spec.js +13 -0
  222. package/dist/out-tsc/src/app/core/services/remote-dashboards.service.spec.js.map +1 -0
  223. package/dist/out-tsc/src/app/core/services/signalk-connection.service.js +283 -0
  224. package/dist/out-tsc/src/app/core/services/signalk-connection.service.js.map +1 -0
  225. package/dist/out-tsc/src/app/core/services/signalk-delta.service.js +486 -0
  226. package/dist/out-tsc/src/app/core/services/signalk-delta.service.js.map +1 -0
  227. package/dist/out-tsc/src/app/core/services/signalk-delta.service.spec.js +13 -0
  228. package/dist/out-tsc/src/app/core/services/signalk-delta.service.spec.js.map +1 -0
  229. package/dist/out-tsc/src/app/core/services/signalk-plugins.service.js +121 -0
  230. package/dist/out-tsc/src/app/core/services/signalk-plugins.service.js.map +1 -0
  231. package/dist/out-tsc/src/app/core/services/signalk-plugins.service.spec.js +13 -0
  232. package/dist/out-tsc/src/app/core/services/signalk-plugins.service.spec.js.map +1 -0
  233. package/dist/out-tsc/src/app/core/services/signalk-requests.service.js +232 -0
  234. package/dist/out-tsc/src/app/core/services/signalk-requests.service.js.map +1 -0
  235. package/dist/out-tsc/src/app/core/services/signalk-requests.service.spec.js +10 -0
  236. package/dist/out-tsc/src/app/core/services/signalk-requests.service.spec.js.map +1 -0
  237. package/dist/out-tsc/src/app/core/services/storage.service.js +390 -0
  238. package/dist/out-tsc/src/app/core/services/storage.service.js.map +1 -0
  239. package/dist/out-tsc/src/app/core/services/storage.service.spec.js +13 -0
  240. package/dist/out-tsc/src/app/core/services/storage.service.spec.js.map +1 -0
  241. package/dist/out-tsc/src/app/core/services/timers.service.js +107 -0
  242. package/dist/out-tsc/src/app/core/services/timers.service.js.map +1 -0
  243. package/dist/out-tsc/src/app/core/services/timers.service.spec.js +13 -0
  244. package/dist/out-tsc/src/app/core/services/timers.service.spec.js.map +1 -0
  245. package/dist/out-tsc/src/app/core/services/uiEvent.service.js +256 -0
  246. package/dist/out-tsc/src/app/core/services/uiEvent.service.js.map +1 -0
  247. package/dist/out-tsc/src/app/core/services/uiEvent.service.spec.js +13 -0
  248. package/dist/out-tsc/src/app/core/services/uiEvent.service.spec.js.map +1 -0
  249. package/dist/out-tsc/src/app/core/services/units.service.js +630 -0
  250. package/dist/out-tsc/src/app/core/services/units.service.js.map +1 -0
  251. package/dist/out-tsc/src/app/core/services/widget.service.js +405 -0
  252. package/dist/out-tsc/src/app/core/services/widget.service.js.map +1 -0
  253. package/dist/out-tsc/src/app/core/services/widget.service.spec.js +13 -0
  254. package/dist/out-tsc/src/app/core/services/widget.service.spec.js.map +1 -0
  255. package/dist/out-tsc/src/app/core/utils/app-overlay-container.js +30 -0
  256. package/dist/out-tsc/src/app/core/utils/app-overlay-container.js.map +1 -0
  257. package/dist/out-tsc/src/app/core/utils/base-widget.component.js +291 -0
  258. package/dist/out-tsc/src/app/core/utils/base-widget.component.js.map +1 -0
  259. package/dist/out-tsc/src/app/core/utils/base-widget.component.spec.js +88 -0
  260. package/dist/out-tsc/src/app/core/utils/base-widget.component.spec.js.map +1 -0
  261. package/dist/out-tsc/src/app/core/utils/dataScales.util.js +127 -0
  262. package/dist/out-tsc/src/app/core/utils/dataScales.util.js.map +1 -0
  263. package/dist/out-tsc/src/app/core/utils/dataTransforms.util.js +138 -0
  264. package/dist/out-tsc/src/app/core/utils/dataTransforms.util.js.map +1 -0
  265. package/dist/out-tsc/src/app/core/utils/iframe-inputs-inject.utils.js +55 -0
  266. package/dist/out-tsc/src/app/core/utils/iframe-inputs-inject.utils.js.map +1 -0
  267. package/dist/out-tsc/src/app/core/utils/svg-animate.util.js +303 -0
  268. package/dist/out-tsc/src/app/core/utils/svg-animate.util.js.map +1 -0
  269. package/dist/out-tsc/src/app/core/utils/themeColors.utils.js +34 -0
  270. package/dist/out-tsc/src/app/core/utils/themeColors.utils.js.map +1 -0
  271. package/dist/out-tsc/src/app/core/utils/uuid.util.js +17 -0
  272. package/dist/out-tsc/src/app/core/utils/uuid.util.js.map +1 -0
  273. package/dist/out-tsc/src/app/core/utils/zones-highlight.utils.js +87 -0
  274. package/dist/out-tsc/src/app/core/utils/zones-highlight.utils.js.map +1 -0
  275. package/dist/out-tsc/src/app/widget-config/boolean-control-config/boolean-control-config.component.js +49 -0
  276. package/dist/out-tsc/src/app/widget-config/boolean-control-config/boolean-control-config.component.js.map +1 -0
  277. package/dist/out-tsc/src/app/widget-config/boolean-control-config/boolean-control-config.component.spec.js +19 -0
  278. package/dist/out-tsc/src/app/widget-config/boolean-control-config/boolean-control-config.component.spec.js.map +1 -0
  279. package/dist/out-tsc/src/app/widget-config/boolean-multicontrol-options/boolean-multicontrol-options.component.js +100 -0
  280. package/dist/out-tsc/src/app/widget-config/boolean-multicontrol-options/boolean-multicontrol-options.component.js.map +1 -0
  281. package/dist/out-tsc/src/app/widget-config/boolean-multicontrol-options/boolean-multicontrol-options.component.spec.js +19 -0
  282. package/dist/out-tsc/src/app/widget-config/boolean-multicontrol-options/boolean-multicontrol-options.component.spec.js.map +1 -0
  283. package/dist/out-tsc/src/app/widget-config/dataset-chart-options/dataset-chart-options.component.js +54 -0
  284. package/dist/out-tsc/src/app/widget-config/dataset-chart-options/dataset-chart-options.component.js.map +1 -0
  285. package/dist/out-tsc/src/app/widget-config/dataset-chart-options/dataset-chart-options.component.spec.js +19 -0
  286. package/dist/out-tsc/src/app/widget-config/dataset-chart-options/dataset-chart-options.component.spec.js.map +1 -0
  287. package/dist/out-tsc/src/app/widget-config/display-chart-options/display-chart-options.component.js +89 -0
  288. package/dist/out-tsc/src/app/widget-config/display-chart-options/display-chart-options.component.js.map +1 -0
  289. package/dist/out-tsc/src/app/widget-config/display-chart-options/display-chart-options.component.spec.js +19 -0
  290. package/dist/out-tsc/src/app/widget-config/display-chart-options/display-chart-options.component.spec.js.map +1 -0
  291. package/dist/out-tsc/src/app/widget-config/display-datetime/display-datetime.component.js +1760 -0
  292. package/dist/out-tsc/src/app/widget-config/display-datetime/display-datetime.component.js.map +1 -0
  293. package/dist/out-tsc/src/app/widget-config/display-datetime/display-datetime.component.spec.js +19 -0
  294. package/dist/out-tsc/src/app/widget-config/display-datetime/display-datetime.component.spec.js.map +1 -0
  295. package/dist/out-tsc/src/app/widget-config/modal-widget-config/modal-widget-config.component.js +327 -0
  296. package/dist/out-tsc/src/app/widget-config/modal-widget-config/modal-widget-config.component.js.map +1 -0
  297. package/dist/out-tsc/src/app/widget-config/modal-widget-config/modal-widget-config.component.spec.js +21 -0
  298. package/dist/out-tsc/src/app/widget-config/modal-widget-config/modal-widget-config.component.spec.js.map +1 -0
  299. package/dist/out-tsc/src/app/widget-config/path-control-config/path-control-config.component.js +268 -0
  300. package/dist/out-tsc/src/app/widget-config/path-control-config/path-control-config.component.js.map +1 -0
  301. package/dist/out-tsc/src/app/widget-config/path-control-config/path-control-config.component.spec.js +21 -0
  302. package/dist/out-tsc/src/app/widget-config/path-control-config/path-control-config.component.spec.js.map +1 -0
  303. package/dist/out-tsc/src/app/widget-config/paths-options/paths-options.component.js +81 -0
  304. package/dist/out-tsc/src/app/widget-config/paths-options/paths-options.component.js.map +1 -0
  305. package/dist/out-tsc/src/app/widget-config/paths-options/paths-options.component.spec.js +19 -0
  306. package/dist/out-tsc/src/app/widget-config/paths-options/paths-options.component.spec.js.map +1 -0
  307. package/dist/out-tsc/src/app/widget-config/select-autopilot/select-autopilot.component.js +266 -0
  308. package/dist/out-tsc/src/app/widget-config/select-autopilot/select-autopilot.component.js.map +1 -0
  309. package/dist/out-tsc/src/app/widget-config/select-autopilot/select-autopilot.component.spec.js +19 -0
  310. package/dist/out-tsc/src/app/widget-config/select-autopilot/select-autopilot.component.spec.js.map +1 -0
  311. package/dist/out-tsc/src/app/widgets/gauge-steel/gauge-steel.component.js +309 -0
  312. package/dist/out-tsc/src/app/widgets/gauge-steel/gauge-steel.component.js.map +1 -0
  313. package/dist/out-tsc/src/app/widgets/gauge-steel/gauge-steel.component.spec.js +21 -0
  314. package/dist/out-tsc/src/app/widgets/gauge-steel/gauge-steel.component.spec.js.map +1 -0
  315. package/dist/out-tsc/src/app/widgets/minichart/minichart.component.js +512 -0
  316. package/dist/out-tsc/src/app/widgets/minichart/minichart.component.js.map +1 -0
  317. package/dist/out-tsc/src/app/widgets/minichart/minichart.component.spec.js +19 -0
  318. package/dist/out-tsc/src/app/widgets/minichart/minichart.component.spec.js.map +1 -0
  319. package/dist/out-tsc/src/app/widgets/svg-autopilot/svg-autopilot.component.js +227 -0
  320. package/dist/out-tsc/src/app/widgets/svg-autopilot/svg-autopilot.component.js.map +1 -0
  321. package/dist/out-tsc/src/app/widgets/svg-autopilot/svg-autopilot.component.spec.js +21 -0
  322. package/dist/out-tsc/src/app/widgets/svg-autopilot/svg-autopilot.component.spec.js.map +1 -0
  323. package/dist/out-tsc/src/app/widgets/svg-boolean-button/svg-boolean-button.component.js +163 -0
  324. package/dist/out-tsc/src/app/widgets/svg-boolean-button/svg-boolean-button.component.js.map +1 -0
  325. package/dist/out-tsc/src/app/widgets/svg-boolean-button/svg-boolean-button.component.spec.js +19 -0
  326. package/dist/out-tsc/src/app/widgets/svg-boolean-button/svg-boolean-button.component.spec.js.map +1 -0
  327. package/dist/out-tsc/src/app/widgets/svg-boolean-light/svg-boolean-light.component.js +97 -0
  328. package/dist/out-tsc/src/app/widgets/svg-boolean-light/svg-boolean-light.component.js.map +1 -0
  329. package/dist/out-tsc/src/app/widgets/svg-boolean-light/svg-boolean-light.component.spec.js +19 -0
  330. package/dist/out-tsc/src/app/widgets/svg-boolean-light/svg-boolean-light.component.spec.js.map +1 -0
  331. package/dist/out-tsc/src/app/widgets/svg-boolean-switch/svg-boolean-switch.component.js +122 -0
  332. package/dist/out-tsc/src/app/widgets/svg-boolean-switch/svg-boolean-switch.component.js.map +1 -0
  333. package/dist/out-tsc/src/app/widgets/svg-boolean-switch/svg-boolean-switch.component.spec.js +19 -0
  334. package/dist/out-tsc/src/app/widgets/svg-boolean-switch/svg-boolean-switch.component.spec.js.map +1 -0
  335. package/dist/out-tsc/src/app/widgets/svg-racesteer/svg-racesteer.component.js +389 -0
  336. package/dist/out-tsc/src/app/widgets/svg-racesteer/svg-racesteer.component.js.map +1 -0
  337. package/dist/out-tsc/src/app/widgets/svg-racesteer/svg-racesteer.component.spec.js +21 -0
  338. package/dist/out-tsc/src/app/widgets/svg-racesteer/svg-racesteer.component.spec.js.map +1 -0
  339. package/dist/out-tsc/src/app/widgets/svg-simple-linear-gauge/svg-simple-linear-gauge.component.js +76 -0
  340. package/dist/out-tsc/src/app/widgets/svg-simple-linear-gauge/svg-simple-linear-gauge.component.js.map +1 -0
  341. package/dist/out-tsc/src/app/widgets/svg-simple-linear-gauge/svg-simple-linear-gauge.component.spec.js +21 -0
  342. package/dist/out-tsc/src/app/widgets/svg-simple-linear-gauge/svg-simple-linear-gauge.component.spec.js.map +1 -0
  343. package/dist/out-tsc/src/app/widgets/svg-windsteer/svg-windsteer.component.js +429 -0
  344. package/dist/out-tsc/src/app/widgets/svg-windsteer/svg-windsteer.component.js.map +1 -0
  345. package/dist/out-tsc/src/app/widgets/svg-windsteer/svg-windsteer.component.spec.js +21 -0
  346. package/dist/out-tsc/src/app/widgets/svg-windsteer/svg-windsteer.component.spec.js.map +1 -0
  347. package/dist/out-tsc/src/app/widgets/widget-autopilot/widget-autopilot.component.js +1128 -0
  348. package/dist/out-tsc/src/app/widgets/widget-autopilot/widget-autopilot.component.js.map +1 -0
  349. package/dist/out-tsc/src/app/widgets/widget-autopilot/widget-autopilot.component.spec.js +21 -0
  350. package/dist/out-tsc/src/app/widgets/widget-autopilot/widget-autopilot.component.spec.js.map +1 -0
  351. package/dist/out-tsc/src/app/widgets/widget-boolean-switch/widget-boolean-switch.component.js +140 -0
  352. package/dist/out-tsc/src/app/widgets/widget-boolean-switch/widget-boolean-switch.component.js.map +1 -0
  353. package/dist/out-tsc/src/app/widgets/widget-boolean-switch/widget-boolean-switch.component.spec.js +19 -0
  354. package/dist/out-tsc/src/app/widgets/widget-boolean-switch/widget-boolean-switch.component.spec.js.map +1 -0
  355. package/dist/out-tsc/src/app/widgets/widget-data-chart/widget-data-chart.component.js +678 -0
  356. package/dist/out-tsc/src/app/widgets/widget-data-chart/widget-data-chart.component.js.map +1 -0
  357. package/dist/out-tsc/src/app/widgets/widget-data-chart/widget-data-chart.component.spec.js +19 -0
  358. package/dist/out-tsc/src/app/widgets/widget-data-chart/widget-data-chart.component.spec.js.map +1 -0
  359. package/dist/out-tsc/src/app/widgets/widget-datetime/widget-datetime.component.js +177 -0
  360. package/dist/out-tsc/src/app/widgets/widget-datetime/widget-datetime.component.js.map +1 -0
  361. package/dist/out-tsc/src/app/widgets/widget-datetime/widget-datetime.component.spec.js +21 -0
  362. package/dist/out-tsc/src/app/widgets/widget-datetime/widget-datetime.component.spec.js.map +1 -0
  363. package/dist/out-tsc/src/app/widgets/widget-freeboardsk/widget-freeboardsk.component.js +146 -0
  364. package/dist/out-tsc/src/app/widgets/widget-freeboardsk/widget-freeboardsk.component.js.map +1 -0
  365. package/dist/out-tsc/src/app/widgets/widget-freeboardsk/widget-freeboardsk.component.spec.js +19 -0
  366. package/dist/out-tsc/src/app/widgets/widget-freeboardsk/widget-freeboardsk.component.spec.js.map +1 -0
  367. package/dist/out-tsc/src/app/widgets/widget-gauge-ng-compass/widget-gauge-ng-compass.component.js +301 -0
  368. package/dist/out-tsc/src/app/widgets/widget-gauge-ng-compass/widget-gauge-ng-compass.component.js.map +1 -0
  369. package/dist/out-tsc/src/app/widgets/widget-gauge-ng-compass/widget-gauge-ng-compass.component.spec.js +19 -0
  370. package/dist/out-tsc/src/app/widgets/widget-gauge-ng-compass/widget-gauge-ng-compass.component.spec.js.map +1 -0
  371. package/dist/out-tsc/src/app/widgets/widget-gauge-ng-linear/widget-gauge-ng-linear.component.js +413 -0
  372. package/dist/out-tsc/src/app/widgets/widget-gauge-ng-linear/widget-gauge-ng-linear.component.js.map +1 -0
  373. package/dist/out-tsc/src/app/widgets/widget-gauge-ng-linear/widget-gauge-ng-linear.component.spec.js +21 -0
  374. package/dist/out-tsc/src/app/widgets/widget-gauge-ng-linear/widget-gauge-ng-linear.component.spec.js.map +1 -0
  375. package/dist/out-tsc/src/app/widgets/widget-gauge-ng-radial/widget-gauge-ng-radial.component.js +360 -0
  376. package/dist/out-tsc/src/app/widgets/widget-gauge-ng-radial/widget-gauge-ng-radial.component.js.map +1 -0
  377. package/dist/out-tsc/src/app/widgets/widget-gauge-ng-radial/widget-gauge-ng-radial.component.spec.js +21 -0
  378. package/dist/out-tsc/src/app/widgets/widget-gauge-ng-radial/widget-gauge-ng-radial.component.spec.js.map +1 -0
  379. package/dist/out-tsc/src/app/widgets/widget-gauge-steel/widget-gauge-steel.component.js +119 -0
  380. package/dist/out-tsc/src/app/widgets/widget-gauge-steel/widget-gauge-steel.component.js.map +1 -0
  381. package/dist/out-tsc/src/app/widgets/widget-gauge-steel/widget-gauge-steel.component.spec.js +21 -0
  382. package/dist/out-tsc/src/app/widgets/widget-gauge-steel/widget-gauge-steel.component.spec.js.map +1 -0
  383. package/dist/out-tsc/src/app/widgets/widget-heel-gauge/widget-heel-gauge.component.js +205 -0
  384. package/dist/out-tsc/src/app/widgets/widget-heel-gauge/widget-heel-gauge.component.js.map +1 -0
  385. package/dist/out-tsc/src/app/widgets/widget-heel-gauge/widget-heel-gauge.component.spec.js +15 -0
  386. package/dist/out-tsc/src/app/widgets/widget-heel-gauge/widget-heel-gauge.component.spec.js.map +1 -0
  387. package/dist/out-tsc/src/app/widgets/widget-horizon/widget-horizon.component.js +196 -0
  388. package/dist/out-tsc/src/app/widgets/widget-horizon/widget-horizon.component.js.map +1 -0
  389. package/dist/out-tsc/src/app/widgets/widget-horizon/widget-horizon.component.spec.js +21 -0
  390. package/dist/out-tsc/src/app/widgets/widget-horizon/widget-horizon.component.spec.js.map +1 -0
  391. package/dist/out-tsc/src/app/widgets/widget-iframe/widget-iframe.component.js +173 -0
  392. package/dist/out-tsc/src/app/widgets/widget-iframe/widget-iframe.component.js.map +1 -0
  393. package/dist/out-tsc/src/app/widgets/widget-iframe/widget-iframe.component.spec.js +21 -0
  394. package/dist/out-tsc/src/app/widgets/widget-iframe/widget-iframe.component.spec.js.map +1 -0
  395. package/dist/out-tsc/src/app/widgets/widget-label/widget-label.component.js +128 -0
  396. package/dist/out-tsc/src/app/widgets/widget-label/widget-label.component.js.map +1 -0
  397. package/dist/out-tsc/src/app/widgets/widget-label/widget-label.component.spec.js +19 -0
  398. package/dist/out-tsc/src/app/widgets/widget-label/widget-label.component.spec.js.map +1 -0
  399. package/dist/out-tsc/src/app/widgets/widget-login/login.component.spec.js +21 -0
  400. package/dist/out-tsc/src/app/widgets/widget-login/login.component.spec.js.map +1 -0
  401. package/dist/out-tsc/src/app/widgets/widget-login/widget-login.component.js +78 -0
  402. package/dist/out-tsc/src/app/widgets/widget-login/widget-login.component.js.map +1 -0
  403. package/dist/out-tsc/src/app/widgets/widget-numeric/widget-numeric.component.js +303 -0
  404. package/dist/out-tsc/src/app/widgets/widget-numeric/widget-numeric.component.js.map +1 -0
  405. package/dist/out-tsc/src/app/widgets/widget-numeric/widget-numeric.spec.js +21 -0
  406. package/dist/out-tsc/src/app/widgets/widget-numeric/widget-numeric.spec.js.map +1 -0
  407. package/dist/out-tsc/src/app/widgets/widget-position/widget-position.component.js +177 -0
  408. package/dist/out-tsc/src/app/widgets/widget-position/widget-position.component.js.map +1 -0
  409. package/dist/out-tsc/src/app/widgets/widget-position/widget-position.component.spec.js +21 -0
  410. package/dist/out-tsc/src/app/widgets/widget-position/widget-position.component.spec.js.map +1 -0
  411. package/dist/out-tsc/src/app/widgets/widget-race-timer/widget-race-timer.component.js +275 -0
  412. package/dist/out-tsc/src/app/widgets/widget-race-timer/widget-race-timer.component.js.map +1 -0
  413. package/dist/out-tsc/src/app/widgets/widget-race-timer/widget-race-timer.component.spec.js +21 -0
  414. package/dist/out-tsc/src/app/widgets/widget-race-timer/widget-race-timer.component.spec.js.map +1 -0
  415. package/dist/out-tsc/src/app/widgets/widget-racer-line/widget-racer-line.component.js +319 -0
  416. package/dist/out-tsc/src/app/widgets/widget-racer-line/widget-racer-line.component.js.map +1 -0
  417. package/dist/out-tsc/src/app/widgets/widget-racer-line/widget-racer-line.component.spec.js +21 -0
  418. package/dist/out-tsc/src/app/widgets/widget-racer-line/widget-racer-line.component.spec.js.map +1 -0
  419. package/dist/out-tsc/src/app/widgets/widget-racer-timer/widget-racer-timer.component.js +365 -0
  420. package/dist/out-tsc/src/app/widgets/widget-racer-timer/widget-racer-timer.component.js.map +1 -0
  421. package/dist/out-tsc/src/app/widgets/widget-racer-timer/widget-racer-timer.component.spec.js +21 -0
  422. package/dist/out-tsc/src/app/widgets/widget-racer-timer/widget-racer-timer.component.spec.js.map +1 -0
  423. package/dist/out-tsc/src/app/widgets/widget-racesteer/widget-racesteer.component.js +321 -0
  424. package/dist/out-tsc/src/app/widgets/widget-racesteer/widget-racesteer.component.js.map +1 -0
  425. package/dist/out-tsc/src/app/widgets/widget-racesteer/widget-racesteer.component.spec.js +21 -0
  426. package/dist/out-tsc/src/app/widgets/widget-racesteer/widget-racesteer.component.spec.js.map +1 -0
  427. package/dist/out-tsc/src/app/widgets/widget-simple-linear/widget-simple-linear.component.js +189 -0
  428. package/dist/out-tsc/src/app/widgets/widget-simple-linear/widget-simple-linear.component.js.map +1 -0
  429. package/dist/out-tsc/src/app/widgets/widget-simple-linear/widget-simple-linear.component.spec.js +21 -0
  430. package/dist/out-tsc/src/app/widgets/widget-simple-linear/widget-simple-linear.component.spec.js.map +1 -0
  431. package/dist/out-tsc/src/app/widgets/widget-slider/widget-slider.component.js +248 -0
  432. package/dist/out-tsc/src/app/widgets/widget-slider/widget-slider.component.js.map +1 -0
  433. package/dist/out-tsc/src/app/widgets/widget-slider/widget-slider.component.spec.js +19 -0
  434. package/dist/out-tsc/src/app/widgets/widget-slider/widget-slider.component.spec.js.map +1 -0
  435. package/dist/out-tsc/src/app/widgets/widget-text/widget-text.component.js +138 -0
  436. package/dist/out-tsc/src/app/widgets/widget-text/widget-text.component.js.map +1 -0
  437. package/dist/out-tsc/src/app/widgets/widget-text/widget-text.component.spec.js +21 -0
  438. package/dist/out-tsc/src/app/widgets/widget-text/widget-text.component.spec.js.map +1 -0
  439. package/dist/out-tsc/src/app/widgets/widget-tutorial/widget-tutorial.component.js +43 -0
  440. package/dist/out-tsc/src/app/widgets/widget-tutorial/widget-tutorial.component.js.map +1 -0
  441. package/dist/out-tsc/src/app/widgets/widget-tutorial/widget-tutorial.component.spec.js +21 -0
  442. package/dist/out-tsc/src/app/widgets/widget-tutorial/widget-tutorial.component.spec.js.map +1 -0
  443. package/dist/out-tsc/src/app/widgets/widget-windsteer/widget-windsteer.component.js +483 -0
  444. package/dist/out-tsc/src/app/widgets/widget-windsteer/widget-windsteer.component.js.map +1 -0
  445. package/dist/out-tsc/src/app/widgets/widget-windsteer/widget-windsteer.component.spec.js +21 -0
  446. package/dist/out-tsc/src/app/widgets/widget-windsteer/widget-windsteer.component.spec.js.map +1 -0
  447. package/dist/out-tsc/src/app/widgets/widget-windtrends-chart/widget-windtrends-chart.component.js +1067 -0
  448. package/dist/out-tsc/src/app/widgets/widget-windtrends-chart/widget-windtrends-chart.component.js.map +1 -0
  449. package/dist/out-tsc/src/app/widgets/widget-windtrends-chart/widget-windtrends-chart.component.spec.js +19 -0
  450. package/dist/out-tsc/src/app/widgets/widget-windtrends-chart/widget-windtrends-chart.component.spec.js.map +1 -0
  451. package/dist/out-tsc/src/default-config/config.blank.const.js +35 -0
  452. package/dist/out-tsc/src/default-config/config.blank.const.js.map +1 -0
  453. package/dist/out-tsc/src/default-config/config.blank.notification.const.js +22 -0
  454. package/dist/out-tsc/src/default-config/config.blank.notification.const.js.map +1 -0
  455. package/dist/out-tsc/src/default-config/config.blank.units.const.js +24 -0
  456. package/dist/out-tsc/src/default-config/config.blank.units.const.js.map +1 -0
  457. package/dist/out-tsc/src/default-config/config.demo.const.js +739 -0
  458. package/dist/out-tsc/src/default-config/config.demo.const.js.map +1 -0
  459. package/dist/out-tsc/src/environments/environment.js +8 -0
  460. package/dist/out-tsc/src/environments/environment.js.map +1 -0
  461. package/dist/out-tsc/src/environments/environment.prod.js +4 -0
  462. package/dist/out-tsc/src/environments/environment.prod.js.map +1 -0
  463. package/dist/out-tsc/src/main.js +111 -0
  464. package/dist/out-tsc/src/main.js.map +1 -0
  465. package/dist/out-tsc/src/polyfills.js +67 -0
  466. package/dist/out-tsc/src/polyfills.js.map +1 -0
  467. package/dist/out-tsc/src/test-setup.js +1 -0
  468. package/dist/out-tsc/src/test-setup.js.map +1 -0
  469. package/dist/out-tsc/src/test-shims/steelseries-shim.js +44 -0
  470. package/dist/out-tsc/src/test-shims/steelseries-shim.js.map +1 -0
  471. package/dist/out-tsc/src/test.js +84 -0
  472. package/dist/out-tsc/src/test.js.map +1 -0
  473. package/images/ActionSidenav.png +0 -0
  474. package/images/KipBrightness-1024.png +0 -0
  475. package/images/KipNightMode-1024.png +0 -0
  476. package/images/Options.png +0 -0
  477. package/images/exterior_user_installs.png +0 -0
  478. package/package.json +1 -1
  479. package/plugin/index.js +2 -1
  480. package/public/{chunk-YPVFGYWU.js → chunk-4APSKT6I.js} +1 -1
  481. package/public/{chunk-CCEKSCJH.js → chunk-HHR4WMHS.js} +1 -1
  482. package/public/{chunk-TTNX7JB6.js → chunk-JDDRJMPN.js} +1 -1
  483. package/public/{chunk-TSNRNW3D.js → chunk-MRF22PVK.js} +1 -1
  484. package/public/{chunk-G5U7W6LL.js → chunk-RNSD64U3.js} +1 -1
  485. package/public/index.html +1 -1
  486. package/public/{main-JN6ENHFX.js → main-5QLZ4ZUU.js} +2 -2
@@ -0,0 +1,266 @@
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
6
+ };
7
+ var __metadata = (this && this.__metadata) || function (k, v) {
8
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
+ };
10
+ /**
11
+ * SelectAutopilotComponent
12
+ *
13
+ * Manages Signal K autopilot API detection, instance selection, and configuration.
14
+ *
15
+ * Features:
16
+ * - Detects available autopilot API version (prefers V2, falls back to V1 plugin).
17
+ * - Discovers autopilot instances and supported modes.
18
+ * - Updates the provided reactive form group with API version, plugin ID, and supported modes.
19
+ * - Handles UI state for discovery progress and error overlays.
20
+ * - Provides selection UI for autopilot instance and configuration options.
21
+ *
22
+ * State Management:
23
+ * - Uses Angular signals for API version, available autopilots, plugin ID, discovery progress, and errors.
24
+ * - Updates the reactive form group (`autopilotFormGroup`) with detected values.
25
+ *
26
+ * Methods:
27
+ * - ngOnInit: Initializes the form group and starts API detection.
28
+ * - detectAutopilotApi: Orchestrates API version detection and instance discovery.
29
+ * - checkV2Api: Checks if the V2 API endpoint is available.
30
+ * - discoverV2Autopilots: Retrieves available V2 autopilot instances.
31
+ * - discoverV2AutopilotOptions: Gets supported modes and states for a selected instance.
32
+ * - onAutopilotInstanceIdChange: Handles instance selection and updates modes in the form.
33
+ * - makeHttpRequest: Manages HTTP requests with cancellation and tracking.
34
+ *
35
+ * Usage:
36
+ * - Used in widget configuration to allow users to select and configure autopilot options.
37
+ * - Integrates with Angular Reactive Forms and Material
38
+ */
39
+ import { Component, computed, DestroyRef, effect, inject, input, signal } from '@angular/core';
40
+ import { SignalkPluginsService } from '../../core/services/signalk-plugins.service';
41
+ import { HttpClient } from '@angular/common/http';
42
+ import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
43
+ import { firstValueFrom, finalize } from 'rxjs';
44
+ import { FormGroupDirective, ReactiveFormsModule } from '@angular/forms';
45
+ import { MatFormFieldModule } from '@angular/material/form-field';
46
+ import { MatCheckboxModule } from '@angular/material/checkbox';
47
+ import { MatSelectModule } from '@angular/material/select';
48
+ import { TitleCasePipe } from '@angular/common';
49
+ import { MatInputModule } from '@angular/material/input';
50
+ // Shared constants for API paths and configuration
51
+ const API_PATHS = {
52
+ V1_PLUGIN: 'autopilot',
53
+ V2_BASE: '/signalk/v2/api',
54
+ V2_AUTOPILOTS: '/signalk/v2/api/vessels/self/autopilots',
55
+ V2_DEFAULT_AUTOPILOT_ID: "/signalk/v2/api/vessels/self/autopilots/_providers/_default",
56
+ };
57
+ const FAILSAFE_OPTIONS_RESPONSE = {
58
+ options: {
59
+ modes: [],
60
+ states: []
61
+ },
62
+ state: null,
63
+ mode: 'off-line',
64
+ target: null,
65
+ engaged: false
66
+ };
67
+ let SelectAutopilotComponent = class SelectAutopilotComponent {
68
+ formGroupName = input.required();
69
+ _plugins = inject(SignalkPluginsService);
70
+ _destroyRef = inject(DestroyRef);
71
+ http = inject(HttpClient);
72
+ rootFormGroup = inject(FormGroupDirective);
73
+ autopilotFormGroup;
74
+ // API Version Detection
75
+ apiVersion = signal(null);
76
+ availableAutopilots = signal({});
77
+ autopilotPlugin = signal(null);
78
+ discoveryInProgress = signal(false);
79
+ apiDetectionError = signal(null);
80
+ apInstances = computed(() => {
81
+ const autopilots = this.availableAutopilots();
82
+ return autopilots ? Object.keys(autopilots) : [];
83
+ });
84
+ modes = signal(null);
85
+ pluginId = signal(null);
86
+ // Request management
87
+ currentRequests = new Set();
88
+ constructor() {
89
+ effect(() => {
90
+ this.autopilotFormGroup.get('apiVersion')?.setValue(this.apiVersion(), { emitEvent: false });
91
+ });
92
+ }
93
+ ngOnInit() {
94
+ this.autopilotFormGroup = this.rootFormGroup.control.get(this.formGroupName());
95
+ this.modes.set(this.autopilotFormGroup.value.modes || null);
96
+ this.detectAutopilotApi();
97
+ }
98
+ /**
99
+ * Detects available autopilot API version and configures endpoints
100
+ *
101
+ * Detection Logic:
102
+ * 1. First attempts V2 API detection via /signalk/v2/api/vessels/self/autopilots
103
+ * 2. If V2 available, discovers autopilot instances and capabilities
104
+ * 3. Falls back to V1 plugin detection (signalk-autopilot)
105
+ * 4. Sets persistent error state if no API found
106
+ *
107
+ * State Management:
108
+ * - Sets discoveryInProgress during detection
109
+ * - Updates apiVersion signal with detected version
110
+ * - Configures v2Endpoints for discovered instances
111
+ * - Handles error overlays for offline state
112
+ *
113
+ * @returns Promise<void> Resolves when detection complete
114
+ * @throws Never throws - all errors handled internally
115
+ */
116
+ async detectAutopilotApi() {
117
+ this.discoveryInProgress.set(true);
118
+ console.log('[Autopilot Options] Starting API detection...');
119
+ try {
120
+ // Try V2 API first - check for autopilots endpoint
121
+ const v2Available = await this.checkV2Api();
122
+ if (v2Available) {
123
+ this.apiVersion.set('v2');
124
+ this.autopilotFormGroup.get('apiVersion')?.setValue('v2', { emitEvent: false });
125
+ // Check if there is at least one autopilot provider
126
+ if (this.availableAutopilots() && Object.keys(this.availableAutopilots()).length > 0) {
127
+ this.pluginId.set(Object.values(this.availableAutopilots())[0]?.provider ?? null);
128
+ this.autopilotFormGroup.get('pluginId')?.setValue(this.pluginId(), { emitEvent: false });
129
+ this.discoveryInProgress.set(false);
130
+ return;
131
+ }
132
+ else {
133
+ console.warn('[Autopilot Options] No V2 autopilot provider found');
134
+ }
135
+ }
136
+ }
137
+ catch (error) {
138
+ console.error('[Autopilot Options] Error checking V2 API, checking V1...', error);
139
+ }
140
+ try {
141
+ // Fall back to V1 plugin detection
142
+ const v1Enabled = await this._plugins.isEnabled(API_PATHS.V1_PLUGIN);
143
+ if (v1Enabled) {
144
+ this.apiVersion.set('v1');
145
+ this.autopilotFormGroup.get('apiVersion')?.setValue("v1", { emitEvent: false });
146
+ this.availableAutopilots.set({ "Default Autopilot": { "provider": "Signal K Autopilot", "isDefault": true } });
147
+ this.pluginId.set("Signal K Autopilot");
148
+ this.autopilotFormGroup.get('pluginId')?.setValue("Signal K Autopilot", { emitEvent: false });
149
+ console.log('[Autopilot Options] V1 API Signal K Autopilot plugin detected');
150
+ this.discoveryInProgress.set(false);
151
+ return;
152
+ }
153
+ console.log('[Autopilot Options] V1 API plugin (signalk-autopilot) not found');
154
+ }
155
+ catch (error) {
156
+ console.error('[Autopilot Options] V1 plugin detection failed:', error);
157
+ }
158
+ // No API available
159
+ console.warn('[Autopilot Options] No Autopilot detected');
160
+ this.discoveryInProgress.set(false);
161
+ }
162
+ async checkV2Api() {
163
+ try {
164
+ const response = await firstValueFrom(this.makeHttpRequest(this.http.get(API_PATHS.V2_AUTOPILOTS, { observe: 'response', responseType: 'json' })));
165
+ // Check if there is at least one autopilot provider
166
+ if (response && response.body && Object.keys(response.body).length > 0) {
167
+ this.availableAutopilots.set(response.body);
168
+ console.log('[Autopilot Options] Discovered V2 API autopilot providers:', JSON.stringify(response.body));
169
+ }
170
+ else {
171
+ this.availableAutopilots.set({});
172
+ console.warn('[Autopilot Options] No V2 autopilot provider plugin found.');
173
+ }
174
+ return response?.status === 200;
175
+ }
176
+ catch (error) {
177
+ // Differentiate between network errors and 404s
178
+ if (error && typeof error === 'object' && 'status' in error) {
179
+ const httpError = error;
180
+ if (httpError.status === 404) {
181
+ console.log('[Autopilot Options] V2 API endpoint not found (404)');
182
+ }
183
+ else if (httpError.status >= 500) {
184
+ console.warn('[Autopilot Options] V2 API server error:', httpError.status, httpError.statusText);
185
+ }
186
+ else {
187
+ console.log('[Autopilot Options] V2 API call to discover Autopilot Providers failed:', httpError.status, httpError.statusText);
188
+ }
189
+ }
190
+ else {
191
+ console.log('[Autopilot Options] V2 API network error:', error);
192
+ }
193
+ return false;
194
+ }
195
+ }
196
+ async discoverV2AutopilotOptions(targetInstance) {
197
+ let response;
198
+ try {
199
+ // Get AP supported modes and states from the specific instance
200
+ try {
201
+ this.discoveryInProgress.set(true);
202
+ response = await firstValueFrom(this.makeHttpRequest(this.http.get(`${API_PATHS.V2_AUTOPILOTS}/${targetInstance}`)));
203
+ console.log('[Autopilot Options] V2 Autopilot Options response:', JSON.stringify(response));
204
+ }
205
+ catch {
206
+ response = FAILSAFE_OPTIONS_RESPONSE;
207
+ console.log(`[Autopilot Options] Default AP discovery endpoint error for instance '${targetInstance}'`);
208
+ }
209
+ this.discoveryInProgress.set(false);
210
+ return response;
211
+ }
212
+ catch (error) {
213
+ console.error('[Autopilot Options] Failed to discover V2 endpoints:', error);
214
+ console.log(`[Autopilot Options] Using fallback V2 endpoints for instance '${targetInstance}'`);
215
+ return FAILSAFE_OPTIONS_RESPONSE;
216
+ }
217
+ }
218
+ onAutopilotInstanceIdChange(e) {
219
+ const selectedInstanceId = e.value;
220
+ if (e.value === "") {
221
+ this.modes.set("");
222
+ this.autopilotFormGroup.get('modes')?.setValue("", { emitEvent: false });
223
+ return;
224
+ }
225
+ console.log('[Autopilot Options] Selected Autopilot Instance ID:', selectedInstanceId);
226
+ if (this.apiVersion() === 'v2') {
227
+ this.discoverV2AutopilotOptions(selectedInstanceId)
228
+ .then((instanceOptions) => {
229
+ const apModes = instanceOptions.options.modes || [];
230
+ this.modes.set(apModes.join(', '));
231
+ this.autopilotFormGroup.get('modes')?.setValue(apModes, { emitEvent: false });
232
+ console.log('[Autopilot Options] Autopilot plugin supported modes :', apModes.join(', '));
233
+ })
234
+ .catch(error => {
235
+ console.error('[Autopilot Options] Error requesting autopilot modes:', error);
236
+ this.autopilotFormGroup.get('modes')?.setValue([], { emitEvent: false });
237
+ });
238
+ }
239
+ else if (this.apiVersion() === 'v1') {
240
+ this.modes.set("standby, auto, wind, route");
241
+ this.autopilotFormGroup.get('modes')?.setValue("standby, auto, wind, route", { emitEvent: false });
242
+ console.log("[Autopilot Options] Autopilot mode set to Raymarine v1 API modes: standby, auto, wind, route");
243
+ }
244
+ }
245
+ /**
246
+ * Creates a managed HTTP request with automatic cancellation and tracking
247
+ * @param observable The HTTP Observable to manage
248
+ * @returns Observable with takeUntilDestroyed and tracking
249
+ */
250
+ makeHttpRequest(observable) {
251
+ const request = observable.pipe(takeUntilDestroyed(this._destroyRef));
252
+ this.currentRequests.add(request);
253
+ return request.pipe(finalize(() => this.currentRequests.delete(request)));
254
+ }
255
+ };
256
+ SelectAutopilotComponent = __decorate([
257
+ Component({
258
+ selector: 'select-autopilot',
259
+ imports: [ReactiveFormsModule, MatFormFieldModule, MatCheckboxModule, MatSelectModule, MatInputModule, TitleCasePipe],
260
+ templateUrl: './select-autopilot.component.html',
261
+ styleUrl: './select-autopilot.component.scss'
262
+ }),
263
+ __metadata("design:paramtypes", [])
264
+ ], SelectAutopilotComponent);
265
+ export { SelectAutopilotComponent };
266
+ //# sourceMappingURL=select-autopilot.component.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"select-autopilot.component.js","sourceRoot":"","sources":["../../../../../../src/app/widget-config/select-autopilot/select-autopilot.component.ts"],"names":[],"mappings":";;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAU,MAAM,EAAE,MAAM,eAAe,CAAC;AACvG,OAAO,EAAE,qBAAqB,EAAE,MAAM,6CAA6C,CAAC;AAEpF,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,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AAO,GAAG,UAAU,CAAC,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC;QACtE,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;QAElC,OAAO,OAAO,CAAC,IAAI,CACjB,QAAQ,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CACrD,CAAC;IACJ,CAAC;CACF,CAAA;AA9MY,wBAAwB;IANpC,SAAS,CAAC;QACT,QAAQ,EAAE,kBAAkB;QAC5B,OAAO,EAAE,CAAC,mBAAmB,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,eAAe,EAAE,cAAc,EAAE,aAAa,CAAC;QACrH,WAAW,EAAE,mCAAmC;QAChD,QAAQ,EAAE,mCAAmC;KAC9C,CAAC;;GACW,wBAAwB,CA8MpC"}
@@ -0,0 +1,19 @@
1
+ import { TestBed } from '@angular/core/testing';
2
+ import { SelectAutopilotComponent } from './select-autopilot.component';
3
+ describe('SelectAutopilotComponent', () => {
4
+ let component;
5
+ let fixture;
6
+ beforeEach(async () => {
7
+ await TestBed.configureTestingModule({
8
+ imports: [SelectAutopilotComponent]
9
+ })
10
+ .compileComponents();
11
+ fixture = TestBed.createComponent(SelectAutopilotComponent);
12
+ component = fixture.componentInstance;
13
+ fixture.detectChanges();
14
+ });
15
+ it('should create', () => {
16
+ expect(component).toBeTruthy();
17
+ });
18
+ });
19
+ //# sourceMappingURL=select-autopilot.component.spec.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"select-autopilot.component.spec.js","sourceRoot":"","sources":["../../../../../../src/app/widget-config/select-autopilot/select-autopilot.component.spec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAElE,OAAO,EAAE,wBAAwB,EAAE,MAAM,8BAA8B,CAAC;AAExE,QAAQ,CAAC,0BAA0B,EAAE,GAAG,EAAE;IACxC,IAAI,SAAmC,CAAC;IACxC,IAAI,OAAmD,CAAC;IAExD,UAAU,CAAC,KAAK,IAAI,EAAE;QACpB,MAAM,OAAO,CAAC,sBAAsB,CAAC;YACnC,OAAO,EAAE,CAAC,wBAAwB,CAAC;SACpC,CAAC;aACD,iBAAiB,EAAE,CAAC;QAErB,OAAO,GAAG,OAAO,CAAC,eAAe,CAAC,wBAAwB,CAAC,CAAC;QAC5D,SAAS,GAAG,OAAO,CAAC,iBAAiB,CAAC;QACtC,OAAO,CAAC,aAAa,EAAE,CAAC;IAC1B,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,eAAe,EAAE,GAAG,EAAE;QACvB,MAAM,CAAC,SAAS,CAAC,CAAC,UAAU,EAAE,CAAC;IACjC,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -0,0 +1,309 @@
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
6
+ };
7
+ import { UnitsService } from './../../core/services/units.service';
8
+ import { Component, input, inject, viewChild } from '@angular/core';
9
+ import { CanvasService } from '../../core/services/canvas.service';
10
+ import { NgxResizeObserverModule } from 'ngx-resize-observer';
11
+ import { States } from '../../core/interfaces/signalk-interfaces';
12
+ // Test/SSR safety: provide a minimal mock to avoid ReferenceError when the real script isn't loaded (e.g., unit tests)
13
+ // Only defines the enum-like objects accessed at module evaluation time. Runtime drawing logic won't run in specs.
14
+ if (typeof steelseries === 'undefined') {
15
+ globalThis.steelseries = {
16
+ BackgroundColor: {
17
+ DARK_GRAY: 'darkGray', SATIN_GRAY: 'satinGray', LIGHT_GRAY: 'lightGray', WHITE: 'white', BLACK: 'black',
18
+ BEIGE: 'beige', BROWN: 'brown', RED: 'red', GREEN: 'green', BLUE: 'blue', ANTHRACITE: 'anthracite',
19
+ MUD: 'mud', PUNCHED_SHEET: 'punchedSheet', CARBON: 'carbon', STAINLESS: 'stainless', BRUSHED_METAL: 'brushedMetal',
20
+ BRUSHED_STAINLESS: 'brushedStainless', TURNED: 'turned'
21
+ },
22
+ FrameDesign: {
23
+ BLACK_METAL: 'blackMetal', METAL: 'metal', SHINY_METAL: 'shinyMetal', BRASS: 'brass', STEEL: 'steel', CHROME: 'chrome',
24
+ GOLD: 'gold', ANTHRACITE: 'anthracite', TILTED_GRAY: 'tiltedGray', TILTED_BLACK: 'tiltedBlack', GLOSSY_METAL: 'glossyMetal'
25
+ }
26
+ };
27
+ }
28
+ export const SteelBackgroundColors = {
29
+ 'darkGray': steelseries.BackgroundColor.DARK_GRAY,
30
+ 'satinGray': steelseries.BackgroundColor.SATIN_GRAY,
31
+ 'lightGray': steelseries.BackgroundColor.LIGHT_GRAY,
32
+ 'white': steelseries.BackgroundColor.WHITE,
33
+ 'black': steelseries.BackgroundColor.BLACK,
34
+ 'beige': steelseries.BackgroundColor.BEIGE,
35
+ 'brown': steelseries.BackgroundColor.BROWN,
36
+ 'red': steelseries.BackgroundColor.RED,
37
+ 'green': steelseries.BackgroundColor.GREEN,
38
+ 'blue': steelseries.BackgroundColor.BLUE,
39
+ 'anthracite': steelseries.BackgroundColor.ANTHRACITE,
40
+ 'mud': steelseries.BackgroundColor.MUD,
41
+ 'punchedSheet': steelseries.BackgroundColor.PUNCHED_SHEET,
42
+ 'carbon': steelseries.BackgroundColor.CARBON,
43
+ 'stainless': steelseries.BackgroundColor.STAINLESS,
44
+ 'brushedMetal': steelseries.BackgroundColor.BRUSHED_METAL,
45
+ 'brushedStainless': steelseries.BackgroundColor.BRUSHED_STAINLESS,
46
+ 'turned': steelseries.BackgroundColor.TURNED
47
+ };
48
+ export const SteelFrameColors = {
49
+ 'blackMetal': steelseries.FrameDesign.BLACK_METAL,
50
+ 'metal': steelseries.FrameDesign.METAL,
51
+ 'shinyMetal': steelseries.FrameDesign.SHINY_METAL,
52
+ 'brass': steelseries.FrameDesign.BRASS,
53
+ 'steel': steelseries.FrameDesign.STEEL,
54
+ 'chrome': steelseries.FrameDesign.CHROME,
55
+ 'gold': steelseries.FrameDesign.GOLD,
56
+ 'anthracite': steelseries.FrameDesign.ANTHRACITE,
57
+ 'tiltedGray': steelseries.FrameDesign.TILTED_GRAY,
58
+ 'tiltedBlack': steelseries.FrameDesign.TILTED_BLACK,
59
+ 'glossyMetal': steelseries.FrameDesign.GLOSSY_METAL
60
+ };
61
+ let GaugeSteelComponent = class GaugeSteelComponent {
62
+ unitsService = inject(UnitsService);
63
+ canvasService = inject(CanvasService);
64
+ canvasRef = viewChild('gaugeCanvas');
65
+ widgetUUID = input(undefined);
66
+ subType = input(undefined); // linear or radial
67
+ barGauge = input(undefined);
68
+ radialSize = input(undefined);
69
+ backgroundColor = input(undefined);
70
+ frameColor = input(undefined);
71
+ minValue = input(undefined);
72
+ maxValue = input(undefined);
73
+ decimals = input(undefined);
74
+ zones = input(undefined);
75
+ title = input(undefined);
76
+ units = input(undefined);
77
+ value = input(undefined);
78
+ // eslint-disable-next-line @angular-eslint/no-input-rename
79
+ theme = input(undefined, { alias: "themeColors" });
80
+ gaugeStarted = false;
81
+ gauge;
82
+ gaugeOptions = {};
83
+ paddingTop = 0;
84
+ lastSizeSignature = '';
85
+ resizeTimer = null;
86
+ pendingStructuralRebuild = false;
87
+ ngOnInit() {
88
+ this.buildOptions();
89
+ }
90
+ buildOptions() {
91
+ //minMax
92
+ this.gaugeOptions['minValue'] = this.minValue();
93
+ this.gaugeOptions['maxValue'] = this.maxValue();
94
+ const decimals = this.decimals();
95
+ this.gaugeOptions['lcdDecimals'] = decimals !== undefined && decimals !== null ? decimals : 2;
96
+ //labels
97
+ this.gaugeOptions['titleString'] = this.title();
98
+ this.gaugeOptions['unitString'] = this.units();
99
+ // Radial Arc size
100
+ if (this.subType() == 'radial') {
101
+ this.gaugeOptions['gaugeType'] = this.setGaugeType(this.radialSize());
102
+ }
103
+ // Zones
104
+ // Define some sections
105
+ const zones = this.zones();
106
+ if (zones) {
107
+ const sections = [];
108
+ const areas = [];
109
+ // Sort zones based on lower value
110
+ const sortedZones = [...zones].sort((a, b) => a.lower - b.lower);
111
+ for (const zone of sortedZones) {
112
+ let lower = null;
113
+ let upper = null;
114
+ let color;
115
+ switch (zone.state) {
116
+ case States.Emergency:
117
+ color = this.theme().zoneEmergency;
118
+ break;
119
+ case States.Alarm:
120
+ color = this.theme().zoneAlarm;
121
+ break;
122
+ case States.Warn:
123
+ color = this.theme().zoneWarn;
124
+ break;
125
+ case States.Alert:
126
+ color = this.theme().zoneAlert;
127
+ break;
128
+ case States.Nominal:
129
+ color = this.theme().zoneNominal;
130
+ break;
131
+ default:
132
+ color = "rgba(0,0,0,0)";
133
+ }
134
+ // Perform Units conversions on zone range
135
+ const units = this.units();
136
+ if (units == "ratio") {
137
+ lower = zone.lower;
138
+ upper = zone.upper;
139
+ }
140
+ else {
141
+ lower = this.unitsService.convertToUnit(units, zone.lower);
142
+ upper = this.unitsService.convertToUnit(units, zone.upper);
143
+ }
144
+ // Skip zones that are completely outside the gauge range
145
+ if (upper < this.minValue() || lower > this.maxValue()) {
146
+ continue;
147
+ }
148
+ // If lower or upper are null, set them to minValue or maxValue
149
+ lower = lower !== null ? lower : this.minValue();
150
+ upper = upper !== null ? upper : this.maxValue();
151
+ // Ensure lower does not go below minValue
152
+ lower = Math.max(lower, this.minValue());
153
+ // Ensure upper does not exceed maxValue
154
+ if (upper > this.maxValue()) {
155
+ upper = this.maxValue();
156
+ sections.push(steelseries.Section(lower, upper, color));
157
+ break;
158
+ }
159
+ sections.push(steelseries.Section(lower, upper, color));
160
+ }
161
+ ;
162
+ this.gaugeOptions['section'] = sections;
163
+ this.gaugeOptions['area'] = areas;
164
+ this.gaugeOptions['useSectionColors'] = true;
165
+ }
166
+ //Colors
167
+ if (SteelBackgroundColors[this.backgroundColor()]) {
168
+ this.gaugeOptions['backgroundColor'] = SteelBackgroundColors[this.backgroundColor()];
169
+ }
170
+ if (SteelFrameColors[this.frameColor()]) {
171
+ this.gaugeOptions['frameDesign'] = SteelFrameColors[this.frameColor()];
172
+ }
173
+ if (this.barGauge()) {
174
+ this.gaugeOptions['valueColor'] = steelseries.ColorDef.GREEN;
175
+ }
176
+ //defaults
177
+ this.gaugeOptions['lcdVisible'] = true;
178
+ this.gaugeOptions['thresholdVisible'] = false;
179
+ this.gaugeOptions['threshold'] = this.maxValue();
180
+ this.gaugeOptions['ledVisible'] = false;
181
+ }
182
+ setGaugeType(radialSize) {
183
+ switch (radialSize) {
184
+ case 'quarter':
185
+ return steelseries.GaugeType.TYPE1;
186
+ case 'half':
187
+ return steelseries.GaugeType.TYPE2;
188
+ case 'three-quarter':
189
+ return steelseries.GaugeType.TYPE3;
190
+ case 'full':
191
+ default:
192
+ return steelseries.GaugeType.TYPE4;
193
+ }
194
+ }
195
+ startGauge(forceRebuild = false) {
196
+ this.buildOptions();
197
+ const id = this.widgetUUID();
198
+ if (!id)
199
+ return;
200
+ // structural conditions requiring rebuild
201
+ const structuralChange = forceRebuild || this.pendingStructuralRebuild;
202
+ if (this.gauge && !structuralChange) {
203
+ // Update mutable properties only
204
+ if (this.gauge.setValueAnimated && this.value() != null) {
205
+ // value updates handled in ngOnChanges, but keep for safety
206
+ }
207
+ this.gaugeStarted = true;
208
+ return;
209
+ }
210
+ // Re-create
211
+ this.pendingStructuralRebuild = false;
212
+ this.gaugeStarted = true;
213
+ const subType = this.subType();
214
+ if (subType === 'radial') {
215
+ this.gauge = new steelseries.Radial(id, this.gaugeOptions);
216
+ }
217
+ else if (subType === 'linear') {
218
+ if (this.barGauge()) {
219
+ this.gauge = new steelseries.LinearBargraph(id, this.gaugeOptions);
220
+ }
221
+ else {
222
+ this.gauge = new steelseries.Linear(id, this.gaugeOptions);
223
+ }
224
+ }
225
+ }
226
+ onResized(event) {
227
+ if (event.contentRect.height < 50 || event.contentRect.width < 50)
228
+ return;
229
+ let signature;
230
+ if (this.subType() === 'radial') {
231
+ const size = Math.min(event.contentRect.height, event.contentRect.width);
232
+ this.gaugeOptions['size'] = size;
233
+ signature = 'radial:' + size;
234
+ }
235
+ else {
236
+ const w = Math.floor(event.contentRect.width);
237
+ const h = Math.floor(event.contentRect.height);
238
+ this.gaugeOptions['width'] = w;
239
+ this.gaugeOptions['height'] = h;
240
+ signature = `linear:${w}x${h}`;
241
+ }
242
+ if (signature === this.lastSizeSignature)
243
+ return; // no meaningful change
244
+ this.lastSizeSignature = signature;
245
+ if (this.resizeTimer)
246
+ window.clearTimeout(this.resizeTimer);
247
+ this.resizeTimer = window.setTimeout(() => {
248
+ this.startGauge(true); // size change may require rebuild
249
+ this.resizeTimer = null;
250
+ }, 120);
251
+ }
252
+ ngOnChanges(changes) {
253
+ if (!this.gaugeStarted) {
254
+ return;
255
+ }
256
+ if (changes.value && !changes.value.firstChange) {
257
+ this.gauge.setValueAnimated(changes.value.currentValue);
258
+ }
259
+ if (changes.zones) {
260
+ this.pendingStructuralRebuild = true;
261
+ this.startGauge(true); // sections require rebuild
262
+ }
263
+ if (changes.title) {
264
+ this.gauge.setTitleString(changes.title.currentValue);
265
+ }
266
+ if (changes.backgroundColor) {
267
+ this.gauge.setBackgroundColor(SteelBackgroundColors[changes.backgroundColor.currentValue]);
268
+ }
269
+ if (changes.frameColor) {
270
+ this.gauge.setFrameDesign(SteelFrameColors[changes.frameColor.currentValue]);
271
+ }
272
+ if (changes.radialSize) {
273
+ this.pendingStructuralRebuild = true;
274
+ this.startGauge(true); // radial geometry change
275
+ }
276
+ if (changes.minValue) {
277
+ this.gauge.setMinValue(changes.minValue.currentValue);
278
+ }
279
+ if (changes.maxValue) {
280
+ this.gauge.setMaxValue(changes.maxValue.currentValue);
281
+ }
282
+ }
283
+ ngOnDestroy() {
284
+ // Stop any running animations before cleanup
285
+ if (this.gauge && this.gauge.setValue) {
286
+ // Call setValue to stop any running setValueAnimated animations
287
+ const currentValue = this.gauge.getValue ? this.gauge.getValue() : this.value();
288
+ this.gauge.setValue(currentValue);
289
+ }
290
+ // Steelseries draws into the canvas with id widgetUUID(). Release it to free GPU memory.
291
+ const id = this.widgetUUID();
292
+ if (id) {
293
+ const canvas = document.getElementById(id);
294
+ this.canvasService.releaseCanvas(canvas, { clear: true, removeFromDom: true });
295
+ }
296
+ // Null out gauge reference for GC
297
+ this.gauge = null;
298
+ }
299
+ };
300
+ GaugeSteelComponent = __decorate([
301
+ Component({
302
+ selector: 'gauge-steel',
303
+ templateUrl: './gauge-steel.component.html',
304
+ styleUrls: ['./gauge-steel.component.scss'],
305
+ imports: [NgxResizeObserverModule]
306
+ })
307
+ ], GaugeSteelComponent);
308
+ export { GaugeSteelComponent };
309
+ //# sourceMappingURL=gauge-steel.component.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gauge-steel.component.js","sourceRoot":"","sources":["../../../../../../src/app/widgets/gauge-steel/gauge-steel.component.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,qCAAqC,CAAC;AACnE,OAAO,EAAE,SAAS,EAA+C,KAAK,EAAE,MAAM,EAAc,SAAS,EAAE,MAAM,eAAe,CAAC;AAC7H,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACnE,OAAO,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AAE9D,OAAO,EAAW,MAAM,EAAE,MAAM,0CAA0C,CAAC;AAK3E,uHAAuH;AACvH,mHAAmH;AACnH,IAAI,OAAO,WAAW,KAAK,WAAW,EAAE,CAAC;IACtC,UAAiD,CAAC,WAAW,GAAG;QAC/D,eAAe,EAAE;YACf,SAAS,EAAE,UAAU,EAAE,UAAU,EAAE,WAAW,EAAE,UAAU,EAAE,WAAW,EAAE,KAAK,EAAE,O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AAM,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,CAAC,CAAC;QACjF,CAAC;QACD,kCAAkC;QAClC,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;IACpB,CAAC;CACF,CAAA;AAjQY,mBAAmB;IAN/B,SAAS,CAAC;QACP,QAAQ,EAAE,aAAa;QACvB,WAAW,EAAE,8BAA8B;QAC3C,SAAS,EAAE,CAAC,8BAA8B,CAAC;QAC3C,OAAO,EAAE,CAAC,uBAAuB,CAAC;KACrC,CAAC;GACW,mBAAmB,CAiQ/B"}
@@ -0,0 +1,21 @@
1
+ import { TestBed, waitForAsync } from '@angular/core/testing';
2
+ import { GaugeSteelComponent } from './gauge-steel.component';
3
+ describe('GaugeSteelComponent', () => {
4
+ let component;
5
+ let fixture;
6
+ beforeEach(waitForAsync(() => {
7
+ TestBed.configureTestingModule({
8
+ imports: [GaugeSteelComponent]
9
+ })
10
+ .compileComponents();
11
+ }));
12
+ beforeEach(() => {
13
+ fixture = TestBed.createComponent(GaugeSteelComponent);
14
+ component = fixture.componentInstance;
15
+ fixture.detectChanges();
16
+ });
17
+ it('should be created', () => {
18
+ expect(component).toBeTruthy();
19
+ });
20
+ });
21
+ //# sourceMappingURL=gauge-steel.component.spec.js.map