@automateinc/fleet-types 1.0.81-dev.08bae97 → 1.0.81-dev.3bc0cf4
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.
|
@@ -1,16 +1,58 @@
|
|
|
1
1
|
export type StructuredContentTextVariant = "H1" | "H2" | "H3" | "H4" | "H5" | "H6" | "PARAGRAPH" | "TEXT";
|
|
2
2
|
export type StructuredContentLinkVariant = "BUTTON" | "LINK";
|
|
3
3
|
export type StructuredContentTableColumnType = "BOOLEAN" | "DATE" | "DATETIME" | "LINK" | "NUMBER" | "TEXT" | "TIME";
|
|
4
|
+
export type StructuredContentTableSortType = "date" | "number" | "string";
|
|
5
|
+
export type StructuredContentLayoutWidth = "auto" | "full" | "half" | "third";
|
|
6
|
+
export type StructuredContentLayoutAlign = "center" | "end" | "start";
|
|
7
|
+
export type StructuredContentLayoutSpacing = "lg" | "md" | "none" | "sm";
|
|
8
|
+
|
|
9
|
+
export interface IStructuredContentNodeLayout {
|
|
10
|
+
align?: StructuredContentLayoutAlign;
|
|
11
|
+
gap?: StructuredContentLayoutSpacing;
|
|
12
|
+
hidden?: boolean;
|
|
13
|
+
marginBottom?: StructuredContentLayoutSpacing;
|
|
14
|
+
marginTop?: StructuredContentLayoutSpacing;
|
|
15
|
+
paddingX?: StructuredContentLayoutSpacing;
|
|
16
|
+
paddingY?: StructuredContentLayoutSpacing;
|
|
17
|
+
width?: StructuredContentLayoutWidth;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export interface IStructuredContentTableToolbarFilter {
|
|
21
|
+
columnKey: string;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export interface IStructuredContentTableToolbar {
|
|
25
|
+
filters?: IStructuredContentTableToolbarFilter[];
|
|
26
|
+
search?: boolean;
|
|
27
|
+
}
|
|
4
28
|
|
|
5
29
|
export interface IStructuredContentTableColumn {
|
|
6
30
|
id: string;
|
|
7
31
|
name: string;
|
|
32
|
+
sortType?: StructuredContentTableSortType;
|
|
33
|
+
sortable?: boolean;
|
|
8
34
|
type: StructuredContentTableColumnType;
|
|
9
35
|
}
|
|
10
36
|
|
|
11
37
|
export interface IStructuredContentNodeBase {
|
|
12
38
|
id: string;
|
|
13
|
-
|
|
39
|
+
layout?: IStructuredContentNodeLayout;
|
|
40
|
+
type: "COLLAPSE" | "FILES" | "LINK" | "SPACE" | "TABLE" | "TEXT";
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export interface IStructuredContentCollapseNode extends IStructuredContentNodeBase {
|
|
44
|
+
children?: IStructuredContentNode[];
|
|
45
|
+
config?: {
|
|
46
|
+
title?: string;
|
|
47
|
+
};
|
|
48
|
+
type: "COLLAPSE";
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export interface IStructuredContentFilesNode extends IStructuredContentNodeBase {
|
|
52
|
+
config?: {
|
|
53
|
+
source?: "HISTORY";
|
|
54
|
+
};
|
|
55
|
+
type: "FILES";
|
|
14
56
|
}
|
|
15
57
|
|
|
16
58
|
export interface IStructuredContentSpaceNode extends IStructuredContentNodeBase {
|
|
@@ -35,11 +77,14 @@ export interface IStructuredContentLinkNode extends IStructuredContentNodeBase {
|
|
|
35
77
|
export interface IStructuredContentTableNode extends IStructuredContentNodeBase {
|
|
36
78
|
config?: {
|
|
37
79
|
columns?: IStructuredContentTableColumn[];
|
|
80
|
+
toolbar?: IStructuredContentTableToolbar;
|
|
38
81
|
};
|
|
39
82
|
type: "TABLE";
|
|
40
83
|
}
|
|
41
84
|
|
|
42
85
|
export type IStructuredContentNode =
|
|
86
|
+
| IStructuredContentCollapseNode
|
|
87
|
+
| IStructuredContentFilesNode
|
|
43
88
|
| IStructuredContentLinkNode
|
|
44
89
|
| IStructuredContentSpaceNode
|
|
45
90
|
| IStructuredContentTableNode
|
package/package.json
CHANGED