|
1 | 1 | export interface MetadataGroup { |
2 | | - leading: string; |
3 | | - elements: LayoutField[]; |
| 2 | + leading: string; |
| 3 | + elements: LayoutField[]; |
4 | 4 | } |
5 | 5 |
|
6 | 6 | export interface LayoutBitstream { |
7 | | - bundle: string; |
8 | | - metadataField: string; |
9 | | - metadataValue: string; |
| 7 | + bundle: string; |
| 8 | + metadataField: string; |
| 9 | + metadataValue: string; |
10 | 10 | } |
11 | 11 |
|
12 | 12 | export enum LayoutFieldType { |
13 | 13 | METADATA = 'METADATA', |
14 | 14 | METADATAGROUP = 'METADATAGROUP', |
15 | 15 | BITSTREAM = 'BITSTREAM' |
16 | 16 | } |
| 17 | + |
17 | 18 | export interface LayoutField { |
18 | | - metadata?: string; |
19 | | - bitstream?: LayoutBitstream; |
20 | | - label?: string; |
21 | | - rendering: string; |
22 | | - fieldType: LayoutFieldType|string; |
23 | | - style?: string; |
24 | | - styleLabel?: string; |
25 | | - styleValue?: string; |
26 | | - metadataGroup?: MetadataGroup; |
27 | | - labelAsHeading: boolean; |
28 | | - valuesInline: boolean; |
| 19 | + metadata?: string; |
| 20 | + bitstream?: LayoutBitstream; |
| 21 | + label?: string; |
| 22 | + rendering: string; |
| 23 | + fieldType: LayoutFieldType | string; |
| 24 | + style?: string; |
| 25 | + styleLabel?: string; |
| 26 | + styleValue?: string; |
| 27 | + metadataGroup?: MetadataGroup; |
| 28 | + labelAsHeading: boolean; |
| 29 | + valuesInline: boolean; |
29 | 30 | } |
30 | 31 |
|
31 | 32 | export interface MetadataBoxConfiguration extends BoxConfiguration { |
32 | | - id: string; |
33 | | - rows: MetadataBoxRow[]; |
| 33 | + id: string; |
| 34 | + rows: MetadataBoxRow[]; |
34 | 35 | } |
35 | 36 |
|
36 | 37 | export interface BoxConfiguration { |
37 | | - type: string; |
| 38 | + type: string; |
38 | 39 | } |
39 | 40 |
|
40 | 41 | export interface RelationBoxConfiguration extends BoxConfiguration { |
41 | | - 'discovery-configuration': string; |
| 42 | + 'discovery-configuration': string; |
42 | 43 | } |
43 | 44 |
|
44 | 45 | export interface MetricsBoxConfiguration extends BoxConfiguration { |
45 | | - maxColumns: null; |
46 | | - metrics: string[]; |
| 46 | + maxColumns: null; |
| 47 | + metrics: string[]; |
47 | 48 | } |
48 | 49 |
|
49 | 50 | export interface MetadataBoxCell { |
50 | | - style: string; |
51 | | - fields: LayoutField[]; |
| 51 | + style: string; |
| 52 | + fields: LayoutField[]; |
52 | 53 | } |
53 | 54 |
|
54 | 55 | export interface MetadataBoxRow { |
55 | | - style: string; |
56 | | - cells: MetadataBoxCell[]; |
| 56 | + style: string; |
| 57 | + cells: MetadataBoxCell[]; |
57 | 58 | } |
58 | 59 |
|
59 | 60 | /** |
60 | 61 | * Describes the CrisLayoutBox model |
61 | 62 | */ |
62 | 63 | export class CrisLayoutBox { |
63 | 64 |
|
64 | | - /** |
65 | | - * The identifier of this CrisLayoutBox |
66 | | - */ |
67 | | - id: number; |
| 65 | + /** |
| 66 | + * The identifier of this CrisLayoutBox |
| 67 | + */ |
| 68 | + id: number; |
68 | 69 |
|
69 | | - shortname: string; |
| 70 | + shortname: string; |
70 | 71 |
|
71 | | - header: string; |
| 72 | + header: string; |
72 | 73 |
|
73 | | - entityType: string; |
| 74 | + entityType: string; |
74 | 75 |
|
75 | | - collapsed: boolean; |
| 76 | + collapsed: boolean; |
76 | 77 |
|
77 | | - minor: boolean; |
| 78 | + minor: boolean; |
78 | 79 |
|
79 | | - style: string; |
| 80 | + style: string; |
80 | 81 |
|
81 | | - clear: boolean; |
| 82 | + clear: boolean; |
82 | 83 |
|
83 | | - maxColumn: number; |
| 84 | + maxColumn: number; |
84 | 85 |
|
85 | | - container: boolean; |
| 86 | + container: boolean; |
86 | 87 |
|
87 | | - metadataSecurityFields?: string[]; |
| 88 | + metadataSecurityFields?: string[]; |
88 | 89 |
|
89 | | - security: number; |
| 90 | + security: number; |
90 | 91 |
|
91 | | - boxType: string; |
| 92 | + boxType: string; |
92 | 93 |
|
93 | | - configuration?: RelationBoxConfiguration | MetadataBoxConfiguration | MetricsBoxConfiguration; |
| 94 | + configuration?: RelationBoxConfiguration | MetadataBoxConfiguration | MetricsBoxConfiguration; |
94 | 95 |
|
95 | 96 | } |
0 commit comments