cilog-lib 1.12.25 → 1.12.26
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/fesm2022/cilog-lib.mjs
CHANGED
|
@@ -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
|
}
|
|
@@ -1373,6 +1373,9 @@ class CilogGridComponent {
|
|
|
1373
1373
|
headerName: col.libelle,
|
|
1374
1374
|
pinned: col.frozen ? true : false,
|
|
1375
1375
|
hide: col.invisible ? true : false,
|
|
1376
|
+
initialWidth: col.width,
|
|
1377
|
+
suppressSizeToFit: col.width != null ? true : false,
|
|
1378
|
+
headerTooltip: col.libelle,
|
|
1376
1379
|
valueGetter: (params) => {
|
|
1377
1380
|
if (!params.data || !params.data[params.colDef.field] || !params.data[params.colDef.field].value)
|
|
1378
1381
|
return '';
|