@trudb/tru-common-lib 0.2.45 → 0.2.47

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.
@@ -5864,9 +5864,9 @@ class TruDataGridCellRenderer {
5864
5864
  e.target.classList.contains('invalid-flag') ? this.validationContainer.classList.toggle('show') : this.validationContainer.classList.remove('show');
5865
5865
  };
5866
5866
  onRightClick = (event) => {
5867
- //event.stopPropagation();
5868
- //event.preventDefault();
5869
- //alert('Cell Clicked');
5867
+ event.stopPropagation();
5868
+ event.preventDefault();
5869
+ alert('Cell Clicked');
5870
5870
  };
5871
5871
  init(params) {
5872
5872
  params.eGridCell.innerHTML = '';
@@ -5943,7 +5943,7 @@ class TruDataGridPkeyCellRenderer {
5943
5943
  this.copyIsDisabled = this.params.api.getSelectedRows().length ? false : true;
5944
5944
  this.pasteIsDisabled = this.dataGridClipboard.getCopiedRows().length && this.params.api.getSelectedRows().length ? false : true;
5945
5945
  this.contextMenuPosition.x = event.pageX + 'px';
5946
- this.contextMenuPosition.y = (event.pageY - 130) + 'px';
5946
+ this.contextMenuPosition.y = (event.pageY) + 'px';
5947
5947
  this.contextMenu.menu?.focusFirstItem('mouse');
5948
5948
  this.contextMenu.openMenu();
5949
5949
  };
@@ -5995,9 +5995,7 @@ class TruDataGridPkeyCellRenderer {
5995
5995
  }
5996
5996
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.3", ngImport: i0, type: TruDataGridPkeyCellRenderer, deps: [{ token: TruDataGridClipboard }, { token: TruUtil }], target: i0.ɵɵFactoryTarget.Component });
5997
5997
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.3", type: TruDataGridPkeyCellRenderer, isStandalone: true, selector: "ng-component", viewQueries: [{ propertyName: "contextMenu", first: true, predicate: MatMenuTrigger, descendants: true }], ngImport: i0, template: `<div (contextmenu)="onRightClick($event)">{{displayValue}}
5998
- <div style="visibility: hidden; position: fixed"
5999
- [style.left]="contextMenuPosition.x"
6000
- [style.top]="contextMenuPosition.y"
5998
+ <div style="visibility: hidden; position: absolute"
6001
5999
  [matMenuTriggerFor]="truDataGridContextMenu">
6002
6000
  </div>
6003
6001
  <mat-menu #truDataGridContextMenu="matMenu">
@@ -6026,9 +6024,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.3", ngImpor
6026
6024
  MatButtonModule,
6027
6025
  MatMenuModule
6028
6026
  ], changeDetection: ChangeDetectionStrategy.OnPush, template: `<div (contextmenu)="onRightClick($event)">{{displayValue}}
6029
- <div style="visibility: hidden; position: fixed"
6030
- [style.left]="contextMenuPosition.x"
6031
- [style.top]="contextMenuPosition.y"
6027
+ <div style="visibility: hidden; position: absolute"
6032
6028
  [matMenuTriggerFor]="truDataGridContextMenu">
6033
6029
  </div>
6034
6030
  <mat-menu #truDataGridContextMenu="matMenu">
@@ -7528,7 +7524,7 @@ class TruDataGrid {
7528
7524
  this.validationDialog.destroy();
7529
7525
  }
7530
7526
  onRightClick(event) {
7531
- //event.preventDefault();
7527
+ event.preventDefault();
7532
7528
  }
7533
7529
  onSearch = (setupQuery) => {
7534
7530
  this.firstSearchRan = true;