@sd-angular/core 1.0.68 → 1.0.69

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.
@@ -2468,15 +2468,23 @@
2468
2468
  });
2469
2469
  }); };
2470
2470
  this.onSelect = function (rowData) {
2471
- var _a, _b, _c;
2472
- if ((_a = _this.gridOption.selection) === null || _a === void 0 ? void 0 : _a.single) {
2473
- _this.items.filter(function (e) { return e !== rowData; }).forEach(function (e) { return e.isSelected = false; });
2471
+ var _a, _b, _c, _d, _e, _f, _g, _h;
2472
+ if ((_b = (_a = rowData === null || rowData === void 0 ? void 0 : rowData.sdGroup) === null || _a === void 0 ? void 0 : _a.items) === null || _b === void 0 ? void 0 : _b.length) {
2473
+ (_c = rowData === null || rowData === void 0 ? void 0 : rowData.sdGroup) === null || _c === void 0 ? void 0 : _c.items.forEach(function (e) { return e.isSelected = rowData.isSelected; });
2474
+ (_e = (_d = _this.gridOption.selection) === null || _d === void 0 ? void 0 : _d.onSelect) === null || _e === void 0 ? void 0 : _e.call(_d, rowData, _this.items.filter(function (e) { return e.isSelected; }));
2475
+ _this.isSelectAll = _this.items.every(function (e) { return e.isSelected; });
2476
+ __classPrivateFieldGet(_this, _updateSelectedItems).call(_this);
2477
+ }
2478
+ else {
2479
+ if ((_f = _this.gridOption.selection) === null || _f === void 0 ? void 0 : _f.single) {
2480
+ _this.items.filter(function (e) { return e !== rowData; }).forEach(function (e) { return e.isSelected = false; });
2481
+ __classPrivateFieldGet(_this, _updateSelectedItems).call(_this);
2482
+ return;
2483
+ }
2484
+ (_h = (_g = _this.gridOption.selection) === null || _g === void 0 ? void 0 : _g.onSelect) === null || _h === void 0 ? void 0 : _h.call(_g, rowData, _this.items.filter(function (e) { return e.isSelected; }));
2485
+ _this.isSelectAll = _this.items.every(function (e) { return e.isSelected; });
2474
2486
  __classPrivateFieldGet(_this, _updateSelectedItems).call(_this);
2475
- return;
2476
2487
  }
2477
- (_c = (_b = _this.gridOption.selection) === null || _b === void 0 ? void 0 : _b.onSelect) === null || _c === void 0 ? void 0 : _c.call(_b, rowData, _this.items.filter(function (e) { return e.isSelected; }));
2478
- _this.isSelectAll = _this.items.every(function (e) { return e.isSelected; });
2479
- __classPrivateFieldGet(_this, _updateSelectedItems).call(_this);
2480
2488
  };
2481
2489
  this.onSelectAll = function () {
2482
2490
  var _a, _b, _c;