ms-data-grid 0.0.135 → 0.0.136

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.
@@ -2537,6 +2537,12 @@ class DataGridComponent {
2537
2537
  this.bodyTextFontsSize = this.defaultConfig.bodyTextFontsSize || 14;
2538
2538
  this.globalSearchText = this.defaultConfig.globalSearch;
2539
2539
  this.setTableLayout(this.selectedTableLayout);
2540
+ this.autoSizeColumnsByRatio();
2541
+ const groupedColumns = this.defaultConfig?.groupedColumns;
2542
+ if (groupedColumns?.length) {
2543
+ this.groupedColumns = structuredClone(groupedColumns);
2544
+ this.groupDataAsync(this.dataSet, this.groupedColumns);
2545
+ }
2540
2546
  }
2541
2547
  else {
2542
2548
  this.rowShadingEnabled = false;
@@ -3150,7 +3156,8 @@ class DataGridComponent {
3150
3156
  containerWidth -= 29;
3151
3157
  if (this.gridType == 'Assets' || this.gridType == 'Tasks')
3152
3158
  containerWidth -= 30;
3153
- containerWidth -= 55;
3159
+ if (this.showCheckboxes)
3160
+ containerWidth -= 55;
3154
3161
  const equalWidth = Math.max(Math.floor(containerWidth / visibleCount), 150);
3155
3162
  // Update widths for all visible columns
3156
3163
  visibleColumns.forEach((col) => {
@@ -3609,7 +3616,8 @@ class DataGridComponent {
3609
3616
  containerWidth -= 29;
3610
3617
  if (this.gridType == 'Assets' || this.gridType == 'Tasks')
3611
3618
  containerWidth -= 30;
3612
- containerWidth -= 55;
3619
+ if (this.showCheckboxes)
3620
+ containerWidth -= 55;
3613
3621
  const totalOldWidth = visibleColumns.reduce((sum, col) => sum + (col.width || 0), 0);
3614
3622
  if (totalOldWidth === 0)
3615
3623
  return;