@cdmx/wappler_ag_grid 1.6.0 → 1.6.1

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.
@@ -475,14 +475,6 @@
475
475
  "defaultValue": false,
476
476
  "help": "Specifies if the cell data should be vertically centered."
477
477
  },
478
- {
479
- "name": "hCenterCellData",
480
- "attribute": "dmx-bind:horz_center_cell_data",
481
- "title": "Center Align (H)",
482
- "type": "boolean",
483
- "defaultValue": false,
484
- "help": "Specifies if the cell data should be horizontally centered."
485
- },
486
478
  {
487
479
  "name": "autoHeight",
488
480
  "attribute": "dmx-bind:auto_height",
package/dmx-ag-grid.js CHANGED
@@ -1532,25 +1532,18 @@ dmx.Component('ag-grid', {
1532
1532
  }
1533
1533
 
1534
1534
  const gridElement = document.getElementById(options.id+'-grid');
1535
- if (options.vert_center_cell_data || options.horz_center_cell_data) {
1535
+ if (options.vert_center_cell_data) {
1536
1536
  const styleElement = document.createElement('style');
1537
1537
  if (options.vert_center_cell_data) {
1538
1538
  styleElement.textContent += `
1539
- .ag-cell {
1540
- display: flex;
1541
- align-items: center;
1542
- }
1543
- `;
1544
- }
1545
- if (options.horz_center_cell_data) {
1546
- styleElement.textContent += `
1547
- .ag-cell {
1548
- display: flex;
1549
- justify-content: center;
1550
- }
1551
- .ag-header-cell-label {
1552
- justify-content: center;
1553
- }
1539
+ .ag-cell {
1540
+ display: flex;
1541
+ flex-direction: column;
1542
+ justify-content: center;
1543
+ overflow: hidden;
1544
+ text-overflow: ellipsis;
1545
+ white-space: nowrap;
1546
+ }
1554
1547
  `;
1555
1548
  }
1556
1549
  gridElement.appendChild(styleElement);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cdmx/wappler_ag_grid",
3
- "version": "1.6.0",
3
+ "version": "1.6.1",
4
4
  "type": "module",
5
5
  "description": "App Connect module for AG Grid Table Generation.",
6
6
  "license": "MIT",