@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.
@@ -8286,7 +8286,6 @@ var AXSelectBoxComponent = /** @class */ (function (_super) {
8286
8286
  if (this.itemsChange) {
8287
8287
  this.itemsChange.emit(v);
8288
8288
  }
8289
- debugger;
8290
8289
  if (this.itemsStatusObserver) {
8291
8290
  this.itemsStatusObserver.next(this.items.length);
8292
8291
  }
@@ -8483,23 +8482,28 @@ var AXSelectBoxComponent = /** @class */ (function (_super) {
8483
8482
  }
8484
8483
  else {
8485
8484
  if (Array.isArray(v)) {
8486
- debugger;
8487
8485
  if (_this.selectedItems.length > v.length) {
8488
8486
  _this.selectedItems = _this.selectedItems.filter(function (c) { return v.includes(c[_this.valueField]); });
8489
8487
  }
8490
8488
  else {
8491
8489
  var addId_1 = [];
8492
8490
  v.forEach(function (vId) {
8493
- addId_1.push({
8494
- ID: vId
8495
- });
8491
+ var _a;
8492
+ addId_1.push((_a = {},
8493
+ _a[_this.valueField] = vId,
8494
+ _a));
8496
8495
  });
8497
- var newId = differenceBy(addId_1, _this.selectedItems, 'ID');
8496
+ var newId = differenceBy(addId_1, _this.selectedItems, _this.valueField);
8498
8497
  var vv_1 = [];
8499
8498
  newId.forEach(function (rc) {
8500
- vv_1.push(rc['ID']);
8499
+ vv_1.push(rc[_this.valueField]);
8501
8500
  });
8502
- _this.selectedItems.push(_this.items.filter(function (c) { return vv_1.includes(c[_this.valueField]); })[0]);
8501
+ _this.items
8502
+ .filter(function (c) { return vv_1.includes(c[_this.valueField]); })
8503
+ .forEach(function (res) {
8504
+ _this.selectedItems.push(res);
8505
+ });
8506
+ // this.selectedItems.push(this.items.filter((c) => vv.includes(c[this.valueField])));
8503
8507
  _this.setSelectedItemsChange(_this.selectedItems);
8504
8508
  }
8505
8509
  // this.selectedItems = this.items.filter((c) => v.includes(c[this.valueField]));
@@ -8542,7 +8546,6 @@ var AXSelectBoxComponent = /** @class */ (function (_super) {
8542
8546
  if (this.mode == 'single') {
8543
8547
  this.showCheckBox = false;
8544
8548
  }
8545
- debugger;
8546
8549
  if (!this.remoteOperation || (this.remoteOperation && this.hasSelectedValue)) {
8547
8550
  this.refresh();
8548
8551
  }
@@ -9052,7 +9055,6 @@ var AXSelectBoxComponent = /** @class */ (function (_super) {
9052
9055
  .pipe(debounceTime(100))
9053
9056
  .pipe(distinctUntilChanged())
9054
9057
  .subscribe(function (c) {
9055
- debugger;
9056
9058
  callbackfn();
9057
9059
  });
9058
9060
  }