@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.
- package/bundles/sd-angular-core-grid-material.umd.js +15 -7
- package/bundles/sd-angular-core-grid-material.umd.js.map +1 -1
- package/bundles/sd-angular-core-grid-material.umd.min.js +1 -1
- package/bundles/sd-angular-core-grid-material.umd.min.js.map +1 -1
- package/bundles/sd-angular-core-popover.umd.js +17 -1
- package/bundles/sd-angular-core-popover.umd.js.map +1 -1
- package/bundles/sd-angular-core-popover.umd.min.js +2 -2
- package/bundles/sd-angular-core-popover.umd.min.js.map +1 -1
- package/esm2015/grid-material/src/lib/grid-material.component.js +16 -8
- package/esm2015/grid-material/src/lib/models/grid.model.js +1 -1
- package/esm2015/popover/src/lib/popover/popover.component.js +19 -3
- package/fesm2015/sd-angular-core-grid-material.js +15 -7
- package/fesm2015/sd-angular-core-grid-material.js.map +1 -1
- package/fesm2015/sd-angular-core-popover.js +17 -1
- package/fesm2015/sd-angular-core-popover.js.map +1 -1
- package/grid-material/src/lib/grid-material.component.d.ts +1 -1
- package/grid-material/src/lib/models/grid.model.d.ts +3 -3
- package/package.json +1 -1
- package/popover/sd-angular-core-popover.metadata.json +1 -1
- package/popover/src/lib/popover/popover.component.d.ts +4 -2
- package/{sd-angular-core-1.0.68.tgz → sd-angular-core-1.0.69.tgz} +0 -0
|
@@ -1688,15 +1688,23 @@ class SdGridMaterial {
|
|
|
1688
1688
|
}
|
|
1689
1689
|
});
|
|
1690
1690
|
this.onSelect = (rowData) => {
|
|
1691
|
-
var _a, _b, _c;
|
|
1692
|
-
if ((_a =
|
|
1693
|
-
|
|
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;
|