@alaarab/ogrid-angular-primeng 2.5.2 → 2.5.4

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.
package/dist/esm/index.js CHANGED
@@ -234,6 +234,7 @@ import {INLINE_CELL_EDITOR_STYLES,INLINE_CELL_EDITOR_TEMPLATE,POPOVER_CELL_EDITO
234
234
  [attr.data-empty]="showEmptyInGrid() ? 'true' : null"
235
235
  [attr.data-column-count]="state().layout.totalColCount"
236
236
  [attr.data-overflow-x]="allowOverflowX() ? 'true' : 'false'"
237
+ data-ogrid-scroll-container
237
238
  [attr.data-has-selection]="rowSelectionMode !== 'none' ? 'true' : null"
238
239
  (contextmenu)="$event.preventDefault()"
239
240
  (keydown)="onGridKeyDown($event)"
@@ -469,7 +470,7 @@ import {INLINE_CELL_EDITOR_STYLES,INLINE_CELL_EDITOR_TEMPLATE,POPOVER_CELL_EDITO
469
470
  [style.outline-offset]="descriptor.isActive && !descriptor.isInRange ? '-2px' : null"
470
471
  >
471
472
  @if (col.type === 'boolean') {
472
- <input type="checkbox" [checked]="!!descriptor.displayValue" disabled style="margin:0;pointer-events:none" [attr.aria-label]="descriptor.displayValue ? 'True' : 'False'" />
473
+ <input type="checkbox" [checked]="!!descriptor.displayValue" [disabled]="!descriptor.canEditAny" (change)="descriptor.canEditAny ? commitEdit(item, col.columnId, !!descriptor.displayValue, !descriptor.displayValue, rowIndex, descriptor.globalColIndex) : null" (click)="$event.stopPropagation()" [style.margin]="'0'" [style.cursor]="descriptor.canEditAny ? 'pointer' : 'default'" [attr.aria-label]="descriptor.displayValue ? 'Checked' : 'Unchecked'" />
473
474
  } @else {
474
475
  <span [style]="resolveCellStyleFn(col, item, descriptor.displayValue)">{{ resolveCellContent(col, item, descriptor.displayValue) }}</span>
475
476
  }
@@ -691,6 +692,8 @@ import {INLINE_CELL_EDITOR_STYLES,INLINE_CELL_EDITOR_TEMPLATE,POPOVER_CELL_EDITO
691
692
  border-bottom: 1px solid var(--ogrid-border, rgba(0, 0, 0, 0.12));
692
693
  position: relative;
693
694
  }
695
+ .ogrid-data-cell:has(> [data-active-cell]),
696
+ .ogrid-data-cell:has(> .ogrid-editing-cell) { z-index: 2; }
694
697
  .ogrid-cell-content {
695
698
  padding: var(--ogrid-cell-padding, 6px 10px);
696
699
  min-height: 20px;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alaarab/ogrid-angular-primeng",
3
- "version": "2.5.2",
3
+ "version": "2.5.4",
4
4
  "description": "OGrid PrimeNG – PrimeNG Table-based data grid with sorting, filtering, pagination, column chooser, and CSV export.",
5
5
  "main": "dist/esm/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -37,7 +37,7 @@
37
37
  "node": ">=18"
38
38
  },
39
39
  "dependencies": {
40
- "@alaarab/ogrid-angular": "2.5.2"
40
+ "@alaarab/ogrid-angular": "2.5.4"
41
41
  },
42
42
  "peerDependencies": {
43
43
  "@angular/core": "^21.0.0",