@win2win/shared 1.0.33 → 1.0.35
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.
|
@@ -15,6 +15,7 @@ export interface LayoutSection {
|
|
|
15
15
|
type: LayoutSectionType;
|
|
16
16
|
asyncData: LayoutAsyncData[];
|
|
17
17
|
styles: LayoutStyle;
|
|
18
|
+
content: any;
|
|
18
19
|
}
|
|
19
20
|
export interface TextContent {
|
|
20
21
|
text: string;
|
|
@@ -30,12 +31,12 @@ export interface LayoutSectionTable extends LayoutSection {
|
|
|
30
31
|
type: LayoutSectionType.TABLE;
|
|
31
32
|
content: TableContent;
|
|
32
33
|
}
|
|
33
|
-
export interface
|
|
34
|
+
export interface CardsGridContent {
|
|
34
35
|
cards: Card[];
|
|
35
36
|
}
|
|
36
37
|
export interface LayoutSectionCardsGrid extends LayoutSection {
|
|
37
38
|
type: LayoutSectionType.CARDS_GRID;
|
|
38
|
-
content:
|
|
39
|
+
content: CardsGridContent;
|
|
39
40
|
}
|
|
40
41
|
export interface ImageContent {
|
|
41
42
|
src: string;
|
|
@@ -55,9 +56,9 @@ export declare const LAYOUT_SECTION_TYPES: readonly [LayoutSectionType.TEXT, Lay
|
|
|
55
56
|
export interface TableColumn {
|
|
56
57
|
header: string;
|
|
57
58
|
key: string;
|
|
58
|
-
width
|
|
59
|
-
align
|
|
60
|
-
format
|
|
59
|
+
width?: string | number;
|
|
60
|
+
align?: 'left' | 'center' | 'right';
|
|
61
|
+
format?: string;
|
|
61
62
|
}
|
|
62
63
|
export interface Card {
|
|
63
64
|
title: string;
|
|
@@ -73,10 +74,10 @@ export interface LayoutAsyncData {
|
|
|
73
74
|
key: string;
|
|
74
75
|
query: string;
|
|
75
76
|
params: any;
|
|
76
|
-
formatFn
|
|
77
|
+
formatFn?: string;
|
|
77
78
|
}
|
|
78
79
|
export interface LayoutStyle {
|
|
79
|
-
margins
|
|
80
|
-
background
|
|
81
|
-
typography
|
|
80
|
+
margins?: number[];
|
|
81
|
+
background?: string;
|
|
82
|
+
typography?: string;
|
|
82
83
|
}
|