@c8y/ngx-components 1021.35.1 → 1021.36.0

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.
@@ -30999,7 +30999,8 @@ class DataGridService {
30999
30999
  const customColumns = config.columns
31000
31000
  .filter(col => col.custom)
31001
31001
  .map((col) => new CustomColumn(col));
31002
- const allColumns = [...columns, ...customColumns];
31002
+ // Avoid config properties to be applied to the original column object by creating shallow copy of columns
31003
+ const allColumns = [...columns.map(col => ({ ...col })), ...customColumns];
31003
31004
  noConfigColumns = allColumns.filter(col => !config.columns.some(configCol => col.name === configCol.name));
31004
31005
  config.columns.forEach(({ visible, name, sortOrder, filter }) => {
31005
31006
  const columnToReorder = allColumns.find(col => col.name === name);
@@ -31008,6 +31009,8 @@ class DataGridService {
31008
31009
  columnToReorder.sortOrder = sortOrder;
31009
31010
  columnToReorder.externalFilterQuery =
31010
31011
  columnToReorder.externalFilterQuery ?? filter?.externalFilterQuery;
31012
+ columnToReorder.filterPredicate =
31013
+ columnToReorder.filterPredicate ?? filter?.filterPredicate;
31011
31014
  reOrderedColumns.push(columnToReorder);
31012
31015
  }
31013
31016
  });