@vuu-ui/vuu-table-types 0.9.2 → 0.9.3
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 +12 -3
- package/package.json +4 -4
package/index.d.ts
CHANGED
|
@@ -21,11 +21,12 @@ import type {
|
|
|
21
21
|
RowClassNameGenerator,
|
|
22
22
|
} from "@vuu-ui/vuu-utils";
|
|
23
23
|
import type {
|
|
24
|
+
ComponentType,
|
|
24
25
|
CSSProperties,
|
|
25
26
|
FunctionComponent,
|
|
27
|
+
FunctionComponentElement,
|
|
26
28
|
HTMLAttributes,
|
|
27
29
|
MouseEvent,
|
|
28
|
-
ReactElement,
|
|
29
30
|
} from "react";
|
|
30
31
|
|
|
31
32
|
export declare type GroupToggleTarget = "toggle-icon" | "group-column";
|
|
@@ -267,6 +268,13 @@ export interface ColumnDescriptor extends DataValueDescriptor {
|
|
|
267
268
|
pin?: PinLocation;
|
|
268
269
|
resizeable?: boolean;
|
|
269
270
|
sortable?: boolean;
|
|
271
|
+
/**
|
|
272
|
+
* 'client' columns will not receive data from dataSource.
|
|
273
|
+
* They can be used with a custom renderer, e.g to render
|
|
274
|
+
* action buttons.
|
|
275
|
+
* default is 'server'
|
|
276
|
+
*/
|
|
277
|
+
source?: "client" | "server";
|
|
270
278
|
width?: number;
|
|
271
279
|
}
|
|
272
280
|
|
|
@@ -426,8 +434,9 @@ export interface HeaderCellProps
|
|
|
426
434
|
|
|
427
435
|
export declare type TableConfigChangeHandler = (config: TableConfig) => void;
|
|
428
436
|
|
|
429
|
-
export declare type CustomHeaderComponent =
|
|
430
|
-
export declare type CustomHeaderElement =
|
|
437
|
+
export declare type CustomHeaderComponent = ComponentType<BaseRowProps>;
|
|
438
|
+
export declare type CustomHeaderElement =
|
|
439
|
+
FunctionComponentElement<BaseRowProps>;
|
|
431
440
|
export declare type CustomHeader = CustomHeaderComponent | CustomHeaderElement;
|
|
432
441
|
|
|
433
442
|
/**
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vuu-ui/vuu-table-types",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.3",
|
|
4
4
|
"devDependencies": {
|
|
5
|
-
"@vuu-ui/vuu-data-types": "0.9.
|
|
6
|
-
"@vuu-ui/vuu-filter-types": "0.9.
|
|
7
|
-
"@vuu-ui/vuu-protocol-types": "0.9.
|
|
5
|
+
"@vuu-ui/vuu-data-types": "0.9.3",
|
|
6
|
+
"@vuu-ui/vuu-filter-types": "0.9.3",
|
|
7
|
+
"@vuu-ui/vuu-protocol-types": "0.9.3"
|
|
8
8
|
},
|
|
9
9
|
"author": "heswell",
|
|
10
10
|
"license": "Apache-2.0",
|