@trudb/tru-common-lib 0.2.44 → 0.2.46

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,7 +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"
5998
+ <div style="visibility: hidden; position: absolute"
5999
5999
  [style.left]="contextMenuPosition.x"
6000
6000
  [style.top]="contextMenuPosition.y"
6001
6001
  [matMenuTriggerFor]="truDataGridContextMenu">
@@ -6026,7 +6026,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.3", ngImpor
6026
6026
  MatButtonModule,
6027
6027
  MatMenuModule
6028
6028
  ], changeDetection: ChangeDetectionStrategy.OnPush, template: `<div (contextmenu)="onRightClick($event)">{{displayValue}}
6029
- <div style="visibility: hidden; position: fixed"
6029
+ <div style="visibility: hidden; position: absolute"
6030
6030
  [style.left]="contextMenuPosition.x"
6031
6031
  [style.top]="contextMenuPosition.y"
6032
6032
  [matMenuTriggerFor]="truDataGridContextMenu">