feat(grid): support hiding identical value columns

This commit is contained in:
lxk955 authored and GitHub committed 2026-10-07 10:30:55 +08:00
1 parent 7e324bdd01
commit 09c47b1851
18 files changed
+224 -7

No files matched your search

+7
View File
@@ -14,6 +14,13 @@ test("set NULL applies a real null value only to editable selections", () => {
assert.doesNotMatch(handler, /fillSelectionWithValue\(["'](?:NULL)?["']\)/);
});
test("hide identical columns compares full-width rows, not visibility-projected ones", () => {
const fn = dataGridSource.match(/function getComparisonRows\(\)[^{]*\{[^]*?\n\}/)?.[0] ?? "";
assert.ok(fn, "getComparisonRows not found");
assert.match(fn, /\bdisplayItems\.value/);
assert.doesNotMatch(fn, /visibleDisplayItems/);
});
test("editable cell selections expose generation after bulk edit", () => {
const icon = {};
const action = () => {};