@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,678 @@
|
|
|
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, ElementRef, viewChild, inject, effect, NgZone } from '@angular/core';
|
|
11
|
+
import { BaseWidgetComponent } from '../../core/utils/base-widget.component';
|
|
12
|
+
import { WidgetHostComponent } from '../../core/components/widget-host/widget-host.component';
|
|
13
|
+
import { DatasetService } from '../../core/services/data-set.service';
|
|
14
|
+
import { CanvasService } from '../../core/services/canvas.service';
|
|
15
|
+
import { Chart, TimeScale, LinearScale, LineController, PointElement, LineElement, Filler, Title, SubTitle } from 'chart.js';
|
|
16
|
+
import annotationPlugin from 'chartjs-plugin-annotation';
|
|
17
|
+
import 'chartjs-adapter-date-fns';
|
|
18
|
+
Chart.register(annotationPlugin, TimeScale, LinearScale, LineController, PointElement, LineElement, Filler, Title, SubTitle);
|
|
19
|
+
let WidgetDataChartComponent = class WidgetDataChartComponent extends BaseWidgetComponent {
|
|
20
|
+
dsService = inject(DatasetService);
|
|
21
|
+
ngZone = inject(NgZone);
|
|
22
|
+
canvasService = inject(CanvasService);
|
|
23
|
+
widgetDataChart = viewChild('widgetDataChart', { read: ElementRef });
|
|
24
|
+
lineChartData = {
|
|
25
|
+
datasets: []
|
|
26
|
+
};
|
|
27
|
+
lineChartOptions = {
|
|
28
|
+
parsing: false,
|
|
29
|
+
datasets: {
|
|
30
|
+
line: {
|
|
31
|
+
pointRadius: 0, // disable for all `'line'` datasets
|
|
32
|
+
pointHoverRadius: 0, // disable for all `'line'` datasets
|
|
33
|
+
tension: 0.4,
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
animations: {
|
|
37
|
+
tension: {
|
|
38
|
+
easing: "easeInOutCubic"
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
lineChartType = 'line';
|
|
43
|
+
chart;
|
|
44
|
+
dsServiceSub = null;
|
|
45
|
+
datasetConfig = null;
|
|
46
|
+
dataSourceInfo = null;
|
|
47
|
+
constructor() {
|
|
48
|
+
super();
|
|
49
|
+
this.defaultConfig = {
|
|
50
|
+
displayName: 'Chart Label',
|
|
51
|
+
filterSelfPaths: true,
|
|
52
|
+
convertUnitTo: "unitless",
|
|
53
|
+
datasetUUID: null,
|
|
54
|
+
inverseYAxis: false,
|
|
55
|
+
datasetAverageArray: 'sma',
|
|
56
|
+
showAverageData: true,
|
|
57
|
+
trackAgainstAverage: false,
|
|
58
|
+
showDatasetMinimumValueLine: false,
|
|
59
|
+
showDatasetMaximumValueLine: false,
|
|
60
|
+
showDatasetAverageValueLine: true,
|
|
61
|
+
showDatasetAngleAverageValueLine: false,
|
|
62
|
+
showLabel: false,
|
|
63
|
+
showTimeScale: false,
|
|
64
|
+
startScaleAtZero: false,
|
|
65
|
+
verticalChart: false,
|
|
66
|
+
showYScale: false,
|
|
67
|
+
yScaleSuggestedMin: null,
|
|
68
|
+
yScaleSuggestedMax: null,
|
|
69
|
+
enableMinMaxScaleLimit: false,
|
|
70
|
+
yScaleMin: null,
|
|
71
|
+
yScaleMax: null,
|
|
72
|
+
numDecimal: 1,
|
|
73
|
+
color: 'contrast',
|
|
74
|
+
};
|
|
75
|
+
effect(() => {
|
|
76
|
+
if (this.theme()) {
|
|
77
|
+
if (this.datasetConfig) {
|
|
78
|
+
this.setChartOptions();
|
|
79
|
+
this.setDatasetsColors();
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
ngOnInit() {
|
|
85
|
+
this.validateConfig();
|
|
86
|
+
}
|
|
87
|
+
ngAfterViewInit() {
|
|
88
|
+
this.startWidget();
|
|
89
|
+
}
|
|
90
|
+
startWidget() {
|
|
91
|
+
this.datasetConfig = this.dsService.getDatasetConfig(this.widgetProperties.config.datasetUUID);
|
|
92
|
+
this.dataSourceInfo = this.dsService.getDataSourceInfo(this.widgetProperties.config.datasetUUID);
|
|
93
|
+
if (this.datasetConfig) {
|
|
94
|
+
this.createDatasets();
|
|
95
|
+
this.setChartOptions();
|
|
96
|
+
if (!this.chart) {
|
|
97
|
+
this.chart = new Chart(this.widgetDataChart().nativeElement.getContext('2d'), {
|
|
98
|
+
type: this.lineChartType,
|
|
99
|
+
data: this.lineChartData,
|
|
100
|
+
options: this.lineChartOptions
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
else {
|
|
104
|
+
this.chart.update();
|
|
105
|
+
}
|
|
106
|
+
this.startStreaming();
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
updateConfig(config) {
|
|
110
|
+
this.widgetProperties.config = config;
|
|
111
|
+
this.startWidget();
|
|
112
|
+
}
|
|
113
|
+
setChartOptions() {
|
|
114
|
+
this.lineChartOptions.maintainAspectRatio = false;
|
|
115
|
+
this.lineChartOptions.animation = false;
|
|
116
|
+
this.lineChartOptions.indexAxis = this.widgetProperties.config.verticalChart ? 'y' : 'x';
|
|
117
|
+
if (this.widgetProperties.config.verticalChart) {
|
|
118
|
+
this.lineChartOptions.scales = {
|
|
119
|
+
y: {
|
|
120
|
+
type: "time",
|
|
121
|
+
display: this.widgetProperties.config.showTimeScale,
|
|
122
|
+
position: this.widgetProperties.config.verticalChart ? "right" : "left",
|
|
123
|
+
suggestedMin: "",
|
|
124
|
+
suggestedMax: "",
|
|
125
|
+
title: {
|
|
126
|
+
display: true,
|
|
127
|
+
text: `Last ${this.datasetConfig.period} ${this.datasetConfig.timeScaleFormat}`,
|
|
128
|
+
align: "center"
|
|
129
|
+
},
|
|
130
|
+
time: {
|
|
131
|
+
unit: this.datasetConfig.timeScaleFormat,
|
|
132
|
+
minUnit: "second",
|
|
133
|
+
round: "second",
|
|
134
|
+
displayFormats: {
|
|
135
|
+
// eslint-disable-next-line no-useless-escape
|
|
136
|
+
hour: `k:mm\''`,
|
|
137
|
+
// eslint-disable-next-line no-useless-escape
|
|
138
|
+
minute: `mm\''`,
|
|
139
|
+
second: `ss"`,
|
|
140
|
+
millisecond: "SSS"
|
|
141
|
+
},
|
|
142
|
+
},
|
|
143
|
+
ticks: {
|
|
144
|
+
autoSkip: false,
|
|
145
|
+
color: this.getThemeColors().averageChartLine,
|
|
146
|
+
major: {
|
|
147
|
+
enabled: true
|
|
148
|
+
}
|
|
149
|
+
},
|
|
150
|
+
grid: {
|
|
151
|
+
display: true,
|
|
152
|
+
color: this.theme().contrastDimmer
|
|
153
|
+
}
|
|
154
|
+
},
|
|
155
|
+
x: {
|
|
156
|
+
type: "linear",
|
|
157
|
+
display: this.widgetProperties.config.showYScale,
|
|
158
|
+
position: this.widgetProperties.config.verticalChart ? "top" : "bottom",
|
|
159
|
+
suggestedMin: this.widgetProperties.config.enableMinMaxScaleLimit ? null : this.widgetProperties.config.yScaleSuggestedMin,
|
|
160
|
+
suggestedMax: this.widgetProperties.config.enableMinMaxScaleLimit ? null : this.widgetProperties.config.yScaleSuggestedMax,
|
|
161
|
+
min: this.widgetProperties.config.enableMinMaxScaleLimit ? this.widgetProperties.config.yScaleMin : null,
|
|
162
|
+
max: this.widgetProperties.config.enableMinMaxScaleLimit ? this.widgetProperties.config.yScaleMax : null,
|
|
163
|
+
beginAtZero: this.widgetProperties.config.startScaleAtZero,
|
|
164
|
+
reverse: this.widgetProperties.config.inverseYAxis,
|
|
165
|
+
title: {
|
|
166
|
+
display: false,
|
|
167
|
+
text: "Value Axis",
|
|
168
|
+
align: "center"
|
|
169
|
+
},
|
|
170
|
+
ticks: {
|
|
171
|
+
maxTicksLimit: 8,
|
|
172
|
+
precision: this.widgetProperties.config.numDecimal,
|
|
173
|
+
color: this.getThemeColors().averageChartLine,
|
|
174
|
+
major: {
|
|
175
|
+
enabled: true,
|
|
176
|
+
}
|
|
177
|
+
},
|
|
178
|
+
grid: {
|
|
179
|
+
display: true,
|
|
180
|
+
color: this.theme().contrastDimmer,
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
};
|
|
184
|
+
}
|
|
185
|
+
else {
|
|
186
|
+
this.lineChartOptions.scales = {
|
|
187
|
+
x: {
|
|
188
|
+
type: "time",
|
|
189
|
+
display: this.widgetProperties.config.showTimeScale,
|
|
190
|
+
title: {
|
|
191
|
+
display: true,
|
|
192
|
+
text: `Last ${this.datasetConfig.period} ${this.datasetConfig.timeScaleFormat}`,
|
|
193
|
+
align: "center"
|
|
194
|
+
},
|
|
195
|
+
time: {
|
|
196
|
+
unit: this.datasetConfig.timeScaleFormat,
|
|
197
|
+
minUnit: "second",
|
|
198
|
+
round: "second",
|
|
199
|
+
displayFormats: {
|
|
200
|
+
// eslint-disable-next-line no-useless-escape
|
|
201
|
+
hour: `k:mm\''`,
|
|
202
|
+
// eslint-disable-next-line no-useless-escape
|
|
203
|
+
minute: `mm\''`,
|
|
204
|
+
second: `ss"`,
|
|
205
|
+
millisecond: "SSS"
|
|
206
|
+
},
|
|
207
|
+
},
|
|
208
|
+
ticks: {
|
|
209
|
+
autoSkip: false,
|
|
210
|
+
color: this.getThemeColors().averageChartLine,
|
|
211
|
+
major: {
|
|
212
|
+
enabled: true
|
|
213
|
+
}
|
|
214
|
+
},
|
|
215
|
+
grid: {
|
|
216
|
+
display: true,
|
|
217
|
+
color: this.theme().contrastDimmer
|
|
218
|
+
}
|
|
219
|
+
},
|
|
220
|
+
y: {
|
|
221
|
+
display: this.widgetProperties.config.showYScale,
|
|
222
|
+
position: "right",
|
|
223
|
+
suggestedMin: this.widgetProperties.config.enableMinMaxScaleLimit ? null : this.widgetProperties.config.yScaleSuggestedMin,
|
|
224
|
+
suggestedMax: this.widgetProperties.config.enableMinMaxScaleLimit ? null : this.widgetProperties.config.yScaleSuggestedMax,
|
|
225
|
+
min: this.widgetProperties.config.enableMinMaxScaleLimit ? this.widgetProperties.config.yScaleMin : null,
|
|
226
|
+
max: this.widgetProperties.config.enableMinMaxScaleLimit ? this.widgetProperties.config.yScaleMax : null,
|
|
227
|
+
beginAtZero: this.widgetProperties.config.startScaleAtZero,
|
|
228
|
+
reverse: this.widgetProperties.config.inverseYAxis,
|
|
229
|
+
title: {
|
|
230
|
+
display: false,
|
|
231
|
+
text: "Value Axis",
|
|
232
|
+
align: "center"
|
|
233
|
+
},
|
|
234
|
+
ticks: {
|
|
235
|
+
maxTicksLimit: 8,
|
|
236
|
+
precision: this.widgetProperties.config.numDecimal,
|
|
237
|
+
color: this.getThemeColors().averageChartLine,
|
|
238
|
+
major: {
|
|
239
|
+
enabled: true,
|
|
240
|
+
}
|
|
241
|
+
},
|
|
242
|
+
grid: {
|
|
243
|
+
display: true,
|
|
244
|
+
color: this.theme().contrastDimmer,
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
};
|
|
248
|
+
}
|
|
249
|
+
this.lineChartOptions.plugins = {
|
|
250
|
+
title: {
|
|
251
|
+
display: true,
|
|
252
|
+
align: "end",
|
|
253
|
+
padding: {
|
|
254
|
+
top: 3,
|
|
255
|
+
bottom: 0
|
|
256
|
+
},
|
|
257
|
+
text: "",
|
|
258
|
+
font: {
|
|
259
|
+
size: 32,
|
|
260
|
+
},
|
|
261
|
+
color: this.getThemeColors().chartValue
|
|
262
|
+
},
|
|
263
|
+
subtitle: {
|
|
264
|
+
display: this.widgetProperties.config.showLabel,
|
|
265
|
+
align: "start",
|
|
266
|
+
padding: {
|
|
267
|
+
top: -35,
|
|
268
|
+
bottom: 20
|
|
269
|
+
},
|
|
270
|
+
text: ` ${this.widgetProperties.config.displayName}`,
|
|
271
|
+
font: {
|
|
272
|
+
size: 22,
|
|
273
|
+
},
|
|
274
|
+
color: this.getThemeColors().chartLabel
|
|
275
|
+
},
|
|
276
|
+
annotation: {
|
|
277
|
+
annotations: {
|
|
278
|
+
minimumLine: {
|
|
279
|
+
type: 'line',
|
|
280
|
+
scaleID: this.widgetProperties.config.verticalChart ? 'x' : 'y',
|
|
281
|
+
display: this.widgetProperties.config.showDatasetMinimumValueLine,
|
|
282
|
+
value: null,
|
|
283
|
+
drawTime: 'afterDatasetsDraw',
|
|
284
|
+
label: {
|
|
285
|
+
display: true,
|
|
286
|
+
position: "start",
|
|
287
|
+
yAdjust: 12,
|
|
288
|
+
padding: 4,
|
|
289
|
+
color: this.getThemeColors().averageChartLine,
|
|
290
|
+
backgroundColor: 'rgba(63,63,63,0.0)'
|
|
291
|
+
}
|
|
292
|
+
},
|
|
293
|
+
maximumLine: {
|
|
294
|
+
type: 'line',
|
|
295
|
+
scaleID: this.widgetProperties.config.verticalChart ? 'x' : 'y',
|
|
296
|
+
display: this.widgetProperties.config.showDatasetMaximumValueLine,
|
|
297
|
+
value: null,
|
|
298
|
+
drawTime: 'afterDatasetsDraw',
|
|
299
|
+
label: {
|
|
300
|
+
display: true,
|
|
301
|
+
position: "start",
|
|
302
|
+
yAdjust: -12,
|
|
303
|
+
padding: 4,
|
|
304
|
+
color: this.getThemeColors().averageChartLine,
|
|
305
|
+
backgroundColor: 'rgba(63,63,63,0.0)'
|
|
306
|
+
}
|
|
307
|
+
},
|
|
308
|
+
averageLine: {
|
|
309
|
+
type: 'line',
|
|
310
|
+
scaleID: this.widgetProperties.config.verticalChart ? 'x' : 'y',
|
|
311
|
+
display: this.widgetProperties.config.showDatasetAverageValueLine,
|
|
312
|
+
value: null,
|
|
313
|
+
borderDash: [6, 6],
|
|
314
|
+
borderColor: this.getThemeColors().averageChartLine,
|
|
315
|
+
drawTime: 'afterDatasetsDraw',
|
|
316
|
+
label: {
|
|
317
|
+
display: true,
|
|
318
|
+
position: "start",
|
|
319
|
+
padding: 4,
|
|
320
|
+
color: this.getThemeColors().chartValue,
|
|
321
|
+
backgroundColor: 'rgba(63,63,63,0.7)'
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
},
|
|
326
|
+
legend: {
|
|
327
|
+
display: false
|
|
328
|
+
}
|
|
329
|
+
};
|
|
330
|
+
}
|
|
331
|
+
createDatasets() {
|
|
332
|
+
let valueFillDirection;
|
|
333
|
+
let averageFillDirection;
|
|
334
|
+
if (this.widgetProperties.config.inverseYAxis && this.widgetProperties.config.trackAgainstAverage) {
|
|
335
|
+
valueFillDirection = "start";
|
|
336
|
+
averageFillDirection = false;
|
|
337
|
+
}
|
|
338
|
+
else if (this.widgetProperties.config.inverseYAxis && !this.widgetProperties.config.trackAgainstAverage) {
|
|
339
|
+
valueFillDirection = false;
|
|
340
|
+
averageFillDirection = "start";
|
|
341
|
+
}
|
|
342
|
+
else if (!this.widgetProperties.config.inverseYAxis && this.widgetProperties.config.trackAgainstAverage) {
|
|
343
|
+
valueFillDirection = true;
|
|
344
|
+
averageFillDirection = false;
|
|
345
|
+
}
|
|
346
|
+
else {
|
|
347
|
+
valueFillDirection = false;
|
|
348
|
+
averageFillDirection = true;
|
|
349
|
+
}
|
|
350
|
+
this.lineChartData.datasets = [];
|
|
351
|
+
this.lineChartData.datasets.push({
|
|
352
|
+
label: 'Value',
|
|
353
|
+
data: [],
|
|
354
|
+
order: this.widgetProperties.config.trackAgainstAverage ? 1 : 0,
|
|
355
|
+
parsing: false,
|
|
356
|
+
tension: 0,
|
|
357
|
+
pointRadius: 0,
|
|
358
|
+
pointHoverRadius: 0,
|
|
359
|
+
pointHitRadius: 0,
|
|
360
|
+
borderWidth: this.widgetProperties.config.trackAgainstAverage ? 0 : 3,
|
|
361
|
+
fill: valueFillDirection,
|
|
362
|
+
});
|
|
363
|
+
this.lineChartData.datasets.push({
|
|
364
|
+
label: 'Average',
|
|
365
|
+
data: [],
|
|
366
|
+
order: this.widgetProperties.config.trackAgainstAverage ? 0 : 1,
|
|
367
|
+
parsing: false,
|
|
368
|
+
tension: 0.4,
|
|
369
|
+
pointRadius: 0,
|
|
370
|
+
pointHoverRadius: 0,
|
|
371
|
+
pointHitRadius: 0,
|
|
372
|
+
borderWidth: this.widgetProperties.config.trackAgainstAverage ? 3 : 0,
|
|
373
|
+
fill: averageFillDirection,
|
|
374
|
+
});
|
|
375
|
+
this.setDatasetsColors();
|
|
376
|
+
}
|
|
377
|
+
setDatasetsColors() {
|
|
378
|
+
this.lineChartData.datasets.forEach((dataset) => {
|
|
379
|
+
if (dataset.label === 'Value') {
|
|
380
|
+
dataset.borderColor = this.getThemeColors().valueLine;
|
|
381
|
+
dataset.backgroundColor = this.getThemeColors().valueFill;
|
|
382
|
+
}
|
|
383
|
+
else if (dataset.label === 'Average') {
|
|
384
|
+
dataset.borderColor = this.getThemeColors().averageLine;
|
|
385
|
+
dataset.backgroundColor = this.getThemeColors().averageFill;
|
|
386
|
+
}
|
|
387
|
+
});
|
|
388
|
+
}
|
|
389
|
+
getThemeColors() {
|
|
390
|
+
const widgetColor = this.widgetProperties.config.color;
|
|
391
|
+
const colors = {
|
|
392
|
+
valueLine: null,
|
|
393
|
+
valueFill: null,
|
|
394
|
+
averageLine: null,
|
|
395
|
+
averageFill: null,
|
|
396
|
+
averageChartLine: null,
|
|
397
|
+
chartLabel: null,
|
|
398
|
+
chartValue: null
|
|
399
|
+
};
|
|
400
|
+
switch (widgetColor) {
|
|
401
|
+
case "contrast":
|
|
402
|
+
if (this.widgetProperties.config.trackAgainstAverage) {
|
|
403
|
+
colors.valueLine = this.theme().contrastDimmer;
|
|
404
|
+
colors.valueFill = this.theme().contrastDimmer;
|
|
405
|
+
colors.averageLine = this.theme().contrast;
|
|
406
|
+
colors.averageFill = this.theme().contrast;
|
|
407
|
+
colors.chartValue = colors.averageLine;
|
|
408
|
+
}
|
|
409
|
+
else {
|
|
410
|
+
colors.valueLine = this.theme().contrast;
|
|
411
|
+
colors.valueFill = this.theme().contrast;
|
|
412
|
+
colors.averageLine = this.theme().contrastDimmer;
|
|
413
|
+
colors.averageFill = this.theme().contrastDimmer;
|
|
414
|
+
colors.chartValue = this.theme().contrast;
|
|
415
|
+
}
|
|
416
|
+
colors.averageChartLine = this.theme().contrastDim;
|
|
417
|
+
colors.chartLabel = this.theme().contrastDim;
|
|
418
|
+
break;
|
|
419
|
+
case "blue":
|
|
420
|
+
if (this.widgetProperties.config.trackAgainstAverage) {
|
|
421
|
+
colors.valueLine = this.theme().blueDimmer;
|
|
422
|
+
colors.valueFill = this.theme().blueDimmer;
|
|
423
|
+
colors.averageLine = this.theme().blue;
|
|
424
|
+
colors.averageFill = this.theme().blue;
|
|
425
|
+
colors.chartValue = colors.averageLine;
|
|
426
|
+
}
|
|
427
|
+
else {
|
|
428
|
+
colors.valueLine = this.theme().blue;
|
|
429
|
+
colors.valueFill = this.theme().blue;
|
|
430
|
+
colors.averageLine = this.theme().blueDimmer;
|
|
431
|
+
colors.averageFill = this.theme().blueDimmer;
|
|
432
|
+
colors.chartValue = colors.valueFill;
|
|
433
|
+
}
|
|
434
|
+
colors.averageChartLine = this.theme().blueDim;
|
|
435
|
+
colors.chartLabel = this.theme().contrastDim;
|
|
436
|
+
break;
|
|
437
|
+
case "green":
|
|
438
|
+
if (this.widgetProperties.config.trackAgainstAverage) {
|
|
439
|
+
colors.valueLine = this.theme().greenDimmer;
|
|
440
|
+
colors.valueFill = this.theme().greenDimmer;
|
|
441
|
+
colors.averageLine = this.theme().green;
|
|
442
|
+
colors.averageFill = this.theme().green;
|
|
443
|
+
colors.chartValue = colors.averageLine;
|
|
444
|
+
}
|
|
445
|
+
else {
|
|
446
|
+
colors.valueLine = this.theme().green;
|
|
447
|
+
colors.valueFill = this.theme().green;
|
|
448
|
+
colors.averageLine = this.theme().greenDimmer;
|
|
449
|
+
colors.averageFill = this.theme().greenDimmer;
|
|
450
|
+
colors.chartValue = colors.valueFill;
|
|
451
|
+
}
|
|
452
|
+
colors.averageChartLine = this.theme().greenDim;
|
|
453
|
+
colors.chartLabel = this.theme().contrastDim;
|
|
454
|
+
break;
|
|
455
|
+
case "pink":
|
|
456
|
+
if (this.widgetProperties.config.trackAgainstAverage) {
|
|
457
|
+
colors.valueLine = this.theme().pinkDimmer;
|
|
458
|
+
colors.valueFill = this.theme().pinkDimmer;
|
|
459
|
+
colors.averageLine = this.theme().pink;
|
|
460
|
+
colors.averageFill = this.theme().pink;
|
|
461
|
+
colors.chartValue = colors.averageLine;
|
|
462
|
+
}
|
|
463
|
+
else {
|
|
464
|
+
colors.valueLine = this.theme().pink;
|
|
465
|
+
colors.valueFill = this.theme().pink;
|
|
466
|
+
colors.averageLine = this.theme().pinkDimmer;
|
|
467
|
+
colors.averageFill = this.theme().pinkDimmer;
|
|
468
|
+
colors.chartValue = colors.valueFill;
|
|
469
|
+
}
|
|
470
|
+
colors.averageChartLine = this.theme().pinkDim;
|
|
471
|
+
colors.chartLabel = this.theme().contrastDim;
|
|
472
|
+
break;
|
|
473
|
+
case "orange":
|
|
474
|
+
if (this.widgetProperties.config.trackAgainstAverage) {
|
|
475
|
+
colors.valueLine = this.theme().orangeDimmer;
|
|
476
|
+
colors.valueFill = this.theme().orangeDimmer;
|
|
477
|
+
colors.averageLine = this.theme().orange;
|
|
478
|
+
colors.averageFill = this.theme().orange;
|
|
479
|
+
colors.chartValue = colors.averageLine;
|
|
480
|
+
}
|
|
481
|
+
else {
|
|
482
|
+
colors.valueLine = this.theme().orange;
|
|
483
|
+
colors.valueFill = this.theme().orange;
|
|
484
|
+
colors.averageLine = this.theme().orangeDimmer;
|
|
485
|
+
colors.averageFill = this.theme().orangeDimmer;
|
|
486
|
+
colors.chartValue = colors.valueFill;
|
|
487
|
+
}
|
|
488
|
+
colors.averageChartLine = this.theme().orangeDim;
|
|
489
|
+
colors.chartLabel = this.theme().contrastDim;
|
|
490
|
+
break;
|
|
491
|
+
case "purple":
|
|
492
|
+
if (this.widgetProperties.config.trackAgainstAverage) {
|
|
493
|
+
colors.valueLine = this.theme().purpleDimmer;
|
|
494
|
+
colors.valueFill = this.theme().purpleDimmer;
|
|
495
|
+
colors.averageLine = this.theme().purple;
|
|
496
|
+
colors.averageFill = this.theme().purple;
|
|
497
|
+
colors.chartValue = colors.averageLine;
|
|
498
|
+
}
|
|
499
|
+
else {
|
|
500
|
+
colors.valueLine = this.theme().purple;
|
|
501
|
+
colors.valueFill = this.theme().purple;
|
|
502
|
+
colors.averageLine = this.theme().purpleDimmer;
|
|
503
|
+
colors.averageFill = this.theme().purpleDimmer;
|
|
504
|
+
colors.chartValue = colors.valueFill;
|
|
505
|
+
}
|
|
506
|
+
colors.averageChartLine = this.theme().purpleDim;
|
|
507
|
+
colors.chartLabel = this.theme().contrastDim;
|
|
508
|
+
break;
|
|
509
|
+
case "grey":
|
|
510
|
+
if (this.widgetProperties.config.trackAgainstAverage) {
|
|
511
|
+
colors.valueLine = this.theme().greyDimmer;
|
|
512
|
+
colors.valueFill = this.theme().greyDimmer;
|
|
513
|
+
colors.averageLine = this.theme().grey;
|
|
514
|
+
colors.averageFill = this.theme().grey;
|
|
515
|
+
colors.chartValue = colors.averageLine;
|
|
516
|
+
}
|
|
517
|
+
else {
|
|
518
|
+
colors.valueLine = this.theme().grey;
|
|
519
|
+
colors.valueFill = this.theme().grey;
|
|
520
|
+
colors.averageLine = this.theme().greyDimmer;
|
|
521
|
+
colors.averageFill = this.theme().greyDimmer;
|
|
522
|
+
colors.chartValue = colors.valueFill;
|
|
523
|
+
}
|
|
524
|
+
colors.averageChartLine = this.theme().greyDim;
|
|
525
|
+
colors.chartLabel = this.theme().contrastDim;
|
|
526
|
+
break;
|
|
527
|
+
case "yellow":
|
|
528
|
+
if (this.widgetProperties.config.trackAgainstAverage) {
|
|
529
|
+
colors.valueLine = this.theme().yellowDimmer;
|
|
530
|
+
colors.valueFill = this.theme().yellowDimmer;
|
|
531
|
+
colors.averageLine = this.theme().yellow;
|
|
532
|
+
colors.averageFill = this.theme().yellow;
|
|
533
|
+
colors.chartValue = colors.averageLine;
|
|
534
|
+
}
|
|
535
|
+
else {
|
|
536
|
+
colors.valueLine = this.theme().yellow;
|
|
537
|
+
colors.valueFill = this.theme().yellow;
|
|
538
|
+
colors.averageLine = this.theme().yellowDimmer;
|
|
539
|
+
colors.averageFill = this.theme().yellowDimmer;
|
|
540
|
+
colors.chartValue = colors.valueFill;
|
|
541
|
+
}
|
|
542
|
+
colors.averageChartLine = this.theme().yellowDim;
|
|
543
|
+
colors.chartLabel = this.theme().contrastDim;
|
|
544
|
+
break;
|
|
545
|
+
}
|
|
546
|
+
return colors;
|
|
547
|
+
}
|
|
548
|
+
getUnitsLabel() {
|
|
549
|
+
let label = null;
|
|
550
|
+
switch (this.widgetProperties.config.convertUnitTo) {
|
|
551
|
+
case "percent":
|
|
552
|
+
case "percentraw":
|
|
553
|
+
label = "%";
|
|
554
|
+
break;
|
|
555
|
+
case "latitudeMin":
|
|
556
|
+
label = "latitude in minutes";
|
|
557
|
+
break;
|
|
558
|
+
case "latitudeSec":
|
|
559
|
+
label = "latitude in secondes";
|
|
560
|
+
break;
|
|
561
|
+
case "longitudeMin":
|
|
562
|
+
label = "longitude in minutes";
|
|
563
|
+
break;
|
|
564
|
+
case "longitudeSec":
|
|
565
|
+
label = "longitude in secondes";
|
|
566
|
+
break;
|
|
567
|
+
default:
|
|
568
|
+
label = this.widgetProperties.config.convertUnitTo;
|
|
569
|
+
break;
|
|
570
|
+
}
|
|
571
|
+
return label;
|
|
572
|
+
}
|
|
573
|
+
startStreaming() {
|
|
574
|
+
this.dsServiceSub?.unsubscribe();
|
|
575
|
+
const batchThenLive$ = this.dsService.getDatasetBatchThenLiveObservable(this.widgetProperties.config.datasetUUID);
|
|
576
|
+
this.dsServiceSub = batchThenLive$?.subscribe(dsPointOrBatch => {
|
|
577
|
+
if (Array.isArray(dsPointOrBatch)) {
|
|
578
|
+
// Initial batch: fill the chart with the last N points
|
|
579
|
+
const valueRows = this.transformDatasetRows(dsPointOrBatch, 0);
|
|
580
|
+
this.chart.data.datasets[0].data.push(...valueRows);
|
|
581
|
+
if (this.widgetProperties.config.showAverageData) {
|
|
582
|
+
const avgRows = this.transformDatasetRows(dsPointOrBatch, this.widgetProperties.config.datasetAverageArray);
|
|
583
|
+
this.chart.data.datasets[1].data.push(...avgRows);
|
|
584
|
+
}
|
|
585
|
+
}
|
|
586
|
+
else {
|
|
587
|
+
// Live: handle new single datapoint
|
|
588
|
+
const valueRow = this.transformDatasetRows([dsPointOrBatch], 0)[0];
|
|
589
|
+
this.chart.data.datasets[0].data.push(valueRow);
|
|
590
|
+
if (this.chart.data.datasets[0].data.length > this.dataSourceInfo.maxDataPoints) {
|
|
591
|
+
this.chart.data.datasets[0].data.shift();
|
|
592
|
+
}
|
|
593
|
+
if (this.widgetProperties.config.showAverageData) {
|
|
594
|
+
const avgRow = this.transformDatasetRows([dsPointOrBatch], this.widgetProperties.config.datasetAverageArray)[0];
|
|
595
|
+
this.chart.data.datasets[1].data.push(avgRow);
|
|
596
|
+
if (this.chart.data.datasets[1].data.length > this.dataSourceInfo.maxDataPoints) {
|
|
597
|
+
this.chart.data.datasets[1].data.shift();
|
|
598
|
+
}
|
|
599
|
+
}
|
|
600
|
+
// ... (rest of your live update logic for title, annotation, etc.)
|
|
601
|
+
const trackValue = this.widgetProperties.config.trackAgainstAverage ? dsPointOrBatch.data.sma : dsPointOrBatch.data.value;
|
|
602
|
+
this.chart.options.plugins.title.text = `${this.unitsService.convertToUnit(this.widgetProperties.config.convertUnitTo, trackValue).toFixed(this.widgetProperties.config.numDecimal)} ${this.getUnitsLabel()} `;
|
|
603
|
+
const lastAverage = this.unitsService.convertToUnit(this.widgetProperties.config.convertUnitTo, dsPointOrBatch.data.lastAverage);
|
|
604
|
+
const lastMinimum = this.unitsService.convertToUnit(this.widgetProperties.config.convertUnitTo, dsPointOrBatch.data.lastMinimum);
|
|
605
|
+
const lastMaximum = this.unitsService.convertToUnit(this.widgetProperties.config.convertUnitTo, dsPointOrBatch.data.lastMaximum);
|
|
606
|
+
if (this.chart.options.plugins.annotation.annotations.averageLine.value != lastAverage) {
|
|
607
|
+
this.chart.options.plugins.annotation.annotations.averageLine.value = lastAverage;
|
|
608
|
+
this.chart.options.plugins.annotation.annotations.averageLine.label.content = `${lastAverage.toFixed(this.widgetProperties.config.numDecimal)}`;
|
|
609
|
+
}
|
|
610
|
+
if (this.chart.options.plugins.annotation.annotations.minimumLine.value != lastMinimum) {
|
|
611
|
+
this.chart.options.plugins.annotation.annotations.minimumLine.value = lastMinimum;
|
|
612
|
+
this.chart.options.plugins.annotation.annotations.minimumLine.label.content = `${lastMinimum.toFixed(this.widgetProperties.config.numDecimal)}`;
|
|
613
|
+
}
|
|
614
|
+
if (this.chart.options.plugins.annotation.annotations.maximumLine.value != lastMaximum) {
|
|
615
|
+
this.chart.options.plugins.annotation.annotations.maximumLine.value = lastMaximum;
|
|
616
|
+
this.chart.options.plugins.annotation.annotations.maximumLine.label.content = `${lastMaximum.toFixed(this.widgetProperties.config.numDecimal)}`;
|
|
617
|
+
}
|
|
618
|
+
}
|
|
619
|
+
this.ngZone.runOutsideAngular(() => {
|
|
620
|
+
this.chart?.update('quiet');
|
|
621
|
+
});
|
|
622
|
+
});
|
|
623
|
+
}
|
|
624
|
+
transformDatasetRows(rows, datasetType) {
|
|
625
|
+
const convert = (v) => this.unitsService.convertToUnit(this.widgetProperties.config.convertUnitTo, v);
|
|
626
|
+
const verticalChart = this.widgetProperties.config.verticalChart;
|
|
627
|
+
const avgKey = this.widgetProperties.config.datasetAverageArray;
|
|
628
|
+
return rows.map(row => {
|
|
629
|
+
if (verticalChart) {
|
|
630
|
+
if (datasetType === 0) {
|
|
631
|
+
return { x: convert(row.data.value), y: row.timestamp };
|
|
632
|
+
}
|
|
633
|
+
else {
|
|
634
|
+
const avgMap = {
|
|
635
|
+
sma: row.data.sma,
|
|
636
|
+
ema: row.data.ema,
|
|
637
|
+
dema: row.data.doubleEma,
|
|
638
|
+
avg: row.data.lastAverage
|
|
639
|
+
};
|
|
640
|
+
return { x: convert(avgMap[avgKey]), y: row.timestamp };
|
|
641
|
+
}
|
|
642
|
+
}
|
|
643
|
+
else {
|
|
644
|
+
if (datasetType === 0) {
|
|
645
|
+
return { x: row.timestamp, y: convert(row.data.value) };
|
|
646
|
+
}
|
|
647
|
+
else {
|
|
648
|
+
const avgMap = {
|
|
649
|
+
sma: row.data.sma,
|
|
650
|
+
ema: row.data.ema,
|
|
651
|
+
dema: row.data.doubleEma,
|
|
652
|
+
avg: row.data.lastAverage
|
|
653
|
+
};
|
|
654
|
+
return { x: row.timestamp, y: convert(avgMap[avgKey]) };
|
|
655
|
+
}
|
|
656
|
+
}
|
|
657
|
+
});
|
|
658
|
+
}
|
|
659
|
+
ngOnDestroy() {
|
|
660
|
+
this.destroyDataStreams();
|
|
661
|
+
this.dsServiceSub?.unsubscribe();
|
|
662
|
+
// we need to destroy when moving Pages to remove Chart Objects
|
|
663
|
+
this.chart?.destroy();
|
|
664
|
+
const canvas = this.widgetDataChart?.()?.nativeElement;
|
|
665
|
+
this.canvasService.releaseCanvas(canvas, { clear: true, removeFromDom: true });
|
|
666
|
+
}
|
|
667
|
+
};
|
|
668
|
+
WidgetDataChartComponent = __decorate([
|
|
669
|
+
Component({
|
|
670
|
+
selector: 'widget-data-chart',
|
|
671
|
+
imports: [WidgetHostComponent],
|
|
672
|
+
templateUrl: './widget-data-chart.component.html',
|
|
673
|
+
styleUrl: './widget-data-chart.component.scss'
|
|
674
|
+
}),
|
|
675
|
+
__metadata("design:paramtypes", [])
|
|
676
|
+
], WidgetDataChartComponent);
|
|
677
|
+
export { WidgetDataChartComponent };
|
|
678
|
+
//# sourceMappingURL=widget-data-chart.component.js.map
|