@tanstack/table-core 8.0.0-alpha.45 → 8.0.0-alpha.46
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.
- package/build/cjs/features/ColumnSizing.js.map +1 -1
- package/build/cjs/features/Expanding.js.map +1 -1
- package/build/cjs/features/Grouping.js.map +1 -1
- package/build/cjs/features/RowSelection.js +2 -2
- package/build/cjs/features/RowSelection.js.map +1 -1
- package/build/cjs/features/Sorting.js.map +1 -1
- package/build/cjs/features/Visibility.js.map +1 -1
- package/build/esm/index.js +2 -2
- package/build/esm/index.js.map +1 -1
- package/build/stats-html.html +1 -1
- package/build/stats-react.json +291 -291
- package/build/types/features/Expanding.d.ts +1 -1
- package/build/types/features/Grouping.d.ts +1 -1
- package/build/types/features/RowSelection.d.ts +1 -1
- package/build/types/features/Sorting.d.ts +2 -2
- package/build/umd/index.development.js +2 -2
- package/build/umd/index.development.js.map +1 -1
- package/build/umd/index.production.js.map +1 -1
- package/package.json +1 -1
- package/src/features/ColumnSizing.ts +4 -4
- package/src/features/Expanding.ts +3 -3
- package/src/features/Grouping.ts +2 -2
- package/src/features/RowSelection.ts +13 -11
- package/src/features/Sorting.ts +5 -5
- package/src/features/Visibility.ts +4 -2
|
@@ -24,7 +24,7 @@ export declare type ExpandedOptions<TGenerics extends AnyGenerics> = {
|
|
|
24
24
|
};
|
|
25
25
|
export declare type ToggleExpandedProps = {
|
|
26
26
|
title?: string;
|
|
27
|
-
onClick?: (event:
|
|
27
|
+
onClick?: (event: unknown) => void;
|
|
28
28
|
};
|
|
29
29
|
export declare type ExpandedInstance<TGenerics extends AnyGenerics> = {
|
|
30
30
|
_notifyExpandedReset: () => void;
|
|
@@ -62,7 +62,7 @@ export declare type GroupingOptions<TGenerics extends AnyGenerics> = {
|
|
|
62
62
|
export declare type GroupingColumnMode = false | 'reorder' | 'remove';
|
|
63
63
|
export declare type ToggleGroupingProps = {
|
|
64
64
|
title?: string;
|
|
65
|
-
onClick?: (event:
|
|
65
|
+
onClick?: (event: unknown) => void;
|
|
66
66
|
};
|
|
67
67
|
export declare type GroupingInstance<TGenerics extends AnyGenerics> = {
|
|
68
68
|
_notifyGroupingReset: () => void;
|
|
@@ -11,7 +11,7 @@ export declare type RowSelectionOptions<TGenerics extends AnyGenerics> = {
|
|
|
11
11
|
enableSubRowSelection?: boolean | ((row: Row<TGenerics>) => boolean);
|
|
12
12
|
};
|
|
13
13
|
declare type ToggleRowSelectedProps = {
|
|
14
|
-
onChange?: (e:
|
|
14
|
+
onChange?: (e: unknown) => void;
|
|
15
15
|
checked?: boolean;
|
|
16
16
|
title?: string;
|
|
17
17
|
indeterminate?: boolean;
|
|
@@ -50,11 +50,11 @@ export declare type SortingOptions<TGenerics extends AnyGenerics> = {
|
|
|
50
50
|
sortDescFirst?: boolean;
|
|
51
51
|
getSortedRowModel?: (instance: TableInstance<TGenerics>) => () => RowModel<TGenerics>;
|
|
52
52
|
maxMultiSortColCount?: number;
|
|
53
|
-
isMultiSortEvent?: (e:
|
|
53
|
+
isMultiSortEvent?: (e: unknown) => boolean;
|
|
54
54
|
};
|
|
55
55
|
export declare type ToggleSortingProps = {
|
|
56
56
|
title?: string;
|
|
57
|
-
onClick?: (event:
|
|
57
|
+
onClick?: (event: unknown) => void;
|
|
58
58
|
};
|
|
59
59
|
export declare type SortingInstance<TGenerics extends AnyGenerics> = {
|
|
60
60
|
_notifySortingReset: () => void;
|
|
@@ -2094,8 +2094,8 @@
|
|
|
2094
2094
|
enableRowSelection: true,
|
|
2095
2095
|
enableMultiRowSelection: true,
|
|
2096
2096
|
enableSubRowSelection: true // enableGroupingRowSelection: false,
|
|
2097
|
-
// isAdditiveSelectEvent: (e:
|
|
2098
|
-
// isInclusiveSelectEvent: (e:
|
|
2097
|
+
// isAdditiveSelectEvent: (e: unknown) => !!e.metaKey,
|
|
2098
|
+
// isInclusiveSelectEvent: (e: unknown) => !!e.shiftKey,
|
|
2099
2099
|
|
|
2100
2100
|
};
|
|
2101
2101
|
},
|