@esfaenza/es-table 11.2.102 → 11.2.103

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.
@@ -3735,7 +3735,11 @@ class EsTableComponent {
3735
3735
  /** @ignore */
3736
3736
  registerOnTouched(fn) { }
3737
3737
  /** @ignore */
3738
- changed() { this.propagateChange(this.View); }
3738
+ changed(clearItems = false) {
3739
+ if (clearItems && this.viewMode)
3740
+ this.View.items = [];
3741
+ this.propagateChange(this.View);
3742
+ }
3739
3743
  /** @ignore */
3740
3744
  writeValue(obj) {
3741
3745
  var _a;
@@ -3863,7 +3867,7 @@ class EsTableComponent {
3863
3867
  this.postBoundSourceCalculation();
3864
3868
  if (this.View && !this.View.selfsearch && this.EsTableHandledSearch) {
3865
3869
  this.View.selfsearch = true;
3866
- this.changed();
3870
+ this.changed(true);
3867
3871
  this.onSearchRequest.emit(false);
3868
3872
  }
3869
3873
  else if (this.View && this.View.selfsearch && this.EsTableHandledSearch) {