@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.
- package/CHANGELOG.md +3 -0
- package/README.md +39 -59
- package/dist/out-tsc/kip-plugin/src/index.js +223 -0
- package/dist/out-tsc/kip-plugin/src/index.js.map +1 -0
- package/dist/out-tsc/kip-plugin/src/openApi.json +367 -0
- package/dist/out-tsc/package.json +118 -0
- package/dist/out-tsc/schematics/widget/index.js +70 -0
- package/dist/out-tsc/schematics/widget/index.js.map +1 -0
- package/dist/out-tsc/src/app/app.component.js +286 -0
- package/dist/out-tsc/src/app/app.component.js.map +1 -0
- package/dist/out-tsc/src/app/app.component.spec.js +26 -0
- package/dist/out-tsc/src/app/app.component.spec.js.map +1 -0
- package/dist/out-tsc/src/app/app.routes.js +35 -0
- package/dist/out-tsc/src/app/app.routes.js.map +1 -0
- package/dist/out-tsc/src/app/core/components/app-help/app-help.component.js +60 -0
- package/dist/out-tsc/src/app/core/components/app-help/app-help.component.js.map +1 -0
- package/dist/out-tsc/src/app/core/components/app-help/app-help.component.spec.js +150 -0
- package/dist/out-tsc/src/app/core/components/app-help/app-help.component.spec.js.map +1 -0
- package/dist/out-tsc/src/app/core/components/dashboard/dashboard.component.js +361 -0
- package/dist/out-tsc/src/app/core/components/dashboard/dashboard.component.js.map +1 -0
- package/dist/out-tsc/src/app/core/components/dashboard/dashboard.component.spec.js +19 -0
- package/dist/out-tsc/src/app/core/components/dashboard/dashboard.component.spec.js.map +1 -0
- package/dist/out-tsc/src/app/core/components/dashboard-scroller/dashboard-scroller.component.js +33 -0
- package/dist/out-tsc/src/app/core/components/dashboard-scroller/dashboard-scroller.component.js.map +1 -0
- package/dist/out-tsc/src/app/core/components/dashboard-scroller/dashboard-scroller.component.spec.js +19 -0
- package/dist/out-tsc/src/app/core/components/dashboard-scroller/dashboard-scroller.component.spec.js.map +1 -0
- package/dist/out-tsc/src/app/core/components/dashboards-editor/dashboards-editor.component.js +183 -0
- package/dist/out-tsc/src/app/core/components/dashboards-editor/dashboards-editor.component.js.map +1 -0
- package/dist/out-tsc/src/app/core/components/dashboards-editor/dashboards-editor.component.spec.js +19 -0
- package/dist/out-tsc/src/app/core/components/dashboards-editor/dashboards-editor.component.spec.js.map +1 -0
- package/dist/out-tsc/src/app/core/components/dashboards-manage-bottom-sheet/dashboards-manage-bottom-sheet.component.js +28 -0
- package/dist/out-tsc/src/app/core/components/dashboards-manage-bottom-sheet/dashboards-manage-bottom-sheet.component.js.map +1 -0
- package/dist/out-tsc/src/app/core/components/dashboards-manage-bottom-sheet/dashboards-manage-bottom-sheet.component.spec.js +19 -0
- package/dist/out-tsc/src/app/core/components/dashboards-manage-bottom-sheet/dashboards-manage-bottom-sheet.component.spec.js.map +1 -0
- package/dist/out-tsc/src/app/core/components/data-inspector/data-inspector.component.js +130 -0
- package/dist/out-tsc/src/app/core/components/data-inspector/data-inspector.component.js.map +1 -0
- package/dist/out-tsc/src/app/core/components/data-inspector/data-inspector.component.spec.js +21 -0
- package/dist/out-tsc/src/app/core/components/data-inspector/data-inspector.component.spec.js.map +1 -0
- package/dist/out-tsc/src/app/core/components/data-inspector-row/data-inspector-row.component.js +82 -0
- package/dist/out-tsc/src/app/core/components/data-inspector-row/data-inspector-row.component.js.map +1 -0
- package/dist/out-tsc/src/app/core/components/datasets/datasets.component.js +168 -0
- package/dist/out-tsc/src/app/core/components/datasets/datasets.component.js.map +1 -0
- package/dist/out-tsc/src/app/core/components/datasets/datasets.component.spec.js +21 -0
- package/dist/out-tsc/src/app/core/components/datasets/datasets.component.spec.js.map +1 -0
- package/dist/out-tsc/src/app/core/components/dialog-confirmation/dialog-confirmation.component.js +24 -0
- package/dist/out-tsc/src/app/core/components/dialog-confirmation/dialog-confirmation.component.js.map +1 -0
- package/dist/out-tsc/src/app/core/components/dialog-confirmation/dialog-confirmation.component.spec.js +19 -0
- package/dist/out-tsc/src/app/core/components/dialog-confirmation/dialog-confirmation.component.spec.js.map +1 -0
- package/dist/out-tsc/src/app/core/components/dialog-dashboard-page-editor/dialog-dashboard-page-editor.component.js +45 -0
- package/dist/out-tsc/src/app/core/components/dialog-dashboard-page-editor/dialog-dashboard-page-editor.component.js.map +1 -0
- package/dist/out-tsc/src/app/core/components/dialog-dashboard-page-editor/dialog-dashboard-page-editor.component.spec.js +19 -0
- package/dist/out-tsc/src/app/core/components/dialog-dashboard-page-editor/dialog-dashboard-page-editor.component.spec.js.map +1 -0
- package/dist/out-tsc/src/app/core/components/dialog-frame/dialog-frame.component.js +25 -0
- package/dist/out-tsc/src/app/core/components/dialog-frame/dialog-frame.component.js.map +1 -0
- package/dist/out-tsc/src/app/core/components/dialog-frame/dialog-frame.component.spec.js +19 -0
- package/dist/out-tsc/src/app/core/components/dialog-frame/dialog-frame.component.spec.js.map +1 -0
- package/dist/out-tsc/src/app/core/components/dialog-name/dialog-name.component.js +31 -0
- package/dist/out-tsc/src/app/core/components/dialog-name/dialog-name.component.js.map +1 -0
- package/dist/out-tsc/src/app/core/components/dialog-name/dialog-name.component.spec.js +19 -0
- package/dist/out-tsc/src/app/core/components/dialog-name/dialog-name.component.spec.js.map +1 -0
- package/dist/out-tsc/src/app/core/components/menu-actions/menu-actions.component.js +100 -0
- package/dist/out-tsc/src/app/core/components/menu-actions/menu-actions.component.js.map +1 -0
- package/dist/out-tsc/src/app/core/components/menu-actions/menu-actions.component.spec.js +19 -0
- package/dist/out-tsc/src/app/core/components/menu-actions/menu-actions.component.spec.js.map +1 -0
- package/dist/out-tsc/src/app/core/components/menu-notifications/menu-notifications.component.js +60 -0
- package/dist/out-tsc/src/app/core/components/menu-notifications/menu-notifications.component.js.map +1 -0
- package/dist/out-tsc/src/app/core/components/menu-notifications/menu-notifications.component.spec.js +21 -0
- package/dist/out-tsc/src/app/core/components/menu-notifications/menu-notifications.component.spec.js.map +1 -0
- package/dist/out-tsc/src/app/core/components/modal-user-credential/modal-user-credential.component.js +32 -0
- package/dist/out-tsc/src/app/core/components/modal-user-credential/modal-user-credential.component.js.map +1 -0
- package/dist/out-tsc/src/app/core/components/modal-user-credential/modal-user-credential.component.spec.js +21 -0
- package/dist/out-tsc/src/app/core/components/modal-user-credential/modal-user-credential.component.spec.js.map +1 -0
- package/dist/out-tsc/src/app/core/components/notification-badge/notification-badge.component.js +51 -0
- package/dist/out-tsc/src/app/core/components/notification-badge/notification-badge.component.js.map +1 -0
- package/dist/out-tsc/src/app/core/components/notification-badge/notification-badge.component.spec.js +19 -0
- package/dist/out-tsc/src/app/core/components/notification-badge/notification-badge.component.spec.js.map +1 -0
- package/dist/out-tsc/src/app/core/components/options/configuration/config.component.js +228 -0
- package/dist/out-tsc/src/app/core/components/options/configuration/config.component.js.map +1 -0
- package/dist/out-tsc/src/app/core/components/options/configuration/config.component.spec.js +21 -0
- package/dist/out-tsc/src/app/core/components/options/configuration/config.component.spec.js.map +1 -0
- package/dist/out-tsc/src/app/core/components/options/display/display.component.js +142 -0
- package/dist/out-tsc/src/app/core/components/options/display/display.component.js.map +1 -0
- package/dist/out-tsc/src/app/core/components/options/display/display.component.spec.js +21 -0
- package/dist/out-tsc/src/app/core/components/options/display/display.component.spec.js.map +1 -0
- package/dist/out-tsc/src/app/core/components/options/notifications/notifications.component.js +66 -0
- package/dist/out-tsc/src/app/core/components/options/notifications/notifications.component.js.map +1 -0
- package/dist/out-tsc/src/app/core/components/options/notifications/notifications.component.spec.js +21 -0
- package/dist/out-tsc/src/app/core/components/options/notifications/notifications.component.spec.js.map +1 -0
- package/dist/out-tsc/src/app/core/components/options/signalk/signalk.component.js +255 -0
- package/dist/out-tsc/src/app/core/components/options/signalk/signalk.component.js.map +1 -0
- package/dist/out-tsc/src/app/core/components/options/signalk/signalk.component.spec.js +21 -0
- package/dist/out-tsc/src/app/core/components/options/signalk/signalk.component.spec.js.map +1 -0
- package/dist/out-tsc/src/app/core/components/options/tabs/tabs.component.js +44 -0
- package/dist/out-tsc/src/app/core/components/options/tabs/tabs.component.js.map +1 -0
- package/dist/out-tsc/src/app/core/components/options/tabs/tabs.component.spec.js +21 -0
- package/dist/out-tsc/src/app/core/components/options/tabs/tabs.component.spec.js.map +1 -0
- package/dist/out-tsc/src/app/core/components/options/units/units.component.js +55 -0
- package/dist/out-tsc/src/app/core/components/options/units/units.component.js.map +1 -0
- package/dist/out-tsc/src/app/core/components/options/units/units.component.spec.js +21 -0
- package/dist/out-tsc/src/app/core/components/options/units/units.component.spec.js.map +1 -0
- package/dist/out-tsc/src/app/core/components/page-header/page-header.component.js +31 -0
- package/dist/out-tsc/src/app/core/components/page-header/page-header.component.js.map +1 -0
- package/dist/out-tsc/src/app/core/components/page-header/page-header.component.spec.js +19 -0
- package/dist/out-tsc/src/app/core/components/page-header/page-header.component.spec.js.map +1 -0
- package/dist/out-tsc/src/app/core/components/remote-control/remote-control.component.js +63 -0
- package/dist/out-tsc/src/app/core/components/remote-control/remote-control.component.js.map +1 -0
- package/dist/out-tsc/src/app/core/components/remote-control/remote-control.component.spec.js +19 -0
- package/dist/out-tsc/src/app/core/components/remote-control/remote-control.component.spec.js.map +1 -0
- package/dist/out-tsc/src/app/core/components/select-icon/select-icon.component.js +75 -0
- package/dist/out-tsc/src/app/core/components/select-icon/select-icon.component.js.map +1 -0
- package/dist/out-tsc/src/app/core/components/select-icon/select-icon.component.spec.js +19 -0
- package/dist/out-tsc/src/app/core/components/select-icon/select-icon.component.spec.js.map +1 -0
- package/dist/out-tsc/src/app/core/components/settings/settings.component.js +56 -0
- package/dist/out-tsc/src/app/core/components/settings/settings.component.js.map +1 -0
- package/dist/out-tsc/src/app/core/components/settings/settings.component.spec.js +19 -0
- package/dist/out-tsc/src/app/core/components/settings/settings.component.spec.js.map +1 -0
- package/dist/out-tsc/src/app/core/components/tile-large-icon/tile-large-icon.component.js +28 -0
- package/dist/out-tsc/src/app/core/components/tile-large-icon/tile-large-icon.component.js.map +1 -0
- package/dist/out-tsc/src/app/core/components/tile-large-icon/tile-large-icon.component.spec.js +19 -0
- package/dist/out-tsc/src/app/core/components/tile-large-icon/tile-large-icon.component.spec.js.map +1 -0
- package/dist/out-tsc/src/app/core/components/upgrade-config/upgrade-config.component.js +336 -0
- package/dist/out-tsc/src/app/core/components/upgrade-config/upgrade-config.component.js.map +1 -0
- package/dist/out-tsc/src/app/core/components/upgrade-config/upgrade-config.component.spec.js +19 -0
- package/dist/out-tsc/src/app/core/components/upgrade-config/upgrade-config.component.spec.js.map +1 -0
- package/dist/out-tsc/src/app/core/components/upgrade-config/v10-config-interface.js +2 -0
- package/dist/out-tsc/src/app/core/components/upgrade-config/v10-config-interface.js.map +1 -0
- package/dist/out-tsc/src/app/core/components/widget-host/widget-host.component.js +77 -0
- package/dist/out-tsc/src/app/core/components/widget-host/widget-host.component.js.map +1 -0
- package/dist/out-tsc/src/app/core/components/widget-host/widget-host.component.spec.js +19 -0
- package/dist/out-tsc/src/app/core/components/widget-host/widget-host.component.spec.js.map +1 -0
- package/dist/out-tsc/src/app/core/components/widget-host-bottom-sheet/widget-host-bottom-sheet.component.js +29 -0
- package/dist/out-tsc/src/app/core/components/widget-host-bottom-sheet/widget-host-bottom-sheet.component.js.map +1 -0
- package/dist/out-tsc/src/app/core/components/widget-host-bottom-sheet/widget-host-bottom-sheet.component.spec.js +19 -0
- package/dist/out-tsc/src/app/core/components/widget-host-bottom-sheet/widget-host-bottom-sheet.component.spec.js.map +1 -0
- package/dist/out-tsc/src/app/core/components/widget-list-card/widget-list-card.component.js +34 -0
- package/dist/out-tsc/src/app/core/components/widget-list-card/widget-list-card.component.js.map +1 -0
- package/dist/out-tsc/src/app/core/components/widget-list-card/widget-list-card.component.spec.js +19 -0
- package/dist/out-tsc/src/app/core/components/widget-list-card/widget-list-card.component.spec.js.map +1 -0
- package/dist/out-tsc/src/app/core/components/widget-title/widget-title.component.js +70 -0
- package/dist/out-tsc/src/app/core/components/widget-title/widget-title.component.js.map +1 -0
- package/dist/out-tsc/src/app/core/components/widget-title/widget-title.component.spec.js +19 -0
- package/dist/out-tsc/src/app/core/components/widget-title/widget-title.component.spec.js.map +1 -0
- package/dist/out-tsc/src/app/core/components/widgets-list/widgets-list.component.js +61 -0
- package/dist/out-tsc/src/app/core/components/widgets-list/widgets-list.component.js.map +1 -0
- package/dist/out-tsc/src/app/core/components/widgets-list/widgets-list.component.spec.js +19 -0
- package/dist/out-tsc/src/app/core/components/widgets-list/widgets-list.component.spec.js.map +1 -0
- package/dist/out-tsc/src/app/core/directives/gesture.directive.js +457 -0
- package/dist/out-tsc/src/app/core/directives/gesture.directive.js.map +1 -0
- package/dist/out-tsc/src/app/core/interceptors/authentication-interceptor.js +43 -0
- package/dist/out-tsc/src/app/core/interceptors/authentication-interceptor.js.map +1 -0
- package/dist/out-tsc/src/app/core/interceptors/authentication-interceptor.spec.js +7 -0
- package/dist/out-tsc/src/app/core/interceptors/authentication-interceptor.spec.js.map +1 -0
- package/dist/out-tsc/src/app/core/interfaces/app-interfaces.js +8 -0
- package/dist/out-tsc/src/app/core/interfaces/app-interfaces.js.map +1 -0
- package/dist/out-tsc/src/app/core/interfaces/app-settings.interfaces.js +2 -0
- package/dist/out-tsc/src/app/core/interfaces/app-settings.interfaces.js.map +1 -0
- package/dist/out-tsc/src/app/core/interfaces/dialog-data.js +2 -0
- package/dist/out-tsc/src/app/core/interfaces/dialog-data.js.map +1 -0
- package/dist/out-tsc/src/app/core/interfaces/signalk-autopilot-interfaces.js +11 -0
- package/dist/out-tsc/src/app/core/interfaces/signalk-autopilot-interfaces.js.map +1 -0
- package/dist/out-tsc/src/app/core/interfaces/signalk-interfaces.js +45 -0
- package/dist/out-tsc/src/app/core/interfaces/signalk-interfaces.js.map +1 -0
- package/dist/out-tsc/src/app/core/interfaces/widgets-interface.js +7 -0
- package/dist/out-tsc/src/app/core/interfaces/widgets-interface.js.map +1 -0
- package/dist/out-tsc/src/app/core/pipes/filter-self.pipe.js +24 -0
- package/dist/out-tsc/src/app/core/pipes/filter-self.pipe.js.map +1 -0
- package/dist/out-tsc/src/app/core/pipes/filter-self.pipe.spec.js +8 -0
- package/dist/out-tsc/src/app/core/pipes/filter-self.pipe.spec.js.map +1 -0
- package/dist/out-tsc/src/app/core/pipes/object-keys.pipe.js +20 -0
- package/dist/out-tsc/src/app/core/pipes/object-keys.pipe.js.map +1 -0
- package/dist/out-tsc/src/app/core/pipes/object-keys.pipe.spec.js +8 -0
- package/dist/out-tsc/src/app/core/pipes/object-keys.pipe.spec.js.map +1 -0
- package/dist/out-tsc/src/app/core/pipes/safe.pipe.js +22 -0
- package/dist/out-tsc/src/app/core/pipes/safe.pipe.js.map +1 -0
- package/dist/out-tsc/src/app/core/services/app-initNetwork.service.js +199 -0
- package/dist/out-tsc/src/app/core/services/app-initNetwork.service.js.map +1 -0
- package/dist/out-tsc/src/app/core/services/app-initNetwork.service.spec.js +13 -0
- package/dist/out-tsc/src/app/core/services/app-initNetwork.service.spec.js.map +1 -0
- package/dist/out-tsc/src/app/core/services/app-service.js +249 -0
- package/dist/out-tsc/src/app/core/services/app-service.js.map +1 -0
- package/dist/out-tsc/src/app/core/services/app-service.spec.js +13 -0
- package/dist/out-tsc/src/app/core/services/app-service.spec.js.map +1 -0
- package/dist/out-tsc/src/app/core/services/app-settings.service.js +566 -0
- package/dist/out-tsc/src/app/core/services/app-settings.service.js.map +1 -0
- package/dist/out-tsc/src/app/core/services/app-settings.service.spec.js +13 -0
- package/dist/out-tsc/src/app/core/services/app-settings.service.spec.js.map +1 -0
- package/dist/out-tsc/src/app/core/services/authentication.service.js +308 -0
- package/dist/out-tsc/src/app/core/services/authentication.service.js.map +1 -0
- package/dist/out-tsc/src/app/core/services/authentication.service.spec.js +13 -0
- package/dist/out-tsc/src/app/core/services/authentication.service.spec.js.map +1 -0
- package/dist/out-tsc/src/app/core/services/canvas.service.js +566 -0
- package/dist/out-tsc/src/app/core/services/canvas.service.js.map +1 -0
- package/dist/out-tsc/src/app/core/services/canvas.service.spec.js +13 -0
- package/dist/out-tsc/src/app/core/services/canvas.service.spec.js.map +1 -0
- package/dist/out-tsc/src/app/core/services/connection-state-machine.service.js +325 -0
- package/dist/out-tsc/src/app/core/services/connection-state-machine.service.js.map +1 -0
- package/dist/out-tsc/src/app/core/services/dashboard.service.js +273 -0
- package/dist/out-tsc/src/app/core/services/dashboard.service.js.map +1 -0
- package/dist/out-tsc/src/app/core/services/dashboard.service.spec.js +13 -0
- package/dist/out-tsc/src/app/core/services/dashboard.service.spec.js.map +1 -0
- package/dist/out-tsc/src/app/core/services/data-set.service.js +515 -0
- package/dist/out-tsc/src/app/core/services/data-set.service.js.map +1 -0
- package/dist/out-tsc/src/app/core/services/data-set.service.spec.js +13 -0
- package/dist/out-tsc/src/app/core/services/data-set.service.spec.js.map +1 -0
- package/dist/out-tsc/src/app/core/services/data.service.js +425 -0
- package/dist/out-tsc/src/app/core/services/data.service.js.map +1 -0
- package/dist/out-tsc/src/app/core/services/data.service.spec.js +13 -0
- package/dist/out-tsc/src/app/core/services/data.service.spec.js.map +1 -0
- package/dist/out-tsc/src/app/core/services/dialog.service.js +73 -0
- package/dist/out-tsc/src/app/core/services/dialog.service.js.map +1 -0
- package/dist/out-tsc/src/app/core/services/dialog.service.spec.js +13 -0
- package/dist/out-tsc/src/app/core/services/dialog.service.spec.js.map +1 -0
- package/dist/out-tsc/src/app/core/services/notification-overlay.service.js +106 -0
- package/dist/out-tsc/src/app/core/services/notification-overlay.service.js.map +1 -0
- package/dist/out-tsc/src/app/core/services/notifications.service.js +322 -0
- package/dist/out-tsc/src/app/core/services/notifications.service.js.map +1 -0
- package/dist/out-tsc/src/app/core/services/notifications.service.spec.js +10 -0
- package/dist/out-tsc/src/app/core/services/notifications.service.spec.js.map +1 -0
- package/dist/out-tsc/src/app/core/services/remote-dashboards.service.js +125 -0
- package/dist/out-tsc/src/app/core/services/remote-dashboards.service.js.map +1 -0
- package/dist/out-tsc/src/app/core/services/remote-dashboards.service.spec.js +13 -0
- package/dist/out-tsc/src/app/core/services/remote-dashboards.service.spec.js.map +1 -0
- package/dist/out-tsc/src/app/core/services/signalk-connection.service.js +283 -0
- package/dist/out-tsc/src/app/core/services/signalk-connection.service.js.map +1 -0
- package/dist/out-tsc/src/app/core/services/signalk-delta.service.js +486 -0
- package/dist/out-tsc/src/app/core/services/signalk-delta.service.js.map +1 -0
- package/dist/out-tsc/src/app/core/services/signalk-delta.service.spec.js +13 -0
- package/dist/out-tsc/src/app/core/services/signalk-delta.service.spec.js.map +1 -0
- package/dist/out-tsc/src/app/core/services/signalk-plugins.service.js +121 -0
- package/dist/out-tsc/src/app/core/services/signalk-plugins.service.js.map +1 -0
- package/dist/out-tsc/src/app/core/services/signalk-plugins.service.spec.js +13 -0
- package/dist/out-tsc/src/app/core/services/signalk-plugins.service.spec.js.map +1 -0
- package/dist/out-tsc/src/app/core/services/signalk-requests.service.js +232 -0
- package/dist/out-tsc/src/app/core/services/signalk-requests.service.js.map +1 -0
- package/dist/out-tsc/src/app/core/services/signalk-requests.service.spec.js +10 -0
- package/dist/out-tsc/src/app/core/services/signalk-requests.service.spec.js.map +1 -0
- package/dist/out-tsc/src/app/core/services/storage.service.js +390 -0
- package/dist/out-tsc/src/app/core/services/storage.service.js.map +1 -0
- package/dist/out-tsc/src/app/core/services/storage.service.spec.js +13 -0
- package/dist/out-tsc/src/app/core/services/storage.service.spec.js.map +1 -0
- package/dist/out-tsc/src/app/core/services/timers.service.js +107 -0
- package/dist/out-tsc/src/app/core/services/timers.service.js.map +1 -0
- package/dist/out-tsc/src/app/core/services/timers.service.spec.js +13 -0
- package/dist/out-tsc/src/app/core/services/timers.service.spec.js.map +1 -0
- package/dist/out-tsc/src/app/core/services/uiEvent.service.js +256 -0
- package/dist/out-tsc/src/app/core/services/uiEvent.service.js.map +1 -0
- package/dist/out-tsc/src/app/core/services/uiEvent.service.spec.js +13 -0
- package/dist/out-tsc/src/app/core/services/uiEvent.service.spec.js.map +1 -0
- package/dist/out-tsc/src/app/core/services/units.service.js +630 -0
- package/dist/out-tsc/src/app/core/services/units.service.js.map +1 -0
- package/dist/out-tsc/src/app/core/services/widget.service.js +405 -0
- package/dist/out-tsc/src/app/core/services/widget.service.js.map +1 -0
- package/dist/out-tsc/src/app/core/services/widget.service.spec.js +13 -0
- package/dist/out-tsc/src/app/core/services/widget.service.spec.js.map +1 -0
- package/dist/out-tsc/src/app/core/utils/app-overlay-container.js +30 -0
- package/dist/out-tsc/src/app/core/utils/app-overlay-container.js.map +1 -0
- package/dist/out-tsc/src/app/core/utils/base-widget.component.js +291 -0
- package/dist/out-tsc/src/app/core/utils/base-widget.component.js.map +1 -0
- package/dist/out-tsc/src/app/core/utils/base-widget.component.spec.js +88 -0
- package/dist/out-tsc/src/app/core/utils/base-widget.component.spec.js.map +1 -0
- package/dist/out-tsc/src/app/core/utils/dataScales.util.js +127 -0
- package/dist/out-tsc/src/app/core/utils/dataScales.util.js.map +1 -0
- package/dist/out-tsc/src/app/core/utils/dataTransforms.util.js +138 -0
- package/dist/out-tsc/src/app/core/utils/dataTransforms.util.js.map +1 -0
- package/dist/out-tsc/src/app/core/utils/iframe-inputs-inject.utils.js +55 -0
- package/dist/out-tsc/src/app/core/utils/iframe-inputs-inject.utils.js.map +1 -0
- package/dist/out-tsc/src/app/core/utils/svg-animate.util.js +303 -0
- package/dist/out-tsc/src/app/core/utils/svg-animate.util.js.map +1 -0
- package/dist/out-tsc/src/app/core/utils/themeColors.utils.js +34 -0
- package/dist/out-tsc/src/app/core/utils/themeColors.utils.js.map +1 -0
- package/dist/out-tsc/src/app/core/utils/uuid.util.js +17 -0
- package/dist/out-tsc/src/app/core/utils/uuid.util.js.map +1 -0
- package/dist/out-tsc/src/app/core/utils/zones-highlight.utils.js +87 -0
- package/dist/out-tsc/src/app/core/utils/zones-highlight.utils.js.map +1 -0
- package/dist/out-tsc/src/app/widget-config/boolean-control-config/boolean-control-config.component.js +49 -0
- package/dist/out-tsc/src/app/widget-config/boolean-control-config/boolean-control-config.component.js.map +1 -0
- package/dist/out-tsc/src/app/widget-config/boolean-control-config/boolean-control-config.component.spec.js +19 -0
- package/dist/out-tsc/src/app/widget-config/boolean-control-config/boolean-control-config.component.spec.js.map +1 -0
- package/dist/out-tsc/src/app/widget-config/boolean-multicontrol-options/boolean-multicontrol-options.component.js +100 -0
- package/dist/out-tsc/src/app/widget-config/boolean-multicontrol-options/boolean-multicontrol-options.component.js.map +1 -0
- package/dist/out-tsc/src/app/widget-config/boolean-multicontrol-options/boolean-multicontrol-options.component.spec.js +19 -0
- package/dist/out-tsc/src/app/widget-config/boolean-multicontrol-options/boolean-multicontrol-options.component.spec.js.map +1 -0
- package/dist/out-tsc/src/app/widget-config/dataset-chart-options/dataset-chart-options.component.js +54 -0
- package/dist/out-tsc/src/app/widget-config/dataset-chart-options/dataset-chart-options.component.js.map +1 -0
- package/dist/out-tsc/src/app/widget-config/dataset-chart-options/dataset-chart-options.component.spec.js +19 -0
- package/dist/out-tsc/src/app/widget-config/dataset-chart-options/dataset-chart-options.component.spec.js.map +1 -0
- package/dist/out-tsc/src/app/widget-config/display-chart-options/display-chart-options.component.js +89 -0
- package/dist/out-tsc/src/app/widget-config/display-chart-options/display-chart-options.component.js.map +1 -0
- package/dist/out-tsc/src/app/widget-config/display-chart-options/display-chart-options.component.spec.js +19 -0
- package/dist/out-tsc/src/app/widget-config/display-chart-options/display-chart-options.component.spec.js.map +1 -0
- package/dist/out-tsc/src/app/widget-config/display-datetime/display-datetime.component.js +1760 -0
- package/dist/out-tsc/src/app/widget-config/display-datetime/display-datetime.component.js.map +1 -0
- package/dist/out-tsc/src/app/widget-config/display-datetime/display-datetime.component.spec.js +19 -0
- package/dist/out-tsc/src/app/widget-config/display-datetime/display-datetime.component.spec.js.map +1 -0
- package/dist/out-tsc/src/app/widget-config/modal-widget-config/modal-widget-config.component.js +327 -0
- package/dist/out-tsc/src/app/widget-config/modal-widget-config/modal-widget-config.component.js.map +1 -0
- package/dist/out-tsc/src/app/widget-config/modal-widget-config/modal-widget-config.component.spec.js +21 -0
- package/dist/out-tsc/src/app/widget-config/modal-widget-config/modal-widget-config.component.spec.js.map +1 -0
- package/dist/out-tsc/src/app/widget-config/path-control-config/path-control-config.component.js +268 -0
- package/dist/out-tsc/src/app/widget-config/path-control-config/path-control-config.component.js.map +1 -0
- package/dist/out-tsc/src/app/widget-config/path-control-config/path-control-config.component.spec.js +21 -0
- package/dist/out-tsc/src/app/widget-config/path-control-config/path-control-config.component.spec.js.map +1 -0
- package/dist/out-tsc/src/app/widget-config/paths-options/paths-options.component.js +81 -0
- package/dist/out-tsc/src/app/widget-config/paths-options/paths-options.component.js.map +1 -0
- package/dist/out-tsc/src/app/widget-config/paths-options/paths-options.component.spec.js +19 -0
- package/dist/out-tsc/src/app/widget-config/paths-options/paths-options.component.spec.js.map +1 -0
- package/dist/out-tsc/src/app/widget-config/select-autopilot/select-autopilot.component.js +266 -0
- package/dist/out-tsc/src/app/widget-config/select-autopilot/select-autopilot.component.js.map +1 -0
- package/dist/out-tsc/src/app/widget-config/select-autopilot/select-autopilot.component.spec.js +19 -0
- package/dist/out-tsc/src/app/widget-config/select-autopilot/select-autopilot.component.spec.js.map +1 -0
- package/dist/out-tsc/src/app/widgets/gauge-steel/gauge-steel.component.js +309 -0
- package/dist/out-tsc/src/app/widgets/gauge-steel/gauge-steel.component.js.map +1 -0
- package/dist/out-tsc/src/app/widgets/gauge-steel/gauge-steel.component.spec.js +21 -0
- package/dist/out-tsc/src/app/widgets/gauge-steel/gauge-steel.component.spec.js.map +1 -0
- package/dist/out-tsc/src/app/widgets/minichart/minichart.component.js +512 -0
- package/dist/out-tsc/src/app/widgets/minichart/minichart.component.js.map +1 -0
- package/dist/out-tsc/src/app/widgets/minichart/minichart.component.spec.js +19 -0
- package/dist/out-tsc/src/app/widgets/minichart/minichart.component.spec.js.map +1 -0
- package/dist/out-tsc/src/app/widgets/svg-autopilot/svg-autopilot.component.js +227 -0
- package/dist/out-tsc/src/app/widgets/svg-autopilot/svg-autopilot.component.js.map +1 -0
- package/dist/out-tsc/src/app/widgets/svg-autopilot/svg-autopilot.component.spec.js +21 -0
- package/dist/out-tsc/src/app/widgets/svg-autopilot/svg-autopilot.component.spec.js.map +1 -0
- package/dist/out-tsc/src/app/widgets/svg-boolean-button/svg-boolean-button.component.js +163 -0
- package/dist/out-tsc/src/app/widgets/svg-boolean-button/svg-boolean-button.component.js.map +1 -0
- package/dist/out-tsc/src/app/widgets/svg-boolean-button/svg-boolean-button.component.spec.js +19 -0
- package/dist/out-tsc/src/app/widgets/svg-boolean-button/svg-boolean-button.component.spec.js.map +1 -0
- package/dist/out-tsc/src/app/widgets/svg-boolean-light/svg-boolean-light.component.js +97 -0
- package/dist/out-tsc/src/app/widgets/svg-boolean-light/svg-boolean-light.component.js.map +1 -0
- package/dist/out-tsc/src/app/widgets/svg-boolean-light/svg-boolean-light.component.spec.js +19 -0
- package/dist/out-tsc/src/app/widgets/svg-boolean-light/svg-boolean-light.component.spec.js.map +1 -0
- package/dist/out-tsc/src/app/widgets/svg-boolean-switch/svg-boolean-switch.component.js +122 -0
- package/dist/out-tsc/src/app/widgets/svg-boolean-switch/svg-boolean-switch.component.js.map +1 -0
- package/dist/out-tsc/src/app/widgets/svg-boolean-switch/svg-boolean-switch.component.spec.js +19 -0
- package/dist/out-tsc/src/app/widgets/svg-boolean-switch/svg-boolean-switch.component.spec.js.map +1 -0
- package/dist/out-tsc/src/app/widgets/svg-racesteer/svg-racesteer.component.js +389 -0
- package/dist/out-tsc/src/app/widgets/svg-racesteer/svg-racesteer.component.js.map +1 -0
- package/dist/out-tsc/src/app/widgets/svg-racesteer/svg-racesteer.component.spec.js +21 -0
- package/dist/out-tsc/src/app/widgets/svg-racesteer/svg-racesteer.component.spec.js.map +1 -0
- package/dist/out-tsc/src/app/widgets/svg-simple-linear-gauge/svg-simple-linear-gauge.component.js +76 -0
- package/dist/out-tsc/src/app/widgets/svg-simple-linear-gauge/svg-simple-linear-gauge.component.js.map +1 -0
- package/dist/out-tsc/src/app/widgets/svg-simple-linear-gauge/svg-simple-linear-gauge.component.spec.js +21 -0
- package/dist/out-tsc/src/app/widgets/svg-simple-linear-gauge/svg-simple-linear-gauge.component.spec.js.map +1 -0
- package/dist/out-tsc/src/app/widgets/svg-windsteer/svg-windsteer.component.js +429 -0
- package/dist/out-tsc/src/app/widgets/svg-windsteer/svg-windsteer.component.js.map +1 -0
- package/dist/out-tsc/src/app/widgets/svg-windsteer/svg-windsteer.component.spec.js +21 -0
- package/dist/out-tsc/src/app/widgets/svg-windsteer/svg-windsteer.component.spec.js.map +1 -0
- package/dist/out-tsc/src/app/widgets/widget-autopilot/widget-autopilot.component.js +1128 -0
- package/dist/out-tsc/src/app/widgets/widget-autopilot/widget-autopilot.component.js.map +1 -0
- package/dist/out-tsc/src/app/widgets/widget-autopilot/widget-autopilot.component.spec.js +21 -0
- package/dist/out-tsc/src/app/widgets/widget-autopilot/widget-autopilot.component.spec.js.map +1 -0
- package/dist/out-tsc/src/app/widgets/widget-boolean-switch/widget-boolean-switch.component.js +140 -0
- package/dist/out-tsc/src/app/widgets/widget-boolean-switch/widget-boolean-switch.component.js.map +1 -0
- package/dist/out-tsc/src/app/widgets/widget-boolean-switch/widget-boolean-switch.component.spec.js +19 -0
- package/dist/out-tsc/src/app/widgets/widget-boolean-switch/widget-boolean-switch.component.spec.js.map +1 -0
- package/dist/out-tsc/src/app/widgets/widget-data-chart/widget-data-chart.component.js +678 -0
- package/dist/out-tsc/src/app/widgets/widget-data-chart/widget-data-chart.component.js.map +1 -0
- package/dist/out-tsc/src/app/widgets/widget-data-chart/widget-data-chart.component.spec.js +19 -0
- package/dist/out-tsc/src/app/widgets/widget-data-chart/widget-data-chart.component.spec.js.map +1 -0
- package/dist/out-tsc/src/app/widgets/widget-datetime/widget-datetime.component.js +177 -0
- package/dist/out-tsc/src/app/widgets/widget-datetime/widget-datetime.component.js.map +1 -0
- package/dist/out-tsc/src/app/widgets/widget-datetime/widget-datetime.component.spec.js +21 -0
- package/dist/out-tsc/src/app/widgets/widget-datetime/widget-datetime.component.spec.js.map +1 -0
- package/dist/out-tsc/src/app/widgets/widget-freeboardsk/widget-freeboardsk.component.js +146 -0
- package/dist/out-tsc/src/app/widgets/widget-freeboardsk/widget-freeboardsk.component.js.map +1 -0
- package/dist/out-tsc/src/app/widgets/widget-freeboardsk/widget-freeboardsk.component.spec.js +19 -0
- package/dist/out-tsc/src/app/widgets/widget-freeboardsk/widget-freeboardsk.component.spec.js.map +1 -0
- package/dist/out-tsc/src/app/widgets/widget-gauge-ng-compass/widget-gauge-ng-compass.component.js +301 -0
- package/dist/out-tsc/src/app/widgets/widget-gauge-ng-compass/widget-gauge-ng-compass.component.js.map +1 -0
- package/dist/out-tsc/src/app/widgets/widget-gauge-ng-compass/widget-gauge-ng-compass.component.spec.js +19 -0
- package/dist/out-tsc/src/app/widgets/widget-gauge-ng-compass/widget-gauge-ng-compass.component.spec.js.map +1 -0
- package/dist/out-tsc/src/app/widgets/widget-gauge-ng-linear/widget-gauge-ng-linear.component.js +413 -0
- package/dist/out-tsc/src/app/widgets/widget-gauge-ng-linear/widget-gauge-ng-linear.component.js.map +1 -0
- package/dist/out-tsc/src/app/widgets/widget-gauge-ng-linear/widget-gauge-ng-linear.component.spec.js +21 -0
- package/dist/out-tsc/src/app/widgets/widget-gauge-ng-linear/widget-gauge-ng-linear.component.spec.js.map +1 -0
- package/dist/out-tsc/src/app/widgets/widget-gauge-ng-radial/widget-gauge-ng-radial.component.js +360 -0
- package/dist/out-tsc/src/app/widgets/widget-gauge-ng-radial/widget-gauge-ng-radial.component.js.map +1 -0
- package/dist/out-tsc/src/app/widgets/widget-gauge-ng-radial/widget-gauge-ng-radial.component.spec.js +21 -0
- package/dist/out-tsc/src/app/widgets/widget-gauge-ng-radial/widget-gauge-ng-radial.component.spec.js.map +1 -0
- package/dist/out-tsc/src/app/widgets/widget-gauge-steel/widget-gauge-steel.component.js +119 -0
- package/dist/out-tsc/src/app/widgets/widget-gauge-steel/widget-gauge-steel.component.js.map +1 -0
- package/dist/out-tsc/src/app/widgets/widget-gauge-steel/widget-gauge-steel.component.spec.js +21 -0
- package/dist/out-tsc/src/app/widgets/widget-gauge-steel/widget-gauge-steel.component.spec.js.map +1 -0
- package/dist/out-tsc/src/app/widgets/widget-heel-gauge/widget-heel-gauge.component.js +205 -0
- package/dist/out-tsc/src/app/widgets/widget-heel-gauge/widget-heel-gauge.component.js.map +1 -0
- package/dist/out-tsc/src/app/widgets/widget-heel-gauge/widget-heel-gauge.component.spec.js +15 -0
- package/dist/out-tsc/src/app/widgets/widget-heel-gauge/widget-heel-gauge.component.spec.js.map +1 -0
- package/dist/out-tsc/src/app/widgets/widget-horizon/widget-horizon.component.js +196 -0
- package/dist/out-tsc/src/app/widgets/widget-horizon/widget-horizon.component.js.map +1 -0
- package/dist/out-tsc/src/app/widgets/widget-horizon/widget-horizon.component.spec.js +21 -0
- package/dist/out-tsc/src/app/widgets/widget-horizon/widget-horizon.component.spec.js.map +1 -0
- package/dist/out-tsc/src/app/widgets/widget-iframe/widget-iframe.component.js +173 -0
- package/dist/out-tsc/src/app/widgets/widget-iframe/widget-iframe.component.js.map +1 -0
- package/dist/out-tsc/src/app/widgets/widget-iframe/widget-iframe.component.spec.js +21 -0
- package/dist/out-tsc/src/app/widgets/widget-iframe/widget-iframe.component.spec.js.map +1 -0
- package/dist/out-tsc/src/app/widgets/widget-label/widget-label.component.js +128 -0
- package/dist/out-tsc/src/app/widgets/widget-label/widget-label.component.js.map +1 -0
- package/dist/out-tsc/src/app/widgets/widget-label/widget-label.component.spec.js +19 -0
- package/dist/out-tsc/src/app/widgets/widget-label/widget-label.component.spec.js.map +1 -0
- package/dist/out-tsc/src/app/widgets/widget-login/login.component.spec.js +21 -0
- package/dist/out-tsc/src/app/widgets/widget-login/login.component.spec.js.map +1 -0
- package/dist/out-tsc/src/app/widgets/widget-login/widget-login.component.js +78 -0
- package/dist/out-tsc/src/app/widgets/widget-login/widget-login.component.js.map +1 -0
- package/dist/out-tsc/src/app/widgets/widget-numeric/widget-numeric.component.js +303 -0
- package/dist/out-tsc/src/app/widgets/widget-numeric/widget-numeric.component.js.map +1 -0
- package/dist/out-tsc/src/app/widgets/widget-numeric/widget-numeric.spec.js +21 -0
- package/dist/out-tsc/src/app/widgets/widget-numeric/widget-numeric.spec.js.map +1 -0
- package/dist/out-tsc/src/app/widgets/widget-position/widget-position.component.js +177 -0
- package/dist/out-tsc/src/app/widgets/widget-position/widget-position.component.js.map +1 -0
- package/dist/out-tsc/src/app/widgets/widget-position/widget-position.component.spec.js +21 -0
- package/dist/out-tsc/src/app/widgets/widget-position/widget-position.component.spec.js.map +1 -0
- package/dist/out-tsc/src/app/widgets/widget-race-timer/widget-race-timer.component.js +275 -0
- package/dist/out-tsc/src/app/widgets/widget-race-timer/widget-race-timer.component.js.map +1 -0
- package/dist/out-tsc/src/app/widgets/widget-race-timer/widget-race-timer.component.spec.js +21 -0
- package/dist/out-tsc/src/app/widgets/widget-race-timer/widget-race-timer.component.spec.js.map +1 -0
- package/dist/out-tsc/src/app/widgets/widget-racer-line/widget-racer-line.component.js +319 -0
- package/dist/out-tsc/src/app/widgets/widget-racer-line/widget-racer-line.component.js.map +1 -0
- package/dist/out-tsc/src/app/widgets/widget-racer-line/widget-racer-line.component.spec.js +21 -0
- package/dist/out-tsc/src/app/widgets/widget-racer-line/widget-racer-line.component.spec.js.map +1 -0
- package/dist/out-tsc/src/app/widgets/widget-racer-timer/widget-racer-timer.component.js +365 -0
- package/dist/out-tsc/src/app/widgets/widget-racer-timer/widget-racer-timer.component.js.map +1 -0
- package/dist/out-tsc/src/app/widgets/widget-racer-timer/widget-racer-timer.component.spec.js +21 -0
- package/dist/out-tsc/src/app/widgets/widget-racer-timer/widget-racer-timer.component.spec.js.map +1 -0
- package/dist/out-tsc/src/app/widgets/widget-racesteer/widget-racesteer.component.js +321 -0
- package/dist/out-tsc/src/app/widgets/widget-racesteer/widget-racesteer.component.js.map +1 -0
- package/dist/out-tsc/src/app/widgets/widget-racesteer/widget-racesteer.component.spec.js +21 -0
- package/dist/out-tsc/src/app/widgets/widget-racesteer/widget-racesteer.component.spec.js.map +1 -0
- package/dist/out-tsc/src/app/widgets/widget-simple-linear/widget-simple-linear.component.js +189 -0
- package/dist/out-tsc/src/app/widgets/widget-simple-linear/widget-simple-linear.component.js.map +1 -0
- package/dist/out-tsc/src/app/widgets/widget-simple-linear/widget-simple-linear.component.spec.js +21 -0
- package/dist/out-tsc/src/app/widgets/widget-simple-linear/widget-simple-linear.component.spec.js.map +1 -0
- package/dist/out-tsc/src/app/widgets/widget-slider/widget-slider.component.js +248 -0
- package/dist/out-tsc/src/app/widgets/widget-slider/widget-slider.component.js.map +1 -0
- package/dist/out-tsc/src/app/widgets/widget-slider/widget-slider.component.spec.js +19 -0
- package/dist/out-tsc/src/app/widgets/widget-slider/widget-slider.component.spec.js.map +1 -0
- package/dist/out-tsc/src/app/widgets/widget-text/widget-text.component.js +138 -0
- package/dist/out-tsc/src/app/widgets/widget-text/widget-text.component.js.map +1 -0
- package/dist/out-tsc/src/app/widgets/widget-text/widget-text.component.spec.js +21 -0
- package/dist/out-tsc/src/app/widgets/widget-text/widget-text.component.spec.js.map +1 -0
- package/dist/out-tsc/src/app/widgets/widget-tutorial/widget-tutorial.component.js +43 -0
- package/dist/out-tsc/src/app/widgets/widget-tutorial/widget-tutorial.component.js.map +1 -0
- package/dist/out-tsc/src/app/widgets/widget-tutorial/widget-tutorial.component.spec.js +21 -0
- package/dist/out-tsc/src/app/widgets/widget-tutorial/widget-tutorial.component.spec.js.map +1 -0
- package/dist/out-tsc/src/app/widgets/widget-windsteer/widget-windsteer.component.js +483 -0
- package/dist/out-tsc/src/app/widgets/widget-windsteer/widget-windsteer.component.js.map +1 -0
- package/dist/out-tsc/src/app/widgets/widget-windsteer/widget-windsteer.component.spec.js +21 -0
- package/dist/out-tsc/src/app/widgets/widget-windsteer/widget-windsteer.component.spec.js.map +1 -0
- package/dist/out-tsc/src/app/widgets/widget-windtrends-chart/widget-windtrends-chart.component.js +1067 -0
- package/dist/out-tsc/src/app/widgets/widget-windtrends-chart/widget-windtrends-chart.component.js.map +1 -0
- package/dist/out-tsc/src/app/widgets/widget-windtrends-chart/widget-windtrends-chart.component.spec.js +19 -0
- package/dist/out-tsc/src/app/widgets/widget-windtrends-chart/widget-windtrends-chart.component.spec.js.map +1 -0
- package/dist/out-tsc/src/default-config/config.blank.const.js +35 -0
- package/dist/out-tsc/src/default-config/config.blank.const.js.map +1 -0
- package/dist/out-tsc/src/default-config/config.blank.notification.const.js +22 -0
- package/dist/out-tsc/src/default-config/config.blank.notification.const.js.map +1 -0
- package/dist/out-tsc/src/default-config/config.blank.units.const.js +24 -0
- package/dist/out-tsc/src/default-config/config.blank.units.const.js.map +1 -0
- package/dist/out-tsc/src/default-config/config.demo.const.js +739 -0
- package/dist/out-tsc/src/default-config/config.demo.const.js.map +1 -0
- package/dist/out-tsc/src/environments/environment.js +8 -0
- package/dist/out-tsc/src/environments/environment.js.map +1 -0
- package/dist/out-tsc/src/environments/environment.prod.js +4 -0
- package/dist/out-tsc/src/environments/environment.prod.js.map +1 -0
- package/dist/out-tsc/src/main.js +111 -0
- package/dist/out-tsc/src/main.js.map +1 -0
- package/dist/out-tsc/src/polyfills.js +67 -0
- package/dist/out-tsc/src/polyfills.js.map +1 -0
- package/dist/out-tsc/src/test-setup.js +1 -0
- package/dist/out-tsc/src/test-setup.js.map +1 -0
- package/dist/out-tsc/src/test-shims/steelseries-shim.js +44 -0
- package/dist/out-tsc/src/test-shims/steelseries-shim.js.map +1 -0
- package/dist/out-tsc/src/test.js +84 -0
- package/dist/out-tsc/src/test.js.map +1 -0
- package/images/ActionSidenav.png +0 -0
- package/images/KipBrightness-1024.png +0 -0
- package/images/KipNightMode-1024.png +0 -0
- package/images/Options.png +0 -0
- package/images/exterior_user_installs.png +0 -0
- package/package.json +1 -1
- package/plugin/index.js +2 -1
- package/public/{chunk-YPVFGYWU.js → chunk-4APSKT6I.js} +1 -1
- package/public/{chunk-CCEKSCJH.js → chunk-HHR4WMHS.js} +1 -1
- package/public/{chunk-TTNX7JB6.js → chunk-JDDRJMPN.js} +1 -1
- package/public/{chunk-TSNRNW3D.js → chunk-MRF22PVK.js} +1 -1
- package/public/{chunk-G5U7W6LL.js → chunk-RNSD64U3.js} +1 -1
- package/public/index.html +1 -1
- 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,cAAc,EAAc,QAAQ,EAAE,MAAM,MAAM,CAAC;AAC5D,OAAO,EAAE,kBAAkB,EAAoB,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAC3F,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAClE,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EAAmB,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAC5E,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAEzD,mDAAmD;AACnD,MAAM,SAAS,GAAG;IAChB,SAAS,EAAE,WAAW;IACtB,OAAO,EAAE,iBAAiB;IAC1B,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WAAW,EAAE,mCAAmC;QAChD,QAAQ,EAAE,mCAAmC;KAC9C,CAAC;;GACW,wBAAwB,CA8MpC"}
|
package/dist/out-tsc/src/app/widget-config/select-autopilot/select-autopilot.component.spec.js
ADDED
|
@@ -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
|
package/dist/out-tsc/src/app/widget-config/select-autopilot/select-autopilot.component.spec.js.map
ADDED
|
@@ -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,OAAO,EAAE,KAAK,EAAE,OAAO;YACvG,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,GAAG,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,YAAY;YAClG,GAAG,EAAE,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,WAAW,EAAE,aAAa,EAAE,cAAc;YAClH,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,EAAE,QAAQ;SACxD;QACD,WAAW,EAAE;YACX,WAAW,EAAE,YAAY,EAAE,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,K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
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
|