@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,205 @@
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
+ import { Component, computed, effect, signal, viewChild, inject, NgZone } from '@angular/core';
11
+ import { BaseWidgetComponent } from '../../core/utils/base-widget.component';
12
+ import { animateRotation } from '../../core/utils/svg-animate.util';
13
+ import { getHighlights } from '../../core/utils/zones-highlight.utils';
14
+ import { WidgetHostComponent } from '../../core/components/widget-host/widget-host.component';
15
+ let WidgetHeelGaugeComponent = class WidgetHeelGaugeComponent extends BaseWidgetComponent {
16
+ ngZone = inject(NgZone);
17
+ needleGroup = viewChild('needleGroup');
18
+ heelDeg = signal(null);
19
+ absHeel = computed(() => {
20
+ const v = this.heelDeg();
21
+ return v == null ? null : Math.abs(v);
22
+ });
23
+ heelSide = computed(() => {
24
+ const v = this.heelDeg();
25
+ if (v == null)
26
+ return '';
27
+ return v > 0 ? 'Stbd' : v < 0 ? 'Port' : 'Level';
28
+ });
29
+ displayValue = computed(() => {
30
+ const v = this.heelDeg();
31
+ if (v == null)
32
+ return '--';
33
+ const dec = this.widgetProperties?.config?.numDecimal ?? 1;
34
+ return v.toFixed(dec);
35
+ });
36
+ needleAngle = signal(0); // rotation relative center (0 = up)
37
+ previousAngle = 0;
38
+ needleAnimFrames = new WeakMap();
39
+ // Dial tick marks (every 15° across -45..45, with longer major ticks every 30°)
40
+ majorTicks = computed(() => {
41
+ const ticks = [];
42
+ const min = -45, max = 45;
43
+ const centerX = 100, centerY = 100, outerR = 88, innerRMinor = 82, innerRMajor = 78, labelR = 70;
44
+ for (let v = min; v <= max; v += 15) {
45
+ const angle = this.valueToDialAngle(v, min, max); // -90..90
46
+ const rad = (angle - 90) * Math.PI / 180;
47
+ const isMajor = (v - min) % 30 === 0;
48
+ const innerR = isMajor ? innerRMajor : innerRMinor;
49
+ const xOuter = centerX + outerR * Math.cos(rad);
50
+ const yOuter = centerY + outerR * Math.sin(rad);
51
+ const xInner = centerX + innerR * Math.cos(rad);
52
+ const yInner = centerY + innerR * Math.sin(rad);
53
+ const xLabel = centerX + labelR * Math.cos(rad);
54
+ const yLabel = centerY + labelR * Math.sin(rad) + 4; // small vertical tweak
55
+ ticks.push({
56
+ x1: xInner,
57
+ y1: yInner,
58
+ x2: xOuter,
59
+ y2: yOuter,
60
+ tx: xLabel,
61
+ ty: yLabel,
62
+ label: isMajor ? `${Math.abs(v)}` : ''
63
+ });
64
+ }
65
+ return ticks;
66
+ });
67
+ // Zones metadata subscription
68
+ metaSub = null;
69
+ zoneHighlights = signal([]);
70
+ valueColor = signal('');
71
+ needleColor = signal('');
72
+ constructor() {
73
+ super();
74
+ this.defaultConfig = {
75
+ displayName: 'Heel',
76
+ filterSelfPaths: true,
77
+ paths: {
78
+ heelAngle: {
79
+ description: 'Heel / Roll Angle',
80
+ path: 'navigation.attitude.roll',
81
+ source: '',
82
+ pathType: 'number',
83
+ isPathConfigurable: true,
84
+ convertUnitTo: 'deg',
85
+ sampleTime: 1000,
86
+ pathRequired: true
87
+ }
88
+ },
89
+ numInt: 2,
90
+ numDecimal: 1,
91
+ enableTimeout: false,
92
+ dataTimeout: 5,
93
+ ignoreZones: false
94
+ };
95
+ effect(() => {
96
+ if (this.theme()) {
97
+ this.valueColor.set(this.theme().contrast);
98
+ this.needleColor.set(this.theme().contrast);
99
+ }
100
+ });
101
+ }
102
+ ngOnInit() {
103
+ this.validateConfig();
104
+ this.startWidget();
105
+ }
106
+ startWidget() {
107
+ this.unsubscribeDataStream();
108
+ this.unsubscribeMetaStream();
109
+ this.metaSub?.unsubscribe();
110
+ this.observeDataStream('heelAngle', newValue => {
111
+ if (!newValue || !newValue.data || newValue.data.value == null) {
112
+ this.heelDeg.set(null);
113
+ return;
114
+ }
115
+ const val = newValue.data.value;
116
+ this.heelDeg.set(val);
117
+ this.animateNeedle(val);
118
+ });
119
+ if (!this.widgetProperties.config.ignoreZones) {
120
+ this.observeMetaStream();
121
+ this.metaSub = this.zones$.subscribe(zones => {
122
+ if (zones && zones.length > 0) {
123
+ // Convert zones to highlight arcs (simplified: map ranges to arc sectors)
124
+ const lower = -45; // visualization domain
125
+ const upper = 45;
126
+ const min = lower;
127
+ const max = upper;
128
+ const highlightsRaw = getHighlights(zones, this.theme(), this.widgetProperties.config.paths['heelAngle'].convertUnitTo, this.unitsService, min, max, false);
129
+ const arcs = [];
130
+ for (const z of highlightsRaw) {
131
+ if (z.from == null || z.to == null)
132
+ continue;
133
+ const clampedFrom = Math.max(min, Math.min(max, z.from));
134
+ const clampedTo = Math.max(min, Math.min(max, z.to));
135
+ const startAngle = this.valueToDialAngle(clampedFrom, min, max);
136
+ const endAngle = this.valueToDialAngle(clampedTo, min, max);
137
+ arcs.push({ path: this.describeArc(100, 100, 80, startAngle, endAngle), fill: z.color, width: 6 });
138
+ }
139
+ this.zoneHighlights.set(arcs);
140
+ }
141
+ else {
142
+ this.zoneHighlights.set([]);
143
+ }
144
+ });
145
+ }
146
+ }
147
+ updateConfig(config) {
148
+ this.widgetProperties.config = config;
149
+ this.startWidget();
150
+ }
151
+ animateNeedle(val) {
152
+ const clamped = Math.max(-45, Math.min(45, val));
153
+ const targetAngle = this.valueToDialAngle(clamped, -45, 45);
154
+ const el = this.needleGroup()?.nativeElement;
155
+ if (!el) {
156
+ this.needleAngle.set(targetAngle);
157
+ this.previousAngle = targetAngle;
158
+ return;
159
+ }
160
+ animateRotation(el, this.previousAngle, targetAngle, 600, () => this.previousAngle = targetAngle, this.needleAnimFrames, [100, 100], this.ngZone);
161
+ this.needleAngle.set(targetAngle);
162
+ }
163
+ valueToDialAngle(value, min, max) {
164
+ // Map value range [-45,45] to dial arc [-90, 90]
165
+ const pct = (value - min) / (max - min); // 0..1
166
+ return -90 + pct * 180;
167
+ }
168
+ // SVG arc helper
169
+ polarToCartesian(centerX, centerY, radius, angleInDegrees) {
170
+ const angleInRadians = (angleInDegrees - 90) * Math.PI / 180.0;
171
+ return {
172
+ x: centerX + (radius * Math.cos(angleInRadians)),
173
+ y: centerY + (radius * Math.sin(angleInRadians))
174
+ };
175
+ }
176
+ describeArc(x, y, radius, startAngle, endAngle) {
177
+ const start = this.polarToCartesian(x, y, radius, endAngle);
178
+ const end = this.polarToCartesian(x, y, radius, startAngle);
179
+ const largeArcFlag = endAngle - startAngle <= 180 ? '0' : '1';
180
+ const d = ["M", start.x, start.y, "A", radius, radius, 0, largeArcFlag, 0, end.x, end.y].join(" ");
181
+ return d;
182
+ }
183
+ ngOnDestroy() {
184
+ this.unsubscribeDataStream();
185
+ this.unsubscribeMetaStream();
186
+ this.metaSub?.unsubscribe();
187
+ const el = this.needleGroup()?.nativeElement;
188
+ if (el) {
189
+ const id = this.needleAnimFrames.get(el);
190
+ if (id)
191
+ cancelAnimationFrame(id);
192
+ }
193
+ }
194
+ };
195
+ WidgetHeelGaugeComponent = __decorate([
196
+ Component({
197
+ selector: 'widget-heel-gauge',
198
+ templateUrl: './widget-heel-gauge.component.html',
199
+ styleUrls: ['./widget-heel-gauge.component.scss'],
200
+ imports: [WidgetHostComponent],
201
+ }),
202
+ __metadata("design:paramtypes", [])
203
+ ], WidgetHeelGaugeComponent);
204
+ export { WidgetHeelGaugeComponent };
205
+ //# sourceMappingURL=widget-heel-gauge.component.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"widget-heel-gauge.component.js","sourceRoot":"","sources":["../../../../../../src/app/widgets/widget-heel-gauge/widget-heel-gauge.component.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAAqB,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,EAAc,MAAM,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAC9H,OAAO,EAAE,mBAAmB,EAAE,MAAM,wCAAwC,CAAC;AAE7E,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AAEpE,OAAO,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAC;AACvE,OAAO,EAAE,mBAAmB,EAAE,MAAM,yDAAyD,CAAC;AAUvF,IAAM,wBAAwB,GAA9B,MAAM,wBAAyB,SAAQ,mBAAmB;IAC9C,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC;IACxB,WAAW,GAAG,SAAS,CAA0B,aAAa,CAAC,CAAC;IAE9D,OAAO,GAAG,MAAM,CAAgB,IAAI,CAAC,CAAC;IACtC,OAAO,GAAG,QAAQ,CAAC,GAAG,EAAE;QACzC,MAAM,CAAC,GAAG,IAAI,CAAC,OAAO,EAAE,CAAC;QACzB,OAAO,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;IACxC,CAAC,CAAC,CAAC;IACgB,QAAQ,GAAG,QAAQ,CAAC,GAAG,EAAE;QAC1C,MAAM,CAAC,GAAG,IAAI,CAAC,OAAO,EAAE,CAAC;QACzB,IAAI,CAAC,IAAI,IAAI;YAAE,OAAO,EAAE,CAAC;QACzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OA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AM,GAAG,GAAG,IAAI,CAAC,gBAAgB,CAAC,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,UAAU,CAAC,CAAC;QAC5D,MAAM,YAAY,GAAG,QAAQ,GAAG,UAAU,IAAI,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC;QAC9D,MAAM,CAAC,GAAG,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,EAAE,YAAY,EAAE,CAAC,EAAE,GAAG,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QACnG,OAAO,CAAC,CAAC;IACX,CAAC;IAED,WAAW;QACT,IAAI,CAAC,qBAAqB,EAAE,CAAC;QAC7B,IAAI,CAAC,qBAAqB,EAAE,CAAC;QAC7B,IAAI,CAAC,OAAO,EAAE,WAAW,EAAE,CAAC;QAC5B,MAAM,EAAE,GAAG,IAAI,CAAC,WAAW,EAAE,EAAE,aAAa,CAAC;QAC7C,IAAI,EAAE,EAAE,CAAC;YACP,MAAM,EAAE,GAAG,IAAI,CAAC,gBAAgB,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;YACzC,IAAI,EAAE;gBAAE,oBAAoB,CAAC,EAAE,CAAC,CAAC;QACnC,CAAC;IACH,CAAC;CACF,CAAA;AA7LY,wBAAwB;IANpC,SAAS,CAAC;QACT,QAAQ,EAAE,mBAAmB;QAC7B,WAAW,EAAE,oCAAoC;QACjD,SAAS,EAAE,CAAC,oCAAoC,CAAC;QACjD,OAAO,EAAE,CAAC,mBAAmB,CAAC;KAC/B,CAAC;;GACW,wBAAwB,CA6LpC"}
@@ -0,0 +1,15 @@
1
+ import { TestBed } from '@angular/core/testing';
2
+ import { WidgetHeelGaugeComponent } from './widget-heel-gauge.component';
3
+ describe('WidgetHeelGaugeComponent', () => {
4
+ beforeEach(async () => {
5
+ await TestBed.configureTestingModule({
6
+ imports: [WidgetHeelGaugeComponent]
7
+ }).compileComponents();
8
+ });
9
+ it('should create', () => {
10
+ const fixture = TestBed.createComponent(WidgetHeelGaugeComponent);
11
+ const comp = fixture.componentInstance;
12
+ expect(comp).toBeTruthy();
13
+ });
14
+ });
15
+ //# sourceMappingURL=widget-heel-gauge.component.spec.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"widget-heel-gauge.component.spec.js","sourceRoot":"","sources":["../../../../../../src/app/widgets/widget-heel-gauge/widget-heel-gauge.component.spec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAChD,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AAEzE,QAAQ,CAAC,0BAA0B,EAAE,GAAG,EAAE;IACxC,UAAU,CAAC,KAAK,IAAI,EAAE;QACpB,MAAM,OAAO,CAAC,sBAAsB,CAAC;YACnC,OAAO,EAAE,CAAC,wBAAwB,CAAC;SACpC,CAAC,CAAC,iBAAiB,EAAE,CAAC;IACzB,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,eAAe,EAAE,GAAG,EAAE;QACvB,MAAM,OAAO,GAAG,OAAO,CAAC,eAAe,CAAC,wBAAwB,CAAC,CAAC;QAClE,MAAM,IAAI,GAAG,OAAO,CAAC,iBAAiB,CAAC;QACvC,MAAM,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,CAAC;IAC5B,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -0,0 +1,196 @@
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
+ import { Component, ChangeDetectorRef, inject } from '@angular/core';
11
+ import { CanvasService } from '../../core/services/canvas.service';
12
+ import { BaseWidgetComponent } from '../../core/utils/base-widget.component';
13
+ import { WidgetHostComponent } from '../../core/components/widget-host/widget-host.component';
14
+ import { NgxResizeObserverModule } from 'ngx-resize-observer';
15
+ // Provide minimal mock for unit tests when external script not loaded.
16
+ if (typeof steelseries === 'undefined') {
17
+ globalThis.steelseries = {};
18
+ }
19
+ // Augment missing collections (idempotent) with minimal placeholders.
20
+ const ss = globalThis.steelseries;
21
+ // dynamic augmentation for test shim
22
+ ss['ColorDef'] = ss['ColorDef'] || {
23
+ RED: 'red', GREEN: 'green', BLUE: 'blue', ORANGE: 'orange', YELLOW: 'yellow', CYAN: 'cyan', MAGENTA: 'magenta',
24
+ WHITE: 'white', GRAY: 'gray', BLACK: 'black', RAITH: 'raith', GREEN_LCD: 'greenLcd', JUG_GREEN: 'jugGreen'
25
+ };
26
+ // dynamic augmentation for test shim
27
+ ss['FrameDesign'] = ss['FrameDesign'] || {
28
+ BLACK_METAL: 'blackMetal', METAL: 'metal', SHINY_METAL: 'shinyMetal', BRASS: 'brass', STEEL: 'steel', CHROME: 'chrome',
29
+ GOLD: 'gold', ANTHRACITE: 'anthracite', TILTED_GRAY: 'tiltedGray', TILTED_BLACK: 'tiltedBlack', GLOSSY_METAL: 'glossyMetal'
30
+ };
31
+ export const SteelPointerColors = {
32
+ 'Red': steelseries.ColorDef.RED,
33
+ 'Green': steelseries.ColorDef.GREEN,
34
+ 'Blue': steelseries.ColorDef.BLUE,
35
+ 'Orange': steelseries.ColorDef.ORANGE,
36
+ 'Yellow': steelseries.ColorDef.YELLOW,
37
+ 'Cyan': steelseries.ColorDef.CYAN,
38
+ 'Magenta': steelseries.ColorDef.MAGENTA,
39
+ 'White': steelseries.ColorDef.WHITE,
40
+ 'Gray': steelseries.ColorDef.GRAY,
41
+ 'Black': steelseries.ColorDef.BLACK,
42
+ 'Raith': steelseries.ColorDef.RAITH,
43
+ 'Green LCD': steelseries.ColorDef.GREEN_LCD,
44
+ 'JUG Green': steelseries.ColorDef.JUG_GREEN
45
+ };
46
+ export const SteelFrameDesign = {
47
+ 'blackMetal': steelseries.FrameDesign.BLACK_METAL,
48
+ 'metal': steelseries.FrameDesign.METAL,
49
+ 'shinyMetal': steelseries.FrameDesign.SHINY_METAL,
50
+ 'brass': steelseries.FrameDesign.BRASS,
51
+ 'steel': steelseries.FrameDesign.STEEL,
52
+ 'chrome': steelseries.FrameDesign.CHROME,
53
+ 'gold': steelseries.FrameDesign.GOLD,
54
+ 'anthracite': steelseries.FrameDesign.ANTHRACITE,
55
+ 'tiltedGray': steelseries.FrameDesign.TILTED_GRAY,
56
+ 'tiltedBlack': steelseries.FrameDesign.TILTED_BLACK,
57
+ 'glossyMetal': steelseries.FrameDesign.GLOSSY_METAL
58
+ };
59
+ let WidgetHorizonComponent = class WidgetHorizonComponent extends BaseWidgetComponent {
60
+ cdr = inject(ChangeDetectorRef);
61
+ canvasService = inject(CanvasService);
62
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
63
+ gaugeOptions = {};
64
+ gauge = null;
65
+ streamsInitialized = false;
66
+ lastSizeSignature = '';
67
+ resizeTimer = null;
68
+ pendingStructuralRebuild = false;
69
+ constructor() {
70
+ super();
71
+ this.defaultConfig = {
72
+ filterSelfPaths: true,
73
+ paths: {
74
+ "gaugePitchPath": {
75
+ description: "Attitude Pitch Data",
76
+ path: "self.navigation.attitude.pitch",
77
+ source: "default",
78
+ pathType: 'number',
79
+ pathRequired: false,
80
+ isPathConfigurable: true,
81
+ showPathSkUnitsFilter: false,
82
+ pathSkUnitsFilter: 'rad',
83
+ convertUnitTo: "deg",
84
+ sampleTime: 1000
85
+ },
86
+ "gaugeRollPath": {
87
+ description: "Attitude Roll Data",
88
+ path: "self.navigation.attitude.roll",
89
+ source: "default",
90
+ pathType: 'number',
91
+ pathRequired: false,
92
+ isPathConfigurable: true,
93
+ showPathSkUnitsFilter: false,
94
+ pathSkUnitsFilter: 'rad',
95
+ convertUnitTo: "deg",
96
+ sampleTime: 1000
97
+ }
98
+ },
99
+ gauge: {
100
+ type: 'horizon',
101
+ noFrameVisible: false,
102
+ faceColor: 'anthracite',
103
+ invertPitch: false,
104
+ invertRoll: false
105
+ },
106
+ enableTimeout: false,
107
+ dataTimeout: 5,
108
+ };
109
+ }
110
+ ngOnInit() {
111
+ this.validateConfig();
112
+ }
113
+ ngAfterContentInit() {
114
+ this.cdr.detectChanges(); // Force DOM update
115
+ this.startWidget();
116
+ // Perform an initial resize to avoid first-draw jump
117
+ const canvas = document.getElementById(this.widgetProperties.uuid + '-canvas');
118
+ const container = canvas?.parentElement;
119
+ if (container) {
120
+ const rect = container.getBoundingClientRect();
121
+ this.onResized({ contentRect: { width: rect.width, height: rect.height } });
122
+ }
123
+ }
124
+ startWidget(forceRebuild = false) {
125
+ this.buildOptions();
126
+ const id = this.widgetProperties.uuid + '-canvas';
127
+ if (!id)
128
+ return;
129
+ if (this.gauge && !forceRebuild && !this.pendingStructuralRebuild) {
130
+ // mutable-only update path (no direct setters beyond pitch/roll used later)
131
+ }
132
+ else {
133
+ this.pendingStructuralRebuild = false;
134
+ this.gauge = new steelseries.Horizon(id, this.gaugeOptions);
135
+ }
136
+ if (!this.streamsInitialized) {
137
+ this.observeDataStream('gaugePitchPath', newValue => {
138
+ const v = newValue.data.value ?? 0;
139
+ this.gauge.setPitchAnimated(this.widgetProperties.config.gauge.invertPitch ? -v : v);
140
+ });
141
+ this.observeDataStream('gaugeRollPath', newValue => {
142
+ const v = newValue.data.value ?? 0;
143
+ this.gauge.setRollAnimated(this.widgetProperties.config.gauge.invertRoll ? -v : v);
144
+ });
145
+ this.streamsInitialized = true;
146
+ }
147
+ }
148
+ updateConfig(config) {
149
+ this.widgetProperties.config = config;
150
+ this.pendingStructuralRebuild = true; // horizon face/frame toggles etc.
151
+ this.startWidget(true);
152
+ }
153
+ buildOptions() {
154
+ this.gaugeOptions['pointerColor'] = SteelPointerColors.Red;
155
+ this.gaugeOptions['frameVisible'] = this.widgetProperties.config.gauge.noFrameVisible ?? false;
156
+ this.gaugeOptions['frameDesign'] = SteelFrameDesign[this.widgetProperties.config.gauge.faceColor ?? 'anthracite'];
157
+ this.gaugeOptions['foregroundVisible'] = false;
158
+ }
159
+ onResized(event) {
160
+ if (event.contentRect.height < 50 || event.contentRect.width < 50)
161
+ return;
162
+ const size = Math.min(event.contentRect.height, event.contentRect.width);
163
+ const signature = 'horizon:' + size;
164
+ if (signature === this.lastSizeSignature)
165
+ return;
166
+ this.lastSizeSignature = signature;
167
+ this.gaugeOptions['size'] = size;
168
+ if (this.resizeTimer)
169
+ window.clearTimeout(this.resizeTimer);
170
+ this.resizeTimer = window.setTimeout(() => {
171
+ this.startWidget(true);
172
+ this.resizeTimer = null;
173
+ }, 120);
174
+ }
175
+ ngOnDestroy() {
176
+ this.destroyDataStreams();
177
+ if (this.gauge) {
178
+ this.gauge = null;
179
+ }
180
+ // Release horizon canvas
181
+ const canvas = document.getElementById(this.widgetProperties.uuid + '-canvas');
182
+ this.canvasService.releaseCanvas(canvas, { clear: true, removeFromDom: true });
183
+ }
184
+ };
185
+ WidgetHorizonComponent = __decorate([
186
+ Component({
187
+ selector: 'widget-horizon',
188
+ templateUrl: './widget-horizon.component.html',
189
+ styleUrls: ['./widget-horizon.component.scss'],
190
+ standalone: true,
191
+ imports: [WidgetHostComponent, NgxResizeObserverModule]
192
+ }),
193
+ __metadata("design:paramtypes", [])
194
+ ], WidgetHorizonComponent);
195
+ export { WidgetHorizonComponent };
196
+ //# sourceMappingURL=widget-horizon.component.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"widget-horizon.component.js","sourceR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QAC3G,IAAI,CAAC,aAAa,CAAC,aAAa,CAAC,MAAM,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,CAAC,CAAC;IACjF,CAAC;CACF,CAAA;AAtIY,sBAAsB;IAPlC,SAAS,CAAC;QACT,QAAQ,EAAE,gBAAgB;QAC1B,WAAW,EAAE,iCAAiC;QAC9C,SAAS,EAAE,CAAC,iCAAiC,CAAC;QAC9C,UAAU,EAAE,IAAI;QAChB,OAAO,EAAE,CAAC,mBAAmB,EAAE,uBAAuB,CAAC;KACxD,CAAC;;GACW,sBAAsB,CAsIlC"}
@@ -0,0 +1,21 @@
1
+ import { TestBed, waitForAsync } from '@angular/core/testing';
2
+ import { WidgetHorizonComponent } from './widget-horizon.component';
3
+ describe('WidgetGaugeComponent', () => {
4
+ let component;
5
+ let fixture;
6
+ beforeEach(waitForAsync(() => {
7
+ TestBed.configureTestingModule({
8
+ imports: [WidgetHorizonComponent]
9
+ })
10
+ .compileComponents();
11
+ }));
12
+ beforeEach(() => {
13
+ fixture = TestBed.createComponent(WidgetHorizonComponent);
14
+ component = fixture.componentInstance;
15
+ fixture.detectChanges();
16
+ });
17
+ it('should be created', () => {
18
+ expect(component).toBeTruthy();
19
+ });
20
+ });
21
+ //# sourceMappingURL=widget-horizon.component.spec.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"widget-horizon.component.spec.js","sourceRoot":"","sources":["../../../../../../src/app/widgets/widget-horizon/widget-horizon.component.spec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAEhF,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AAEpE,QAAQ,CAAC,sBAAsB,EAAE,GAAG,EAAE;IACpC,IAAI,SAAiC,CAAC;IACtC,IAAI,OAAiD,CAAC;IAEtD,UAAU,CAAC,YAAY,CAAC,GAAG,EAAE;QAC3B,OAAO,CAAC,sBAAsB,CAAC;YAC/B,OAAO,EAAE,CAAC,sBAAsB,CAAC;SACpC,CAAC;aACG,iBAAiB,EAAE,CAAC;IACvB,CAAC,CAAC,CAAC,CAAC;IAEJ,UAAU,CAAC,GAAG,EAAE;QACd,OAAO,GAAG,OAAO,CAAC,eAAe,CAAC,sBAAsB,CAAC,CAAC;QAC1D,SAAS,GAAG,OAAO,CAAC,iBAAiB,CAAC;QACtC,OAAO,CAAC,aAAa,EAAE,CAAC;IAC1B,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,mBAAmB,EAAE,GAAG,EAAE;QAC3B,MAAM,CAAC,SAAS,CAAC,CAAC,UAAU,EAAE,CAAC;IACjC,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -0,0 +1,173 @@
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
+ import { Component, effect, inject, signal, viewChild } from '@angular/core';
11
+ import { DomSanitizer } from '@angular/platform-browser';
12
+ import { BaseWidgetComponent } from '../../core/utils/base-widget.component';
13
+ import { WidgetHostComponent } from '../../core/components/widget-host/widget-host.component';
14
+ import { DashboardService } from '../../core/services/dashboard.service';
15
+ import { generateSwipeScript } from '../../core/utils/iframe-inputs-inject.utils';
16
+ let WidgetIframeComponent = class WidgetIframeComponent extends BaseWidgetComponent {
17
+ _sanitizer = inject(DomSanitizer);
18
+ _dashboard = inject(DashboardService);
19
+ iframe = viewChild.required('plainIframe');
20
+ widgetUrl = null;
21
+ displayTransparentOverlay = signal('block');
22
+ constructor() {
23
+ super();
24
+ this.defaultConfig = {
25
+ widgetUrl: null,
26
+ allowInput: false
27
+ };
28
+ effect(() => {
29
+ if (!this._dashboard.isDashboardStatic()) {
30
+ this.displayTransparentOverlay.set('block');
31
+ }
32
+ else {
33
+ this.displayTransparentOverlay.set(this.widgetProperties.config.allowInput ? 'none' : 'block');
34
+ }
35
+ });
36
+ }
37
+ ngOnInit() {
38
+ this.validateConfig();
39
+ window.addEventListener('message', this.handleIframeGesture);
40
+ this.displayTransparentOverlay.set(this.widgetProperties.config.allowInput ? 'none' : 'block');
41
+ this.widgetUrl = this.resolveUrl(this.widgetProperties.config.widgetUrl);
42
+ }
43
+ ngAfterViewInit() {
44
+ if (this.iframe()) {
45
+ this.iframe().nativeElement.onload = () => this.injectSwipeScript();
46
+ }
47
+ }
48
+ startWidget() {
49
+ }
50
+ ngOnDestroy() {
51
+ window.removeEventListener('message', this.handleIframeGesture);
52
+ // Clear iframe onload to release closure references
53
+ if (this.iframe()) {
54
+ this.iframe().nativeElement.onload = null;
55
+ }
56
+ // Remove injected script from iframe (if same-origin) to avoid lingering closures
57
+ try {
58
+ const iframeDoc = this.iframe()?.nativeElement.contentDocument;
59
+ if (iframeDoc) {
60
+ const id = `kip-gesture-inject-${this.widgetProperties.uuid}`;
61
+ const existing = iframeDoc.getElementById(id);
62
+ if (existing && existing.parentNode)
63
+ existing.parentNode.removeChild(existing);
64
+ }
65
+ }
66
+ catch { /* ignore cross-origin or access errors */ }
67
+ // Ensure any data streams from BaseWidget are cleaned up
68
+ try {
69
+ this.destroyDataStreams();
70
+ }
71
+ catch { /* noop if not present */ }
72
+ }
73
+ handleIframeGesture = (event) => {
74
+ if (!event.data)
75
+ return;
76
+ // Handle gestures
77
+ if (event.data.gesture && event.data.eventData.instanceId === this.widgetProperties.uuid) {
78
+ switch (event.data.gesture) {
79
+ case 'swipeup':
80
+ this._dashboard.navigateToPreviousDashboard();
81
+ break;
82
+ case 'swipedown':
83
+ this._dashboard.navigateToNextDashboard();
84
+ break;
85
+ case 'swipeleft': {
86
+ const leftSidebarEvent = new Event('openLeftSidenav', { bubbles: true, cancelable: true });
87
+ window.document.dispatchEvent(leftSidebarEvent);
88
+ break;
89
+ }
90
+ case 'swiperight': {
91
+ const rightSidebarEvent = new Event('openRightSidenav', { bubbles: true, cancelable: true });
92
+ window.document.dispatchEvent(rightSidebarEvent);
93
+ break;
94
+ }
95
+ default:
96
+ break;
97
+ }
98
+ }
99
+ // Handle keydown events
100
+ if (event.data.type === 'keydown' && event.data.keyEventData.instanceId === this.widgetProperties.uuid) {
101
+ const { key, ctrlKey, shiftKey } = event.data.keyEventData;
102
+ // Re-dispatch the keydown event
103
+ const keyboardEvent = new KeyboardEvent('keydown', {
104
+ key,
105
+ ctrlKey,
106
+ shiftKey,
107
+ bubbles: true,
108
+ cancelable: true,
109
+ });
110
+ document.dispatchEvent(keyboardEvent);
111
+ }
112
+ };
113
+ injectSwipeScript() {
114
+ const iframeWindow = this.iframe().nativeElement.contentWindow;
115
+ const iframeDocument = this.iframe().nativeElement.contentDocument;
116
+ if (!iframeDocument || !iframeWindow) {
117
+ console.error('[WidgetIframe] Iframe contentDocument or contentWindow is undefined. Possible cross-origin issue or iframe not fully loaded.');
118
+ return;
119
+ }
120
+ try {
121
+ const id = `kip-gesture-inject-${this.widgetProperties.uuid}`;
122
+ // Avoid double-injecting the same script
123
+ if (iframeDocument.getElementById(id))
124
+ return;
125
+ const scriptText = generateSwipeScript({ instanceId: this.widgetProperties.uuid });
126
+ const script = iframeDocument.createElement('script');
127
+ script.id = id;
128
+ script.textContent = scriptText;
129
+ iframeDocument.body.appendChild(script);
130
+ }
131
+ catch (e) {
132
+ console.warn('[WidgetIframe] Failed to inject swipe script into iframe:', e);
133
+ }
134
+ }
135
+ updateConfig(config) {
136
+ this.widgetUrl = this.resolveUrl(config.widgetUrl);
137
+ }
138
+ isValidProtocol(url) {
139
+ try {
140
+ const parsedUrl = new URL(url);
141
+ return parsedUrl.protocol === 'http:' || parsedUrl.protocol === 'https:';
142
+ }
143
+ catch (e) {
144
+ console.warn(`[Embed Widget] Invalid Url: ${url}, Error: ${e}`);
145
+ return false;
146
+ }
147
+ }
148
+ resolveUrl(rawUrl) {
149
+ if (!rawUrl)
150
+ return null;
151
+ try {
152
+ // Check if the URL is absolute
153
+ const parsedUrl = new URL(rawUrl, window.location.origin);
154
+ const resolvedUrl = this.isValidProtocol(parsedUrl.href) ? this._sanitizer.bypassSecurityTrustResourceUrl(parsedUrl.href) : null;
155
+ return resolvedUrl;
156
+ }
157
+ catch (e) {
158
+ console.warn(`[Embed Widget] Can't resolve Url: ${rawUrl}, Error: ${e}`);
159
+ return null; // Return an empty string if the URL is invalid
160
+ }
161
+ }
162
+ };
163
+ WidgetIframeComponent = __decorate([
164
+ Component({
165
+ selector: 'widget-iframe',
166
+ templateUrl: './widget-iframe.component.html',
167
+ styleUrls: ['./widget-iframe.component.scss'],
168
+ imports: [WidgetHostComponent]
169
+ }),
170
+ __metadata("design:paramtypes", [])
171
+ ], WidgetIframeComponent);
172
+ export { WidgetIframeComponent };
173
+ //# sourceMappingURL=widget-iframe.component.js.map