@vuu-ui/vuu-table-types 0.8.93 → 0.8.95
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 +35 -27
- package/package.json +4 -4
package/index.d.ts
CHANGED
|
@@ -29,14 +29,18 @@ import type {
|
|
|
29
29
|
ReactElement,
|
|
30
30
|
} from "react";
|
|
31
31
|
|
|
32
|
-
export type TableSelectionModel =
|
|
32
|
+
export declare type TableSelectionModel =
|
|
33
|
+
| "none"
|
|
34
|
+
| "single"
|
|
35
|
+
| "checkbox"
|
|
36
|
+
| "extended";
|
|
33
37
|
|
|
34
|
-
export type TableHeading = { label: string; width: number };
|
|
35
|
-
export type TableHeadings = TableHeading[][];
|
|
38
|
+
export declare type TableHeading = { label: string; width: number };
|
|
39
|
+
export declare type TableHeadings = TableHeading[][];
|
|
36
40
|
|
|
37
|
-
export type ValueFormatter = (value: unknown) => string;
|
|
41
|
+
export declare type ValueFormatter = (value: unknown) => string;
|
|
38
42
|
|
|
39
|
-
export type DataCellEditHandler = (
|
|
43
|
+
export declare type DataCellEditHandler = (
|
|
40
44
|
row: DataSourceRow,
|
|
41
45
|
columnName: string,
|
|
42
46
|
value: VuuRowDataItemType,
|
|
@@ -51,24 +55,28 @@ export interface TableCellProps {
|
|
|
51
55
|
row: DataSourceRow;
|
|
52
56
|
}
|
|
53
57
|
|
|
54
|
-
export type CommitResponse = Promise<true | string>;
|
|
58
|
+
export declare type CommitResponse = Promise<true | string>;
|
|
55
59
|
|
|
56
|
-
export type DataItemCommitHandler<
|
|
60
|
+
export declare type DataItemCommitHandler<
|
|
57
61
|
T extends VuuRowDataItemType = VuuRowDataItemType,
|
|
58
62
|
> = (value: T) => CommitResponse;
|
|
59
63
|
|
|
60
|
-
export type TableRowSelectHandler = (
|
|
61
|
-
|
|
64
|
+
export declare type TableRowSelectHandler = (
|
|
65
|
+
row: DataSourceRowObject | null,
|
|
66
|
+
) => void;
|
|
67
|
+
export declare type TableRowSelectHandlerInternal = (
|
|
68
|
+
row: DataSourceRow | null,
|
|
69
|
+
) => void;
|
|
62
70
|
|
|
63
71
|
/**
|
|
64
72
|
* Fired when user clicks a row, returning the row object (DataSourceRowObject)
|
|
65
73
|
*/
|
|
66
|
-
export type TableRowClickHandler = (
|
|
74
|
+
export declare type TableRowClickHandler = (
|
|
67
75
|
evt: MouseEvent<HTMLDivElement>,
|
|
68
76
|
row: DataSourceRowObject,
|
|
69
77
|
) => void;
|
|
70
78
|
|
|
71
|
-
export type TableRowClickHandlerInternal = (
|
|
79
|
+
export declare type TableRowClickHandlerInternal = (
|
|
72
80
|
evt: MouseEvent<HTMLDivElement>,
|
|
73
81
|
row: DataSourceRow,
|
|
74
82
|
rangeSelect: boolean,
|
|
@@ -87,7 +95,7 @@ export interface TableCellRendererProps
|
|
|
87
95
|
* on what was originally a fit layout. Once this happens, no further auto
|
|
88
96
|
* fitting will take place. Fit layout always respects max and min widths,
|
|
89
97
|
*/
|
|
90
|
-
export type ColumnLayout = "static" | "fit" | "manual";
|
|
98
|
+
export declare type ColumnLayout = "static" | "fit" | "manual";
|
|
91
99
|
|
|
92
100
|
export interface TableAttributes {
|
|
93
101
|
columnDefaultWidth?: number;
|
|
@@ -99,7 +107,7 @@ export interface TableAttributes {
|
|
|
99
107
|
zebraStripes?: boolean;
|
|
100
108
|
}
|
|
101
109
|
|
|
102
|
-
export type TableMenuLocation = "grid" | "header" | "filter";
|
|
110
|
+
export declare type TableMenuLocation = "grid" | "header" | "filter";
|
|
103
111
|
|
|
104
112
|
export interface VuuCellMenuItem extends VuuMenuItem {
|
|
105
113
|
rowKey: string;
|
|
@@ -145,9 +153,9 @@ export declare type ColumnTypeFormatting = {
|
|
|
145
153
|
zeroPad?: boolean;
|
|
146
154
|
};
|
|
147
155
|
|
|
148
|
-
export type ColumnTypeValueMap = { [key: string]: string };
|
|
156
|
+
export declare type ColumnTypeValueMap = { [key: string]: string };
|
|
149
157
|
|
|
150
|
-
export type ListOption = {
|
|
158
|
+
export declare type ListOption = {
|
|
151
159
|
label: string;
|
|
152
160
|
value: number | string;
|
|
153
161
|
};
|
|
@@ -165,7 +173,7 @@ export interface MappedValueTypeRenderer {
|
|
|
165
173
|
map: ColumnTypeValueMap;
|
|
166
174
|
}
|
|
167
175
|
|
|
168
|
-
export type LookupTableDetails = {
|
|
176
|
+
export declare type LookupTableDetails = {
|
|
169
177
|
labelColumn: string;
|
|
170
178
|
table: VuuTable;
|
|
171
179
|
valueColumn: string;
|
|
@@ -298,17 +306,17 @@ export interface Heading {
|
|
|
298
306
|
}
|
|
299
307
|
|
|
300
308
|
// These are the actions that eventually get routed to the DataSource itself
|
|
301
|
-
export type DataSourceAction =
|
|
309
|
+
export declare type DataSourceAction =
|
|
302
310
|
| GridActionCloseTreeNode
|
|
303
311
|
| GridActionGroup
|
|
304
312
|
| GridActionOpenTreeNode
|
|
305
313
|
| GridActionSort;
|
|
306
314
|
|
|
307
|
-
export type ScrollAction =
|
|
315
|
+
export declare type ScrollAction =
|
|
308
316
|
| GridActionScrollEndHorizontal
|
|
309
317
|
| GridActionScrollStartHorizontal;
|
|
310
318
|
|
|
311
|
-
export type GridAction =
|
|
319
|
+
export declare type GridAction =
|
|
312
320
|
| DataSourceAction
|
|
313
321
|
| ScrollAction
|
|
314
322
|
| GridActionResizeCol
|
|
@@ -343,18 +351,18 @@ export interface TableSettingsProps {
|
|
|
343
351
|
tableConfig: TableConfig;
|
|
344
352
|
}
|
|
345
353
|
|
|
346
|
-
export type DefaultColumnConfiguration = <T extends string = string>(
|
|
354
|
+
export declare type DefaultColumnConfiguration = <T extends string = string>(
|
|
347
355
|
tableName: T,
|
|
348
356
|
columnName: string,
|
|
349
357
|
) => Partial<ColumnDescriptor> | undefined;
|
|
350
358
|
|
|
351
|
-
export type DefaultTableConfiguration = (
|
|
359
|
+
export declare type DefaultTableConfiguration = (
|
|
352
360
|
vuuTable?: VuuTable,
|
|
353
361
|
) => Partial<Omit<TableConfig, "columns">> | undefined;
|
|
354
362
|
|
|
355
|
-
export type ResizePhase = "begin" | "resize" | "end";
|
|
363
|
+
export declare type ResizePhase = "begin" | "resize" | "end";
|
|
356
364
|
|
|
357
|
-
export type TableColumnResizeHandler = (
|
|
365
|
+
export declare type TableColumnResizeHandler = (
|
|
358
366
|
phase: ResizePhase,
|
|
359
367
|
columnName: string,
|
|
360
368
|
width?: number,
|
|
@@ -392,8 +400,8 @@ export interface HeaderCellProps
|
|
|
392
400
|
showMenu?: boolean;
|
|
393
401
|
}
|
|
394
402
|
|
|
395
|
-
export type TableConfigChangeHandler = (config: TableConfig) => void;
|
|
403
|
+
export declare type TableConfigChangeHandler = (config: TableConfig) => void;
|
|
396
404
|
|
|
397
|
-
export type CustomHeaderComponent = FC<BaseRowProps>;
|
|
398
|
-
export type CustomHeaderElement = ReactElement;
|
|
399
|
-
export type CustomHeader = CustomHeaderComponent | CustomHeaderElement;
|
|
405
|
+
export declare type CustomHeaderComponent = FC<BaseRowProps>;
|
|
406
|
+
export declare type CustomHeaderElement = ReactElement;
|
|
407
|
+
export declare type CustomHeader = CustomHeaderComponent | CustomHeaderElement;
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vuu-ui/vuu-table-types",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.95",
|
|
4
4
|
"devDependencies": {
|
|
5
|
-
"@vuu-ui/vuu-data-types": "0.8.
|
|
6
|
-
"@vuu-ui/vuu-filter-types": "0.8.
|
|
7
|
-
"@vuu-ui/vuu-protocol-types": "0.8.
|
|
5
|
+
"@vuu-ui/vuu-data-types": "0.8.95",
|
|
6
|
+
"@vuu-ui/vuu-filter-types": "0.8.95",
|
|
7
|
+
"@vuu-ui/vuu-protocol-types": "0.8.95"
|
|
8
8
|
},
|
|
9
9
|
"author": "heswell",
|
|
10
10
|
"license": "Apache-2.0",
|