@fuentis/phoenix-ui 0.0.9-alpha.239 → 0.0.9-alpha.240
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.
|
@@ -1759,7 +1759,9 @@ class TableCaptionComponent {
|
|
|
1759
1759
|
this.applyFilters();
|
|
1760
1760
|
});
|
|
1761
1761
|
}
|
|
1762
|
-
|
|
1762
|
+
const filterVisibleColumns = this.columns.filter((c) => !c.hidden);
|
|
1763
|
+
this._selectedColumns = filterVisibleColumns;
|
|
1764
|
+
console.log(filterVisibleColumns);
|
|
1763
1765
|
if (this._selectedColumns) {
|
|
1764
1766
|
this.globalFilterFields = this._selectedColumns
|
|
1765
1767
|
.filter((sc) => sc.columnType === tableColumnType.TEXT && sc.filter === undefined)
|
|
@@ -1799,6 +1801,9 @@ class TableCaptionComponent {
|
|
|
1799
1801
|
this.selectedColumns = JSON.parse(stored);
|
|
1800
1802
|
}
|
|
1801
1803
|
}
|
|
1804
|
+
const selectedColumnKeys = this._selectedColumns.map((col) => col.field);
|
|
1805
|
+
this.applyColumnsEvent.emit(selectedColumnKeys);
|
|
1806
|
+
// this.selectedColumns = JSON.parse(this._selectedColumns);
|
|
1802
1807
|
}
|
|
1803
1808
|
hasFormValues() {
|
|
1804
1809
|
const formValues = this.filtersForm.value;
|
|
@@ -2054,7 +2059,6 @@ class TableComponent {
|
|
|
2054
2059
|
const order = sortMeta.order;
|
|
2055
2060
|
let valueA = this.getComparableValue(this.getNestedValue(a, field), field);
|
|
2056
2061
|
let valueB = this.getComparableValue(this.getNestedValue(b, field), field);
|
|
2057
|
-
console.log(`[SORT] ${field}:`, valueA, valueB);
|
|
2058
2062
|
if (valueA < valueB)
|
|
2059
2063
|
return -1 * order;
|
|
2060
2064
|
if (valueA > valueB)
|
|
@@ -2209,7 +2213,6 @@ class TableComponent {
|
|
|
2209
2213
|
}
|
|
2210
2214
|
}
|
|
2211
2215
|
applyColumns(selected) {
|
|
2212
|
-
console.log('trigg');
|
|
2213
2216
|
this.selectedColumns = this.columns.filter((col) => selected.includes(col.field));
|
|
2214
2217
|
}
|
|
2215
2218
|
onRowClick(event, rowData) {
|