@automateinc/fleet-types 1.0.81-dev.c188413 → 1.0.81-dev.cc51323

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,15 +1,46 @@
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
+ }
28
+
29
+ export interface IStructuredContentTablePagination {
30
+ pageSize?: number;
31
+ }
4
32
 
5
33
  export interface IStructuredContentTableColumn {
6
34
  id: string;
7
35
  name: string;
36
+ sortType?: StructuredContentTableSortType;
37
+ sortable?: boolean;
8
38
  type: StructuredContentTableColumnType;
9
39
  }
10
40
 
11
41
  export interface IStructuredContentNodeBase {
12
42
  id: string;
43
+ layout?: IStructuredContentNodeLayout;
13
44
  type: "COLLAPSE" | "FILES" | "LINK" | "SPACE" | "TABLE" | "TEXT";
14
45
  }
15
46
 
@@ -50,6 +81,8 @@ export interface IStructuredContentLinkNode extends IStructuredContentNodeBase {
50
81
  export interface IStructuredContentTableNode extends IStructuredContentNodeBase {
51
82
  config?: {
52
83
  columns?: IStructuredContentTableColumn[];
84
+ pagination?: IStructuredContentTablePagination;
85
+ toolbar?: IStructuredContentTableToolbar;
53
86
  };
54
87
  type: "TABLE";
55
88
  }
package/package.json CHANGED
@@ -52,5 +52,5 @@
52
52
  "test": "echo \"Error: no test specified\" && exit 1"
53
53
  },
54
54
  "types": "dist/types/index.d.ts",
55
- "version": "1.0.81-dev.c188413"
55
+ "version": "1.0.81-dev.cc51323"
56
56
  }