@alaarab/ogrid-angular-material 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 +9 -2
- package/package.json +2 -2
package/dist/esm/index.js
CHANGED
|
@@ -561,6 +561,7 @@ DataGridTableComponent = __decorateClass([
|
|
|
561
561
|
<div [style.minWidth.px]="allowOverflowX() ? minTableWidth() : undefined" style="overflow-x: clip">
|
|
562
562
|
<div [class.ogrid-datagrid-table-wrapper--loading]="isLoading() && items().length > 0" #tableContainerElRef>
|
|
563
563
|
<table class="ogrid-datagrid-table" role="grid" [style.minWidth.px]="minTableWidth()"
|
|
564
|
+
[attr.data-virtual-scroll]="vsEnabled() ? '' : null"
|
|
564
565
|
>
|
|
565
566
|
<thead [class]="stickyHeader() ? 'ogrid-datagrid-thead ogrid-sticky-header' : 'ogrid-datagrid-thead'">
|
|
566
567
|
@for (row of headerRows(); track $index; let rowIdx = $index) {
|
|
@@ -697,7 +698,10 @@ DataGridTableComponent = __decorateClass([
|
|
|
697
698
|
</div>
|
|
698
699
|
</td>
|
|
699
700
|
}
|
|
700
|
-
@
|
|
701
|
+
@if (vsColumnsEnabled() && vsLeftSpacerWidth() > 0) {
|
|
702
|
+
<td [style.width.px]="vsLeftSpacerWidth()" [style.minWidth.px]="vsLeftSpacerWidth()" [style.maxWidth.px]="vsLeftSpacerWidth()" [style.padding]="'0'"></td>
|
|
703
|
+
}
|
|
704
|
+
@for (colLayout of vsColumnLayouts(); track colLayout.col.columnId) {
|
|
701
705
|
<td
|
|
702
706
|
class="ogrid-datagrid-td"
|
|
703
707
|
[attr.data-column-id]="colLayout.col.columnId"
|
|
@@ -709,7 +713,7 @@ DataGridTableComponent = __decorateClass([
|
|
|
709
713
|
[style.left.px]="colLayout.pinnedLeft ? getPinnedLeftOffset(colLayout.col.columnId) : null"
|
|
710
714
|
[style.right.px]="colLayout.pinnedRight ? getPinnedRightOffset(colLayout.col.columnId) : null"
|
|
711
715
|
>
|
|
712
|
-
@let descriptor = getCellDescriptor(item, colLayout.col, rowIndex,
|
|
716
|
+
@let descriptor = getCellDescriptor(item, colLayout.col, rowIndex, getGlobalColIndex(colLayout.col));
|
|
713
717
|
@if (descriptor.mode === 'editing-inline') {
|
|
714
718
|
<div class="ogrid-editing-cell">
|
|
715
719
|
<ogrid-mat-inline-cell-editor
|
|
@@ -767,6 +771,9 @@ DataGridTableComponent = __decorateClass([
|
|
|
767
771
|
}
|
|
768
772
|
</td>
|
|
769
773
|
}
|
|
774
|
+
@if (vsColumnsEnabled() && vsRightSpacerWidth() > 0) {
|
|
775
|
+
<td [style.width.px]="vsRightSpacerWidth()" [style.minWidth.px]="vsRightSpacerWidth()" [style.maxWidth.px]="vsRightSpacerWidth()" [style.padding]="'0'"></td>
|
|
776
|
+
}
|
|
770
777
|
</tr>
|
|
771
778
|
}
|
|
772
779
|
@if (vsEnabled() && vsBottomSpacerHeight() > 0) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alaarab/ogrid-angular-material",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.2.0",
|
|
4
4
|
"description": "OGrid Angular Material – MatTable-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.
|
|
40
|
+
"@alaarab/ogrid-angular": "2.2.0"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
43
|
"@angular/cdk": "^21.0.0",
|