compote-ui 0.42.5 → 0.42.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.
|
@@ -10,12 +10,12 @@
|
|
|
10
10
|
import {
|
|
11
11
|
alignClass,
|
|
12
12
|
columnSizeStyle,
|
|
13
|
-
getAllRowsSelectionState,
|
|
13
|
+
// getAllRowsSelectionState,
|
|
14
14
|
getBooleanCellValue,
|
|
15
15
|
getColumnMeta,
|
|
16
16
|
getPinningStyle,
|
|
17
17
|
getRowSelectionState,
|
|
18
|
-
getSelectedRowCount,
|
|
18
|
+
// getSelectedRowCount,
|
|
19
19
|
getUrlCellValue,
|
|
20
20
|
justifyClass,
|
|
21
21
|
openUrlCell,
|
|
@@ -42,23 +42,9 @@
|
|
|
42
42
|
...rest
|
|
43
43
|
}: Props = $props();
|
|
44
44
|
|
|
45
|
-
const
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
const rowModel = $derived.by(() => {
|
|
51
|
-
trackTableState();
|
|
52
|
-
return table.getRowModel();
|
|
53
|
-
});
|
|
54
|
-
const headerGroups = $derived.by(() => {
|
|
55
|
-
trackTableState();
|
|
56
|
-
return table.getHeaderGroups();
|
|
57
|
-
});
|
|
58
|
-
const visibleLeafColumns = $derived.by(() => {
|
|
59
|
-
trackTableState();
|
|
60
|
-
return table.getVisibleLeafColumns();
|
|
61
|
-
});
|
|
45
|
+
const rowModel = $derived(table.getRowModel());
|
|
46
|
+
const headerGroups = $derived(table.getHeaderGroups());
|
|
47
|
+
const visibleLeafColumns = $derived(table.getVisibleLeafColumns());
|
|
62
48
|
const growColumn = $derived(visibleLeafColumns.find((col) => getColumnMeta(col.columnDef)?.grow));
|
|
63
49
|
const hasGrowColumn = $derived(growColumn !== undefined);
|
|
64
50
|
const visibleColumnCount = $derived(visibleLeafColumns.length);
|
|
@@ -67,11 +53,14 @@
|
|
|
67
53
|
const tableColumnCount = $derived(visibleColumnCount + (isRowSelectionEnabled ? 1 : 0));
|
|
68
54
|
const renderedColumnCount = $derived(tableColumnCount + 1);
|
|
69
55
|
const headerGroupCount = $derived(headerGroups.length);
|
|
70
|
-
const allRowsSelectionState = $derived(
|
|
71
|
-
getAllRowsSelectionState(table, table.store.state.rowSelection)
|
|
72
|
-
);
|
|
73
|
-
const selectedRowCount = $derived(getSelectedRowCount(table, table.store.state.rowSelection));
|
|
74
|
-
const isColumnResizing = $derived(table.store.state.columnResizing.isResizingColumn !== false);
|
|
56
|
+
// const allRowsSelectionState = $derived(
|
|
57
|
+
// getAllRowsSelectionState(table, table.store.state.rowSelection)
|
|
58
|
+
// );
|
|
59
|
+
// const selectedRowCount = $derived(getSelectedRowCount(table, table.store.state.rowSelection));
|
|
60
|
+
// const isColumnResizing = $derived(table.store.state.columnResizing.isResizingColumn !== false);
|
|
61
|
+
const allRowsSelectionState = $derived<boolean | 'indeterminate'>(false);
|
|
62
|
+
const selectedRowCount = $derived(0);
|
|
63
|
+
const isColumnResizing = $derived(false);
|
|
75
64
|
</script>
|
|
76
65
|
|
|
77
66
|
<div
|