cilog-lib 1.12.25 → 1.12.27

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.
@@ -508,8 +508,8 @@ class ExportService {
508
508
  key: col.id,
509
509
  style: this.getStyleByType(col.type)
510
510
  };
511
- if (col.width != null && col.width.includes('px')) {
512
- const px = parseInt(col.width.replace('px', '').trim(), 10);
511
+ if (col.width != null && col.width.toString().includes('px')) {
512
+ const px = parseInt(col.width.toString().replace('px', '').trim(), 10);
513
513
  const excelWidth = px / 7;
514
514
  colExcel.width = parseFloat(excelWidth.toFixed(2));
515
515
  }
@@ -1351,6 +1351,7 @@ const myTheme = themeQuartz
1351
1351
  spacing: 10,
1352
1352
  fontSize: 12,
1353
1353
  headerFontSize: 14,
1354
+ columnBorder: { style: 'solid', color: '#DEDEDE' },
1354
1355
  });
1355
1356
  class CilogGridComponent {
1356
1357
  gridApi;
@@ -1373,10 +1374,14 @@ class CilogGridComponent {
1373
1374
  headerName: col.libelle,
1374
1375
  pinned: col.frozen ? true : false,
1375
1376
  hide: col.invisible ? true : false,
1377
+ initialWidth: col.width,
1378
+ suppressSizeToFit: col.width != null ? true : false,
1379
+ headerTooltip: col.libelle,
1376
1380
  valueGetter: (params) => {
1377
- if (!params.data || !params.data[params.colDef.field] || !params.data[params.colDef.field].value)
1378
- return '';
1379
1381
  return params.data[params.colDef.field].value;
1382
+ },
1383
+ cellStyle: (params) => {
1384
+ return { backgroundColor: params.data[params.colDef.field].color, color: params.data[params.colDef.field].textColor };
1380
1385
  }
1381
1386
  };
1382
1387
  cols.push(colDef);