@vuu-ui/vuu-table-types 3.3.17 → 3.4.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 +7 -15
- package/package.json +4 -4
package/index.d.ts
CHANGED
|
@@ -84,21 +84,11 @@ export interface EditEventState {
|
|
|
84
84
|
value: VuuRowDataItemType;
|
|
85
85
|
}
|
|
86
86
|
|
|
87
|
-
export interface DataCellEditEvent extends EditEventState {
|
|
88
|
-
columnName?: string;
|
|
89
|
-
dataRow?: DataRow;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
export declare type DataCellEditNotification = (
|
|
93
|
-
editEvent: DataCellEditEvent,
|
|
94
|
-
) => void;
|
|
95
|
-
|
|
96
87
|
export interface TableCellProps {
|
|
97
88
|
className?: string;
|
|
98
89
|
column: RuntimeColumnDescriptor;
|
|
99
90
|
dataRow: DataRow;
|
|
100
91
|
onClick?: (event: MouseEvent, column: RuntimeColumnDescriptor) => void;
|
|
101
|
-
onDataEdited?: TableCellEditHandler;
|
|
102
92
|
searchPattern?: Lowercase<string>;
|
|
103
93
|
}
|
|
104
94
|
|
|
@@ -129,8 +119,7 @@ export declare type TableRowClickHandlerInternal = (
|
|
|
129
119
|
keepExistingSelection: boolean,
|
|
130
120
|
) => void;
|
|
131
121
|
|
|
132
|
-
export interface TableCellRendererProps
|
|
133
|
-
extends Omit<TableCellProps, "onDataEdited"> {
|
|
122
|
+
export interface TableCellRendererProps extends TableCellProps {
|
|
134
123
|
/**
|
|
135
124
|
* has the value of this edit control been changed during the current edit session.
|
|
136
125
|
* This can go from true to false if control is edited to revert a previous change
|
|
@@ -278,6 +267,8 @@ export declare type PinLocation = "left" | "right";
|
|
|
278
267
|
|
|
279
268
|
export declare type ColumnAlignment = "left" | "right";
|
|
280
269
|
|
|
270
|
+
export type RowAccessor = Record<string, unknown>;
|
|
271
|
+
|
|
281
272
|
/** This is a public description of a Column, defining all the
|
|
282
273
|
* column attributes that can be defined by client. */
|
|
283
274
|
export interface ColumnDescriptor extends DataValueDescriptor {
|
|
@@ -299,8 +290,10 @@ export interface ColumnDescriptor extends DataValueDescriptor {
|
|
|
299
290
|
*/
|
|
300
291
|
colHeaderContentRenderer?: string;
|
|
301
292
|
colHeaderLabelRenderer?: string;
|
|
302
|
-
/**
|
|
303
|
-
|
|
293
|
+
/** Whether this column should be included in file/CSV exports. Defaults to true. */
|
|
294
|
+
exportable?: boolean;
|
|
295
|
+
/** Formats a raw value for CSV export; optionally receives row context. Return value is still CSV-escaped. */
|
|
296
|
+
exportFormatter?: (value: unknown, row: RowAccessor) => string;
|
|
304
297
|
flex?: number;
|
|
305
298
|
/**
|
|
306
299
|
* Only used when the column is included in a grouby clause.
|
|
@@ -551,7 +544,6 @@ export interface RowProps extends BaseRowProps {
|
|
|
551
544
|
offset: number;
|
|
552
545
|
onCellEdit?: CellEditHandler;
|
|
553
546
|
onClick?: TableRowClickHandlerInternal;
|
|
554
|
-
onDataEdited?: TableCellEditHandler;
|
|
555
547
|
onToggleGroup?: (row: DataSourceRow, column: RuntimeColumnDescriptor) => void;
|
|
556
548
|
searchPattern: Lowercase<string>;
|
|
557
549
|
showBookends?: boolean;
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vuu-ui/vuu-table-types",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.4.1",
|
|
4
4
|
"devDependencies": {
|
|
5
|
-
"@vuu-ui/vuu-data-types": "3.
|
|
6
|
-
"@vuu-ui/vuu-filter-types": "3.
|
|
7
|
-
"@vuu-ui/vuu-protocol-types": "3.
|
|
5
|
+
"@vuu-ui/vuu-data-types": "3.4.1",
|
|
6
|
+
"@vuu-ui/vuu-filter-types": "3.4.1",
|
|
7
|
+
"@vuu-ui/vuu-protocol-types": "3.4.1"
|
|
8
8
|
},
|
|
9
9
|
"author": "heswell",
|
|
10
10
|
"license": "Apache-2.0",
|