ps-toolkit-ui 1.19.52 → 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 -6
- 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 -7
- package/fesm2015/ps-toolkit-ui.js +7 -6
- package/fesm2015/ps-toolkit-ui.js.map +1 -1
- package/package.json +1 -1
|
@@ -4023,7 +4023,6 @@
|
|
|
4023
4023
|
return;
|
|
4024
4024
|
}
|
|
4025
4025
|
_this.table.load(x);
|
|
4026
|
-
$__namespace(_this.tableDiv.nativeElement).removeClass('show-expert-search');
|
|
4027
4026
|
};
|
|
4028
4027
|
// this.table.searchForm.submit = () => {
|
|
4029
4028
|
// console.log('this.table.searchForm.submit');
|
|
@@ -4053,17 +4052,19 @@
|
|
|
4053
4052
|
};
|
|
4054
4053
|
};
|
|
4055
4054
|
TableComponent.prototype.allChecked = function () {
|
|
4056
|
-
return this.table.rows.filter(function (x) { return !x.
|
|
4055
|
+
return this.table.rows.filter(function (x) { return !x.checked; }).length === 0;
|
|
4057
4056
|
};
|
|
4058
4057
|
TableComponent.prototype.isChecked = function () {
|
|
4059
|
-
return this.table.rows.filter(function (x) { return x.
|
|
4058
|
+
return this.table.rows.filter(function (x) { return x.checked; }).length > 0;
|
|
4060
4059
|
};
|
|
4061
4060
|
TableComponent.prototype.checkAll = function () {
|
|
4062
|
-
|
|
4063
|
-
|
|
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; });
|
|
4064
4065
|
}
|
|
4065
4066
|
else {
|
|
4066
|
-
this.table.rows.forEach(function (x) { return x.
|
|
4067
|
+
this.table.rows.forEach(function (x) { return x.checked = true; });
|
|
4067
4068
|
}
|
|
4068
4069
|
};
|
|
4069
4070
|
TableComponent.prototype.getOptions = function () {
|