@vuu-ui/vuu-table-types 0.8.22-debug → 0.8.23-debug
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 -3
- package/package.json +2 -2
package/index.d.ts
CHANGED
|
@@ -7,7 +7,6 @@ import type {
|
|
|
7
7
|
VuuTable,
|
|
8
8
|
} from "@vuu-ui/vuu-protocol-types";
|
|
9
9
|
import type { VuuDataRow } from "@vuu-ui/vuu-protocol-types";
|
|
10
|
-
import type { ValueFormatter } from "@vuu-ui/vuu-table";
|
|
11
10
|
import type { ClientSideValidationChecker } from "@vuu-ui/vuu-ui-controls";
|
|
12
11
|
import type { DateTimePattern } from "@vuu-ui/vuu-utils";
|
|
13
12
|
import type { FunctionComponent, MouseEvent } from "react";
|
|
@@ -18,6 +17,12 @@ export type TableSelectionModel = "none" | "single" | "checkbox" | "extended";
|
|
|
18
17
|
export type TableHeading = { label: string; width: number };
|
|
19
18
|
export type TableHeadings = TableHeading[][];
|
|
20
19
|
|
|
20
|
+
export type ValueFormatter = (value: unknown) => string;
|
|
21
|
+
|
|
22
|
+
export type ClientSideValidationChecker = (
|
|
23
|
+
value?: VuuRowDataItemType
|
|
24
|
+
) => string | false | undefined;
|
|
25
|
+
|
|
21
26
|
export type DataCellEditHandler = (
|
|
22
27
|
row: DataSourceRow,
|
|
23
28
|
columnName: string,
|
|
@@ -204,6 +209,7 @@ export interface ColumnDescriptor {
|
|
|
204
209
|
/** The Label to display on column in Table */
|
|
205
210
|
label?: string;
|
|
206
211
|
locked?: boolean;
|
|
212
|
+
maxWidth?: number;
|
|
207
213
|
minWidth?: number;
|
|
208
214
|
name: string;
|
|
209
215
|
pin?: PinLocation;
|
|
@@ -226,15 +232,17 @@ export interface RuntimeColumnDescriptor extends ColumnDescriptor {
|
|
|
226
232
|
CellRenderer?: FunctionComponent<TableCellRendererProps>;
|
|
227
233
|
HeaderCellLabelRenderer?: FunctionComponent<HeaderCellProps>;
|
|
228
234
|
HeaderCellContentRenderer?: FunctionComponent<HeaderCellProps>;
|
|
235
|
+
canStretch?: boolean;
|
|
229
236
|
className?: string;
|
|
230
237
|
clientSideEditValidationCheck?: ClientSideValidationChecker;
|
|
231
238
|
endPin?: true | undefined;
|
|
232
239
|
filter?: Filter;
|
|
233
240
|
flex?: number;
|
|
234
241
|
heading?: [...string[]];
|
|
242
|
+
/** A 1 based index for aria-colindex */
|
|
243
|
+
index?: number;
|
|
235
244
|
isGroup?: boolean;
|
|
236
245
|
isSystemColumn?: boolean;
|
|
237
|
-
key: number;
|
|
238
246
|
label: string;
|
|
239
247
|
locked?: boolean;
|
|
240
248
|
marginLeft?: number;
|
|
@@ -246,7 +254,6 @@ export interface RuntimeColumnDescriptor extends ColumnDescriptor {
|
|
|
246
254
|
resizing?: boolean;
|
|
247
255
|
sortable?: boolean;
|
|
248
256
|
sorted?: ColumnSort;
|
|
249
|
-
type?: ColumnType;
|
|
250
257
|
valueFormatter: ValueFormatter;
|
|
251
258
|
width: number;
|
|
252
259
|
}
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vuu-ui/vuu-table-types",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.23-debug",
|
|
4
4
|
"devDependencies": {
|
|
5
|
-
"@vuu-ui/vuu-protocol-types": "0.8.
|
|
5
|
+
"@vuu-ui/vuu-protocol-types": "0.8.23-debug"
|
|
6
6
|
},
|
|
7
7
|
"author": "heswell",
|
|
8
8
|
"license": "Apache-2.0",
|