cilog-lib 1.12.30 → 1.12.32
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 +11 -4
- package/fesm2022/cilog-lib.mjs.map +1 -1
- package/package.json +1 -1
package/fesm2022/cilog-lib.mjs
CHANGED
|
@@ -1368,7 +1368,6 @@ class CilogGridComponent {
|
|
|
1368
1368
|
ModuleRegistry.registerModules([AllCommunityModule]);
|
|
1369
1369
|
}
|
|
1370
1370
|
defaultColDef = {
|
|
1371
|
-
sortable: false,
|
|
1372
1371
|
suppressMovable: true
|
|
1373
1372
|
};
|
|
1374
1373
|
colDefs = computed(() => {
|
|
@@ -1380,9 +1379,10 @@ class CilogGridComponent {
|
|
|
1380
1379
|
pinned: col.frozen ? true : false,
|
|
1381
1380
|
hide: col.invisible ? true : false,
|
|
1382
1381
|
initialWidth: col.width,
|
|
1383
|
-
filter: !col.disableFilter ? 'agTextColumnFilter' : null,
|
|
1384
1382
|
wrapHeaderText: this.options().headersAffichageEntier ? true : false,
|
|
1385
1383
|
autoHeaderHeight: this.options().headersAffichageEntier ? true : false,
|
|
1384
|
+
sortable: this.options().sortable ? true : false,
|
|
1385
|
+
filter: !col.disableFilter ? 'agTextColumnFilter' : null,
|
|
1386
1386
|
suppressSizeToFit: col.width != null ? true : false,
|
|
1387
1387
|
headerTooltip: col.libelle,
|
|
1388
1388
|
type: col.type == ColType.Number || col.type == ColType.Date ? 'rightAligned' : null,
|
|
@@ -1403,7 +1403,12 @@ class CilogGridComponent {
|
|
|
1403
1403
|
}
|
|
1404
1404
|
},
|
|
1405
1405
|
cellStyle: (params) => {
|
|
1406
|
-
return {
|
|
1406
|
+
return {
|
|
1407
|
+
backgroundColor: params.data[params.colDef.field].color,
|
|
1408
|
+
color: params.data[params.colDef.field].textColor,
|
|
1409
|
+
fontWeight: params.data[params.colDef.field].bold ? 'bold' : null,
|
|
1410
|
+
fontStyle: params.data[params.colDef.field].italic ? 'italic' : null
|
|
1411
|
+
};
|
|
1407
1412
|
}
|
|
1408
1413
|
};
|
|
1409
1414
|
cols.push(colDef);
|
|
@@ -1449,7 +1454,9 @@ class CilogGridComponent {
|
|
|
1449
1454
|
};
|
|
1450
1455
|
onGridReady(params) {
|
|
1451
1456
|
this.gridApi = params.api;
|
|
1452
|
-
|
|
1457
|
+
setTimeout(() => {
|
|
1458
|
+
params.api.sizeColumnsToFit();
|
|
1459
|
+
});
|
|
1453
1460
|
window.addEventListener('resize', () => {
|
|
1454
1461
|
setTimeout(() => {
|
|
1455
1462
|
this.gridApi.sizeColumnsToFit();
|