@vuu-ui/vuu-table-types 0.8.24-debug → 0.8.25-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 +13 -4
- package/package.json +2 -2
package/index.d.ts
CHANGED
|
@@ -6,10 +6,9 @@ import type {
|
|
|
6
6
|
VuuSortType,
|
|
7
7
|
VuuTable,
|
|
8
8
|
} from "@vuu-ui/vuu-protocol-types";
|
|
9
|
-
import type { VuuDataRow } from "@vuu-ui/vuu-protocol-types";
|
|
10
9
|
import type { ClientSideValidationChecker } from "@vuu-ui/vuu-ui-controls";
|
|
11
10
|
import type { DateTimePattern } from "@vuu-ui/vuu-utils";
|
|
12
|
-
import { DataSourceRow } from "@vuu-ui/vuu-data-types";
|
|
11
|
+
import { DataSourceRow, DataSourceRowObject } from "@vuu-ui/vuu-data-types";
|
|
13
12
|
import type { FunctionComponent, MouseEvent } from "react";
|
|
14
13
|
import type { HTMLAttributes } from "react";
|
|
15
14
|
|
|
@@ -45,9 +44,19 @@ export type DataItemCommitHandler<
|
|
|
45
44
|
T extends VuuRowDataItemType = VuuRowDataItemType
|
|
46
45
|
> = (value: T) => CommitResponse;
|
|
47
46
|
|
|
48
|
-
export type
|
|
47
|
+
export type TableRowSelectHandler = (row: DataSourceRowObject | null) => void;
|
|
48
|
+
export type TableRowSelectHandlerInternal = (row: DataSourceRow | null) => void;
|
|
49
49
|
|
|
50
|
-
|
|
50
|
+
/**
|
|
51
|
+
* Fired when user clicks a row, returning the row object (DataSourceRowObject)
|
|
52
|
+
*/
|
|
53
|
+
export type TableRowClickHandler = (
|
|
54
|
+
evt: MouseEvent<HTMLDivElement>,
|
|
55
|
+
row: DataSourceRowObject
|
|
56
|
+
) => void;
|
|
57
|
+
|
|
58
|
+
export type TableRowClickHandlerInternal = (
|
|
59
|
+
evt: MouseEvent<HTMLDivElement>,
|
|
51
60
|
row: DataSourceRow,
|
|
52
61
|
rangeSelect: boolean,
|
|
53
62
|
keepExistingSelection: boolean
|
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.25-debug",
|
|
4
4
|
"devDependencies": {
|
|
5
|
-
"@vuu-ui/vuu-protocol-types": "0.8.
|
|
5
|
+
"@vuu-ui/vuu-protocol-types": "0.8.25-debug"
|
|
6
6
|
},
|
|
7
7
|
"author": "heswell",
|
|
8
8
|
"license": "Apache-2.0",
|