neue Homepage auf react basis

This commit is contained in:
2026-08-07 21:39:30 +02:00
parent 164bdd19ad
commit ee89442c04
52191 changed files with 1230242 additions and 58 deletions
@@ -0,0 +1,16 @@
export const checkColumnVisibilityModelsSame = (a, b) => {
// Filter `false` values only, as `true` and not having a key are the same
const aFalseValues = new Set(Object.keys(a).filter(key => a[key] === false));
const bFalseValues = new Set(Object.keys(b).filter(key => b[key] === false));
if (aFalseValues.size !== bFalseValues.size) {
return false;
}
let result = true;
aFalseValues.forEach(key => {
if (!bFalseValues.has(key)) {
result = false;
}
});
return result;
};
export const defaultSearchPredicate = (column, searchValue) => (column.headerName || column.field).toLowerCase().indexOf(searchValue) > -1;