compote-ui 0.43.5 → 0.43.7

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.
@@ -39,7 +39,8 @@
39
39
  return table.getRowModel();
40
40
  });
41
41
  const headerGroups = $derived.by(() => {
42
- getReactiveTableState(table);
42
+ const { columnVisibility } = getReactiveTableState(table);
43
+ void columnVisibility;
43
44
  return table.getHeaderGroups();
44
45
  });
45
46
  const isRowSelectionEnabled = $derived(Boolean(table.options.enableRowSelection));
@@ -54,6 +55,26 @@
54
55
  return getSelectedRowCount(table);
55
56
  });
56
57
  const isColumnResizing = $derived(tableState.columnSizingInfo.isResizingColumn !== false);
58
+
59
+ $effect(() => {
60
+ console.log('VIRTUAL DATA TABLE DEBUG', {
61
+ columnVisibility: { ...tableState.columnVisibility },
62
+ visibleLeafColumns: table.getVisibleLeafColumns().map((column) => column.id),
63
+ allLeafColumns: table.getAllLeafColumns().map((column) => ({
64
+ id: column.id,
65
+ isVisible: column.getIsVisible()
66
+ })),
67
+ headerGroups: table.getHeaderGroups().map((group) => ({
68
+ id: group.id,
69
+ headers: group.headers.map((header) => ({
70
+ id: header.id,
71
+ columnId: header.column.id,
72
+ colSpan: header.colSpan,
73
+ isPlaceholder: header.isPlaceholder
74
+ }))
75
+ }))
76
+ });
77
+ });
57
78
  </script>
58
79
 
59
80
  <div
@@ -48,11 +48,13 @@
48
48
  return table.getRowModel();
49
49
  });
50
50
  const headerGroups = $derived.by(() => {
51
- getReactiveTableState(table);
51
+ const { columnVisibility } = getReactiveTableState(table);
52
+ void columnVisibility;
52
53
  return table.getHeaderGroups();
53
54
  });
54
55
  const visibleLeafColumns = $derived.by(() => {
55
- getReactiveTableState(table);
56
+ const { columnVisibility } = getReactiveTableState(table);
57
+ void columnVisibility;
56
58
  return table.getVisibleLeafColumns();
57
59
  });
58
60
  const growColumn = $derived(visibleLeafColumns.find((col) => getColumnMeta(col.columnDef)?.grow));
@@ -72,6 +74,26 @@
72
74
  return getSelectedRowCount(table);
73
75
  });
74
76
  const isColumnResizing = $derived(tableState.columnSizingInfo.isResizingColumn !== false);
77
+
78
+ $effect(() => {
79
+ console.log('DATA TABLE DEBUG', {
80
+ columnVisibility: { ...tableState.columnVisibility },
81
+ visibleLeafColumns: table.getVisibleLeafColumns().map((column) => column.id),
82
+ allLeafColumns: table.getAllLeafColumns().map((column) => ({
83
+ id: column.id,
84
+ isVisible: column.getIsVisible()
85
+ })),
86
+ headerGroups: table.getHeaderGroups().map((group) => ({
87
+ id: group.id,
88
+ headers: group.headers.map((header) => ({
89
+ id: header.id,
90
+ columnId: header.column.id,
91
+ colSpan: header.colSpan,
92
+ isPlaceholder: header.isPlaceholder
93
+ }))
94
+ }))
95
+ });
96
+ });
75
97
  </script>
76
98
 
77
99
  <div
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "compote-ui",
3
- "version": "0.43.5",
3
+ "version": "0.43.7",
4
4
  "license": "MIT",
5
5
  "scripts": {
6
6
  "dev": "vite dev --open",