cilog-lib 1.12.31 → 1.12.33
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
|
@@ -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,
|
|
@@ -1454,7 +1454,9 @@ class CilogGridComponent {
|
|
|
1454
1454
|
};
|
|
1455
1455
|
onGridReady(params) {
|
|
1456
1456
|
this.gridApi = params.api;
|
|
1457
|
-
|
|
1457
|
+
setTimeout(() => {
|
|
1458
|
+
params.api.sizeColumnsToFit();
|
|
1459
|
+
}, 50);
|
|
1458
1460
|
window.addEventListener('resize', () => {
|
|
1459
1461
|
setTimeout(() => {
|
|
1460
1462
|
this.gridApi.sizeColumnsToFit();
|