@sumaris-net/ngx-components 1.3.8 → 1.3.9

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.
@@ -1488,7 +1488,7 @@
1488
1488
  }
1489
1489
  }
1490
1490
  })),
1491
- // Merge some observables, with a common distinctUntilChanged() pipe
1491
+ // Merge some observables, with a common distinctUntilChanged() pipe, and NO debounceTime
1492
1492
  rxjs.merge(
1493
1493
  // Focus or click => Load all
1494
1494
  rxjs.merge(this.onFocus, this.onClick)
@@ -1497,7 +1497,11 @@
1497
1497
  this.onDropButtonClick
1498
1498
  .pipe(operators.filter(function (event) { return _this.searchable && (!event || !event.defaultPrevented) && _this.formControl.enabled; }), operators.map(function (_) { return _this.showAllOnFocus ? '*' : _this.formControl.value; })), rxjs.merge(this.$inputItems, this._filter$)
1499
1499
  .pipe(operators.map(function (_) { return _this.searchable && _this.formControl.value; })))
1500
- .pipe(operators.distinctUntilChanged()))
1500
+ .pipe(
1501
+ // If value is a string (and is not = '*'), filter if not enough character
1502
+ operators.filter(function (value) { return !(typeof value === 'string' && value === '*') || value.length >= _this.suggestLengthThreshold; }),
1503
+ // Distinguish changes
1504
+ operators.distinctUntilChanged()))
1501
1505
  .pipe(
1502
1506
  // DEBUG
1503
1507
  //tap(value => console.debug(this.logPrefix + ' Received update event: ', value)),
@@ -24926,7 +24930,8 @@
24926
24930
  }
24927
24931
  this.markAsLoading();
24928
24932
  this.openRow(row.currentData.id, row)
24929
- .then(function () { return _this.markAsLoaded(); });
24933
+ .then(function () { return _this.markAsLoaded(); })
24934
+ .catch(function () { return _this.markAsLoaded(); });
24930
24935
  return true;
24931
24936
  }
24932
24937
  // Start editing row