@alaarab/ogrid-angular-primeng 2.1.15 → 2.2.0

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
@@ -800,7 +800,7 @@ DataGridTableComponent = __decorateClass([
800
800
  <div class="ogrid-table-wrapper">
801
801
  <div [class.loading-dimmed]="isLoading() && items().length > 0" class="ogrid-table-wrapper">
802
802
  <div #tableContainer class="ogrid-table-wrapper">
803
- <table class="ogrid-table" role="grid">
803
+ <table class="ogrid-table" role="grid" [attr.data-virtual-scroll]="vsEnabled() ? '' : null">
804
804
  <thead [class]="stickyHeader() ? 'ogrid-thead ogrid-sticky-header' : 'ogrid-thead'">
805
805
  @for (row of headerRows(); track $index; let rowIdx = $index) {
806
806
  <tr>
@@ -938,7 +938,10 @@ DataGridTableComponent = __decorateClass([
938
938
  {{ rowNumberOffset() + rowIndex + 1 }}
939
939
  </td>
940
940
  }
941
- @for (col of visibleCols(); track col.columnId; let colIdx = $index) {
941
+ @if (vsColumnsEnabled() && vsLeftSpacerWidth() > 0) {
942
+ <td [style.width.px]="vsLeftSpacerWidth()" [style.minWidth.px]="vsLeftSpacerWidth()" [style.maxWidth.px]="vsLeftSpacerWidth()" [style.padding]="'0'"></td>
943
+ }
944
+ @for (col of vsVisibleCols(); track col.columnId) {
942
945
  @let pinned = isPinned(col.columnId);
943
946
  <td
944
947
  [attr.data-column-id]="col.columnId"
@@ -952,7 +955,7 @@ DataGridTableComponent = __decorateClass([
952
955
  [style.right.px]="pinned === 'right' ? getPinnedRightOffset(col.columnId) : null"
953
956
  [style.text-align]="col.type === 'numeric' ? 'right' : col.type === 'boolean' ? 'center' : null"
954
957
  >
955
- @let descriptor = getCellDescriptor(item, col, rowIndex, colIdx);
958
+ @let descriptor = getCellDescriptor(item, col, rowIndex, getGlobalColIndex(col));
956
959
  @if (descriptor.mode === 'editing-inline') {
957
960
  <div class="ogrid-editing-cell">
958
961
  <ogrid-primeng-inline-cell-editor
@@ -1001,6 +1004,9 @@ DataGridTableComponent = __decorateClass([
1001
1004
  }
1002
1005
  </td>
1003
1006
  }
1007
+ @if (vsColumnsEnabled() && vsRightSpacerWidth() > 0) {
1008
+ <td [style.width.px]="vsRightSpacerWidth()" [style.minWidth.px]="vsRightSpacerWidth()" [style.maxWidth.px]="vsRightSpacerWidth()" [style.padding]="'0'"></td>
1009
+ }
1004
1010
  </tr>
1005
1011
  }
1006
1012
  @if (vsEnabled() && vsBottomSpacerHeight() > 0) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alaarab/ogrid-angular-primeng",
3
- "version": "2.1.15",
3
+ "version": "2.2.0",
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.1.15"
40
+ "@alaarab/ogrid-angular": "2.2.0"
41
41
  },
42
42
  "peerDependencies": {
43
43
  "@angular/core": "^21.0.0",