@vuu-ui/vuu-table-types 0.8.99 → 0.9.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.
- package/index.d.ts +12 -1
- package/package.json +4 -4
package/index.d.ts
CHANGED
|
@@ -30,6 +30,8 @@ import type {
|
|
|
30
30
|
} from "react";
|
|
31
31
|
import { CellPos } from "@vuu-ui/vuu-table/src/table-dom-utils";
|
|
32
32
|
|
|
33
|
+
export declare type GroupToggleTarget = "toggle-icon" | "group-column";
|
|
34
|
+
|
|
33
35
|
export declare type TableSelectionModel =
|
|
34
36
|
| "none"
|
|
35
37
|
| "single"
|
|
@@ -234,6 +236,11 @@ export interface ColumnDescriptor extends DataValueDescriptor {
|
|
|
234
236
|
colHeaderContentRenderer?: string;
|
|
235
237
|
colHeaderLabelRenderer?: string;
|
|
236
238
|
flex?: number;
|
|
239
|
+
/**
|
|
240
|
+
* Only used when the column is included in a grouby clause.
|
|
241
|
+
* The icon will be displayed alongside the group label
|
|
242
|
+
*/
|
|
243
|
+
getIcon?: (row: DataSourceRow) => string | undefined;
|
|
237
244
|
/**
|
|
238
245
|
Optional additional level(s) of heading to display above label.
|
|
239
246
|
May span multiple columns, if multiple adjacent columns declare
|
|
@@ -370,6 +377,8 @@ export declare type TableColumnResizeHandler = (
|
|
|
370
377
|
) => void;
|
|
371
378
|
|
|
372
379
|
export interface BaseRowProps {
|
|
380
|
+
ariaRole?: string;
|
|
381
|
+
ariaRowIndex?: number;
|
|
373
382
|
className?: string;
|
|
374
383
|
columns: RuntimeColumnDescriptor[];
|
|
375
384
|
style?: CSSProperties;
|
|
@@ -383,12 +392,14 @@ export interface BaseRowProps {
|
|
|
383
392
|
export interface RowProps extends BaseRowProps {
|
|
384
393
|
classNameGenerator?: RowClassNameGenerator;
|
|
385
394
|
columnMap: ColumnMap;
|
|
395
|
+
groupToggleTarget?: GroupToggleTarget;
|
|
386
396
|
highlighted?: boolean;
|
|
387
|
-
row: DataSourceRow;
|
|
388
397
|
offset: number;
|
|
389
398
|
onClick?: TableRowClickHandlerInternal;
|
|
390
399
|
onDataEdited?: DataCellEditHandler;
|
|
391
400
|
onToggleGroup?: (row: DataSourceRow, column: RuntimeColumnDescriptor) => void;
|
|
401
|
+
row: DataSourceRow;
|
|
402
|
+
showBookends?: boolean;
|
|
392
403
|
zebraStripes?: boolean;
|
|
393
404
|
}
|
|
394
405
|
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vuu-ui/vuu-table-types",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.1",
|
|
4
4
|
"devDependencies": {
|
|
5
|
-
"@vuu-ui/vuu-data-types": "0.
|
|
6
|
-
"@vuu-ui/vuu-filter-types": "0.
|
|
7
|
-
"@vuu-ui/vuu-protocol-types": "0.
|
|
5
|
+
"@vuu-ui/vuu-data-types": "0.9.1",
|
|
6
|
+
"@vuu-ui/vuu-filter-types": "0.9.1",
|
|
7
|
+
"@vuu-ui/vuu-protocol-types": "0.9.1"
|
|
8
8
|
},
|
|
9
9
|
"author": "heswell",
|
|
10
10
|
"license": "Apache-2.0",
|