From fc4012dbcdaaa4e13ebc677bf8da3f99c9fd9bab Mon Sep 17 00:00:00 2001
From: Akaki <31448057+khotcholava@users.noreply.github.com>
Date: Fri, 20 Dec 2024 18:46:31 +0400
Subject: [PATCH] feat(platform): table filter closes
[#11783](https://github.com/SAP/fundamental-ngx/issues/11783)
- Fixed formatting
## Before
## After
---
libs/platform/table-helpers/services/table.service.ts | 8 ++++----
.../filtering/filter-step.component.ts | 1 -
libs/platform/table/table.component.ts | 1 -
3 files changed, 4 insertions(+), 6 deletions(-)
diff --git a/libs/platform/table-helpers/services/table.service.ts b/libs/platform/table-helpers/services/table.service.ts
index e73f30868be..22cefcc8ceb 100644
--- a/libs/platform/table-helpers/services/table.service.ts
+++ b/libs/platform/table-helpers/services/table.service.ts
@@ -6,6 +6,7 @@ import { skip } from 'rxjs/operators';
import { DEFAULT_TABLE_STATE } from '../constants';
import { toSignal } from '@angular/core/rxjs-interop';
+import { Nullable } from '@fundamental-ngx/cdk/utils';
import { CollectionFilter, CollectionGroup, CollectionPage, CollectionSort, TableState } from '../interfaces';
import {
ColumnsChange,
@@ -17,7 +18,6 @@ import {
SortChange
} from '../models';
import { TableColumn } from '../table-column';
-import { Nullable } from '@fundamental-ngx/cdk';
export type TableStateChange =
| TableStateProperty<'sort', SortChange>
@@ -191,9 +191,9 @@ export class TableService {
const newFilterRules: CollectionFilter[] = filterRules
? filterRules.map((rule) => ({
- ...rule,
- fieldName: this._getFieldName(rule.field, rule.fieldName)
- }))
+ ...rule,
+ fieldName: this._getFieldName(rule.field, rule.fieldName)
+ }))
: [];
const state: TableState = { ...prevState, filterBy: newFilterRules };
diff --git a/libs/platform/table/components/table-view-settings-dialog/filtering/filter-step.component.ts b/libs/platform/table/components/table-view-settings-dialog/filtering/filter-step.component.ts
index 907f881b268..28866993491 100644
--- a/libs/platform/table/components/table-view-settings-dialog/filtering/filter-step.component.ts
+++ b/libs/platform/table/components/table-view-settings-dialog/filtering/filter-step.component.ts
@@ -69,7 +69,6 @@ export class FilterStepComponent implements FiltersViewStep {
@Input()
columnName: string;
-
/** Go back event */
@Output()
back: EventEmitter = new EventEmitter();
diff --git a/libs/platform/table/table.component.ts b/libs/platform/table/table.component.ts
index c77b08d9fdb..bb9e014f60b 100644
--- a/libs/platform/table/table.component.ts
+++ b/libs/platform/table/table.component.ts
@@ -1881,7 +1881,6 @@ export class TableComponent
return value.map((val) => this._formatParams(val)).join(', ');
}
-
return Object.entries(value)
.map(([key, val]) => `${key}: ${this._formatParams(val)}`) // Recursive call for nested objects
.join(', ');