@trudb/tru-common-lib 0.2.332 → 0.2.334

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.
@@ -7836,14 +7836,6 @@ class TruDataGrid {
7836
7836
  this.api.applyTransaction({ remove: rowNodesToRemove });
7837
7837
  }
7838
7838
  }));
7839
- // Listen for entities added elsewhere in the app
7840
- // Merge this logic with addEntity() logic below
7841
- // Three ways to add: Directly via toolbar, signalR, or listen for entity added event
7842
- this.subs.push(this.dataContext.onEntityAdded().subscribe((changeArgs) => {
7843
- if (!changeArgs.entity)
7844
- return;
7845
- this.addEntity(changeArgs.entity);
7846
- }));
7847
7839
  this.subs.push(fromEvent(document, 'keydown').subscribe((event) => {
7848
7840
  if (this.config.view.active && this.config.view.window.active) {
7849
7841
  if (event.code === 'Space' && event.target.classList.contains('ag-cell-value')) {
@@ -8235,7 +8227,7 @@ class TruDataGrid {
8235
8227
  return true;
8236
8228
  };
8237
8229
  onAdd = () => {
8238
- this.addEntity(this.dataContext.entityAccess().add(this.config.resultConfig.entityType));
8230
+ this.dataContext.entityAccess().add(this.config.resultConfig.entityType);
8239
8231
  };
8240
8232
  onDelete = () => {
8241
8233
  let selectedRows = this.api.getSelectedRows();