compote-ui 0.43.9 → 0.43.10
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.
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
class="sticky top-0 z-20 bg-surface-2 text-left text-ink-dim"
|
|
108
108
|
style={isVirtual ? 'display: grid; position: sticky; top: 0; z-index: 20' : undefined}
|
|
109
109
|
>
|
|
110
|
-
{#each headerGroups as headerGroup, headerGroupIndex (headerGroup.id)}
|
|
110
|
+
{#each headerGroups as headerGroup, headerGroupIndex (`${headerGroup.id}:${headerGroup.headers.map((header) => `${header.id}:${header.colSpan}`).join('|')}`)}
|
|
111
111
|
{@const visibleHeaders = headerGroup.headers.filter((header) => header.colSpan > 0)}
|
|
112
112
|
<tr class="h-9" style={headerRowStyle()}>
|
|
113
113
|
{#if isRowSelectionEnabled}
|
|
@@ -130,7 +130,7 @@
|
|
|
130
130
|
{/if}
|
|
131
131
|
</th>
|
|
132
132
|
{/if}
|
|
133
|
-
{#each visibleHeaders as header, headerIndex (header.id)}
|
|
133
|
+
{#each visibleHeaders as header, headerIndex (`${header.id}:${header.colSpan}:${header.column.getIsVisible()}`)}
|
|
134
134
|
{@const columnDef = getColumnMeta(header.column.columnDef)}
|
|
135
135
|
{@const sortDirection = getHeaderSortDirection(header)}
|
|
136
136
|
<th
|
|
@@ -40,12 +40,8 @@
|
|
|
40
40
|
});
|
|
41
41
|
const headerGroups = $derived.by(() => {
|
|
42
42
|
const { columnVisibility } = getReactiveTableState(table);
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
headers: group.headers.filter(
|
|
46
|
-
(header) => header.colSpan > 0 && columnVisibility[header.column.id] !== false
|
|
47
|
-
)
|
|
48
|
-
}));
|
|
43
|
+
void columnVisibility;
|
|
44
|
+
return table.getHeaderGroups();
|
|
49
45
|
});
|
|
50
46
|
const isRowSelectionEnabled = $derived(Boolean(table.options.enableRowSelection));
|
|
51
47
|
const isMultiRowSelectionEnabled = $derived(table.options.enableMultiRowSelection !== false);
|
|
@@ -49,12 +49,8 @@
|
|
|
49
49
|
});
|
|
50
50
|
const headerGroups = $derived.by(() => {
|
|
51
51
|
const { columnVisibility } = getReactiveTableState(table);
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
headers: group.headers.filter(
|
|
55
|
-
(header) => header.colSpan > 0 && columnVisibility[header.column.id] !== false
|
|
56
|
-
)
|
|
57
|
-
}));
|
|
52
|
+
void columnVisibility;
|
|
53
|
+
return table.getHeaderGroups();
|
|
58
54
|
});
|
|
59
55
|
const visibleLeafColumns = $derived.by(() => {
|
|
60
56
|
const { columnVisibility } = getReactiveTableState(table);
|