@stemy/ngx-utils 19.2.18 → 19.2.20
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.
|
@@ -5946,7 +5946,6 @@ class DropdownContentDirective {
|
|
|
5946
5946
|
let width = 0;
|
|
5947
5947
|
let height = 0;
|
|
5948
5948
|
entries.forEach(entry => {
|
|
5949
|
-
console.log(entry);
|
|
5950
5949
|
if (!entry.contentRect)
|
|
5951
5950
|
return;
|
|
5952
5951
|
width = Math.max(width, entry.contentRect.width);
|
|
@@ -6384,7 +6383,7 @@ class DynamicTableComponent {
|
|
|
6384
6383
|
}, {});
|
|
6385
6384
|
this.cols = Object.keys(this.realColumns);
|
|
6386
6385
|
const sortable = this.cols.filter(c => this.realColumns[c].sort);
|
|
6387
|
-
this.orderBy = this.orderBy
|
|
6386
|
+
this.orderBy = sortable.includes(this.orderBy) ? this.orderBy : sortable[0] || null;
|
|
6388
6387
|
this.query = {};
|
|
6389
6388
|
this.setProperty("cell-width", MathUtils.round(100 / this.cols.length, 4) + "%");
|
|
6390
6389
|
}
|