@win2win/shared 1.0.36 → 1.0.38

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.
@@ -7,7 +7,12 @@ export interface DocumentLayout {
7
7
  asyncData: LayoutAsyncData[];
8
8
  styles: LayoutStyle;
9
9
  sections: LayoutSection[];
10
- format: {};
10
+ format: LayoutFormat;
11
+ }
12
+ export interface LayoutFormat {
13
+ pageSize?: string;
14
+ pageOrientation?: 'portrait' | 'landscape';
15
+ pageMargins?: number[];
11
16
  }
12
17
  export interface LayoutSection {
13
18
  idDocumentLayout?: Uuid | null;
@@ -61,13 +66,14 @@ export interface TableColumn {
61
66
  format?: string;
62
67
  }
63
68
  export interface Card {
64
- title: string;
69
+ title?: string;
65
70
  subtitle?: string;
66
71
  fields: CardField[];
67
72
  }
68
73
  export interface CardField {
69
74
  label: string;
70
- value: any;
75
+ value?: any;
76
+ key?: string;
71
77
  format?: string;
72
78
  }
73
79
  export interface LayoutAsyncData {
@@ -82,3 +88,7 @@ export interface LayoutStyle {
82
88
  typography?: string;
83
89
  [key: string]: any;
84
90
  }
91
+ export interface LayoutData {
92
+ global: any;
93
+ [sectionId: Uuid]: any;
94
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@win2win/shared",
3
- "version": "1.0.36",
3
+ "version": "1.0.38",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",