@vuu-ui/vuu-table-types 0.9.3 → 0.10.0
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 +10 -1
- package/package.json +4 -4
package/index.d.ts
CHANGED
|
@@ -40,7 +40,9 @@ export declare type TableSelectionModel =
|
|
|
40
40
|
export declare type TableHeading = { label: string; width: number };
|
|
41
41
|
export declare type TableHeadings = TableHeading[][];
|
|
42
42
|
|
|
43
|
-
export declare type ValueFormatter
|
|
43
|
+
export declare type ValueFormatter<T extends string | JSX.Element = string> = (
|
|
44
|
+
value: unknown,
|
|
45
|
+
) => T;
|
|
44
46
|
|
|
45
47
|
export interface EditEventState {
|
|
46
48
|
editType?: EditType;
|
|
@@ -66,6 +68,7 @@ export interface TableCellProps {
|
|
|
66
68
|
onClick?: (event: MouseEvent, column: RuntimeColumnDescriptor) => void;
|
|
67
69
|
onDataEdited?: DataCellEditHandler;
|
|
68
70
|
row: DataSourceRow;
|
|
71
|
+
searchPattern?: Lowercase<string>;
|
|
69
72
|
}
|
|
70
73
|
|
|
71
74
|
export declare type CommitResponse = Promise<true | string>;
|
|
@@ -246,6 +249,11 @@ export interface ColumnDescriptor extends DataValueDescriptor {
|
|
|
246
249
|
aggregate?: VuuAggType;
|
|
247
250
|
align?: ColumnAlignment;
|
|
248
251
|
className?: string;
|
|
252
|
+
/**
|
|
253
|
+
* Allows custom content to be rendered into the column header. This will be an identifier.
|
|
254
|
+
* The identifier will be used to retrieve content from the component registry. The componnet
|
|
255
|
+
* yielded will be rendered into the column header.
|
|
256
|
+
*/
|
|
249
257
|
colHeaderContentRenderer?: string;
|
|
250
258
|
colHeaderLabelRenderer?: string;
|
|
251
259
|
flex?: number;
|
|
@@ -419,6 +427,7 @@ export interface RowProps extends BaseRowProps {
|
|
|
419
427
|
onDataEdited?: DataCellEditHandler;
|
|
420
428
|
onToggleGroup?: (row: DataSourceRow, column: RuntimeColumnDescriptor) => void;
|
|
421
429
|
row: DataSourceRow;
|
|
430
|
+
searchPattern: Lowercase<string>;
|
|
422
431
|
showBookends?: boolean;
|
|
423
432
|
zebraStripes?: boolean;
|
|
424
433
|
}
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vuu-ui/vuu-table-types",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.0",
|
|
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.10.0",
|
|
6
|
+
"@vuu-ui/vuu-filter-types": "0.10.0",
|
|
7
|
+
"@vuu-ui/vuu-protocol-types": "0.10.0"
|
|
8
8
|
},
|
|
9
9
|
"author": "heswell",
|
|
10
10
|
"license": "Apache-2.0",
|