@vuu-ui/vuu-data-types 0.7.6 → 0.8.0
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 +48 -1
- package/package.json +3 -3
package/index.d.ts
CHANGED
|
@@ -1,6 +1,53 @@
|
|
|
1
|
-
import { VuuFilter } from "@vuu-ui/vuu-protocol-types";
|
|
1
|
+
import { VuuFilter, VuuRowDataItemType } from "@vuu-ui/vuu-protocol-types";
|
|
2
2
|
import { Filter } from "@vuu-ui/vuu-filter-types";
|
|
3
3
|
|
|
4
4
|
export interface DataSourceFilter extends VuuFilter {
|
|
5
5
|
filterStruct?: Filter;
|
|
6
6
|
}
|
|
7
|
+
|
|
8
|
+
export interface NamedDataSourceFilter extends DataSourceFilter {
|
|
9
|
+
id?: string;
|
|
10
|
+
name?: string;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
type RowIndex = number;
|
|
14
|
+
type RenderKey = number;
|
|
15
|
+
type IsLeaf = boolean;
|
|
16
|
+
type IsExpanded = boolean;
|
|
17
|
+
type Depth = number;
|
|
18
|
+
type ChildCount = number;
|
|
19
|
+
type RowKey = string;
|
|
20
|
+
export type IsSelected = number;
|
|
21
|
+
|
|
22
|
+
export type DataSourceRow = [
|
|
23
|
+
RowIndex,
|
|
24
|
+
RenderKey,
|
|
25
|
+
IsLeaf,
|
|
26
|
+
IsExpanded,
|
|
27
|
+
Depth,
|
|
28
|
+
ChildCount,
|
|
29
|
+
RowKey,
|
|
30
|
+
IsSelected,
|
|
31
|
+
...VuuRowDataItemType[]
|
|
32
|
+
];
|
|
33
|
+
|
|
34
|
+
export type DataSourceRowPredicate = (row: DataSourceRow) => boolean;
|
|
35
|
+
|
|
36
|
+
export interface ContextMenuItemBase {
|
|
37
|
+
icon?: string;
|
|
38
|
+
label: string;
|
|
39
|
+
location?: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export interface ContextMenuLeafItemDescriptor extends ContextMenuItemBase {
|
|
43
|
+
action: string;
|
|
44
|
+
options?: unknown;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export interface ContextMenuGroupItemDescriptor extends ContextMenuItemBase {
|
|
48
|
+
children: ContextMenuItemDescriptor[];
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export type ContextMenuItemDescriptor =
|
|
52
|
+
| ContextMenuLeafItemDescriptor
|
|
53
|
+
| ContextMenuGroupItemDescriptor;
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vuu-ui/vuu-data-types",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0",
|
|
4
4
|
"author": "heswell",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"devDependencies": {
|
|
7
|
-
"@vuu-ui/vuu-filter-types": "0.
|
|
8
|
-
"@vuu-ui/vuu-protocol-types": "0.
|
|
7
|
+
"@vuu-ui/vuu-filter-types": "0.8.0",
|
|
8
|
+
"@vuu-ui/vuu-protocol-types": "0.8.0"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {},
|
|
11
11
|
"peerDependencies": {},
|