ud-components 0.5.35 → 0.5.36
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.
|
@@ -1243,7 +1243,7 @@ class CustomTableComponent {
|
|
|
1243
1243
|
const column = this.displayedColumns.find(col => this.controlKey(col.property) === key);
|
|
1244
1244
|
if (!column)
|
|
1245
1245
|
return true;
|
|
1246
|
-
const dataValue = data
|
|
1246
|
+
const dataValue = this.resolveValue(data, column.property);
|
|
1247
1247
|
// TEXTS
|
|
1248
1248
|
if ([
|
|
1249
1249
|
TableDisplayColumnType.TEXT,
|
|
@@ -1754,6 +1754,11 @@ class CustomTableComponent {
|
|
|
1754
1754
|
}
|
|
1755
1755
|
}
|
|
1756
1756
|
});
|
|
1757
|
+
currentControls.forEach(controlName => {
|
|
1758
|
+
if (!this.selectedFilters.some(filter => this.controlKey(filter.property) === controlName)) {
|
|
1759
|
+
this.filterByColumnFormGroup.removeControl(controlName, { emitEvent: false });
|
|
1760
|
+
}
|
|
1761
|
+
});
|
|
1757
1762
|
}
|
|
1758
1763
|
}
|
|
1759
1764
|
setEmptyMessage() {
|
|
@@ -1775,6 +1780,10 @@ class CustomTableComponent {
|
|
|
1775
1780
|
controlKey(property) {
|
|
1776
1781
|
return property.replace(/\./g, '__');
|
|
1777
1782
|
}
|
|
1783
|
+
/** Resolves a (possibly dot-notation) property path against a data row. */
|
|
1784
|
+
resolveValue(data, property) {
|
|
1785
|
+
return property.split('.').reduce((obj, key) => obj?.[key], data);
|
|
1786
|
+
}
|
|
1778
1787
|
hasFilterValue(property) {
|
|
1779
1788
|
const control = this.filterByColumnFormGroup.controls[this.controlKey(property)];
|
|
1780
1789
|
if (!control)
|