@mxtommy/kip 3.0.0-alpha.46 → 3.0.0-alpha.48

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.46",
3
+ "version": "3.0.0-alpha.48",
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
@@ -125267,16 +125267,12 @@ var WidgetFreeboardskComponent = class _WidgetFreeboardskComponent extends BaseW
125267
125267
  }
125268
125268
  break;
125269
125269
  case "swipeleft":
125270
- if (this._dashboard.isDashboardStatic()) {
125271
- const sidebarEvent = new Event("openLeftSidenav", { bubbles: true, cancelable: true });
125272
- window.document.dispatchEvent(sidebarEvent);
125273
- }
125270
+ const leftSidebarEvent = new Event("openLeftSidenav", { bubbles: true, cancelable: true });
125271
+ window.document.dispatchEvent(leftSidebarEvent);
125274
125272
  break;
125275
125273
  case "swiperight":
125276
- if (this._dashboard.isDashboardStatic()) {
125277
- const sidebarEvent = new Event("openRightSidenav", { bubbles: true, cancelable: true });
125278
- window.document.dispatchEvent(sidebarEvent);
125279
- }
125274
+ const rightSidebarEvent = new Event("openRightSidenav", { bubbles: true, cancelable: true });
125275
+ window.document.dispatchEvent(rightSidebarEvent);
125280
125276
  break;
125281
125277
  default:
125282
125278
  break;
@@ -145602,6 +145598,7 @@ var AppComponent = class _AppComponent {
145602
145598
  }
145603
145599
  });
145604
145600
  window.addEventListener("openLeftSidenav", this.onSwipeLeft);
145601
+ window.addEventListener("openRightSidenav", this.onSwipeRight);
145605
145602
  }
145606
145603
  menuClosed() {
145607
145604
  if (this.notificationsPresent) {
@@ -145648,19 +145645,6 @@ var AppComponent = class _AppComponent {
145648
145645
  }
145649
145646
  }
145650
145647
  }
145651
- onOpenSidenav = (e2) => {
145652
- switch (e2.type) {
145653
- case "swipeleft":
145654
- this.onSwipeLeft(e2);
145655
- break;
145656
- case "swiperight":
145657
- this.onSwipeRight(e2);
145658
- break;
145659
- default:
145660
- console.log("[app.component] Unknown event type: " + e2.type);
145661
- break;
145662
- }
145663
- };
145664
145648
  onSwipeRight(e2) {
145665
145649
  if (this._dashboard.isDashboardStatic()) {
145666
145650
  e2.preventDefault();
@@ -145677,7 +145661,8 @@ var AppComponent = class _AppComponent {
145677
145661
  this.themeNameSub.unsubscribe();
145678
145662
  this.appNotificationSub.unsubscribe();
145679
145663
  this.connectionStatusSub.unsubscribe();
145680
- window.removeEventListener("openSidenav", this.onOpenSidenav);
145664
+ window.removeEventListener("openLeftSidenav", this.onSwipeLeft);
145665
+ window.removeEventListener("openRightSidenav", this.onSwipeRight);
145681
145666
  }
145682
145667
  static \u0275fac = function AppComponent_Factory(__ngFactoryType__) {
145683
145668
  return new (__ngFactoryType__ || _AppComponent)();