@vuu-ui/vuu-table-types 0.8.23-debug → 0.8.24-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 +16 -0
- package/package.json +2 -2
package/index.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ import type {
|
|
|
9
9
|
import type { VuuDataRow } from "@vuu-ui/vuu-protocol-types";
|
|
10
10
|
import type { ClientSideValidationChecker } from "@vuu-ui/vuu-ui-controls";
|
|
11
11
|
import type { DateTimePattern } from "@vuu-ui/vuu-utils";
|
|
12
|
+
import { DataSourceRow } from "@vuu-ui/vuu-data-types";
|
|
12
13
|
import type { FunctionComponent, MouseEvent } from "react";
|
|
13
14
|
import type { HTMLAttributes } from "react";
|
|
14
15
|
|
|
@@ -74,6 +75,7 @@ export interface TableAttributes {
|
|
|
74
75
|
*/
|
|
75
76
|
export interface TableConfig extends TableAttributes {
|
|
76
77
|
columns: ColumnDescriptor[];
|
|
78
|
+
rowClassNameGenerators?: string[];
|
|
77
79
|
}
|
|
78
80
|
export interface GridConfig extends TableConfig {
|
|
79
81
|
headings: TableHeadings;
|
|
@@ -171,6 +173,20 @@ export declare type ColumnTypeDescriptorCustomRenderer = {
|
|
|
171
173
|
renderer: ColumnTypeRendering;
|
|
172
174
|
};
|
|
173
175
|
|
|
176
|
+
export interface FormattingSettingsProps<
|
|
177
|
+
T extends ColumnDescriptor = ColumnDescriptor
|
|
178
|
+
> {
|
|
179
|
+
column: T;
|
|
180
|
+
onChangeFormatting: (formatting: ColumnTypeFormatting) => void;
|
|
181
|
+
/**
|
|
182
|
+
Triggered by a change to the ColumnDescriptor column type, which is
|
|
183
|
+
not the same as ServerDataType and allows for a refinement of the
|
|
184
|
+
latter. e.g a server data type of long may be further refined as
|
|
185
|
+
a date/time value using the column descriptor type.
|
|
186
|
+
*/
|
|
187
|
+
onChangeColumnType: (type: ColumnTypeSimple) => void;
|
|
188
|
+
}
|
|
189
|
+
|
|
174
190
|
export interface ColumnTypeRendererWithValidationRules
|
|
175
191
|
extends ColumnTypeRendering {
|
|
176
192
|
rules: EditValidationRule[];
|
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.24-debug",
|
|
4
4
|
"devDependencies": {
|
|
5
|
-
"@vuu-ui/vuu-protocol-types": "0.8.
|
|
5
|
+
"@vuu-ui/vuu-protocol-types": "0.8.24-debug"
|
|
6
6
|
},
|
|
7
7
|
"author": "heswell",
|
|
8
8
|
"license": "Apache-2.0",
|