@sd-angular/core 1.0.66 → 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.
Files changed (35) hide show
  1. package/bundles/sd-angular-core-grid-material.umd.js +15 -7
  2. package/bundles/sd-angular-core-grid-material.umd.js.map +1 -1
  3. package/bundles/sd-angular-core-grid-material.umd.min.js +1 -1
  4. package/bundles/sd-angular-core-grid-material.umd.min.js.map +1 -1
  5. package/bundles/sd-angular-core-popover.umd.js +17 -1
  6. package/bundles/sd-angular-core-popover.umd.js.map +1 -1
  7. package/bundles/sd-angular-core-popover.umd.min.js +2 -2
  8. package/bundles/sd-angular-core-popover.umd.min.js.map +1 -1
  9. package/bundles/sd-angular-core-select.umd.js +3 -0
  10. package/bundles/sd-angular-core-select.umd.js.map +1 -1
  11. package/bundles/sd-angular-core-select.umd.min.js +1 -1
  12. package/bundles/sd-angular-core-select.umd.min.js.map +1 -1
  13. package/bundles/sd-angular-core-setting.umd.js +30 -8
  14. package/bundles/sd-angular-core-setting.umd.js.map +1 -1
  15. package/bundles/sd-angular-core-setting.umd.min.js +1 -1
  16. package/bundles/sd-angular-core-setting.umd.min.js.map +1 -1
  17. package/esm2015/grid-material/src/lib/grid-material.component.js +16 -8
  18. package/esm2015/grid-material/src/lib/models/grid.model.js +1 -1
  19. package/esm2015/popover/src/lib/popover/popover.component.js +19 -3
  20. package/esm2015/select/src/lib/select.component.js +4 -1
  21. package/esm2015/setting/src/lib/setting.service.js +31 -9
  22. package/fesm2015/sd-angular-core-grid-material.js +15 -7
  23. package/fesm2015/sd-angular-core-grid-material.js.map +1 -1
  24. package/fesm2015/sd-angular-core-popover.js +17 -1
  25. package/fesm2015/sd-angular-core-popover.js.map +1 -1
  26. package/fesm2015/sd-angular-core-select.js +3 -0
  27. package/fesm2015/sd-angular-core-select.js.map +1 -1
  28. package/fesm2015/sd-angular-core-setting.js +30 -8
  29. package/fesm2015/sd-angular-core-setting.js.map +1 -1
  30. package/grid-material/src/lib/grid-material.component.d.ts +1 -1
  31. package/grid-material/src/lib/models/grid.model.d.ts +3 -3
  32. package/package.json +1 -1
  33. package/popover/sd-angular-core-popover.metadata.json +1 -1
  34. package/popover/src/lib/popover/popover.component.d.ts +4 -2
  35. package/{sd-angular-core-1.0.66.tgz → sd-angular-core-1.0.69.tgz} +0 -0
@@ -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;