@win2win/shared 1.0.30 → 1.0.31
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,3 +1,46 @@
|
|
|
1
|
+
import { Uuid } from "../index";
|
|
2
|
+
export interface DocumentLayout {
|
|
3
|
+
idDocumentLayout?: Uuid | null;
|
|
4
|
+
context: string;
|
|
5
|
+
name: string;
|
|
6
|
+
description: string;
|
|
7
|
+
asyncData: LayoutAsyncData[];
|
|
8
|
+
styles: LayoutStyle;
|
|
9
|
+
sections: LayoutSection[];
|
|
10
|
+
format: {};
|
|
11
|
+
}
|
|
12
|
+
export interface LayoutSection {
|
|
13
|
+
idDocumentLayout?: Uuid | null;
|
|
14
|
+
idDocLaySection?: Uuid | null;
|
|
15
|
+
type: LayoutSectionType;
|
|
16
|
+
asyncData: LayoutAsyncData[];
|
|
17
|
+
styles: LayoutStyle;
|
|
18
|
+
content: any;
|
|
19
|
+
}
|
|
20
|
+
export interface LayoutSectionText extends LayoutSection {
|
|
21
|
+
type: LayoutSectionType.TEXT;
|
|
22
|
+
content: {
|
|
23
|
+
text: string;
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
export interface LayoutSectionTable extends LayoutSection {
|
|
27
|
+
type: LayoutSectionType.TABLE;
|
|
28
|
+
content: {
|
|
29
|
+
columns: TableColumn[];
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
export interface LayoutSectionCardsGrid extends LayoutSection {
|
|
33
|
+
type: LayoutSectionType.CARDS_GRID;
|
|
34
|
+
content: {
|
|
35
|
+
cards: Card[];
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
export interface LayoutSectionImage extends LayoutSection {
|
|
39
|
+
type: LayoutSectionType.IMAGE;
|
|
40
|
+
content: {
|
|
41
|
+
url: string;
|
|
42
|
+
};
|
|
43
|
+
}
|
|
1
44
|
export declare enum LayoutSectionType {
|
|
2
45
|
TEXT = "text",
|
|
3
46
|
TABLE = "table",
|
|
@@ -1,35 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// export interface DocumentLayout {
|
|
3
|
-
// context: string,
|
|
4
|
-
// name: string,
|
|
5
|
-
// description: string,
|
|
6
|
-
// asyncData: LayoutAsyncData[],
|
|
7
|
-
// styles: LayoutStyle,
|
|
8
|
-
// sections: LayoutSection[]
|
|
9
|
-
// format: {},
|
|
10
|
-
// }
|
|
11
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
3
|
exports.LAYOUT_SECTION_TYPES = exports.LayoutSectionType = void 0;
|
|
13
|
-
// export interface LayoutSection {
|
|
14
|
-
// idDocLaySection: string,
|
|
15
|
-
// idDocumentLayout: String;
|
|
16
|
-
// type: LayoutSectionType;
|
|
17
|
-
// asyncData: LayoutAsyncData[],
|
|
18
|
-
// styles: LayoutStyle,
|
|
19
|
-
// content: any;
|
|
20
|
-
// }
|
|
21
|
-
// export interface LayoutSectionText extends LayoutSection {
|
|
22
|
-
// type: 'text';
|
|
23
|
-
// content: { text: string };
|
|
24
|
-
// }
|
|
25
|
-
// export interface LayoutSectionTable extends LayoutSection {
|
|
26
|
-
// type: 'table';
|
|
27
|
-
// content: { columns: TableSectionColumn[] };
|
|
28
|
-
// }
|
|
29
|
-
// export interface LayoutSectionCardsGrid extends LayoutSection {
|
|
30
|
-
// type: 'cards-grid';
|
|
31
|
-
// content: { cards: CardsGridSectionCard[] };
|
|
32
|
-
// }
|
|
33
4
|
var LayoutSectionType;
|
|
34
5
|
(function (LayoutSectionType) {
|
|
35
6
|
LayoutSectionType["TEXT"] = "text";
|