@simple-table/react 3.7.0 → 3.7.1
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.
|
@@ -71,6 +71,12 @@ export interface CellRenderContext {
|
|
|
71
71
|
useOddEvenRowBackground?: boolean;
|
|
72
72
|
rowGrouping?: string[];
|
|
73
73
|
headers: HeaderObject[];
|
|
74
|
+
/**
|
|
75
|
+
* Accessor of the column whose body cells identify the row and should carry
|
|
76
|
+
* `role="rowheader"` (the first non-selection leaf column). Other data cells
|
|
77
|
+
* remain `role="gridcell"`.
|
|
78
|
+
*/
|
|
79
|
+
rowHeaderAccessor?: Accessor;
|
|
74
80
|
rowHeight: number;
|
|
75
81
|
/** Number of header rows (for aria-rowindex: position + maxHeaderDepth + 1) */
|
|
76
82
|
maxHeaderDepth?: number;
|
|
@@ -17,6 +17,13 @@ export declare const getAllChildHeaders: (header: HeaderObject) => HeaderObject[
|
|
|
17
17
|
* Check if a header has collapsible children
|
|
18
18
|
*/
|
|
19
19
|
export declare const hasCollapsibleChildren: (header: HeaderObject) => boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Number of visible leaf (bottom-level) columns a header spans, for
|
|
22
|
+
* `aria-colspan` on grouped/nested header cells. Leaf headers that are hidden
|
|
23
|
+
* (`hide`) or suppressed by their parent's collapsed state are excluded so the
|
|
24
|
+
* announced span matches the columns actually rendered. Leaf headers return 1.
|
|
25
|
+
*/
|
|
26
|
+
export declare const getHeaderColspan: (header: HeaderObject, rootHeaders: HeaderObject[], collapsedHeaders: Set<Accessor>) => number;
|
|
20
27
|
/**
|
|
21
28
|
* Get all leaf (bottom-level) headers that should be visible when a parent is collapsed
|
|
22
29
|
* Uses flattenHeaders for consistent leaf detection
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@simple-table/react",
|
|
3
|
-
"version": "3.7.
|
|
3
|
+
"version": "3.7.1",
|
|
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.7.
|
|
32
|
+
"simple-table-core": "3.7.1"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@rollup/plugin-alias": "^4.0.4",
|