ng-prime-tools 1.1.4 → 1.1.5

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.
@@ -1033,17 +1033,15 @@ class PTAdvancedPrimeTableComponent {
1033
1033
  }
1034
1034
  filterGlobal(event) {
1035
1035
  const target = event.target;
1036
- const value = (target.value || '').toLowerCase();
1036
+ const value = target.value ?? '';
1037
1037
  this.searchValue = value;
1038
+ this.resetToFirstPage();
1038
1039
  if (this.isLazy) {
1039
- this.resetToFirstPage();
1040
- this.search.emit(value);
1040
+ this.search.emit(value.trim());
1041
1041
  this.emitLazyLoad();
1042
1042
  return;
1043
1043
  }
1044
- this.resetToFirstPage();
1045
- this.refreshTableData();
1046
- this.filteredData.emit([...this.tableData]);
1044
+ this.dt?.filterGlobal(value.trim(), 'contains');
1047
1045
  }
1048
1046
  filterComposedColumn(composedData, value) {
1049
1047
  if (!composedData)