@simple-table/react 3.9.6 → 3.9.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.
- package/dist/types/core/src/hooks/handleOutsideClick.d.ts +1 -1
- package/dist/types/core/src/managers/SelectionManager/types.d.ts +6 -1
- package/dist/types/core/src/types/SimpleTableConfig.d.ts +1 -0
- package/dist/types/core/src/types/SimpleTableProps.d.ts +1 -0
- package/dist/types/core/src/utils/headerCell/types.d.ts +1 -1
- package/package.json +2 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import HeaderObject from "../types/HeaderObject";
|
|
2
2
|
import Cell from "../types/Cell";
|
|
3
3
|
export interface HandleOutsideClickConfig {
|
|
4
|
-
|
|
4
|
+
selectableColumns: boolean;
|
|
5
5
|
selectedCells: Set<string>;
|
|
6
6
|
selectedColumns: Set<number>;
|
|
7
7
|
setSelectedCells: (cells: Set<string>) => void;
|
|
@@ -5,8 +5,13 @@ import type Cell from "../../types/Cell";
|
|
|
5
5
|
import type { CustomTheme } from "../../types/CustomTheme";
|
|
6
6
|
export declare const createSetString: ({ rowIndex, colIndex, rowId }: Cell) => string;
|
|
7
7
|
export interface SelectionManagerConfig {
|
|
8
|
-
/** When true, enables cell selection and column header selection. */
|
|
9
8
|
selectableCells: boolean;
|
|
9
|
+
/**
|
|
10
|
+
* When true, column header click selects columns (`st-header-selected` on headers).
|
|
11
|
+
* Cell-in-column header tint (`st-header-has-highlighted-cell`) also applies when `selectableCells` is true
|
|
12
|
+
* even if this is false.
|
|
13
|
+
*/
|
|
14
|
+
selectableColumns?: boolean;
|
|
10
15
|
headers: HeaderObject[];
|
|
11
16
|
tableRows: TableRowType[];
|
|
12
17
|
onCellEdit?: (props: any) => void;
|
|
@@ -105,6 +105,7 @@ export interface SimpleTableConfig {
|
|
|
105
105
|
rowsPerPage?: number;
|
|
106
106
|
scrollParent?: HTMLElement | "window" | (() => HTMLElement | null);
|
|
107
107
|
selectableCells?: boolean;
|
|
108
|
+
selectableColumns?: boolean;
|
|
108
109
|
serverSidePagination?: boolean;
|
|
109
110
|
shouldPaginate?: boolean;
|
|
110
111
|
tableEmptyStateRenderer?: HTMLElement | string | null;
|
|
@@ -98,6 +98,7 @@ export interface SimpleTableProps {
|
|
|
98
98
|
rowsPerPage?: number;
|
|
99
99
|
scrollParent?: HTMLElement | "window" | (() => HTMLElement | null);
|
|
100
100
|
selectableCells?: boolean;
|
|
101
|
+
selectableColumns?: boolean;
|
|
101
102
|
serverSidePagination?: boolean;
|
|
102
103
|
shouldPaginate?: boolean;
|
|
103
104
|
tableEmptyStateRenderer?: HTMLElement | string | null;
|
|
@@ -74,7 +74,7 @@ export interface HeaderRenderContext {
|
|
|
74
74
|
reverse: boolean;
|
|
75
75
|
rows: Row[];
|
|
76
76
|
selectColumns?: (columnIndices: number[]) => void;
|
|
77
|
-
|
|
77
|
+
selectableColumns?: boolean;
|
|
78
78
|
selectedColumns: Set<number>;
|
|
79
79
|
selectedRowCount?: number; /** Used for context cache invalidation when row selection changes */
|
|
80
80
|
setCollapsedHeaders: Dispatch<SetStateAction<Set<Accessor>>>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@simple-table/react",
|
|
3
|
-
"version": "3.9.
|
|
3
|
+
"version": "3.9.7",
|
|
4
4
|
"main": "dist/cjs/index.js",
|
|
5
5
|
"module": "dist/index.es.js",
|
|
6
6
|
"types": "dist/types/react/src/index.d.ts",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"react-dom": ">=18.0.0"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"simple-table-core": "3.9.
|
|
32
|
+
"simple-table-core": "3.9.7"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@rollup/plugin-alias": "^4.0.4",
|