forked from divkit/divkit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdiv-container.json
161 lines (161 loc) · 4.24 KB
/
div-container.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
{
"java_extends": "DivBlockWithId",
"$description": "translations.json#/div_container",
"codegen": {
"divan": {
"forced_properties_order": [
"orientation"
],
"factories": {
"row": {
"vararg_property": "items",
"inlines": {
"orientation": "horizontal"
}
},
"column": {
"vararg_property": "items",
"inlines": {
"orientation": "vertical"
}
},
"stack": {
"vararg_property": "items",
"inlines": {
"orientation": "overlap"
}
}
}
},
"swift": {
"generate_optional_arguments": false
},
"kotlin": {
"properties_to_patch": [
"items"
]
},
"typescript": {
"union_interfaces": [
{
"required_params": [ "items" ]
},
{
"required_params": [ "item_builder" ]
}
]
}
},
"definitions": {
"separator": {
"type": "object",
"properties": {
"show_at_start": {
"$ref": "common.json#/boolean_int",
"$description": "translations.json#/div_container_separator_show_at_start",
"default_value": "false"
},
"show_between": {
"$ref": "common.json#/boolean_int",
"$description": "translations.json#/div_container_separator_show_between",
"default_value": "true"
},
"show_at_end": {
"$ref": "common.json#/boolean_int",
"$description": "translations.json#/div_container_separator_show_at_end",
"default_value": "false"
},
"style": {
"$ref": "div-drawable.json",
"$description": "translations.json#/div_container_separator_style"
},
"margins": {
"$ref": "div-edge-insets.json",
"$description": "translations.json#/div_base_margins"
}
},
"required": [
"style"
]
}
},
"allOf": [
{
"$ref": "div-base.json"
},
{
"$ref": "div-actionable.json"
},
{
"properties": {
"type": {
"type": "string",
"enum": [
"container"
]
},
"content_alignment_vertical": {
"$ref": "div-content-alignment-vertical.json",
"default_value": "top",
"$description": "translations.json#/div_container_content_alignment_vertical"
},
"content_alignment_horizontal": {
"$ref": "div-content-alignment-horizontal.json",
"default_value": "start",
"$description": "translations.json#/div_container_content_alignment_horizontal"
},
"orientation": {
"type": "string",
"enum": [
"vertical",
"horizontal",
"overlap"
],
"default_value": "vertical",
"$description": "translations.json#/div_container_orientation"
},
"layout_mode": {
"type": "string",
"enum": [
"no_wrap",
"wrap"
],
"default_value": "no_wrap",
"$description": "translations.json#/div_container_layout_mode"
},
"separator": {
"$ref": "#/definitions/separator",
"$description": "translations.json#/div_container_separator"
},
"line_separator": {
"$ref": "#/definitions/separator",
"$description": "translations.json#/div_container_line_separator"
},
"items": {
"type": "array",
"items": {
"$ref": "div.json"
},
"$description": "translations.json#/div_container_items"
},
"item_builder": {
"$ref": "div-collection-item-builder.json",
"$description": "translations.json#/div_collection_item_builder",
"platforms": []
},
"aspect": {
"$ref": "div-aspect.json",
"$description": "translations.json#/div_container_aspect"
},
"clip_to_bounds": {
"$ref": "common.json#/boolean_int",
"default_value": "true",
"$description": "translations.json#/div_clip_to_bounds"
}
}
}
],
"required": [
"type"
]
}