@igo2/common 1.13.2 → 1.13.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.
@@ -1,12 +1,20 @@
1
1
  import { EventEmitter } from '@angular/core';
2
2
  import * as i0 from "@angular/core";
3
+ /**
4
+ * IgoLongPress trigger longpress event after a define duration.
5
+ * This directive exist to patch the unavailable contextmenu event on iOS.
6
+ * @param touchDuration touch duration in ms, default value is 400ms
7
+ * @param iOSOnly define if longpress is triggered only for iOS, default value = true
8
+ */
3
9
  export declare class LongPressDirective {
4
10
  private touchTimeout;
11
+ touchDuration: number;
12
+ onlyIOS: boolean;
5
13
  longpress: EventEmitter<any>;
6
14
  constructor();
7
15
  touchstart(e: TouchEvent): void;
8
16
  touchend(): void;
9
17
  private touchEnd;
10
18
  static ɵfac: i0.ɵɵFactoryDeclaration<LongPressDirective, never>;
11
- static ɵdir: i0.ɵɵDirectiveDeclaration<LongPressDirective, "[igoLongPress]", never, {}, { "longpress": "longpress"; }, never, never, false>;
19
+ static ɵdir: i0.ɵɵDirectiveDeclaration<LongPressDirective, "[igoLongPress]", never, { "touchDuration": "touchDuration"; "onlyIOS": "onlyIOS"; }, { "longpress": "longpress"; }, never, never, false>;
12
20
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@igo2/common",
3
- "version": "1.13.2",
3
+ "version": "1.13.3",
4
4
  "description": "IGO Library",
5
5
  "author": "IGO Community",
6
6
  "keywords": [
@@ -19,8 +19,8 @@
19
19
  "@angular/common": "^14.1.2",
20
20
  "@angular/core": "^14.1.2",
21
21
  "@angular/material": "^14.1.2",
22
- "@igo2/core": "^1.13.2",
23
- "@igo2/utils": "^1.13.2",
22
+ "@igo2/core": "^1.13.3",
23
+ "@igo2/utils": "^1.13.3",
24
24
  "scroll-into-view-if-needed": "^2.2.20",
25
25
  "typy": "^3.3.0"
26
26
  },