From f829f957d4eed0892081a7b04412ad6f69abccce Mon Sep 17 00:00:00 2001 From: Maximilian Koeller Date: Wed, 27 Mar 2024 11:57:20 +0100 Subject: [PATCH] fixup! feat: use proper type for row related properties --- .../src/lib/components/body/body-cell.component.ts | 2 +- .../src/lib/components/body/body-row-wrapper.component.ts | 2 +- .../ngx-datatable/src/lib/components/body/body-row.component.ts | 2 +- .../src/lib/components/body/selection.component.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/projects/ngx-datatable/src/lib/components/body/body-cell.component.ts b/projects/ngx-datatable/src/lib/components/body/body-cell.component.ts index 587cb1918..e764c521e 100644 --- a/projects/ngx-datatable/src/lib/components/body/body-cell.component.ts +++ b/projects/ngx-datatable/src/lib/components/body/body-cell.component.ts @@ -72,7 +72,7 @@ export type TreeStatus = 'collapsed' | 'expanded' | 'loading' | 'disabled'; ` }) -export class DataTableBodyCellComponent implements DoCheck, OnDestroy { +export class DataTableBodyCellComponent implements DoCheck, OnDestroy { @Input() displayCheck: (row: RowOrGroup, column?: TableColumn, value?: any) => boolean; _disable$: BehaviorSubject; diff --git a/projects/ngx-datatable/src/lib/components/body/body-row-wrapper.component.ts b/projects/ngx-datatable/src/lib/components/body/body-row-wrapper.component.ts index 54f73dee6..59076044e 100644 --- a/projects/ngx-datatable/src/lib/components/body/body-row-wrapper.component.ts +++ b/projects/ngx-datatable/src/lib/components/body/body-row-wrapper.component.ts @@ -45,7 +45,7 @@ import { RowOrGroup } from "../../types/group.type"; class: 'datatable-row-wrapper' } }) -export class DataTableRowWrapperComponent implements DoCheck, OnInit { +export class DataTableRowWrapperComponent implements DoCheck, OnInit { @Input() innerWidth: number; @Input() rowDetail: any; @Input() groupHeader: any; diff --git a/projects/ngx-datatable/src/lib/components/body/body-row.component.ts b/projects/ngx-datatable/src/lib/components/body/body-row.component.ts index b361d490b..92ce59dcb 100644 --- a/projects/ngx-datatable/src/lib/components/body/body-row.component.ts +++ b/projects/ngx-datatable/src/lib/components/body/body-row.component.ts @@ -55,7 +55,7 @@ import { RowOrGroup } from "../../types/group.type"; ` }) -export class DataTableBodyRowComponent implements DoCheck { +export class DataTableBodyRowComponent implements DoCheck { @Input() set columns(val: any[]) { this._columns = val; this.recalculateColumns(val); diff --git a/projects/ngx-datatable/src/lib/components/body/selection.component.ts b/projects/ngx-datatable/src/lib/components/body/selection.component.ts index 44d008b22..1457eb665 100644 --- a/projects/ngx-datatable/src/lib/components/body/selection.component.ts +++ b/projects/ngx-datatable/src/lib/components/body/selection.component.ts @@ -17,7 +17,7 @@ export interface Model { template: ` `, changeDetection: ChangeDetectionStrategy.OnPush }) -export class DataTableSelectionComponent { +export class DataTableSelectionComponent { @Input() rows: TRow[]; @Input() selected: TRow[]; @Input() selectEnabled: boolean;