@mxtommy/kip 3.0.0-alpha.36 → 3.0.0-alpha.38

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.36",
3
+ "version": "3.0.0-alpha.38",
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
@@ -125258,24 +125258,13 @@ var WidgetFreeboardskComponent = class _WidgetFreeboardskComponent extends BaseW
125258
125258
  this.triggerSwipe("up");
125259
125259
  };
125260
125260
  triggerSwipe(direction) {
125261
- const eventTarget = document;
125262
- const swipeEvent = new CustomEvent("allo", {
125263
- detail: {
125264
- type: "allo",
125265
- deltaX: direction === "left" ? -100 : direction === "right" ? 100 : 0,
125266
- deltaY: direction === "up" ? -100 : direction === "down" ? 100 : 0,
125267
- velocityX: direction === "left" ? -1 : direction === "right" ? 1 : 0,
125268
- velocityY: direction === "up" ? -1 : direction === "down" ? 1 : 0,
125269
- direction: direction === "left" ? 2 : direction === "right" ? 4 : direction === "up" ? 8 : 16,
125270
- center: { x: window.innerWidth / 2, y: window.innerHeight / 2 }
125271
- },
125272
- bubbles: true,
125273
- cancelable: true
125274
- });
125275
- eventTarget.dispatchEvent(swipeEvent);
125276
- }
125277
- test(e2) {
125278
- console.log(e2);
125261
+ const element = document.getElementById("dashboardComponent");
125262
+ if (element) {
125263
+ const event = new Event("swipeup");
125264
+ element.dispatchEvent(event);
125265
+ } else {
125266
+ console.error('Element with ID "yourElementId" not found.');
125267
+ }
125279
125268
  }
125280
125269
  injectHammerJS() {
125281
125270
  const iframeWindow = this.iframe().nativeElement.contentWindow;
@@ -125400,7 +125389,7 @@ var WidgetFreeboardskComponent = class _WidgetFreeboardskComponent extends BaseW
125400
125389
  if (rf & 2) {
125401
125390
  \u0275\u0275queryAdvance();
125402
125391
  }
125403
- }, standalone: true, features: [\u0275\u0275InheritDefinitionFeature, \u0275\u0275StandaloneFeature], decls: 5, vars: 5, consts: [["widgetHost", ""], ["freeboardSkIframe", ""], [3, "configChange", "allo", "config", "id"], ["width", "100%", "height", "100%", "frameborder", "0", "sandbox", "allow-same-origin allow-scripts allow-forms", 1, "fsk-iframe", 3, "src"]], template: function WidgetFreeboardskComponent_Template(rf, ctx) {
125392
+ }, standalone: true, features: [\u0275\u0275InheritDefinitionFeature, \u0275\u0275StandaloneFeature], decls: 5, vars: 5, consts: [["widgetHost", ""], ["freeboardSkIframe", ""], [3, "configChange", "config", "id"], ["width", "100%", "height", "100%", "frameborder", "0", "sandbox", "allow-same-origin allow-scripts allow-forms", 1, "fsk-iframe", 3, "src"]], template: function WidgetFreeboardskComponent_Template(rf, ctx) {
125404
125393
  if (rf & 1) {
125405
125394
  const _r1 = \u0275\u0275getCurrentView();
125406
125395
  \u0275\u0275elementStart(0, "widget-host", 2, 0);
@@ -125412,9 +125401,6 @@ var WidgetFreeboardskComponent = class _WidgetFreeboardskComponent extends BaseW
125412
125401
  \u0275\u0275listener("configChange", function WidgetFreeboardskComponent_Template_widget_host_configChange_0_listener($event) {
125413
125402
  \u0275\u0275restoreView(_r1);
125414
125403
  return \u0275\u0275resetView(ctx.updateConfig($event));
125415
- })("allo", function WidgetFreeboardskComponent_Template_widget_host_allo_0_listener($event) {
125416
- \u0275\u0275restoreView(_r1);
125417
- return \u0275\u0275resetView(ctx.test($event));
125418
125404
  });
125419
125405
  \u0275\u0275element(2, "iframe", 3, 1);
125420
125406
  \u0275\u0275pipe(4, "safe");
@@ -129144,7 +129130,7 @@ var DashboardComponent = class _DashboardComponent {
129144
129130
  let _t;
129145
129131
  \u0275\u0275queryRefresh(_t = \u0275\u0275loadQuery()) && (ctx.gridstack = _t.first);
129146
129132
  }
129147
- }, standalone: true, features: [\u0275\u0275StandaloneFeature], decls: 3, vars: 5, consts: [[3, "swipeup", "swipedown", "resize", "options"], [3, "activePage", "dashboards"], [3, "OnChangeWidgetCategory"]], template: function DashboardComponent_Template(rf, ctx) {
129133
+ }, standalone: true, features: [\u0275\u0275StandaloneFeature], decls: 3, vars: 5, consts: [["id", "dashboardComponent", 3, "swipeup", "swipedown", "resize", "options"], [3, "activePage", "dashboards"], [3, "OnChangeWidgetCategory"]], template: function DashboardComponent_Template(rf, ctx) {
129148
129134
  if (rf & 1) {
129149
129135
  \u0275\u0275elementStart(0, "gridstack", 0);
129150
129136
  \u0275\u0275listener("swipeup", function DashboardComponent_Template_gridstack_swipeup_0_listener($event) {