@alaarab/ogrid-js 2.0.12 → 2.0.13

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/OGrid.js CHANGED
@@ -718,6 +718,9 @@ export class OGrid {
718
718
  }
719
719
  renderLoadingOverlay() {
720
720
  if (this.state.isLoading) {
721
+ // Ensure the container has minimum height during loading so overlay is visible
722
+ const { items } = this.state.getProcessedItems();
723
+ this.tableContainer.style.minHeight = (!items || items.length === 0) ? '200px' : '';
721
724
  if (!this.loadingOverlay) {
722
725
  this.loadingOverlay = document.createElement('div');
723
726
  this.loadingOverlay.className = 'ogrid-loading-overlay';
@@ -741,6 +744,7 @@ export class OGrid {
741
744
  }
742
745
  }
743
746
  else {
747
+ this.tableContainer.style.minHeight = '';
744
748
  if (this.loadingOverlay && this.tableContainer.contains(this.loadingOverlay)) {
745
749
  this.loadingOverlay.remove();
746
750
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alaarab/ogrid-js",
3
- "version": "2.0.12",
3
+ "version": "2.0.13",
4
4
  "description": "OGrid vanilla JS – framework-free data grid with sorting, filtering, pagination, and spreadsheet-style editing.",
5
5
  "main": "dist/esm/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -36,7 +36,7 @@
36
36
  "node": ">=18"
37
37
  },
38
38
  "dependencies": {
39
- "@alaarab/ogrid-core": "2.0.12"
39
+ "@alaarab/ogrid-core": "2.0.13"
40
40
  },
41
41
  "sideEffects": false,
42
42
  "publishConfig": {