@automateinc/fleet-types 1.0.83-dev.723e84e → 1.0.84-dev.09f2d46
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.
|
@@ -17,9 +17,28 @@ export type StructuredContentTableToolbarFilterType = "DATE_RANGE" | "SELECT";
|
|
|
17
17
|
export type StructuredContentLayoutWidth = "auto" | "full" | "half" | "third";
|
|
18
18
|
export type StructuredContentLayoutAlign = "center" | "end" | "start";
|
|
19
19
|
export type StructuredContentLayoutSpacing = "lg" | "md" | "none" | "sm";
|
|
20
|
-
export type StructuredContentTagTone =
|
|
20
|
+
export type StructuredContentTagTone =
|
|
21
|
+
| "blue"
|
|
22
|
+
| "cyan"
|
|
23
|
+
| "danger"
|
|
24
|
+
| "default"
|
|
25
|
+
| "geekblue"
|
|
26
|
+
| "gold"
|
|
27
|
+
| "green"
|
|
28
|
+
| "info"
|
|
29
|
+
| "lime"
|
|
30
|
+
| "magenta"
|
|
31
|
+
| "orange"
|
|
32
|
+
| "pink"
|
|
33
|
+
| "purple"
|
|
34
|
+
| "red"
|
|
35
|
+
| "success"
|
|
36
|
+
| "volcano"
|
|
37
|
+
| "warning"
|
|
38
|
+
| "yellow";
|
|
21
39
|
|
|
22
40
|
export interface IStructuredContentTagValue {
|
|
41
|
+
color?: string;
|
|
23
42
|
label: string;
|
|
24
43
|
tone?: StructuredContentTagTone;
|
|
25
44
|
}
|
|
@@ -41,11 +60,43 @@ export interface IStructuredContentNodeLayout {
|
|
|
41
60
|
width?: StructuredContentLayoutWidth;
|
|
42
61
|
}
|
|
43
62
|
|
|
44
|
-
export interface
|
|
63
|
+
export interface IStructuredContentTableToolbarFilterBase {
|
|
45
64
|
columnKey: string;
|
|
46
|
-
type?: StructuredContentTableToolbarFilterType;
|
|
47
65
|
}
|
|
48
66
|
|
|
67
|
+
export interface IStructuredContentTableSelectFilter extends IStructuredContentTableToolbarFilterBase {
|
|
68
|
+
config?: {
|
|
69
|
+
initialValue?: string;
|
|
70
|
+
};
|
|
71
|
+
type?: "SELECT";
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export interface IStructuredContentDateRangeFilterConstraints {
|
|
75
|
+
disableFuture?: boolean;
|
|
76
|
+
disablePast?: boolean;
|
|
77
|
+
disabledDates?: string[];
|
|
78
|
+
disabledWeekdays?: number[];
|
|
79
|
+
maxDate?: string;
|
|
80
|
+
minDate?: string;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export interface IStructuredContentDateRangeFilterInitialValue {
|
|
84
|
+
endDate?: string;
|
|
85
|
+
startDate?: string;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export interface IStructuredContentTableDateRangeFilter extends IStructuredContentTableToolbarFilterBase {
|
|
89
|
+
config?: {
|
|
90
|
+
constraints?: IStructuredContentDateRangeFilterConstraints;
|
|
91
|
+
initialValue?: IStructuredContentDateRangeFilterInitialValue;
|
|
92
|
+
};
|
|
93
|
+
type: "DATE_RANGE";
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export type IStructuredContentTableToolbarFilter =
|
|
97
|
+
| IStructuredContentTableDateRangeFilter
|
|
98
|
+
| IStructuredContentTableSelectFilter;
|
|
99
|
+
|
|
49
100
|
export interface IStructuredContentTableToolbar {
|
|
50
101
|
advancedFilters?: boolean;
|
|
51
102
|
exportCsv?: boolean;
|
|
@@ -57,17 +108,78 @@ export interface IStructuredContentTablePagination {
|
|
|
57
108
|
pageSize?: number;
|
|
58
109
|
}
|
|
59
110
|
|
|
60
|
-
export interface
|
|
61
|
-
config?: {
|
|
62
|
-
size?: number;
|
|
63
|
-
};
|
|
64
|
-
id: string;
|
|
65
|
-
name?: string;
|
|
111
|
+
export interface IStructuredContentTableColumnSortConfig {
|
|
66
112
|
sortType?: StructuredContentTableSortType;
|
|
67
113
|
sortable?: boolean;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
export interface IStructuredContentTableColumnBase {
|
|
117
|
+
id: string;
|
|
68
118
|
type: StructuredContentTableColumnType;
|
|
69
119
|
}
|
|
70
120
|
|
|
121
|
+
export interface IStructuredContentTableNamedColumnBase extends IStructuredContentTableColumnBase {
|
|
122
|
+
name: string;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
export interface IStructuredContentTableDefaultAvatarColumn extends IStructuredContentTableColumnBase {
|
|
126
|
+
config?: {
|
|
127
|
+
size?: number;
|
|
128
|
+
};
|
|
129
|
+
type: "DEFAULT_AVATAR";
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
export interface IStructuredContentTableBooleanColumn extends IStructuredContentTableNamedColumnBase {
|
|
133
|
+
config?: IStructuredContentTableColumnSortConfig;
|
|
134
|
+
type: "BOOLEAN";
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
export interface IStructuredContentTableDateColumn extends IStructuredContentTableNamedColumnBase {
|
|
138
|
+
config?: IStructuredContentTableColumnSortConfig;
|
|
139
|
+
type: "DATE";
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
export interface IStructuredContentTableDateTimeColumn extends IStructuredContentTableNamedColumnBase {
|
|
143
|
+
config?: IStructuredContentTableColumnSortConfig;
|
|
144
|
+
type: "DATETIME";
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
export interface IStructuredContentTableLinkColumn extends IStructuredContentTableNamedColumnBase {
|
|
148
|
+
config?: IStructuredContentTableColumnSortConfig;
|
|
149
|
+
type: "LINK";
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
export interface IStructuredContentTableNumberColumn extends IStructuredContentTableNamedColumnBase {
|
|
153
|
+
config?: IStructuredContentTableColumnSortConfig;
|
|
154
|
+
type: "NUMBER";
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
export interface IStructuredContentTableTagColumn extends IStructuredContentTableNamedColumnBase {
|
|
158
|
+
config?: IStructuredContentTableColumnSortConfig;
|
|
159
|
+
type: "TAG";
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
export interface IStructuredContentTableTextColumn extends IStructuredContentTableNamedColumnBase {
|
|
163
|
+
config?: IStructuredContentTableColumnSortConfig;
|
|
164
|
+
type: "TEXT";
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
export interface IStructuredContentTableTimeColumn extends IStructuredContentTableNamedColumnBase {
|
|
168
|
+
config?: IStructuredContentTableColumnSortConfig;
|
|
169
|
+
type: "TIME";
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
export type IStructuredContentTableColumn =
|
|
173
|
+
| IStructuredContentTableBooleanColumn
|
|
174
|
+
| IStructuredContentTableDateColumn
|
|
175
|
+
| IStructuredContentTableDateTimeColumn
|
|
176
|
+
| IStructuredContentTableDefaultAvatarColumn
|
|
177
|
+
| IStructuredContentTableLinkColumn
|
|
178
|
+
| IStructuredContentTableNumberColumn
|
|
179
|
+
| IStructuredContentTableTagColumn
|
|
180
|
+
| IStructuredContentTableTextColumn
|
|
181
|
+
| IStructuredContentTableTimeColumn;
|
|
182
|
+
|
|
71
183
|
export interface IStructuredContentNodeBase {
|
|
72
184
|
id: string;
|
|
73
185
|
layout?: IStructuredContentNodeLayout;
|
package/package.json
CHANGED