@sumaris-net/ngx-components 1.19.5-rc7 → 1.19.5-rc8

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.
@@ -1666,17 +1666,9 @@
1666
1666
  }
1667
1667
  // Suggest + mobile
1668
1668
  // => Manually fill input items, from the given suggest function
1669
- else if (this.mobile) {
1670
- // FIXME: not need anymore ?
1671
- /*this._subscription.add(
1672
- this._$filter.pipe(
1673
- startWith<any, any>(this.filter),
1674
- debounceTime(250),
1675
- filter(_ => this.showAllOnFocus && this.suggestLengthThreshold <= 0),
1676
- switchMap((filter) => this.suggest('*', filter))
1677
- )
1678
- .subscribe(items => this.$inputItems.next(items))
1679
- );*/
1669
+ else if (this.mobile || this.multiple) {
1670
+ this._subscription.add(this._$filter.pipe(operators.startWith(this.filter), operators.debounceTime(250), operators.filter(function (_) { return _this.suggestLengthThreshold <= 0; }), operators.switchMap(function (filter) { return _this.suggest('*', filter); }))
1671
+ .subscribe(function (items) { return _this.$inputItems.next(items); }));
1680
1672
  }
1681
1673
  // Send value to suggest when :
1682
1674
  // - is nil and '*', and no min length threshold
@@ -1766,7 +1758,7 @@
1766
1758
  // Concat to existing items
1767
1759
  operators.map(function (moreItems) { return (_this.$filteredItems.value || []).concat(moreItems); }));
1768
1760
  // Update filtered items
1769
- this._subscription.add(rxjs.merge(
1761
+ this._subscription.add(rxjs.merge(this.$inputItems,
1770
1762
  // Update items events
1771
1763
  filteredItemsChanges,
1772
1764
  // Fetch more events