@acorex/components 1.3.84 → 1.3.88

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.
@@ -8492,7 +8492,6 @@
8492
8492
  if (this.itemsChange) {
8493
8493
  this.itemsChange.emit(v);
8494
8494
  }
8495
- debugger;
8496
8495
  if (this.itemsStatusObserver) {
8497
8496
  this.itemsStatusObserver.next(this.items.length);
8498
8497
  }
@@ -8689,23 +8688,28 @@
8689
8688
  }
8690
8689
  else {
8691
8690
  if (Array.isArray(v)) {
8692
- debugger;
8693
8691
  if (_this.selectedItems.length > v.length) {
8694
8692
  _this.selectedItems = _this.selectedItems.filter(function (c) { return v.includes(c[_this.valueField]); });
8695
8693
  }
8696
8694
  else {
8697
8695
  var addId_1 = [];
8698
8696
  v.forEach(function (vId) {
8699
- addId_1.push({
8700
- ID: vId
8701
- });
8697
+ var _a;
8698
+ addId_1.push((_a = {},
8699
+ _a[_this.valueField] = vId,
8700
+ _a));
8702
8701
  });
8703
- var newId = lodash.differenceBy(addId_1, _this.selectedItems, 'ID');
8702
+ var newId = lodash.differenceBy(addId_1, _this.selectedItems, _this.valueField);
8704
8703
  var vv_1 = [];
8705
8704
  newId.forEach(function (rc) {
8706
- vv_1.push(rc['ID']);
8705
+ vv_1.push(rc[_this.valueField]);
8707
8706
  });
8708
- _this.selectedItems.push(_this.items.filter(function (c) { return vv_1.includes(c[_this.valueField]); })[0]);
8707
+ _this.items
8708
+ .filter(function (c) { return vv_1.includes(c[_this.valueField]); })
8709
+ .forEach(function (res) {
8710
+ _this.selectedItems.push(res);
8711
+ });
8712
+ // this.selectedItems.push(this.items.filter((c) => vv.includes(c[this.valueField])));
8709
8713
  _this.setSelectedItemsChange(_this.selectedItems);
8710
8714
  }
8711
8715
  // this.selectedItems = this.items.filter((c) => v.includes(c[this.valueField]));
@@ -8748,7 +8752,6 @@
8748
8752
  if (this.mode == 'single') {
8749
8753
  this.showCheckBox = false;
8750
8754
  }
8751
- debugger;
8752
8755
  if (!this.remoteOperation || (this.remoteOperation && this.hasSelectedValue)) {
8753
8756
  this.refresh();
8754
8757
  }
@@ -9258,7 +9261,6 @@
9258
9261
  .pipe(operators.debounceTime(100))
9259
9262
  .pipe(operators.distinctUntilChanged())
9260
9263
  .subscribe(function (c) {
9261
- debugger;
9262
9264
  callbackfn();
9263
9265
  });
9264
9266
  }