@mxtommy/kip 3.0.0-alpha.43 → 3.0.0-alpha.44

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.43",
3
+ "version": "3.0.0-alpha.44",
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
@@ -125269,15 +125269,13 @@ var WidgetFreeboardskComponent = class _WidgetFreeboardskComponent extends BaseW
125269
125269
  break;
125270
125270
  case "swipeleft":
125271
125271
  if (this._dashboard.isDashboardStatic()) {
125272
- const sidebarEvent = new Event("swipeleft");
125272
+ const sidebarEvent = new Event("openSidenav", { bubbles: true, cancelable: true });
125273
125273
  window.document.dispatchEvent(sidebarEvent);
125274
- window.document.body.dispatchEvent(sidebarEvent);
125275
- document.body.dispatchEvent(sidebarEvent);
125276
125274
  }
125277
125275
  break;
125278
125276
  case "swiperight":
125279
125277
  if (this._dashboard.isDashboardStatic()) {
125280
- const sidebarEvent = new Event("swiperight");
125278
+ const sidebarEvent = new Event("openSidenav");
125281
125279
  window.document.dispatchEvent(sidebarEvent);
125282
125280
  }
125283
125281
  break;
@@ -145554,6 +145552,7 @@ var AppComponent = class _AppComponent {
145554
145552
  _dashboard = inject(DashboardService);
145555
145553
  appSettingsService = inject(AppSettingsService);
145556
145554
  authenticationService = inject(AuthenticationService);
145555
+ openSidenavEvent = new EventEmitter();
145557
145556
  actionsSidenav = viewChild("actionsSidenav");
145558
145557
  actionsSidenavOpen = false;
145559
145558
  notificationsSidenavOpened = signal(false);
@@ -145649,6 +145648,19 @@ var AppComponent = class _AppComponent {
145649
145648
  }
145650
145649
  }
145651
145650
  }
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
+ }
145652
145664
  onSwipeRight(e2) {
145653
145665
  if (this._dashboard.isDashboardStatic()) {
145654
145666
  e2.preventDefault();
@@ -145676,7 +145688,7 @@ var AppComponent = class _AppComponent {
145676
145688
  if (rf & 2) {
145677
145689
  \u0275\u0275queryAdvance();
145678
145690
  }
145679
- }, standalone: true, features: [\u0275\u0275StandaloneFeature], decls: 9, vars: 5, consts: [["notificationsSidenav", ""], ["actionsSidenav", ""], [1, "sidenav-container", 3, "swipeleft", "swiperight", "touchstart", "touchmove"], ["mode", "over", "position", "start", "autoFocus", "false", 1, "sidenav-notifications", 3, "openedChange", "closed", "opened"], [3, "toggleSidenav", "hasNotifications"], ["mode", "over", "position", "end", 1, "sidenav-controls", 3, "openedChange", "opened"], [3, "actionsSidenav"], [1, "router-outlet-container"]], template: function AppComponent_Template(rf, ctx) {
145691
+ }, standalone: true, features: [\u0275\u0275StandaloneFeature], decls: 9, vars: 5, consts: [["notificationsSidenav", ""], ["actionsSidenav", ""], [1, "sidenav-container", 3, "swipeleft", "swiperight", "touchstart", "touchmove", "openSidenav"], ["mode", "over", "position", "start", "autoFocus", "false", 1, "sidenav-notifications", 3, "openedChange", "closed", "opened"], [3, "toggleSidenav", "hasNotifications"], ["mode", "over", "position", "end", 1, "sidenav-controls", 3, "openedChange", "opened"], [3, "actionsSidenav"], [1, "router-outlet-container"]], template: function AppComponent_Template(rf, ctx) {
145680
145692
  if (rf & 1) {
145681
145693
  const _r1 = \u0275\u0275getCurrentView();
145682
145694
  \u0275\u0275elementStart(0, "mat-sidenav-container", 2);
@@ -145692,6 +145704,9 @@ var AppComponent = class _AppComponent {
145692
145704
  })("touchmove", function AppComponent_Template_mat_sidenav_container_touchmove_0_listener($event) {
145693
145705
  \u0275\u0275restoreView(_r1);
145694
145706
  return \u0275\u0275resetView(ctx.preventBrowserHistorySwipeGestures($event));
145707
+ })("openSidenav", function AppComponent_Template_mat_sidenav_container_openSidenav_0_listener($event) {
145708
+ \u0275\u0275restoreView(_r1);
145709
+ return \u0275\u0275resetView(ctx.onOpenSidenav($event));
145695
145710
  });
145696
145711
  \u0275\u0275elementStart(1, "mat-sidenav", 3, 0);
145697
145712
  \u0275\u0275twoWayListener("openedChange", function AppComponent_Template_mat_sidenav_openedChange_1_listener($event) {