novo-elements 6.0.3 → 6.0.4
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/novo-elements.umd.js +12 -2
- package/bundles/novo-elements.umd.js.map +1 -1
- package/bundles/novo-elements.umd.min.js +1 -1
- package/bundles/novo-elements.umd.min.js.map +1 -1
- package/esm2015/src/elements/data-table/cell-headers/data-table-checkbox-header-cell.component.js +13 -3
- package/fesm2015/novo-elements.js +12 -2
- package/fesm2015/novo-elements.js.map +1 -1
- package/package.json +1 -1
- package/schematics/package.json +1 -1
- package/src/elements/data-table/cell-headers/data-table-checkbox-header-cell.component.d.ts +1 -0
|
@@ -36146,7 +36146,7 @@
|
|
|
36146
36146
|
var _a;
|
|
36147
36147
|
_this.checked = false;
|
|
36148
36148
|
if ((_a = _this.dataTable) === null || _a === void 0 ? void 0 : _a.canSelectAll) {
|
|
36149
|
-
_this.
|
|
36149
|
+
_this.resetAllMatchingSelected();
|
|
36150
36150
|
}
|
|
36151
36151
|
_this.ref.markForCheck();
|
|
36152
36152
|
});
|
|
@@ -36184,9 +36184,19 @@
|
|
|
36184
36184
|
this.dataTable.selectRows(!this.checked);
|
|
36185
36185
|
}
|
|
36186
36186
|
if ((_a = this.dataTable) === null || _a === void 0 ? void 0 : _a.canSelectAll) {
|
|
36187
|
-
this.
|
|
36187
|
+
if (this.checked) {
|
|
36188
|
+
this.resetAllMatchingSelected();
|
|
36189
|
+
}
|
|
36190
|
+
else {
|
|
36191
|
+
this.selectAllChanged();
|
|
36192
|
+
}
|
|
36188
36193
|
}
|
|
36189
36194
|
};
|
|
36195
|
+
NovoDataTableCheckboxHeaderCell.prototype.resetAllMatchingSelected = function () {
|
|
36196
|
+
var _a, _b, _c;
|
|
36197
|
+
(_b = (_a = this.dataTable.state) === null || _a === void 0 ? void 0 : _a.allMatchingSelectedSource) === null || _b === void 0 ? void 0 : _b.next(false);
|
|
36198
|
+
(_c = this.dataTable.state) === null || _c === void 0 ? void 0 : _c.onSelectionChange();
|
|
36199
|
+
};
|
|
36190
36200
|
NovoDataTableCheckboxHeaderCell.prototype.selectAllChanged = function () {
|
|
36191
36201
|
var _a, _b, _c, _d;
|
|
36192
36202
|
var allSelectedEvent = {
|