ps-toolkit-ui 1.19.53 → 1.19.54
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/ps-toolkit-ui.umd.js +7 -5
- package/bundles/ps-toolkit-ui.umd.js.map +1 -1
- package/bundles/ps-toolkit-ui.umd.min.js +1 -1
- package/bundles/ps-toolkit-ui.umd.min.js.map +1 -1
- package/esm2015/lib/components/table/table.component.js +8 -6
- package/fesm2015/ps-toolkit-ui.js +7 -5
- package/fesm2015/ps-toolkit-ui.js.map +1 -1
- package/package.json +1 -1
|
@@ -4052,17 +4052,19 @@
|
|
|
4052
4052
|
};
|
|
4053
4053
|
};
|
|
4054
4054
|
TableComponent.prototype.allChecked = function () {
|
|
4055
|
-
return this.table.rows.filter(function (x) { return !x.
|
|
4055
|
+
return this.table.rows.filter(function (x) { return !x.checked; }).length === 0;
|
|
4056
4056
|
};
|
|
4057
4057
|
TableComponent.prototype.isChecked = function () {
|
|
4058
|
-
return this.table.rows.filter(function (x) { return x.
|
|
4058
|
+
return this.table.rows.filter(function (x) { return x.checked; }).length > 0;
|
|
4059
4059
|
};
|
|
4060
4060
|
TableComponent.prototype.checkAll = function () {
|
|
4061
|
-
|
|
4062
|
-
|
|
4061
|
+
console.log(this.table.rows);
|
|
4062
|
+
console.log(this.table.rows.filter(function (x) { return !x.checked; }));
|
|
4063
|
+
if (this.table.rows.filter(function (x) { return !x.checked; }).length === 0) {
|
|
4064
|
+
this.table.rows.forEach(function (x) { return x.checked = false; });
|
|
4063
4065
|
}
|
|
4064
4066
|
else {
|
|
4065
|
-
this.table.rows.forEach(function (x) { return x.
|
|
4067
|
+
this.table.rows.forEach(function (x) { return x.checked = true; });
|
|
4066
4068
|
}
|
|
4067
4069
|
};
|
|
4068
4070
|
TableComponent.prototype.getOptions = function () {
|