bam32bittheme
Advanced tools
Comparing version 2.1.103 to 2.1.104
@@ -87,5 +87,20 @@ "use strict"; | ||
const visibility = {}; | ||
const areRowsEmpty = rows.every(row => columns.every(column => { | ||
if (column.accessorFn) { | ||
return !column.accessorFn(row); | ||
} | ||
return !row[column.field]; | ||
})); | ||
columns.forEach(column => { | ||
const isColumnEmpty = rows.every(row => !row[column.field]); | ||
visibility[column.field] = !isColumnEmpty; // Eğer sütun boşsa false | ||
const hasCustomCell = !!column.Cell; // Eğer column.Cell varsa true | ||
const isColumnEmpty = rows.every(row => { | ||
if (column.accessorFn) { | ||
return !column.accessorFn(row); // accessorFn sonucu boşsa true | ||
} | ||
return !row[column.field]; | ||
}); | ||
// Eğer satırlar tamamen boşsa tüm kolonlar görünür | ||
// Eğer accessorFn varsa ve boş dönüyorsa kolon gözükmesin | ||
visibility[column.field] = areRowsEmpty || !column.accessorFn && (hasCustomCell || !isColumnEmpty); | ||
}); | ||
@@ -92,0 +107,0 @@ setColumnVisibility(visibility); // Sütun görünürlüğünü güncelle |
{ | ||
"name": "bam32bittheme", | ||
"version": "2.1.103", | ||
"version": "2.1.104", | ||
"private": false, | ||
@@ -5,0 +5,0 @@ "description": "32bit Theme for Material UI v5.x", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1573840
5419