@sumaris-net/ngx-components 1.20.17 → 1.20.18

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.
@@ -18682,11 +18682,11 @@
18682
18682
  throw err;
18683
18683
  }));
18684
18684
  }
18685
- // Fallback (if not Android and Cordova): opening the URI using the browser
18685
+ // Fallback (if not Android and Cordova): opening the URI
18686
18686
  // TODO: find a way to download under iOS (see https://www.c-sharpcorner.com/article/how-to-download-a-file-using-file-transfer-plugin-in-ionic-3/)
18687
18687
  else {
18688
- console.warn('[platform] Cannot use Cordova downloader plugin: using browser open()');
18689
- this.open(request.uri, '_system', 'location=no', true);
18688
+ FilesUtils.downloadUri(request.uri, request.filename);
18689
+ //this.open(request.uri, '_system', 'location=no', true);
18690
18690
  return rxjs.of();
18691
18691
  }
18692
18692
  };
@@ -20475,6 +20475,7 @@
20475
20475
  var _this = this;
20476
20476
  this.document = document;
20477
20477
  this.elementRef = elementRef;
20478
+ // resize: mousedown -> mousemove -> mouseup
20478
20479
  this.resizable = rxjs.fromEvent(this.elementRef.nativeElement, 'mousedown').pipe(operators.tap(function (e) {
20479
20480
  e.preventDefault();
20480
20481
  e.stopPropagation();
@@ -20485,6 +20486,7 @@
20485
20486
  return width + clientX - right;
20486
20487
  }), operators.distinctUntilChanged(), operators.takeUntil(rxjs.fromEvent(_this.document, 'mouseup')));
20487
20488
  }));
20489
+ // fit: doubleclick
20488
20490
  this.fit = rxjs.fromEvent(this.elementRef.nativeElement, 'click').pipe(operators.bufferWhen(function () { return rxjs.interval(500); }), operators.filter(function (ar) { return ar.length === 2; }));
20489
20491
  }
20490
20492
  return ResizableDirective;