@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.
- package/core/data-grid/data-grid.model.d.ts +2 -0
- package/core/data-grid/data-grid.model.d.ts.map +1 -1
- package/core/data-grid/data-grid.service.d.ts.map +1 -1
- package/device-profile/device-profile.component.d.ts +3 -1
- package/device-profile/device-profile.component.d.ts.map +1 -1
- package/device-profile/device-profile.service.d.ts +25 -0
- package/device-profile/device-profile.service.d.ts.map +1 -1
- package/device-profile/device-tab-profile/device-tab-profile.component.d.ts +7 -10
- package/device-profile/device-tab-profile/device-tab-profile.component.d.ts.map +1 -1
- package/esm2022/core/data-grid/data-grid.model.mjs +1 -1
- package/esm2022/core/data-grid/data-grid.service.mjs +5 -2
- package/esm2022/device-profile/device-profile.component.mjs +14 -10
- package/esm2022/device-profile/device-profile.service.mjs +58 -2
- package/esm2022/device-profile/device-tab-profile/device-tab-profile.component.mjs +40 -34
- package/fesm2022/c8y-ngx-components-device-profile.mjs +107 -43
- package/fesm2022/c8y-ngx-components-device-profile.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components.mjs +4 -1
- package/fesm2022/c8y-ngx-components.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -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
|
-
|
|
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
|
});
|