@acorex/components 1.3.92 → 1.3.93
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/bundles/acorex-components.umd.js +4 -3
- 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 +4 -4
- package/esm5/lib/selectbox/selectbox.component.js +5 -4
- package/fesm2015/acorex-components.js +3 -3
- package/fesm2015/acorex-components.js.map +1 -1
- package/fesm5/acorex-components.js +4 -3
- package/fesm5/acorex-components.js.map +1 -1
- package/lib/selectbox/selectbox.component.d.ts +1 -1
- package/package.json +1 -1
|
@@ -8323,12 +8323,13 @@ var AXSelectBoxComponent = /** @class */ (function (_super) {
|
|
|
8323
8323
|
enumerable: true,
|
|
8324
8324
|
configurable: true
|
|
8325
8325
|
});
|
|
8326
|
-
AXSelectBoxComponent.prototype.setSelectedItemsChange = function (v) {
|
|
8326
|
+
AXSelectBoxComponent.prototype.setSelectedItemsChange = function (v, old) {
|
|
8327
8327
|
var _this = this;
|
|
8328
|
+
if (old === void 0) { old = this.selectedItems; }
|
|
8328
8329
|
if (!v) {
|
|
8329
8330
|
v = [];
|
|
8330
8331
|
}
|
|
8331
|
-
|
|
8332
|
+
// const old = this.selectedItems;
|
|
8332
8333
|
if (JSON.stringify(old) !== JSON.stringify(v)) {
|
|
8333
8334
|
this._selectedItems = this.mode == 'single' ? v.slice(0, 1) : __spread(new Set(v)); //[...new Set(v[0])] : [...new Set(v)];
|
|
8334
8335
|
this._selectedItems.forEach(function (c) { return (c.selected = true); });
|
|
@@ -8510,7 +8511,7 @@ var AXSelectBoxComponent = /** @class */ (function (_super) {
|
|
|
8510
8511
|
_this.selectedItems.push(res);
|
|
8511
8512
|
});
|
|
8512
8513
|
// this.selectedItems.push(this.items.filter((c) => vv.includes(c[this.valueField])));
|
|
8513
|
-
_this.setSelectedItemsChange(_this.selectedItems);
|
|
8514
|
+
_this.setSelectedItemsChange(_this.selectedItems, vv_1.length > 0 ? [1] : _this.selectedItems);
|
|
8514
8515
|
}
|
|
8515
8516
|
// this.selectedItems = this.items.filter((c) => v.includes(c[this.valueField]));
|
|
8516
8517
|
}
|