@automateinc/fleet-types 1.0.83-dev.723e84e → 1.0.84-dev.f9924e0
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.
|
@@ -41,11 +41,43 @@ export interface IStructuredContentNodeLayout {
|
|
|
41
41
|
width?: StructuredContentLayoutWidth;
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
-
export interface
|
|
44
|
+
export interface IStructuredContentTableToolbarFilterBase {
|
|
45
45
|
columnKey: string;
|
|
46
|
-
type?: StructuredContentTableToolbarFilterType;
|
|
47
46
|
}
|
|
48
47
|
|
|
48
|
+
export interface IStructuredContentTableSelectFilter extends IStructuredContentTableToolbarFilterBase {
|
|
49
|
+
config?: {
|
|
50
|
+
initialValue?: string;
|
|
51
|
+
};
|
|
52
|
+
type?: "SELECT";
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export interface IStructuredContentDateRangeFilterConstraints {
|
|
56
|
+
disableFuture?: boolean;
|
|
57
|
+
disablePast?: boolean;
|
|
58
|
+
disabledDates?: string[];
|
|
59
|
+
disabledWeekdays?: number[];
|
|
60
|
+
maxDate?: string;
|
|
61
|
+
minDate?: string;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export interface IStructuredContentDateRangeFilterInitialValue {
|
|
65
|
+
endDate?: string;
|
|
66
|
+
startDate?: string;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export interface IStructuredContentTableDateRangeFilter extends IStructuredContentTableToolbarFilterBase {
|
|
70
|
+
config?: {
|
|
71
|
+
constraints?: IStructuredContentDateRangeFilterConstraints;
|
|
72
|
+
initialValue?: IStructuredContentDateRangeFilterInitialValue;
|
|
73
|
+
};
|
|
74
|
+
type: "DATE_RANGE";
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export type IStructuredContentTableToolbarFilter =
|
|
78
|
+
| IStructuredContentTableDateRangeFilter
|
|
79
|
+
| IStructuredContentTableSelectFilter;
|
|
80
|
+
|
|
49
81
|
export interface IStructuredContentTableToolbar {
|
|
50
82
|
advancedFilters?: boolean;
|
|
51
83
|
exportCsv?: boolean;
|
|
@@ -57,17 +89,78 @@ export interface IStructuredContentTablePagination {
|
|
|
57
89
|
pageSize?: number;
|
|
58
90
|
}
|
|
59
91
|
|
|
60
|
-
export interface
|
|
61
|
-
config?: {
|
|
62
|
-
size?: number;
|
|
63
|
-
};
|
|
64
|
-
id: string;
|
|
65
|
-
name?: string;
|
|
92
|
+
export interface IStructuredContentTableColumnSortConfig {
|
|
66
93
|
sortType?: StructuredContentTableSortType;
|
|
67
94
|
sortable?: boolean;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export interface IStructuredContentTableColumnBase {
|
|
98
|
+
id: string;
|
|
68
99
|
type: StructuredContentTableColumnType;
|
|
69
100
|
}
|
|
70
101
|
|
|
102
|
+
export interface IStructuredContentTableNamedColumnBase extends IStructuredContentTableColumnBase {
|
|
103
|
+
name: string;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
export interface IStructuredContentTableDefaultAvatarColumn extends IStructuredContentTableColumnBase {
|
|
107
|
+
config?: {
|
|
108
|
+
size?: number;
|
|
109
|
+
};
|
|
110
|
+
type: "DEFAULT_AVATAR";
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
export interface IStructuredContentTableBooleanColumn extends IStructuredContentTableNamedColumnBase {
|
|
114
|
+
config?: IStructuredContentTableColumnSortConfig;
|
|
115
|
+
type: "BOOLEAN";
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
export interface IStructuredContentTableDateColumn extends IStructuredContentTableNamedColumnBase {
|
|
119
|
+
config?: IStructuredContentTableColumnSortConfig;
|
|
120
|
+
type: "DATE";
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
export interface IStructuredContentTableDateTimeColumn extends IStructuredContentTableNamedColumnBase {
|
|
124
|
+
config?: IStructuredContentTableColumnSortConfig;
|
|
125
|
+
type: "DATETIME";
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
export interface IStructuredContentTableLinkColumn extends IStructuredContentTableNamedColumnBase {
|
|
129
|
+
config?: IStructuredContentTableColumnSortConfig;
|
|
130
|
+
type: "LINK";
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
export interface IStructuredContentTableNumberColumn extends IStructuredContentTableNamedColumnBase {
|
|
134
|
+
config?: IStructuredContentTableColumnSortConfig;
|
|
135
|
+
type: "NUMBER";
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
export interface IStructuredContentTableTagColumn extends IStructuredContentTableNamedColumnBase {
|
|
139
|
+
config?: IStructuredContentTableColumnSortConfig;
|
|
140
|
+
type: "TAG";
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
export interface IStructuredContentTableTextColumn extends IStructuredContentTableNamedColumnBase {
|
|
144
|
+
config?: IStructuredContentTableColumnSortConfig;
|
|
145
|
+
type: "TEXT";
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
export interface IStructuredContentTableTimeColumn extends IStructuredContentTableNamedColumnBase {
|
|
149
|
+
config?: IStructuredContentTableColumnSortConfig;
|
|
150
|
+
type: "TIME";
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
export type IStructuredContentTableColumn =
|
|
154
|
+
| IStructuredContentTableBooleanColumn
|
|
155
|
+
| IStructuredContentTableDateColumn
|
|
156
|
+
| IStructuredContentTableDateTimeColumn
|
|
157
|
+
| IStructuredContentTableDefaultAvatarColumn
|
|
158
|
+
| IStructuredContentTableLinkColumn
|
|
159
|
+
| IStructuredContentTableNumberColumn
|
|
160
|
+
| IStructuredContentTableTagColumn
|
|
161
|
+
| IStructuredContentTableTextColumn
|
|
162
|
+
| IStructuredContentTableTimeColumn;
|
|
163
|
+
|
|
71
164
|
export interface IStructuredContentNodeBase {
|
|
72
165
|
id: string;
|
|
73
166
|
layout?: IStructuredContentNodeLayout;
|
package/package.json
CHANGED