-
-
+ |
+
@@ -95,13 +96,13 @@
|
+ [selected]="rowIsSelected(record)"
+ (select)="onRowSelect(record)"
+ (click)="onRowClick(record)">
diff --git a/packages/common/src/lib/entity/entity-table/entity-table.component.ts b/packages/common/src/lib/entity/entity-table/entity-table.component.ts
index ce326a5f60..e9ae8fcae2 100644
--- a/packages/common/src/lib/entity/entity-table/entity-table.component.ts
+++ b/packages/common/src/lib/entity/entity-table/entity-table.component.ts
@@ -5,18 +5,16 @@ import {
EventEmitter,
ChangeDetectionStrategy,
ChangeDetectorRef,
- SimpleChanges,
OnInit,
- OnDestroy,
- OnChanges
+ OnDestroy
} from '@angular/core';
import { BehaviorSubject, Subscription } from 'rxjs';
import {
EntityRecord,
+ EntityState,
EntityStore,
- EntityStoreWatcher,
EntityTableTemplate,
EntityTableColumn,
EntityTableColumnRenderer,
@@ -30,7 +28,7 @@ import {
styleUrls: ['./entity-table.component.scss'],
changeDetection: ChangeDetectionStrategy.OnPush
})
-export class EntityTableComponent implements OnInit, OnDestroy, OnChanges {
+export class EntityTableComponent implements OnInit, OnDestroy {
/**
* Reference to the column renderer types
@@ -39,7 +37,7 @@ export class EntityTableComponent implements OnInit, OnDestroy, OnChanges {
entityTableColumnRenderer = EntityTableColumnRenderer;
/**
- * Reference to the selection states
+ * Reference to the selection's state
* @internal
*/
entityTableSelectionState = EntityTableSelectionState;
@@ -48,12 +46,7 @@ export class EntityTableComponent implements OnInit, OnDestroy, OnChanges {
* Observable of the selection,s state
* @internal
*/
- selectionState$: BehaviorSubject = new BehaviorSubject(undefined);
-
- /**
- * Entity store watcher
- */
- private watcher: EntityStoreWatcher