@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.
@@ -4236,7 +4236,12 @@
4236
4236
  /** @ignore */
4237
4237
  EsTableComponent.prototype.registerOnTouched = function (fn) { };
4238
4238
  /** @ignore */
4239
- EsTableComponent.prototype.changed = function () { this.propagateChange(this.View); };
4239
+ EsTableComponent.prototype.changed = function (clearItems) {
4240
+ if (clearItems === void 0) { clearItems = false; }
4241
+ if (clearItems && this.viewMode)
4242
+ this.View.items = [];
4243
+ this.propagateChange(this.View);
4244
+ };
4240
4245
  /** @ignore */
4241
4246
  EsTableComponent.prototype.writeValue = function (obj) {
4242
4247
  var _a;
@@ -4375,7 +4380,7 @@
4375
4380
  this.postBoundSourceCalculation();
4376
4381
  if (this.View && !this.View.selfsearch && this.EsTableHandledSearch) {
4377
4382
  this.View.selfsearch = true;
4378
- this.changed();
4383
+ this.changed(true);
4379
4384
  this.onSearchRequest.emit(false);
4380
4385
  }
4381
4386
  else if (this.View && this.View.selfsearch && this.EsTableHandledSearch) {