@mxtommy/kip 3.0.0-alpha.40 → 3.0.0-alpha.42

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mxtommy/kip",
3
- "version": "3.0.0-alpha.40",
3
+ "version": "3.0.0-alpha.42",
4
4
  "description": "An advanced and versatile marine instrumentation package to display Signal K data.",
5
5
  "license": "MIT",
6
6
  "author": {
package/public/main.js CHANGED
@@ -125231,7 +125231,7 @@ var WidgetFreeboardskComponent = class _WidgetFreeboardskComponent extends BaseW
125231
125231
  iframe = viewChild.required("freeboardSkIframe");
125232
125232
  widgetUrl = null;
125233
125233
  authTokenSubscription = null;
125234
- dashboard = inject(DashboardService);
125234
+ _dashboard = inject(DashboardService);
125235
125235
  constructor() {
125236
125236
  super();
125237
125237
  }
@@ -125258,13 +125258,25 @@ var WidgetFreeboardskComponent = class _WidgetFreeboardskComponent extends BaseW
125258
125258
  console.log("Received iframe gesture:", event.data.gesture);
125259
125259
  switch (event.data.gesture) {
125260
125260
  case "swipeup":
125261
- if (this.dashboard.isDashboardStatic()) {
125262
- this.dashboard.previousDashboard();
125261
+ if (this._dashboard.isDashboardStatic()) {
125262
+ this._dashboard.previousDashboard();
125263
125263
  }
125264
125264
  break;
125265
125265
  case "swipedown":
125266
- if (this.dashboard.isDashboardStatic()) {
125267
- this.dashboard.nextDashboard();
125266
+ if (this._dashboard.isDashboardStatic()) {
125267
+ this._dashboard.nextDashboard();
125268
+ }
125269
+ break;
125270
+ case "swipeleft":
125271
+ if (this._dashboard.isDashboardStatic()) {
125272
+ const sidebarEvent = new Event("swipeleft");
125273
+ window.dispatchEvent(sidebarEvent);
125274
+ }
125275
+ break;
125276
+ case "swiperight":
125277
+ if (this._dashboard.isDashboardStatic()) {
125278
+ const sidebarEvent = new Event("swiperight");
125279
+ window.dispatchEvent(sidebarEvent);
125268
125280
  }
125269
125281
  break;
125270
125282
  default: