@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.
- package/acorex-components.metadata.json +1 -1
- package/bundles/acorex-components.umd.js +12 -10
- package/bundles/acorex-components.umd.js.map +1 -1
- package/bundles/acorex-components.umd.min.js +1 -1
- package/bundles/acorex-components.umd.min.js.map +1 -1
- package/esm2015/lib/selectbox/selectbox.component.js +10 -9
- package/esm5/lib/selectbox/selectbox.component.js +13 -11
- package/fesm2015/acorex-components.js +9 -8
- package/fesm2015/acorex-components.js.map +1 -1
- package/fesm5/acorex-components.js +12 -10
- package/fesm5/acorex-components.js.map +1 -1
- package/package.json +1 -1
|
@@ -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
|
-
|
|
8494
|
-
|
|
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,
|
|
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[
|
|
8499
|
+
vv_1.push(rc[_this.valueField]);
|
|
8501
8500
|
});
|
|
8502
|
-
_this.
|
|
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
|
}
|