intelica-library-ui 0.1.192 → 0.1.193

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.
@@ -2662,7 +2662,20 @@ class TreeTableComponent {
2662
2662
  this.UpdatePages();
2663
2663
  }
2664
2664
  ExecuteSearch(event) {
2665
+ if (event?.fieldText !== undefined && event?.fieldText !== "")
2666
+ this.SearchInput = event;
2665
2667
  this.ListDataFilter = [...this.ListData];
2668
+ if (this.SearchInput?.searchText !== undefined &&
2669
+ this.SearchInput?.searchText !== "" &&
2670
+ this.ListSearchOptions.length > 0) {
2671
+ let Search = this.SearchInput.searchText?.trim()?.toLowerCase();
2672
+ let searchValue = this.ListSearchOptions.find((item) => item.id === this.SearchInput.fieldId)?.field || "code";
2673
+ this.ListDataFilter = this.SharedService.GetFilteredSearchKey([...this.ListData], searchValue, Search, this.SearchInput.operatorId);
2674
+ if (this.PaginatorTable) {
2675
+ this.PaginatorTable.CurrentPage = 1;
2676
+ this.CurrentPage = 1;
2677
+ }
2678
+ }
2666
2679
  this.SortPages();
2667
2680
  }
2668
2681
  OnHeaderCheckboxChange(event, field) {