@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.
@@ -1688,15 +1688,23 @@ class SdGridMaterial {
1688
1688
  }
1689
1689
  });
1690
1690
  this.onSelect = (rowData) => {
1691
- var _a, _b, _c;
1692
- if ((_a = this.gridOption.selection) === null || _a === void 0 ? void 0 : _a.single) {
1693
- this.items.filter(e => e !== rowData).forEach(e => e.isSelected = false);
1691
+ var _a, _b, _c, _d, _e, _f, _g, _h;
1692
+ 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) {
1693
+ (_c = rowData === null || rowData === void 0 ? void 0 : rowData.sdGroup) === null || _c === void 0 ? void 0 : _c.items.forEach(e => e.isSelected = rowData.isSelected);
1694
+ (_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(e => e.isSelected));
1695
+ this.isSelectAll = this.items.every(e => e.isSelected);
1696
+ __classPrivateFieldGet(this, _updateSelectedItems).call(this);
1697
+ }
1698
+ else {
1699
+ if ((_f = this.gridOption.selection) === null || _f === void 0 ? void 0 : _f.single) {
1700
+ this.items.filter(e => e !== rowData).forEach(e => e.isSelected = false);
1701
+ __classPrivateFieldGet(this, _updateSelectedItems).call(this);
1702
+ return;
1703
+ }
1704
+ (_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(e => e.isSelected));
1705
+ this.isSelectAll = this.items.every(e => e.isSelected);
1694
1706
  __classPrivateFieldGet(this, _updateSelectedItems).call(this);
1695
- return;
1696
1707
  }
1697
- (_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(e => e.isSelected));
1698
- this.isSelectAll = this.items.every(e => e.isSelected);
1699
- __classPrivateFieldGet(this, _updateSelectedItems).call(this);
1700
1708
  };
1701
1709
  this.onSelectAll = () => {
1702
1710
  var _a, _b, _c;