@zeedhi/common 1.80.1 → 1.81.0

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.
@@ -10484,6 +10484,7 @@ class SelectTree extends TextInput {
10484
10484
  */
10485
10485
  this.fieldHasChild = '';
10486
10486
  this.savedNodes = undefined;
10487
+ this.debounceSearch = debounce(this.searchChange, 500);
10487
10488
  this.nodes = this.getInitValue('nodes', props.nodes, this.nodes);
10488
10489
  this.alwaysOpen = this.getInitValue('alwaysOpen', props.alwaysOpen, this.alwaysOpen);
10489
10490
  this.flattenSearchResults = this.getInitValue('flattenSearchResults', props.flattenSearchResults, this.flattenSearchResults);
@@ -10711,7 +10712,7 @@ class SelectTree extends TextInput {
10711
10712
  if (value !== this.lastInputValue) {
10712
10713
  this.lastInputValue = value;
10713
10714
  this.callInputEvent({ element, component: this });
10714
- this.searchChange(value, element);
10715
+ this.debounceSearch(value, element);
10715
10716
  }
10716
10717
  }
10717
10718
  get searchValue() {
@@ -10491,6 +10491,7 @@
10491
10491
  */
10492
10492
  this.fieldHasChild = '';
10493
10493
  this.savedNodes = undefined;
10494
+ this.debounceSearch = debounce__default["default"](this.searchChange, 500);
10494
10495
  this.nodes = this.getInitValue('nodes', props.nodes, this.nodes);
10495
10496
  this.alwaysOpen = this.getInitValue('alwaysOpen', props.alwaysOpen, this.alwaysOpen);
10496
10497
  this.flattenSearchResults = this.getInitValue('flattenSearchResults', props.flattenSearchResults, this.flattenSearchResults);
@@ -10718,7 +10719,7 @@
10718
10719
  if (value !== this.lastInputValue) {
10719
10720
  this.lastInputValue = value;
10720
10721
  this.callInputEvent({ element, component: this });
10721
- this.searchChange(value, element);
10722
+ this.debounceSearch(value, element);
10722
10723
  }
10723
10724
  }
10724
10725
  get searchValue() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zeedhi/common",
3
- "version": "1.80.1",
3
+ "version": "1.81.0",
4
4
  "description": "Zeedhi Common",
5
5
  "author": "Zeedhi <zeedhi@teknisa.com>",
6
6
  "license": "ISC",
@@ -41,5 +41,5 @@
41
41
  "lodash.times": "4.3.*",
42
42
  "mockdate": "3.0.*"
43
43
  },
44
- "gitHead": "a8219aae6129d4d736eb08a28ef2763b6dcd9a36"
44
+ "gitHead": "895b0c66924cfd9a800ce45074822e4994f7cda8"
45
45
  }
@@ -140,6 +140,7 @@ export declare class SelectTree extends TextInput implements ISelectTree {
140
140
  * @param element Element focused
141
141
  */
142
142
  searchInput(value: string, element?: any): void;
143
+ private debounceSearch;
143
144
  get searchValue(): any;
144
145
  protected clearRow(row: IDictionary<any>): {
145
146
  [x: string]: any;