ngx-deebodata 0.2.5 → 0.2.7
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.
|
@@ -724,6 +724,10 @@ class DataTableService {
|
|
|
724
724
|
if (ddVals && ddVals.length) {
|
|
725
725
|
const chkdVs = ddVals.filter((d) => d.checked).
|
|
726
726
|
map((v) => typeof v.value === "string" ? v.value.toLocaleLowerCase() : v.value);
|
|
727
|
+
if (chkdVs.length === ddVals.length) {
|
|
728
|
+
chkdVs.push(null);
|
|
729
|
+
chkdVs.push("");
|
|
730
|
+
}
|
|
727
731
|
return chkdVs.indexOf(colVal) > -1;
|
|
728
732
|
}
|
|
729
733
|
else {
|
|
@@ -741,6 +745,10 @@ class DataTableService {
|
|
|
741
745
|
if (ddVals && ddVals.length) {
|
|
742
746
|
const chkdVs = ddVals.filter((d) => d.checked).
|
|
743
747
|
map((v) => typeof v.value === "string" ? v.value.toLocaleLowerCase() : v.value);
|
|
748
|
+
if (chkdVs.length === ddVals.length) {
|
|
749
|
+
chkdVs.push(null);
|
|
750
|
+
chkdVs.push("");
|
|
751
|
+
}
|
|
744
752
|
return chkdVs.indexOf(colVal) > -1;
|
|
745
753
|
}
|
|
746
754
|
else {
|
|
@@ -5247,7 +5255,7 @@ class NgxDeebodata {
|
|
|
5247
5255
|
}
|
|
5248
5256
|
return nData;
|
|
5249
5257
|
}
|
|
5250
|
-
setRowSelChecksPlacement(
|
|
5258
|
+
setRowSelChecksPlacement() {
|
|
5251
5259
|
let i = 0;
|
|
5252
5260
|
const radd = 12;
|
|
5253
5261
|
const els = document.getElementsByClassName("select-row-check");
|
|
@@ -5276,8 +5284,6 @@ class NgxDeebodata {
|
|
|
5276
5284
|
}
|
|
5277
5285
|
}
|
|
5278
5286
|
this.setRowNumbers();
|
|
5279
|
-
if (timeoutRowNs)
|
|
5280
|
-
setTimeout(() => { this.setRowNumbers(); });
|
|
5281
5287
|
}
|
|
5282
5288
|
setRowNumbers() {
|
|
5283
5289
|
const rlen = this.rows.length;
|
|
@@ -6036,7 +6042,8 @@ class NgxDeebodata {
|
|
|
6036
6042
|
const tbl = this.dataTableBody.nativeElement;
|
|
6037
6043
|
const defNum = parseInt(this.dataTableService.defltRHgt.replace(/[ ]?px/g, ""));
|
|
6038
6044
|
tbl.scrollTop = ind * defNum;
|
|
6039
|
-
|
|
6045
|
+
this._cd.markForCheck();
|
|
6046
|
+
setTimeout(() => { this.setRowSelChecksPlacement(); this._cd.detectChanges(); });
|
|
6040
6047
|
}
|
|
6041
6048
|
}
|
|
6042
6049
|
scrollToRowGroup(rClass) {
|