@automateinc/fleet-types 1.0.81-dev.c188413 → 1.0.81-dev.e1bc9c3
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,50 @@
|
|
|
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 StructuredContentTableToolbarFilterType = "DATE_RANGE" | "SELECT";
|
|
6
|
+
export type StructuredContentLayoutWidth = "auto" | "full" | "half" | "third";
|
|
7
|
+
export type StructuredContentLayoutAlign = "center" | "end" | "start";
|
|
8
|
+
export type StructuredContentLayoutSpacing = "lg" | "md" | "none" | "sm";
|
|
9
|
+
export type StructuredContentTagTone = "danger" | "default" | "info" | "success" | "warning";
|
|
10
|
+
|
|
11
|
+
export interface IStructuredContentNodeLayout {
|
|
12
|
+
align?: StructuredContentLayoutAlign;
|
|
13
|
+
gap?: StructuredContentLayoutSpacing;
|
|
14
|
+
hidden?: boolean;
|
|
15
|
+
marginBottom?: StructuredContentLayoutSpacing;
|
|
16
|
+
marginTop?: StructuredContentLayoutSpacing;
|
|
17
|
+
paddingX?: StructuredContentLayoutSpacing;
|
|
18
|
+
paddingY?: StructuredContentLayoutSpacing;
|
|
19
|
+
width?: StructuredContentLayoutWidth;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export interface IStructuredContentTableToolbarFilter {
|
|
23
|
+
columnKey: string;
|
|
24
|
+
type?: StructuredContentTableToolbarFilterType;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export interface IStructuredContentTableToolbar {
|
|
28
|
+
filters?: IStructuredContentTableToolbarFilter[];
|
|
29
|
+
search?: boolean;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export interface IStructuredContentTablePagination {
|
|
33
|
+
pageSize?: number;
|
|
34
|
+
}
|
|
4
35
|
|
|
5
36
|
export interface IStructuredContentTableColumn {
|
|
6
37
|
id: string;
|
|
7
38
|
name: string;
|
|
39
|
+
sortType?: StructuredContentTableSortType;
|
|
40
|
+
sortable?: boolean;
|
|
8
41
|
type: StructuredContentTableColumnType;
|
|
9
42
|
}
|
|
10
43
|
|
|
11
44
|
export interface IStructuredContentNodeBase {
|
|
12
45
|
id: string;
|
|
13
|
-
|
|
46
|
+
layout?: IStructuredContentNodeLayout;
|
|
47
|
+
type: "COLLAPSE" | "FILES" | "LINK" | "SPACE" | "TABLE" | "TAG" | "TEXT";
|
|
14
48
|
}
|
|
15
49
|
|
|
16
50
|
export interface IStructuredContentCollapseNode extends IStructuredContentNodeBase {
|
|
@@ -40,6 +74,13 @@ export interface IStructuredContentTextNode extends IStructuredContentNodeBase {
|
|
|
40
74
|
type: "TEXT";
|
|
41
75
|
}
|
|
42
76
|
|
|
77
|
+
export interface IStructuredContentTagNode extends IStructuredContentNodeBase {
|
|
78
|
+
config?: {
|
|
79
|
+
tone?: StructuredContentTagTone;
|
|
80
|
+
};
|
|
81
|
+
type: "TAG";
|
|
82
|
+
}
|
|
83
|
+
|
|
43
84
|
export interface IStructuredContentLinkNode extends IStructuredContentNodeBase {
|
|
44
85
|
config?: {
|
|
45
86
|
variant?: StructuredContentLinkVariant;
|
|
@@ -50,6 +91,8 @@ export interface IStructuredContentLinkNode extends IStructuredContentNodeBase {
|
|
|
50
91
|
export interface IStructuredContentTableNode extends IStructuredContentNodeBase {
|
|
51
92
|
config?: {
|
|
52
93
|
columns?: IStructuredContentTableColumn[];
|
|
94
|
+
pagination?: IStructuredContentTablePagination;
|
|
95
|
+
toolbar?: IStructuredContentTableToolbar;
|
|
53
96
|
};
|
|
54
97
|
type: "TABLE";
|
|
55
98
|
}
|
|
@@ -59,6 +102,7 @@ export type IStructuredContentNode =
|
|
|
59
102
|
| IStructuredContentFilesNode
|
|
60
103
|
| IStructuredContentLinkNode
|
|
61
104
|
| IStructuredContentSpaceNode
|
|
105
|
+
| IStructuredContentTagNode
|
|
62
106
|
| IStructuredContentTableNode
|
|
63
107
|
| IStructuredContentTextNode;
|
|
64
108
|
|
package/package.json
CHANGED