fix json format

commit_hash:fd6e36a8ea96d96b9a00bac60a72f213c5f2dc0e
This commit is contained in:
babaevmm
2025-02-07 18:40:58 +03:00
parent 1260e86b75
commit 201be941c9
254 changed files with 3330 additions and 3200 deletions
+4 -1
View File
@@ -30,7 +30,10 @@
},
{
"type": "integer",
"enum": [ 0, 1 ]
"enum": [
0,
1
]
}
]
},
+3 -1
View File
@@ -72,7 +72,9 @@
"$ref": "common.json#/boolean_int",
"default_value": "false",
"$description": "translations.json#/div_accessibility_mute_after_action",
"platforms": [ "ios" ]
"platforms": [
"ios"
]
}
},
"platforms": [
+1 -1
View File
@@ -86,4 +86,4 @@
"$ref": "#/definitions/end_destination"
}
]
}
}
+7 -1
View File
@@ -36,7 +36,13 @@
"default_value": "post",
"$description": "translations.json#/div_action_submit_request_method",
"enum": [
"get", "post", "put", "patch", "delete", "head", "options"
"get",
"post",
"put",
"patch",
"delete",
"head",
"options"
]
}
},
+10 -6
View File
@@ -31,12 +31,16 @@
},
"typescript": {
"union_interfaces": [
{
"required_params": [ "items" ]
},
{
"required_params": [ "item_builder" ]
}
{
"required_params": [
"items"
]
},
{
"required_params": [
"item_builder"
]
}
]
}
},
+2 -2
View File
@@ -38,8 +38,8 @@
"$description": "translations.json#/div_data_div_state_state_id"
},
"div": {
"$ref": "div.json",
"$description": "translations.json#/div_data_div_state_div"
"$ref": "div.json",
"$description": "translations.json#/div_data_div_state_div"
}
},
"required": [
+4 -2
View File
@@ -16,7 +16,7 @@
"$ref": "common.json#/id",
"$description": "translations.json#/div_indicator_pager_id"
},
"items_placement" : {
"items_placement": {
"$ref": "div-indicator-item-placement.json",
"$description": "translations.json#/div_indicator_item_placement"
},
@@ -79,7 +79,9 @@
"animation": {
"type": "string",
"enum": [
"scale", "worm", "slider"
"scale",
"worm",
"slider"
],
"default_value": "scale",
"$description": "translations.json#/div_indicator_animation",
+12 -2
View File
@@ -144,7 +144,11 @@
"autocapitalization": {
"type": "string",
"enum": [
"auto", "none", "words", "sentences", "all_characters"
"auto",
"none",
"words",
"sentences",
"all_characters"
],
"default_value": "auto",
"$description": "translations.json#/div_input_autocapitalization",
@@ -186,7 +190,13 @@
"keyboard_type": {
"type": "string",
"enum": [
"single_line_text", "multi_line_text", "phone", "number", "email", "uri", "password"
"single_line_text",
"multi_line_text",
"phone",
"number",
"email",
"uri",
"password"
],
"default_value": "multi_line_text",
"$description": "translations.json#/div_input_keyboard_type"
+2 -1
View File
@@ -80,7 +80,8 @@
"type": "string",
"default_value": "horizontal",
"enum": [
"horizontal", "vertical"
"horizontal",
"vertical"
],
"$description": "translations.json#/div_pager_orientation"
},
+2 -1
View File
@@ -33,7 +33,8 @@
"mode": {
"type": "string",
"enum": [
"transactional", "partial"
"transactional",
"partial"
],
"default_value": "partial",
"$description": "translations.json#/div_patch_mode",
-1
View File
@@ -23,4 +23,3 @@
"value"
]
}
+10 -10
View File
@@ -1,12 +1,12 @@
{
"anyOf": [
{
"$ref": "div-radial-gradient-fixed-center.json",
"$description": "translations.json#/div_radial_gradient_fixed_center"
},
{
"$ref": "div-radial-gradient-relative-center.json",
"$description": "translations.json#/div_radial_gradient_relative_center"
}
]
"anyOf": [
{
"$ref": "div-radial-gradient-fixed-center.json",
"$description": "translations.json#/div_radial_gradient_fixed_center"
},
{
"$ref": "div-radial-gradient-relative-center.json",
"$description": "translations.json#/div_radial_gradient_relative_center"
}
]
}
+22 -22
View File
@@ -1,25 +1,25 @@
{
"type": "object",
"$description": "translations.json#/div_radial_gradient_fixed_center",
"properties": {
"value": {
"type": "integer",
"$description": "translations.json#/div_radial_gradient_fixed_center_value"
},
"unit": {
"$ref": "div-size-unit.json",
"$description": "translations.json#/div_fixed_size_unit",
"default_value": "dp"
},
"type": {
"type": "string",
"enum": [
"fixed"
]
}
"type": "object",
"$description": "translations.json#/div_radial_gradient_fixed_center",
"properties": {
"value": {
"type": "integer",
"$description": "translations.json#/div_radial_gradient_fixed_center_value"
},
"required": [
"value",
"type"
]
"unit": {
"$ref": "div-size-unit.json",
"$description": "translations.json#/div_fixed_size_unit",
"default_value": "dp"
},
"type": {
"type": "string",
"enum": [
"fixed"
]
}
},
"required": [
"value",
"type"
]
}
+10 -10
View File
@@ -1,12 +1,12 @@
{
"anyOf": [
{
"$ref": "div-fixed-size.json",
"$description": "translations.json#/div_size_fixed"
},
{
"$ref": "div-radial-gradient-relative-radius.json",
"$description": "translations.json#/div_radial_gradient_relative_radius"
}
]
"anyOf": [
{
"$ref": "div-fixed-size.json",
"$description": "translations.json#/div_size_fixed"
},
{
"$ref": "div-radial-gradient-relative-radius.json",
"$description": "translations.json#/div_radial_gradient_relative_radius"
}
]
}
+17 -17
View File
@@ -1,20 +1,20 @@
{
"type": "object",
"$description": "translations.json#/div_radial_gradient_relative_center",
"properties": {
"value": {
"type": "number",
"$description": "translations.json#/div_radial_gradient_relative_center_value"
},
"type": {
"type": "string",
"enum": [
"relative"
]
}
"type": "object",
"$description": "translations.json#/div_radial_gradient_relative_center",
"properties": {
"value": {
"type": "number",
"$description": "translations.json#/div_radial_gradient_relative_center_value"
},
"required": [
"value",
"type"
]
"type": {
"type": "string",
"enum": [
"relative"
]
}
},
"required": [
"value",
"type"
]
}
+23 -23
View File
@@ -1,26 +1,26 @@
{
"type": "object",
"$description": "translations.json#/div_radial_gradient_relative_radius",
"properties": {
"value": {
"type": "string",
"$description": "translations.json#/div_radial_gradient_relative_radius_value",
"enum": [
"nearest_corner",
"farthest_corner",
"nearest_side",
"farthest_side"
]
},
"type": {
"type": "string",
"enum": [
"relative"
]
}
"type": "object",
"$description": "translations.json#/div_radial_gradient_relative_radius",
"properties": {
"value": {
"type": "string",
"$description": "translations.json#/div_radial_gradient_relative_radius_value",
"enum": [
"nearest_corner",
"farthest_corner",
"nearest_side",
"farthest_side"
]
},
"required": [
"value",
"type"
]
"type": {
"type": "string",
"enum": [
"relative"
]
}
},
"required": [
"value",
"type"
]
}
+3 -1
View File
@@ -29,6 +29,8 @@
"web"
],
"required": [
"type", "shape", "color"
"type",
"shape",
"color"
]
}
+11 -11
View File
@@ -1,13 +1,13 @@
{
"type": "string",
"enum": [
"dp",
"sp",
"px"
],
"$description": "translations.json#/div_size_unit",
"platforms": [
"android",
"ios"
]
"type": "string",
"enum": [
"dp",
"sp",
"px"
],
"$description": "translations.json#/div_size_unit",
"platforms": [
"android",
"ios"
]
}
+1 -1
View File
@@ -23,7 +23,7 @@
"default_value": "bottom",
"$description": "translations.json#/div_slide_transition_edge"
},
"distance":{
"distance": {
"$ref": "div-dimension.json",
"$description": "translations.json#/div_slide_transition_distance"
}
+1 -1
View File
@@ -19,4 +19,4 @@
"required": [
"color"
]
}
}
+1 -2
View File
@@ -32,8 +32,7 @@
"$description": "translations.json#/div_text_range_mask_particles_density"
}
},
"platforms": [
],
"platforms": [],
"required": [
"type",
"color"
+1 -2
View File
@@ -17,8 +17,7 @@
"$description": "translations.json#/div_solid_background_color"
}
},
"platforms": [
],
"platforms": [],
"required": [
"color",
"type"
+6 -4
View File
@@ -133,8 +133,7 @@
"mask": {
"$ref": "div-text-range-mask.json",
"$description": "translations.json#/div_text_range_mask",
"platforms": [
]
"platforms": []
}
},
"$description": "translations.json#/div_text_range"
@@ -241,7 +240,7 @@
],
"$description": "translations.json#/div_text_image"
},
"ellipsis": {
"ellipsis": {
"type": "object",
"properties": {
"text": {
@@ -471,7 +470,10 @@
"truncate": {
"type": "string",
"enum": [
"none", "start", "end", "middle"
"none",
"start",
"end",
"middle"
],
"default_value": "end",
"$description": "translations.json#/div_text_truncate",
+1 -1
View File
@@ -39,4 +39,4 @@
"required": [
"id"
]
}
}
+18 -18
View File
@@ -1,20 +1,20 @@
{
"type": "object",
"$description": "translations.json#/div_tooltip_mode_modal",
"platforms": [
"android",
"ios",
"web"
],
"properties": {
"type": {
"type": "string",
"enum": [
"modal"
]
}
},
"required": [
"type"
]
"type": "object",
"$description": "translations.json#/div_tooltip_mode_modal",
"platforms": [
"android",
"ios",
"web"
],
"properties": {
"type": {
"type": "string",
"enum": [
"modal"
]
}
},
"required": [
"type"
]
}
+14 -15
View File
@@ -1,17 +1,16 @@
{
"type": "object",
"$description": "translations.json#/div_tooltip_mode_non_modal",
"platforms": [
],
"properties": {
"type": {
"type": "string",
"enum": [
"non_modal"
]
}
},
"required": [
"type"
]
"type": "object",
"$description": "translations.json#/div_tooltip_mode_non_modal",
"platforms": [],
"properties": {
"type": {
"type": "string",
"enum": [
"non_modal"
]
}
},
"required": [
"type"
]
}
+3 -4
View File
@@ -39,7 +39,7 @@
"$ref": "div-point.json",
"$description": "translations.json#/div_tooltip_offset"
},
"animation_in" : {
"animation_in": {
"$ref": "div-animation.json",
"$description": "translations.json#/div_tooltip_animation_in",
"platforms": [
@@ -47,7 +47,7 @@
"web"
]
},
"animation_out" : {
"animation_out": {
"$ref": "div-animation.json",
"$description": "translations.json#/div_tooltip_animation_out",
"platforms": [
@@ -59,8 +59,7 @@
"$ref": "div-tooltip-mode.json",
"default_value": "{ \"type\": \"modal\" }",
"$description": "translations.json#/div_tooltip_mode",
"platforms": [
]
"platforms": []
},
"tap_outside_actions": {
"type": "array",
@@ -355,7 +355,7 @@
"expression": "@{maxNumber()}",
"expected": {
"type": "number",
"value": 1.7976931348623157E308
"value": 1.7976931348623157E+308
},
"platforms": [
"android",
@@ -895,8 +895,7 @@
{
"type": "array",
"name": "array",
"value": [
]
"value": []
}
],
"platforms": [
@@ -82,7 +82,7 @@
"expression": "@{.0000324}",
"expected": {
"type": "number",
"value": 3.24e-05
"value": 0.0000324
},
"platforms": [
"android",
@@ -95,7 +95,7 @@
"expression": "@{+.0000324}",
"expected": {
"type": "number",
"value": 3.24e-05
"value": 0.0000324
},
"platforms": [
"android",
@@ -108,7 +108,7 @@
"expression": "@{-.0000324}",
"expected": {
"type": "number",
"value": -3.24e-05
"value": -0.0000324
},
"platforms": [
"android",
@@ -507,4 +507,4 @@
]
}
]
}
}
@@ -103,4 +103,3 @@
}
]
}
@@ -5,242 +5,242 @@
"ios",
"web"
],
"div_data": {
"templates": {
"item_text": {
"div_data": {
"templates": {
"item_text": {
"type": "text",
"width": {
"type": "wrap_content"
},
"height": {
"type": "wrap_content"
},
"paddings": {
"left": 10,
"top": 10,
"right": 10,
"bottom": 10
},
"border": {
"stroke": {
"color": "#B2B2B2"
}
},
"font_size": 12,
"text_alignment_horizontal": "center",
"text_alignment_vertical": "center"
}
},
"card": {
"log_id": "tests",
"variables": [
{
"name": "title",
"type": "string",
"value": "Container with all separators"
},
{
"name": "separator_show_at_start",
"type": "boolean",
"value": true
},
{
"name": "separator_show_at_end",
"type": "boolean",
"value": true
},
{
"name": "separator_show_between",
"type": "boolean",
"value": true
}
],
"states": [
{
"state_id": 1,
"div": {
"type": "container",
"orientation": "vertical",
"width": {
"type": "fixed",
"value": 330
},
"height": {
"type": "wrap_content"
},
"background": [
{
"type": "solid",
"color": "#FFFFFF"
}
],
"items": [
{
"type": "text",
"text": "@{title}",
"paddings": {
"left": 10,
"top": 10,
"right": 10,
"bottom": 10
}
},
{
"type": "container",
"orientation": "horizontal",
"width": {
"type": "wrap_content"
"type": "wrap_content"
},
"height": {
"type": "wrap_content"
},
"paddings": {
"left": 10,
"top": 10,
"right": 10,
"bottom": 10
"type": "wrap_content"
},
"layout_mode": "no_wrap",
"content_alignment_horizontal": "center",
"border": {
"stroke": {
"color": "#B2B2B2"
"stroke": {
"color": "#FF00EE"
}
},
"separator": {
"show_at_start": "@{separator_show_at_start}",
"show_at_end": "@{separator_show_at_end}",
"show_between": "@{separator_show_between}",
"style": {
"type": "shape_drawable",
"shape": {
"type": "rounded_rectangle",
"item_width": {
"type": "fixed",
"value": 10
},
"item_height": {
"type": "fixed",
"value": 15
},
"corner_radius": {
"type": "fixed",
"value": 0
}
},
"color": "#FF0000"
}
},
"items": [
{
"type": "item_text",
"text": "50",
"width": {
"type": "fixed",
"value": 50
}
},
"font_size": 12,
"text_alignment_horizontal": "center",
"text_alignment_vertical": "center"
}
},
"card": {
"log_id": "tests",
"variables": [
{
"name": "title",
"type": "string",
"value": "Container with all separators"
},
{
"name": "separator_show_at_start",
"type": "boolean",
"value": true
},
{
"name": "separator_show_at_end",
"type": "boolean",
"value": true
},
{
"name": "separator_show_between",
"type": "boolean",
"value": true
}
],
"states": [
{
"state_id": 1,
"div": {
"type": "container",
"orientation": "vertical",
"width": {
"type": "fixed",
"value": 330
},
"height": {
"type": "wrap_content"
},
"background": [
{
"type": "solid",
"color": "#FFFFFF"
}
],
"items": [
{
"type": "text",
"text": "@{title}",
"paddings": {
"left": 10,
"top": 10,
"right": 10,
"bottom": 10
}
},
{
"type": "container",
"orientation": "horizontal",
"width": {
"type": "wrap_content"
},
"height": {
"type": "wrap_content"
},
"layout_mode": "no_wrap",
"content_alignment_horizontal": "center",
"border": {
"stroke": {
"color": "#FF00EE"
}
},
"separator": {
"show_at_start": "@{separator_show_at_start}",
"show_at_end": "@{separator_show_at_end}",
"show_between": "@{separator_show_between}",
"style": {
"type": "shape_drawable",
"shape": {
"type": "rounded_rectangle",
"item_width": {
"type": "fixed",
"value": 10
},
"item_height": {
"type": "fixed",
"value": 15
},
"corner_radius": {
"type": "fixed",
"value": 0
}
},
"color": "#FF0000"
}
},
"items": [
{
"type": "item_text",
"text": "50",
"width": {
"type": "fixed",
"value": 50
}
},
{
"type": "item_text",
"text": "100",
"width": {
"type": "fixed",
"value": 100
}
},
{
"type": "item_text",
"text": "50",
"width": {
"type": "fixed",
"value": 50
}
},
{
"type": "item_text",
"text": "50",
"width": {
"type": "fixed",
"value": 50
}
}
]
}
]
},
{
"type": "item_text",
"text": "100",
"width": {
"type": "fixed",
"value": 100
}
}
},
{
"type": "item_text",
"text": "50",
"width": {
"type": "fixed",
"value": 50
}
},
{
"type": "item_text",
"text": "50",
"width": {
"type": "fixed",
"value": 50
}
}
]
}
]
}
}
]
}
},
"steps": [
{
"expected_screenshot": "step0.png"
},
"steps": [
{
"div_actions": [
{
"expected_screenshot": "step0.png"
"url": "div-action://set_variable?name=separator_show_between&value=false",
"log_id": "change_separator"
},
{
"div_actions": [
{
"url": "div-action://set_variable?name=separator_show_between&value=false",
"log_id": "change_separator"
},
{
"url": "div-action://set_variable?name=title&value=Between%20separators%20were%20disabled",
"log_id": "change_title"
}
]
},
{
"div_actions": [
{
"url": "div-action://set_variable?name=separator_show_at_start&value=false",
"log_id": "change_separator"
},
{
"url": "div-action://set_variable?name=title&value=Start%20and%20between%20separators%20were%20disabled",
"log_id": "change_title"
}
]
},
{
"div_actions": [
{
"url": "div-action://set_variable?name=separator_show_at_end&value=false",
"log_id": "change_separator"
},
{
"url": "div-action://set_variable?name=title&value=All%20separators%20were%20disabled",
"log_id": "change_title"
}
]
},
{
"div_actions": [
{
"url": "div-action://set_variable?name=separator_show_between&value=true",
"log_id": "change_separator"
},
{
"url": "div-action://set_variable?name=title&value=Between%20separators%20were%20enabled",
"log_id": "change_title"
}
]
},
{
"div_actions": [
{
"url": "div-action://set_variable?name=separator_show_at_start&value=true",
"log_id": "change_separator"
},
{
"url": "div-action://set_variable?name=title&value=Start%20and%20between%20separators%20were%20enabled",
"log_id": "change_title"
}
]
},
{
"div_actions": [
{
"url": "div-action://set_variable?name=separator_show_at_end&value=true",
"log_id": "change_separator"
},
{
"url": "div-action://set_variable?name=title&value=All%20separators%20were%20enabled",
"log_id": "change_title"
}
]
"url": "div-action://set_variable?name=title&value=Between%20separators%20were%20disabled",
"log_id": "change_title"
}
]
]
},
{
"div_actions": [
{
"url": "div-action://set_variable?name=separator_show_at_start&value=false",
"log_id": "change_separator"
},
{
"url": "div-action://set_variable?name=title&value=Start%20and%20between%20separators%20were%20disabled",
"log_id": "change_title"
}
]
},
{
"div_actions": [
{
"url": "div-action://set_variable?name=separator_show_at_end&value=false",
"log_id": "change_separator"
},
{
"url": "div-action://set_variable?name=title&value=All%20separators%20were%20disabled",
"log_id": "change_title"
}
]
},
{
"div_actions": [
{
"url": "div-action://set_variable?name=separator_show_between&value=true",
"log_id": "change_separator"
},
{
"url": "div-action://set_variable?name=title&value=Between%20separators%20were%20enabled",
"log_id": "change_title"
}
]
},
{
"div_actions": [
{
"url": "div-action://set_variable?name=separator_show_at_start&value=true",
"log_id": "change_separator"
},
{
"url": "div-action://set_variable?name=title&value=Start%20and%20between%20separators%20were%20enabled",
"log_id": "change_title"
}
]
},
{
"div_actions": [
{
"url": "div-action://set_variable?name=separator_show_at_end&value=true",
"log_id": "change_separator"
},
{
"url": "div-action://set_variable?name=title&value=All%20separators%20were%20enabled",
"log_id": "change_title"
}
]
}
]
}
@@ -9,12 +9,9 @@
"templates": {
"div_base": {
"type": "gallery",
"orientation": "vertical",
"scroll_mode": "paging",
"restrict_parent_scroll": 1,
"alpha": "@{alpha}",
"alignment_horizontal": "@{alignment_horizontal}",
"alignment_vertical": "@{alignment_vertical}",
@@ -1,216 +1,216 @@
{
"description": "Scroll actions",
"platforms": [
"ios",
"web"
],
"div_data": {
"templates": {
"div_base": {
"type": "gallery",
"id": "gallery1",
"orientation": "vertical",
"restrict_parent_scroll": 1,
"margins": {
"left": 10,
"top": 10,
"right": 10,
"bottom": 10
},
"height": {
"type": "match_parent"
}
"description": "Scroll actions",
"platforms": [
"ios",
"web"
],
"div_data": {
"templates": {
"div_base": {
"type": "gallery",
"id": "gallery1",
"orientation": "vertical",
"restrict_parent_scroll": 1,
"margins": {
"left": 10,
"top": 10,
"right": 10,
"bottom": 10
},
"test_container": {
"type": "container",
"orientation": "overlap",
"border": {
"stroke": {
"color": "#000000"
}
}
},
"item": {
"type": "text",
"text": " ",
"font_size": 14,
"text_alignment_horizontal": "center",
"text_alignment_vertical": "center",
"alignment_horizontal": "center",
"text_color": "#1ABC9C",
"paddings": {
"top": 4,
"bottom": 4,
"left": 8,
"right": 8
},
"margins": {
"left": 8,
"right": 8
},
"width": {
"type": "fixed",
"value": 120
},
"height": {
"type": "fixed",
"value": 120
},
"background": [
{
"type": "solid",
"color": "#34495E"
}
],
"border": {
"corner_radius": 6
"height": {
"type": "match_parent"
}
},
"test_container": {
"type": "container",
"orientation": "overlap",
"border": {
"stroke": {
"color": "#000000"
}
}
},
"card": {
"log_id": "tests",
"states": [
"item": {
"type": "text",
"text": " ",
"font_size": 14,
"text_alignment_horizontal": "center",
"text_alignment_vertical": "center",
"alignment_horizontal": "center",
"text_color": "#1ABC9C",
"paddings": {
"top": 4,
"bottom": 4,
"left": 8,
"right": 8
},
"margins": {
"left": 8,
"right": 8
},
"width": {
"type": "fixed",
"value": 120
},
"height": {
"type": "fixed",
"value": 120
},
"background": [
{
"state_id": 1,
"div": {
"type": "test_container",
"height": {
"type": "fixed",
"value": 300
},
"items": [
{
"type": "div_base",
"items": [
{
"type": "item",
"item_log_id": "item/01",
"background": [
{
"color": "#49a5a5",
"type": "solid"
}
]
},
{
"type": "item",
"item_log_id": "item/02",
"background": [
{
"color": "#49a141",
"type": "solid"
}
]
},
{
"type": "item",
"item_log_id": "item/03",
"background": [
{
"color": "#4975a5",
"type": "solid"
}
]
},
{
"type": "item",
"item_log_id": "item/04",
"background": [
{
"color": "#11e5a5",
"type": "solid"
}
]
}
]
}
]
}
"type": "solid",
"color": "#34495E"
}
]
],
"border": {
"corner_radius": 6
}
}
},
"steps": [
{
"expected_screenshot": "step0.png"
},
{
"div_actions": [
{
"url": "div-action://scroll_forward?id=gallery1&step=30",
"log_id": "scroll_forward"
"card": {
"log_id": "tests",
"states": [
{
"state_id": 1,
"div": {
"type": "test_container",
"height": {
"type": "fixed",
"value": 300
},
"items": [
{
"type": "div_base",
"items": [
{
"type": "item",
"item_log_id": "item/01",
"background": [
{
"color": "#49a5a5",
"type": "solid"
}
]
},
{
"type": "item",
"item_log_id": "item/02",
"background": [
{
"color": "#49a141",
"type": "solid"
}
]
},
{
"type": "item",
"item_log_id": "item/03",
"background": [
{
"color": "#4975a5",
"type": "solid"
}
]
},
{
"type": "item",
"item_log_id": "item/04",
"background": [
{
"color": "#11e5a5",
"type": "solid"
}
]
}
]
}
]
}
]
},
{
"div_actions": [
{
"url": "div-action://scroll_forward?id=gallery1&step=300&overflow=clamp",
"log_id": "scroll_forward_clamp"
}
]
},
{
"div_actions": [
{
"url": "div-action://scroll_forward?id=gallery1&step=30&overflow=ring",
"log_id": "scroll_forward_ring"
}
],
"expected_screenshot": "step1.png"
},
{
"div_actions": [
{
"url": "div-action://scroll_backward?id=gallery1&step=60&overflow=ring",
"log_id": "scroll_backward_ring"
}
]
},
{
"div_actions": [
{
"url": "div-action://scroll_backward?id=gallery1&step=300&overflow=clamp",
"log_id": "scroll_backward_clamp"
}
],
"expected_screenshot": "step0.png"
},
{
"div_actions": [
{
"url": "div-action://scroll_to_position?id=gallery1&step=30",
"log_id": "scroll_to_position"
}
],
"expected_screenshot": "step1.png"
},
{
"div_actions": [
{
"url": "div-action://scroll_to_position?id=gallery1&step=300",
"log_id": "scroll_to_position_clamp"
}
],
"expected_screenshot": "step2.png"
},
{
"div_actions": [
{
"url": "div-action://scroll_to_start?id=gallery1",
"log_id": "scroll_to_start"
}
],
"expected_screenshot": "step0.png"
},
{
"div_actions": [
{
"url": "div-action://scroll_to_end?id=gallery1",
"log_id": "scroll_to_end"
}
],
"expected_screenshot": "step2.png"
}
]
}
}
]
}
},
"steps": [
{
"expected_screenshot": "step0.png"
},
{
"div_actions": [
{
"url": "div-action://scroll_forward?id=gallery1&step=30",
"log_id": "scroll_forward"
}
]
},
{
"div_actions": [
{
"url": "div-action://scroll_forward?id=gallery1&step=300&overflow=clamp",
"log_id": "scroll_forward_clamp"
}
]
},
{
"div_actions": [
{
"url": "div-action://scroll_forward?id=gallery1&step=30&overflow=ring",
"log_id": "scroll_forward_ring"
}
],
"expected_screenshot": "step1.png"
},
{
"div_actions": [
{
"url": "div-action://scroll_backward?id=gallery1&step=60&overflow=ring",
"log_id": "scroll_backward_ring"
}
]
},
{
"div_actions": [
{
"url": "div-action://scroll_backward?id=gallery1&step=300&overflow=clamp",
"log_id": "scroll_backward_clamp"
}
],
"expected_screenshot": "step0.png"
},
{
"div_actions": [
{
"url": "div-action://scroll_to_position?id=gallery1&step=30",
"log_id": "scroll_to_position"
}
],
"expected_screenshot": "step1.png"
},
{
"div_actions": [
{
"url": "div-action://scroll_to_position?id=gallery1&step=300",
"log_id": "scroll_to_position_clamp"
}
],
"expected_screenshot": "step2.png"
},
{
"div_actions": [
{
"url": "div-action://scroll_to_start?id=gallery1",
"log_id": "scroll_to_start"
}
],
"expected_screenshot": "step0.png"
},
{
"div_actions": [
{
"url": "div-action://scroll_to_end?id=gallery1",
"log_id": "scroll_to_end"
}
],
"expected_screenshot": "step2.png"
}
]
}
@@ -213,4 +213,3 @@
}
]
}
@@ -61,7 +61,6 @@
"type": "text",
"text": " ",
"font_size": 14,
"text_color": "#1ABC9C",
"paddings": {
"top": 4,
@@ -296,4 +295,4 @@
]
}
]
}
}
@@ -84,7 +84,7 @@
"div_actions": [
{
"log_id": "gallery1/current",
"typed": {
"typed": {
"type": "scroll_to",
"id": "gallery1",
"destination": {
@@ -100,7 +100,7 @@
"div_actions": [
{
"log_id": "gallery1/next",
"typed": {
"typed": {
"type": "scroll_by",
"id": "gallery1",
"item_count": 1
@@ -113,7 +113,7 @@
"div_actions": [
{
"log_id": "gallery1/prev",
"typed": {
"typed": {
"type": "scroll_by",
"id": "gallery1",
"item_count": -1
@@ -126,7 +126,7 @@
"div_actions": [
{
"log_id": "gallery1/end",
"typed": {
"typed": {
"type": "scroll_to",
"destination": {
"type": "end"
@@ -142,7 +142,7 @@
"div_actions": [
{
"log_id": "gallery1/start",
"typed": {
"typed": {
"type": "scroll_to",
"destination": {
"type": "start"
@@ -158,7 +158,7 @@
"div_actions": [
{
"log_id": "gallery1/current 2",
"typed": {
"typed": {
"type": "scroll_to",
"id": "gallery1",
"destination": {
@@ -174,7 +174,7 @@
"div_actions": [
{
"log_id": "gallery1/forward",
"typed": {
"typed": {
"type": "scroll_by",
"id": "gallery1",
"offset": 50
@@ -187,7 +187,7 @@
"div_actions": [
{
"log_id": "gallery1/backward",
"typed": {
"typed": {
"type": "scroll_by",
"id": "gallery1",
"offset": -50
@@ -200,7 +200,7 @@
"div_actions": [
{
"log_id": "gallery1/to_position",
"typed": {
"typed": {
"type": "scroll_to",
"id": "gallery1",
"destination": {
@@ -214,4 +214,3 @@
}
]
}
@@ -9,13 +9,10 @@
"templates": {
"div_base": {
"type": "gallery",
"orientation": "vertical",
"visibility": "@{visibility}",
"scroll_mode": "paging",
"restrict_parent_scroll": 1,
"alpha": "@{alpha}",
"alignment_horizontal": "@{alignment_horizontal}",
"alignment_vertical": "@{alignment_vertical}",
@@ -100,4 +100,3 @@
}
]
}
@@ -127,4 +127,3 @@
}
]
}
@@ -27,7 +27,7 @@
}
],
"width": {
"type": "match_parent"
"type": "match_parent"
},
"aspect": {
"ratio": 1
@@ -57,7 +57,7 @@
},
"background": [
{
"type":"solid",
"type": "solid",
"color": "#eeeeee"
}
],
@@ -91,4 +91,3 @@
}
]
}
@@ -119,7 +119,7 @@
}
]
}
},
},
"steps": [
{
"expected_screenshot": "step0.png"
@@ -208,4 +208,3 @@
}
]
}
@@ -163,67 +163,67 @@
{
"state_id": "circle",
"div": {
"type": "div_base",
"thumb_style": {
"type": "shape_drawable",
"color": "#ff0000",
"stroke": {
"color": "#ffffff",
"width": 3
"type": "div_base",
"thumb_style": {
"type": "shape_drawable",
"color": "#ff0000",
"stroke": {
"color": "#ffffff",
"width": 3
},
"shape": {
"type": "circle",
"radius": {
"type": "fixed",
"value": "@{slider_circle_radius}"
}
}
},
"shape": {
"type": "circle",
"radius": {
"type": "fixed",
"value": "@{slider_circle_radius}"
"track_active_style": {
"type": "shape_drawable",
"color": "#ff0000",
"shape": {
"type": "rounded_rectangle",
"item_height": {
"type": "fixed",
"value": 6
}
}
}
},
"track_active_style": {
"type": "shape_drawable",
"color": "#ff0000",
"shape": {
"type": "rounded_rectangle",
"item_height": {
"type": "fixed",
"value": 6
},
"track_inactive_style": {
"type": "shape_drawable",
"color": "#20000000",
"shape": {
"type": "rounded_rectangle",
"item_height": {
"type": "fixed",
"value": 6
}
}
}
},
"track_inactive_style": {
"type": "shape_drawable",
"color": "#20000000",
"shape": {
"type": "rounded_rectangle",
"item_height": {
"type": "fixed",
"value": 6
},
"tick_mark_active_style": {
"type": "shape_drawable",
"color": "#ff0000",
"shape": {
"type": "circle",
"radius": {
"type": "fixed",
"value": 8
}
}
}
},
"tick_mark_active_style": {
"type": "shape_drawable",
"color": "#ff0000",
"shape": {
"type": "circle",
"radius": {
"type": "fixed",
"value": 8
},
"tick_mark_inactive_style": {
"type": "shape_drawable",
"color": "#20000000",
"shape": {
"type": "circle",
"radius": {
"type": "fixed",
"value": 8
}
}
}
},
"tick_mark_inactive_style": {
"type": "shape_drawable",
"color": "#20000000",
"shape": {
"type": "circle",
"radius": {
"type": "fixed",
"value": 8
}
}
},
"thumb_value_variable": "slider_value"
},
"thumb_value_variable": "slider_value"
}
}
]
@@ -149,4 +149,3 @@
}
]
}
@@ -44,7 +44,7 @@
},
"card": {
"log_id": "sample_card",
"variables":[
"variables": [
{
"name": "total_likes",
"type": "integer",
@@ -44,7 +44,7 @@
},
"card": {
"log_id": "sample_card",
"variables":[
"variables": [
{
"name": "total_likes",
"type": "integer",
+11 -2
View File
@@ -221,9 +221,18 @@
"type": "array",
"name": "arr",
"value": [
1,2,3,4,5,6,7,"#FFAABB",9.0,"10"
1,
2,
3,
4,
5,
6,
7,
"#FFAABB",
9.0,
"10"
]
}
]
}
}
}
@@ -1,44 +1,49 @@
{
"templates": {},
"card": {
"log_id": "snapshot_test_card",
"variables": [{
"name": "checked",
"type": "string",
"value": "unchecked"
}],
"states": [
"templates": {},
"card": {
"log_id": "snapshot_test_card",
"variables": [
{
"name": "checked",
"type": "string",
"value": "unchecked"
}
],
"states": [
{
"state_id": 0,
"div": {
"type": "state",
"id": "check",
"state_id_variable": "checked",
"states": [
{
"state_id": 0,
"div": {
"type": "state",
"id": "check",
"state_id_variable": "checked",
"states": [{
"state_id": "unchecked",
"div": {
"type": "text",
"font_size": 20,
"text": "☐ Approved"
}
}, {
"state_id": "checked",
"div": {
"type": "text",
"font_size": 20,
"text": "☑ Approved"
}
}],
"accessibility": {
"type": "checkbox",
"is_checked": "@{checked == 'checked'}"
},
"action": {
"log_id": "check",
"url": "div-action://set_variable?name=checked&value=@{checked == 'checked' ? 'unchecked' : 'checked'}"
}
}
"state_id": "unchecked",
"div": {
"type": "text",
"font_size": 20,
"text": "☐ Approved"
}
},
{
"state_id": "checked",
"div": {
"type": "text",
"font_size": 20,
"text": "☑ Approved"
}
}
]
}
],
"accessibility": {
"type": "checkbox",
"is_checked": "@{checked == 'checked'}"
},
"action": {
"log_id": "check",
"url": "div-action://set_variable?name=checked&value=@{checked == 'checked' ? 'unchecked' : 'checked'}"
}
}
}
]
}
}
@@ -107,98 +107,100 @@
"height": {
"type": "wrap_content"
},
"items" :[{
"type": "container",
"height": {
"type": "wrap_content"
},
"margins": {
"left": 16,
"top": 16,
"right": 16,
"bottom": 16
},
"orientation": "vertical",
"items": [
{
"type": "button",
"text": "Item 1",
"accessibility": {
"description": "This is Item 1",
"hint": "@{element1} mode",
"mode": "@{element1}"
},
"border": {
"corner_radius": 8
}
"items": [
{
"type": "container",
"height": {
"type": "wrap_content"
},
{
"type": "container",
"background": [
{
"type": "solid",
"color": "#0e000000"
}
],
"border": {
"corner_radius": 8
},
"margins": {
"bottom": 16
},
"accessibility": {
"mode": "@{element23}",
"hint": "@{element23} mode"
},
"items": [
{
"type": "button",
"text": "Item 2",
"margins": {
"left": 16,
"top": 16,
"right": 16,
"bottom": 16
},
"accessibility": {
"hint": "@{element2} mode",
"description": "This is Item 2",
"mode": "@{element2}"
}
"margins": {
"left": 16,
"top": 16,
"right": 16,
"bottom": 16
},
"orientation": "vertical",
"items": [
{
"type": "button",
"text": "Item 1",
"accessibility": {
"description": "This is Item 1",
"hint": "@{element1} mode",
"mode": "@{element1}"
},
{
"type": "button",
"text": "Item 3",
"margins": {
"left": 16,
"right": 16,
"bottom": 16
},
"accessibility": {
"description": "This is Item 3",
"hint": "@{element3} mode",
"mode": "@{element3}"
}
"border": {
"corner_radius": 8
}
]
},
{
"type": "button",
"text_color": "#FFFFFF",
"text": "Item 4",
"accessibility": {
"mode": "@{element4}",
"hint": "@{element4} mode",
"description": "This is Item 4"
},
"background": [
{
"type": "solid",
"color": "#cc0605"
}
]
}
]},
{
"type": "container",
"background": [
{
"type": "solid",
"color": "#0e000000"
}
],
"border": {
"corner_radius": 8
},
"margins": {
"bottom": 16
},
"accessibility": {
"mode": "@{element23}",
"hint": "@{element23} mode"
},
"items": [
{
"type": "button",
"text": "Item 2",
"margins": {
"left": 16,
"top": 16,
"right": 16,
"bottom": 16
},
"accessibility": {
"hint": "@{element2} mode",
"description": "This is Item 2",
"mode": "@{element2}"
}
},
{
"type": "button",
"text": "Item 3",
"margins": {
"left": 16,
"right": 16,
"bottom": 16
},
"accessibility": {
"description": "This is Item 3",
"hint": "@{element3} mode",
"mode": "@{element3}"
}
}
]
},
{
"type": "button",
"text_color": "#FFFFFF",
"text": "Item 4",
"accessibility": {
"mode": "@{element4}",
"hint": "@{element4} mode",
"description": "This is Item 4"
},
"background": [
{
"type": "solid",
"color": "#cc0605"
}
]
}
]
},
{
"type": "container",
"height": {
@@ -224,28 +226,34 @@
"type": "controlButton",
"text": "Default",
"backgroundColor": "@{element1 == 'default' ? '#59000000' : '#0E000000'}",
"actions" : [{
"log_id": "click",
"url": "div-action://set_variable?name=element1&value=default"
}]
"actions": [
{
"log_id": "click",
"url": "div-action://set_variable?name=element1&value=default"
}
]
},
{
"type": "controlButton",
"text": "Merge",
"backgroundColor": "@{element1 == 'merge' ? '#59000000' : '#0E000000'}",
"actions" : [{
"log_id": "click",
"url": "div-action://set_variable?name=element1&value=merge"
}]
"actions": [
{
"log_id": "click",
"url": "div-action://set_variable?name=element1&value=merge"
}
]
},
{
"type": "controlButton",
"text": "Exclude",
"backgroundColor": "@{element1 == 'exclude' ? '#59000000' : '#0E000000'}",
"actions" : [{
"log_id": "click",
"url": "div-action://set_variable?name=element1&value=exclude"
}]
"actions": [
{
"log_id": "click",
"url": "div-action://set_variable?name=element1&value=exclude"
}
]
}
]
},
@@ -274,28 +282,34 @@
"type": "controlButton",
"text": "Default",
"backgroundColor": "@{element2 == 'default' ? '#59000000' : '#0E000000'}",
"actions" : [{
"log_id": "click",
"url": "div-action://set_variable?name=element2&value=default"
}]
"actions": [
{
"log_id": "click",
"url": "div-action://set_variable?name=element2&value=default"
}
]
},
{
"type": "controlButton",
"text": "Merge",
"backgroundColor": "@{element2 == 'merge' ? '#59000000' : '#0E000000'}",
"actions" : [{
"log_id": "click",
"url": "div-action://set_variable?name=element2&value=merge"
}]
"actions": [
{
"log_id": "click",
"url": "div-action://set_variable?name=element2&value=merge"
}
]
},
{
"type": "controlButton",
"text": "Exclude",
"backgroundColor": "@{element2 == 'exclude' ? '#59000000' : '#0E000000'}",
"actions" : [{
"log_id": "click",
"url": "div-action://set_variable?name=element2&value=exclude"
}]
"actions": [
{
"log_id": "click",
"url": "div-action://set_variable?name=element2&value=exclude"
}
]
}
]
},
@@ -324,28 +338,34 @@
"type": "controlButton",
"text": "Default",
"backgroundColor": "@{element3 == 'default' ? '#59000000' : '#0E000000'}",
"actions" : [{
"log_id": "click",
"url": "div-action://set_variable?name=element3&value=default"
}]
"actions": [
{
"log_id": "click",
"url": "div-action://set_variable?name=element3&value=default"
}
]
},
{
"type": "controlButton",
"text": "Merge",
"backgroundColor": "@{element3 == 'merge' ? '#59000000' : '#0E000000'}",
"actions" : [{
"log_id": "click",
"url": "div-action://set_variable?name=element3&value=merge"
}]
"actions": [
{
"log_id": "click",
"url": "div-action://set_variable?name=element3&value=merge"
}
]
},
{
"type": "controlButton",
"text": "Exclude",
"backgroundColor": "@{element3 == 'exclude' ? '#59000000' : '#0E000000'}",
"actions" : [{
"log_id": "click",
"url": "div-action://set_variable?name=element3&value=exclude"
}]
"actions": [
{
"log_id": "click",
"url": "div-action://set_variable?name=element3&value=exclude"
}
]
}
]
},
@@ -374,28 +394,34 @@
"type": "controlButton",
"text": "Default",
"backgroundColor": "@{element23 == 'default' ? '#59000000' : '#0E000000'}",
"actions" : [{
"log_id": "click",
"url": "div-action://set_variable?name=element23&value=default"
}]
"actions": [
{
"log_id": "click",
"url": "div-action://set_variable?name=element23&value=default"
}
]
},
{
"type": "controlButton",
"text": "Merge",
"backgroundColor": "@{element23 == 'merge' ? '#59000000' : '#0E000000'}",
"actions" : [{
"log_id": "click",
"url": "div-action://set_variable?name=element23&value=merge"
}]
"actions": [
{
"log_id": "click",
"url": "div-action://set_variable?name=element23&value=merge"
}
]
},
{
"type": "controlButton",
"text": "Exclude",
"backgroundColor": "@{element23 == 'exclude' ? '#59000000' : '#0E000000'}",
"actions" : [{
"log_id": "click",
"url": "div-action://set_variable?name=element23&value=exclude"
}]
"actions": [
{
"log_id": "click",
"url": "div-action://set_variable?name=element23&value=exclude"
}
]
}
]
},
@@ -424,28 +450,34 @@
"type": "controlButton",
"text": "Default",
"backgroundColor": "@{element4 == 'default' ? '#59000000' : '#0E000000'}",
"actions" : [{
"log_id": "click",
"url": "div-action://set_variable?name=element4&value=default"
}]
"actions": [
{
"log_id": "click",
"url": "div-action://set_variable?name=element4&value=default"
}
]
},
{
"type": "controlButton",
"text": "Merge",
"backgroundColor": "@{element4 == 'merge' ? '#59000000' : '#0E000000'}",
"actions" : [{
"log_id": "click",
"url": "div-action://set_variable?name=element4&value=merge"
}]
"actions": [
{
"log_id": "click",
"url": "div-action://set_variable?name=element4&value=merge"
}
]
},
{
"type": "controlButton",
"text": "Exclude",
"backgroundColor": "@{element4 == 'exclude' ? '#59000000' : '#0E000000'}",
"actions" : [{
"log_id": "click",
"url": "div-action://set_variable?name=element4&value=exclude"
}]
"actions": [
{
"log_id": "click",
"url": "div-action://set_variable?name=element4&value=exclude"
}
]
}
]
}
@@ -73,7 +73,7 @@
"duration": 500,
"end_value": 0.6,
"interpolator": "ease"
},
},
"actions": [
{
"log_id": "animation_ease_scale",
@@ -1,178 +1,178 @@
{
"templates": {
"button": {
"type": "text",
"paddings": {
"top": 4,
"bottom": 4,
"left": 8,
"right": 8
},
"margins": {
"right": 8,
"left": 8
},
"text_alignment_horizontal": "center",
"text_alignment_vertical": "center",
"font_size": 12,
"text_color": "#ffff",
"font_weight": "bold",
"height": {
"type": "wrap_content"
},
"width": {
"type": "match_parent"
},
"border": {
"corner_radius": 16
},
"templates": {
"button": {
"type": "text",
"paddings": {
"top": 4,
"bottom": 4,
"left": 8,
"right": 8
},
"margins": {
"right": 8,
"left": 8
},
"text_alignment_horizontal": "center",
"text_alignment_vertical": "center",
"font_size": 12,
"text_color": "#ffff",
"font_weight": "bold",
"height": {
"type": "wrap_content"
},
"width": {
"type": "match_parent"
},
"border": {
"corner_radius": 16
},
"background": [
{
"type": "solid",
"color": "#0000FF"
}
],
"focus": {
"background": [
{
"type": "solid",
"color": "#0000FF"
"color": "#ff5500"
}
],
"focus": {
"background": [
]
}
}
},
"card": {
"log_id": "tests",
"variables": [
{
"name": "input_value_1",
"type": "string",
"value": "input view"
},
{
"name": "timer_label",
"type": "string",
"value": "finished"
}
],
"timers": [
{
"id": "clear_focus",
"duration": 2000,
"end_actions": [
{
"log_id": "clear focus",
"typed": {
"type": "clear_focus"
}
},
{
"url": "div-action://set_variable?name=timer_label&value=finished",
"log_id": "timer finished"
}
]
}
],
"states": [
{
"state_id": 0,
"div": {
"type": "container",
"orientation": "vertical",
"margins": {
"top": 24,
"bottom": 24
},
"items": [
{
"type": "solid",
"color": "#ff5500"
"type": "container",
"orientation": "horizontal",
"margins": {
"left": 16,
"top": 16
},
"width": {
"type": "wrap_content"
},
"items": [
{
"type": "text",
"text": "Timer for clear focus: ",
"font_weight": "bold"
},
{
"type": "text",
"text": "@{timer_label}"
}
]
},
{
"id": "input",
"text_variable": "input_value_1",
"type": "input",
"width": {
"type": "match_parent"
},
"height": {
"type": "wrap_content"
},
"paddings": {
"left": 16,
"top": 16,
"right": 16,
"bottom": 16
},
"margins": {
"left": 16,
"top": 16,
"right": 16,
"bottom": 16
},
"border": {
"corner_radius": 8,
"stroke": {
"color": "#0000FF"
}
},
"focus": {
"background": [
{
"type": "solid",
"color": "#ff5500"
}
]
}
},
{
"type": "button",
"text": "Focus input",
"id": "button_1",
"alignment_horizontal": "center",
"width": {
"type": "wrap_content"
},
"actions": [
{
"log_id": "focus_1",
"typed": {
"type": "focus_element",
"element_id": "input"
}
},
{
"log_id": "Start timer",
"url": "div-action://timer?id=clear_focus&action=start"
},
{
"url": "div-action://set_variable?name=timer_label&value=started",
"log_id": "timer started"
}
]
}
]
}
}
},
"card": {
"log_id": "tests",
"variables": [
{
"name": "input_value_1",
"type": "string",
"value": "input view"
},
{
"name": "timer_label",
"type": "string",
"value": "finished"
}
],
"timers": [
{
"id": "clear_focus",
"duration": 2000,
"end_actions": [
{
"log_id": "clear focus",
"typed": {
"type": "clear_focus"
}
},
{
"url": "div-action://set_variable?name=timer_label&value=finished",
"log_id": "timer finished"
}
]
}
],
"states": [
{
"state_id": 0,
"div": {
"type": "container",
"orientation": "vertical",
"margins": {
"top": 24,
"bottom": 24
},
"items": [
{
"type": "container",
"orientation": "horizontal",
"margins": {
"left": 16,
"top": 16
},
"width": {
"type": "wrap_content"
},
"items": [
{
"type": "text",
"text": "Timer for clear focus: ",
"font_weight": "bold"
},
{
"type": "text",
"text": "@{timer_label}"
}
]
},
{
"id": "input",
"text_variable": "input_value_1",
"type": "input",
"width": {
"type": "match_parent"
},
"height": {
"type": "wrap_content"
},
"paddings": {
"left": 16,
"top": 16,
"right": 16,
"bottom": 16
},
"margins": {
"left": 16,
"top": 16,
"right": 16,
"bottom": 16
},
"border": {
"corner_radius": 8,
"stroke": {
"color": "#0000FF"
}
},
"focus": {
"background": [
{
"type": "solid",
"color": "#ff5500"
}
]
}
},
{
"type": "button",
"text": "Focus input",
"id": "button_1",
"alignment_horizontal": "center",
"width": {
"type": "wrap_content"
},
"actions": [
{
"log_id": "focus_1",
"typed": {
"type": "focus_element",
"element_id": "input"
}
},
{
"log_id": "Start timer",
"url": "div-action://timer?id=clear_focus&action=start"
},
{
"url": "div-action://set_variable?name=timer_label&value=started",
"log_id": "timer started"
}
]
}
]
}
}
]
}
]
}
}
@@ -132,7 +132,7 @@
{
"state_id": 0,
"div": {
"div_id": "container",
"div_id": "container",
"type": "container",
"width": {
"type": "match_parent"
@@ -265,4 +265,4 @@
}
]
}
}
}
@@ -1,379 +1,379 @@
{
"templates": {
"number_input": {
"type": "input",
"width": {
"templates": {
"number_input": {
"type": "input",
"width": {
"type": "match_parent"
},
"height": {
"type": "wrap_content"
},
"paddings": {
"left": 16,
"top": 16,
"right": 16,
"bottom": 16
},
"margins": {
"left": 16,
"top": 16,
"right": 16,
"bottom": 16
},
"border": {
"corner_radius": 8,
"stroke": {
"color": "#0000FF"
}
},
"focus": {
"background": [
{
"type": "solid",
"color": "#ff5500"
}
]
}
},
"button": {
"type": "text",
"paddings": {
"top": 4,
"bottom": 4,
"left": 8,
"right": 8
},
"margins": {
"right": 8,
"left": 8
},
"text_alignment_horizontal": "center",
"text_alignment_vertical": "center",
"font_size": 12,
"text_color": "#ffff",
"font_weight": "bold",
"height": {
"type": "wrap_content"
},
"width": {
"type": "match_parent"
},
"border": {
"corner_radius": 16
},
"background": [
{
"type": "solid",
"color": "#0000FF"
}
],
"focus": {
"background": [
{
"type": "solid",
"color": "#ff5500"
}
]
}
}
},
"card": {
"log_id": "tests",
"variables": [
{
"name": "input_value_1",
"type": "string",
"value": "initial_text_1"
},
{
"name": "input_value_2",
"type": "string",
"value": "initial_text_2"
},
{
"name": "input_value_3",
"type": "string",
"value": "initial_text_3"
},
{
"name": "select_value",
"type": "string",
"value": ""
},
{
"name": "slide_value",
"type": "integer",
"value": 2
},
{
"name": "slide_value2",
"type": "integer",
"value": 5
}
],
"states": [
{
"state_id": 0,
"div": {
"type": "container",
"orientation": "vertical",
"margins": {
"top": 24,
"bottom": 24
},
"items": [
{
"type": "number_input",
"id": "input_1",
"text_variable": "input_value_1"
},
{
"type": "number_input",
"id": "input_2",
"text_variable": "input_value_2"
},
{
"type": "number_input",
"id": "input_3",
"text_variable": "input_value_3"
},
{
"type": "select",
"id": "select_1",
"width": {
"type": "match_parent"
},
"height": {
},
"height": {
"type": "wrap_content"
},
"paddings": {
},
"margins": {
"left": 16,
"top": 16,
"top": 20,
"right": 16,
"bottom": 16
},
"margins": {
},
"paddings": {
"left": 16,
"top": 16,
"top": 10,
"right": 16,
"bottom": 16
},
"border": {
"bottom": 10
},
"alpha": 1,
"alignment_horizontal": "center",
"alignment_vertical": "center",
"border": {
"corner_radius": 8,
"stroke": {
"color": "#0000FF"
"color": "#0000FF"
}
},
"focus": {
"background": [
{
"type": "solid",
"color": "#ff5500"
}
]
}
},
"button": {
"type": "text",
"paddings": {
"top": 4,
"bottom": 4,
"left": 8,
"right": 8
},
"margins": {
"right": 8,
"left": 8
},
"text_alignment_horizontal": "center",
"text_alignment_vertical": "center",
"font_size": 12,
"text_color": "#ffff",
"font_weight": "bold",
"height": {
"type": "wrap_content"
},
"width": {
"type": "match_parent"
},
"border": {
"corner_radius": 16
},
"background": [
},
"font_size": 16,
"font_weight": "medium",
"text_color": "#000000",
"value_variable": "select_variable",
"hint_text": "Select country",
"hint_color": "#888888",
"line_height": 22,
"options": [
{
"type": "solid",
"color": "#0000FF"
"value": "ru",
"text": "Russia"
},
{
"value": "uk",
"text": "United Kingdom"
},
{
"value": "kz"
}
],
"focus": {
],
"focus": {
"background": [
{
"type": "solid",
"color": "#ff5500"
}
{
"type": "solid",
"color": "#ff5500"
}
]
}
}
},
"card": {
"log_id": "tests",
"variables": [
{
"name": "input_value_1",
"type": "string",
"value": "initial_text_1"
}
},
{
"name": "input_value_2",
"type": "string",
"value": "initial_text_2"
},
{
"name": "input_value_3",
"type": "string",
"value": "initial_text_3"
},
{
"name": "select_value",
"type": "string",
"value": ""
},
{
"name": "slide_value",
"type": "integer",
"value": 2
},
{
"name": "slide_value2",
"type": "integer",
"value": 5
}
],
"states": [
{
"state_id": 0,
"div": {
"type": "container",
"orientation": "vertical",
"margins": {
"top": 24,
"bottom": 24
},
"items": [
{
"type": "number_input",
"id": "input_1",
"text_variable": "input_value_1"
},
{
"type": "number_input",
"id": "input_2",
"text_variable": "input_value_2"
},
{
"type": "number_input",
"id": "input_3",
"text_variable": "input_value_3"
},
{
"type": "select",
"id": "select_1",
"width": {
"type": "match_parent"
},
"height": {
"type": "wrap_content"
},
"margins": {
"left": 16,
"top": 20,
"right": 16,
"bottom": 16
},
"paddings": {
"left": 16,
"top": 10,
"right": 16,
"bottom": 10
},
"alpha": 1,
"alignment_horizontal": "center",
"alignment_vertical": "center",
"border": {
"corner_radius": 8,
"stroke": {
"color": "#0000FF"
}
},
"font_size": 16,
"font_weight": "medium",
"text_color": "#000000",
"value_variable": "select_variable",
"hint_text": "Select country",
"hint_color": "#888888",
"line_height": 22,
"options": [
{
"value": "ru",
"text": "Russia"
},
{
"value": "uk",
"text": "United Kingdom"
},
{
"value": "kz"
}
],
"focus": {
"background": [
{
"type": "solid",
"color": "#ff5500"
}
]
}
},
{
"type": "slider",
"id": "slider_1",
"width": {
"type": "match_parent"
},
"paddings": {
"left": 8,
"right": 8,
"top": 8,
"bottom": 8
},
"max_value": 10,
"min_value": 1,
"thumb_value_variable": "slide_value",
"thumb_secondary_value_variable": "slide_value2",
"thumb_style": {
"type": "shape_drawable",
"color": "#FFCC00",
"stroke": {
"color": "#ffffff",
"width": 3
},
"shape": {
"type": "rounded_rectangle",
"item_height": {
"type": "fixed",
"value": 32
},
"item_width": {
"type": "fixed",
"value": 32
},
"corner_radius": {
"type": "fixed",
"value": 100
}
}
},
"thumb_secondary_style": {
"type": "shape_drawable",
"color": "#FFCC00",
"stroke": {
"color": "#ffffff",
"width": 3
},
"shape": {
"type": "rounded_rectangle",
"item_height": {
"type": "fixed",
"value": 32
},
"item_width": {
"type": "fixed",
"value": 32
},
"corner_radius": {
"type": "fixed",
"value": 100
}
}
},
"track_active_style": {
"type": "shape_drawable",
"color": "#FFCC00",
"shape": {
"type": "rounded_rectangle",
"item_height": {
"type": "fixed",
"value": 6
}
}
},
"track_inactive_style": {
"type": "shape_drawable",
"color": "#20000000",
"shape": {
"type": "rounded_rectangle",
"item_height": {
"type": "fixed",
"value": 6
}
}
},
"focus": {
"background": [
{
"type": "solid",
"color": "#ff5500"
}
]
}
},
{
"type": "container",
"orientation": "horizontal",
"margins": {
"bottom": 16
},
"items": [
{
"type": "button",
"text": "Focus 1",
"id": "button_1",
"action": {
"log_id": "focus_1",
"typed": {
"type": "focus_element",
"element_id": "input_1"
}
}
},
{
"type": "button",
"text": "Focus 2",
"action": {
"log_id": "focus_2",
"typed": {
"type": "focus_element",
"element_id": "input_2"
}
}
},
{
"type": "button",
"text": "Focus 3",
"action": {
"log_id": "focus_3",
"typed": {
"type": "focus_element",
"element_id": "input_3"
}
}
}
]
},
{
"type": "container",
"orientation": "horizontal",
"items": [
{
"type": "button",
"text": "Focus select",
"action": {
"log_id": "select_1",
"typed": {
"type": "focus_element",
"element_id": "select_1"
}
}
},
{
"type": "button",
"text": "Focus slider",
"action": {
"log_id": "slider_1",
"typed": {
"type": "focus_element",
"element_id": "slider_1"
}
}
},
{
"type": "button",
"text": "Focus button 1",
"action": {
"log_id": "focus_4",
"typed": {
"type": "focus_element",
"element_id": "button_1"
}
}
}
]
}
]
"type": "slider",
"id": "slider_1",
"width": {
"type": "match_parent"
},
"paddings": {
"left": 8,
"right": 8,
"top": 8,
"bottom": 8
},
"max_value": 10,
"min_value": 1,
"thumb_value_variable": "slide_value",
"thumb_secondary_value_variable": "slide_value2",
"thumb_style": {
"type": "shape_drawable",
"color": "#FFCC00",
"stroke": {
"color": "#ffffff",
"width": 3
},
"shape": {
"type": "rounded_rectangle",
"item_height": {
"type": "fixed",
"value": 32
},
"item_width": {
"type": "fixed",
"value": 32
},
"corner_radius": {
"type": "fixed",
"value": 100
}
}
},
"thumb_secondary_style": {
"type": "shape_drawable",
"color": "#FFCC00",
"stroke": {
"color": "#ffffff",
"width": 3
},
"shape": {
"type": "rounded_rectangle",
"item_height": {
"type": "fixed",
"value": 32
},
"item_width": {
"type": "fixed",
"value": 32
},
"corner_radius": {
"type": "fixed",
"value": 100
}
}
},
"track_active_style": {
"type": "shape_drawable",
"color": "#FFCC00",
"shape": {
"type": "rounded_rectangle",
"item_height": {
"type": "fixed",
"value": 6
}
}
},
"track_inactive_style": {
"type": "shape_drawable",
"color": "#20000000",
"shape": {
"type": "rounded_rectangle",
"item_height": {
"type": "fixed",
"value": 6
}
}
},
"focus": {
"background": [
{
"type": "solid",
"color": "#ff5500"
}
]
}
},
{
"type": "container",
"orientation": "horizontal",
"margins": {
"bottom": 16
},
"items": [
{
"type": "button",
"text": "Focus 1",
"id": "button_1",
"action": {
"log_id": "focus_1",
"typed": {
"type": "focus_element",
"element_id": "input_1"
}
}
},
{
"type": "button",
"text": "Focus 2",
"action": {
"log_id": "focus_2",
"typed": {
"type": "focus_element",
"element_id": "input_2"
}
}
},
{
"type": "button",
"text": "Focus 3",
"action": {
"log_id": "focus_3",
"typed": {
"type": "focus_element",
"element_id": "input_3"
}
}
}
]
},
{
"type": "container",
"orientation": "horizontal",
"items": [
{
"type": "button",
"text": "Focus select",
"action": {
"log_id": "select_1",
"typed": {
"type": "focus_element",
"element_id": "select_1"
}
}
},
{
"type": "button",
"text": "Focus slider",
"action": {
"log_id": "slider_1",
"typed": {
"type": "focus_element",
"element_id": "slider_1"
}
}
},
{
"type": "button",
"text": "Focus button 1",
"action": {
"log_id": "focus_4",
"typed": {
"type": "focus_element",
"element_id": "button_1"
}
}
}
]
}
]
}
]
}
}
]
}
}
@@ -97,4 +97,4 @@
}
]
}
}
}
@@ -287,7 +287,7 @@
"x": {
"value": 0
},
"y": {
"y": {
"value": 4
}
},
@@ -116,7 +116,7 @@
"image_id": "DivGif 2",
"lottie_image_text": "DivGif 2",
"lottie_params": {
"lottie_url": "https://div-storage.s3.yandex.net/test/lottie/DivGif2.json",
"lottie_url": "https://div-storage.s3.yandex.net/test/lottie/DivGif2.json",
"repeat_count": 3,
"repeat_mode": "restart"
}
@@ -126,7 +126,7 @@
"image_id": "DivGif 3",
"lottie_image_text": "DivGif 3",
"lottie_params": {
"lottie_url": "https://div-storage.s3.yandex.net/test/lottie/DivGif3.json",
"lottie_url": "https://div-storage.s3.yandex.net/test/lottie/DivGif3.json",
"repeat_count": -1,
"repeat_mode": "restart"
}
@@ -136,7 +136,7 @@
"image_id": "DivGif 4",
"lottie_image_text": "DivGif 4",
"lottie_params": {
"lottie_url": "https://div-storage.s3.yandex.net/test/lottie/DivGif4.json",
"lottie_url": "https://div-storage.s3.yandex.net/test/lottie/DivGif4.json",
"repeat_count": -1,
"repeat_mode": "reverse"
}
@@ -146,7 +146,7 @@
"image_id": "DivGif 5",
"lottie_image_text": "DivGif 5",
"lottie_params": {
"lottie_url": "https://yastatic.net/s3/home/yandex-app/div_test_data/love_anim.json",
"lottie_url": "https://yastatic.net/s3/home/yandex-app/div_test_data/love_anim.json",
"repeat_count": -1,
"repeat_mode": "reverse"
}
@@ -164,7 +164,7 @@
"image_id": "DivGif 7",
"lottie_image_text": "DivGif 7",
"lottie_params": {
"lottie_url": "https://yastatic.net/s3/home/yandex-app/div_test_data/banana.json",
"lottie_url": "https://yastatic.net/s3/home/yandex-app/div_test_data/banana.json",
"repeat_count": -1,
"repeat_mode": "reverse"
}
@@ -174,7 +174,7 @@
"image_id": "DivGif 8",
"lottie_image_text": "DivGif 8",
"lottie_params": {
"lottie_url": "https://div-storage.s3.yandex.net/test/lottie/DivGif28.json",
"lottie_url": "https://div-storage.s3.yandex.net/test/lottie/DivGif28.json",
"repeat_count": -1,
"repeat_mode": "restart"
}
@@ -184,7 +184,7 @@
"image_id": "DivGif 9",
"lottie_image_text": "DivGif 9",
"lottie_params": {
"lottie_url": "https://div-storage.s3.yandex.net/test/lottie/DivGif9.json",
"lottie_url": "https://div-storage.s3.yandex.net/test/lottie/DivGif9.json",
"repeat_count": -1,
"repeat_mode": "reverse"
}
@@ -194,7 +194,7 @@
"image_id": "DivGif 10",
"lottie_image_text": "DivGif 10",
"lottie_params": {
"lottie_url": "https://div-storage.s3.yandex.net/test/lottie/DivGif10.json",
"lottie_url": "https://div-storage.s3.yandex.net/test/lottie/DivGif10.json",
"repeat_count": -1,
"repeat_mode": "restart"
}
@@ -204,7 +204,7 @@
"image_id": "DivGif 11",
"lottie_image_text": "DivGif 11",
"lottie_params": {
"lottie_url": "https://div-storage.s3.yandex.net/test/lottie/DivGif11.json",
"lottie_url": "https://div-storage.s3.yandex.net/test/lottie/DivGif11.json",
"repeat_count": -1,
"repeat_mode": "reverse"
}
@@ -214,7 +214,7 @@
"image_id": "DivGif 12",
"lottie_image_text": "DivGif 12",
"lottie_params": {
"lottie_url": "https://div-storage.s3.yandex.net/test/lottie/DivGif12.json",
"lottie_url": "https://div-storage.s3.yandex.net/test/lottie/DivGif12.json",
"repeat_count": -1,
"repeat_mode": "restart"
}
@@ -224,7 +224,7 @@
"image_id": "DivGif 13",
"lottie_image_text": "DivGif 13",
"lottie_params": {
"lottie_url": "https://div-storage.s3.yandex.net/test/lottie/DivGif13.json",
"lottie_url": "https://div-storage.s3.yandex.net/test/lottie/DivGif13.json",
"repeat_count": -1,
"repeat_mode": "reverse"
}
@@ -234,7 +234,7 @@
"image_id": "DivGif 14",
"lottie_image_text": "DivGif 14",
"lottie_params": {
"lottie_url": "https://div-storage.s3.yandex.net/test/lottie/DivGif14.json",
"lottie_url": "https://div-storage.s3.yandex.net/test/lottie/DivGif14.json",
"repeat_count": -1,
"repeat_mode": "restart"
}
@@ -244,7 +244,7 @@
"image_id": "DivGif 15",
"lottie_image_text": "DivGif 15",
"lottie_params": {
"lottie_url": "https://div-storage.s3.yandex.net/test/lottie/DivGif15.json",
"lottie_url": "https://div-storage.s3.yandex.net/test/lottie/DivGif15.json",
"repeat_count": -1,
"repeat_mode": "reverse"
}
@@ -254,7 +254,7 @@
"image_id": "DivGif 16",
"lottie_image_text": "DivGif 16",
"lottie_params": {
"lottie_url": "https://div-storage.s3.yandex.net/test/lottie/DivGif16.json",
"lottie_url": "https://div-storage.s3.yandex.net/test/lottie/DivGif16.json",
"repeat_count": -1,
"repeat_mode": "restart"
}
@@ -264,7 +264,7 @@
"image_id": "DivGif 17",
"lottie_image_text": "DivGif 17",
"lottie_params": {
"lottie_url": ""
"lottie_url": ""
}
},
{
@@ -272,7 +272,7 @@
"image_id": "DivGif 18",
"lottie_image_text": "DivGif 18",
"lottie_params": {
"lottie_url": "https://div-storage.s3.yandex.net/test/lottie/DivGif18.json",
"lottie_url": "https://div-storage.s3.yandex.net/test/lottie/DivGif18.json",
"repeat_count": -1,
"repeat_mode": "restart"
}
@@ -282,7 +282,7 @@
"image_id": "DivGif 19",
"lottie_image_text": "DivGif 19",
"lottie_params": {
"lottie_url": "https://div-storage.s3.yandex.net/test/lottie/DivGif19.json",
"lottie_url": "https://div-storage.s3.yandex.net/test/lottie/DivGif19.json",
"repeat_count": -1,
"repeat_mode": "reverse"
}
@@ -292,7 +292,7 @@
"image_id": "DivGif 20",
"lottie_image_text": "DivGif 20",
"lottie_params": {
"lottie_url": "https://div-storage.s3.yandex.net/test/lottie/DivGif20.json",
"lottie_url": "https://div-storage.s3.yandex.net/test/lottie/DivGif20.json",
"repeat_count": -1,
"repeat_mode": "restart"
}
@@ -302,7 +302,7 @@
"image_id": "DivGif 21",
"lottie_image_text": "DivGif 21",
"lottie_params": {
"lottie_url": "https://div-storage.s3.yandex.net/test/lottie/DivGif21.json",
"lottie_url": "https://div-storage.s3.yandex.net/test/lottie/DivGif21.json",
"repeat_count": -1,
"repeat_mode": "reverse"
}
@@ -312,7 +312,7 @@
"image_id": "DivGif 22",
"lottie_image_text": "DivGif 22",
"lottie_params": {
"lottie_url": "https://div-storage.s3.yandex.net/test/lottie/DivGif22.json",
"lottie_url": "https://div-storage.s3.yandex.net/test/lottie/DivGif22.json",
"repeat_count": -1,
"repeat_mode": "restart"
}
@@ -322,7 +322,7 @@
"image_id": "DivGif 23",
"lottie_image_text": "DivGif 23",
"lottie_params": {
"lottie_url": "https://div-storage.s3.yandex.net/test/lottie/DivGif23.json",
"lottie_url": "https://div-storage.s3.yandex.net/test/lottie/DivGif23.json",
"repeat_count": -1,
"repeat_mode": "reverse"
}
@@ -332,7 +332,7 @@
"image_id": "DivGif 24",
"lottie_image_text": "DivGif 24",
"lottie_params": {
"lottie_url": "https://div-storage.s3.yandex.net/test/lottie/DivGif24.json",
"lottie_url": "https://div-storage.s3.yandex.net/test/lottie/DivGif24.json",
"repeat_count": -1,
"repeat_mode": "restart"
}
@@ -342,7 +342,7 @@
"image_id": "DivGif 25",
"lottie_image_text": "DivGif 25",
"lottie_params": {
"lottie_url": "https://div-storage.s3.yandex.net/test/lottie/DivGif25.json",
"lottie_url": "https://div-storage.s3.yandex.net/test/lottie/DivGif25.json",
"repeat_count": -1,
"repeat_mode": "reverse"
}
@@ -352,7 +352,7 @@
"image_id": "DivGif 26",
"lottie_image_text": "DivGif 26",
"lottie_params": {
"lottie_url": "https://div-storage.s3.yandex.net/test/lottie/DivGif26.json",
"lottie_url": "https://div-storage.s3.yandex.net/test/lottie/DivGif26.json",
"repeat_count": -1,
"repeat_mode": "restart"
}
@@ -362,7 +362,7 @@
"image_id": "DivGif 27",
"lottie_image_text": "DivGif 27",
"lottie_params": {
"lottie_url": "https://div-storage.s3.yandex.net/test/lottie/DivGif27.json",
"lottie_url": "https://div-storage.s3.yandex.net/test/lottie/DivGif27.json",
"repeat_count": -1,
"repeat_mode": "reverse"
}
@@ -1,142 +1,142 @@
{
"templates": {
"rive_grid": {
"type": "grid",
"paddings": {
"left": 8,
"top": 8,
"right": 8,
"bottom": 8
},
"column_count": 2
"rive_grid": {
"type": "grid",
"paddings": {
"left": 8,
"top": 8,
"right": 8,
"bottom": 8
},
"rive_custom": {
"type": "custom",
"custom_type": "rive_animation",
"width": {
"type": "match_parent"
},
"height": {
"type": "match_parent"
},
"margins": {
"top": 32,
"bottom": 16,
"left": 16,
"right": 16
},
"alignment_vertical": "top",
"alignment_horizontal": "center"
"column_count": 2
},
"rive_custom": {
"type": "custom",
"custom_type": "rive_animation",
"width": {
"type": "match_parent"
},
"card_title": {
"type": "text",
"text_alignment_horizontal": "center",
"text_alignment_vertical": "center",
"font_size": 14,
"paddings": {
"top": 8
},
"font_weight": "medium",
"line_height": 18
"height": {
"type": "match_parent"
},
"rive_card": {
"type": "container",
"width": {
"type": "fixed",
"value": 150
},
"height": {
"type": "fixed",
"value": 250
},
"margins": {
"left": 4,
"right": 4,
"bottom": 4,
"top": 4
},
"paddings": {
"top": 4,
"right": 2,
"left": 2
},
"border": {
"corner_radius": 32,
"unit": "dp"
},
"background": [
{
"type": "solid",
"color": "#0e000000"
}
],
"orientation": "vertical"
"margins": {
"top": 32,
"bottom": 16,
"left": 16,
"right": 16
},
"rive_animation_card": {
"type": "rive_card",
"items": [
{
"type": "card_title",
"$text": "rive_card_text"
},
{
"type": "rive_custom",
"$custom_props": "rive_props"
}
]
}
"alignment_vertical": "top",
"alignment_horizontal": "center"
},
"card_title": {
"type": "text",
"text_alignment_horizontal": "center",
"text_alignment_vertical": "center",
"font_size": 14,
"paddings": {
"top": 8
},
"font_weight": "medium",
"line_height": 18
},
"rive_card": {
"type": "container",
"width": {
"type": "fixed",
"value": 150
},
"height": {
"type": "fixed",
"value": 250
},
"margins": {
"left": 4,
"right": 4,
"bottom": 4,
"top": 4
},
"paddings": {
"top": 4,
"right": 2,
"left": 2
},
"border": {
"corner_radius": 32,
"unit": "dp"
},
"background": [
{
"type": "solid",
"color": "#0e000000"
}
],
"orientation": "vertical"
},
"rive_animation_card": {
"type": "rive_card",
"items": [
{
"type": "card_title",
"$text": "rive_card_text"
},
{
"type": "rive_custom",
"$custom_props": "rive_props"
}
]
}
},
"card": {
"log_id": "root",
"states": [
{
"state_id": 0,
"div": {
"id": "rive_grid",
"type": "rive_grid",
"items": [
{
"type": "rive_animation_card",
"rive_card_text": "RiveCustom 1",
"rive_props": {
"url": "https://public.rive.app/community/runtime-files/3695-7723-funny-buttom.riv"
}
},
{
"type": "rive_animation_card",
"rive_card_text": "RiveCustom 2",
"rive_props": {
"url": "https://public.rive.app/community/runtime-files/3370-7083-cup-walk.riv"
}
},
{
"type": "rive_animation_card",
"rive_card_text": "RiveCustom 3",
"rive_props": {
"url": "https://public.rive.app/community/runtime-files/1414-2763-gang.riv"
}
},
{
"type": "rive_animation_card",
"rive_card_text": "RiveCustom 4",
"rive_props": {
"url": "https://public.rive.app/community/runtime-files/2193-4329-message-icon.riv"
}
},
{
"type": "rive_animation_card",
"rive_card_text": "RiveCustom 5",
"rive_props": {
"url": "https://public.rive.app/community/runtime-files/1180-2271-logistics-man-boxes.riv"
}
},
{
"type": "separator",
"alpha": 0
}
]
"log_id": "root",
"states": [
{
"state_id": 0,
"div": {
"id": "rive_grid",
"type": "rive_grid",
"items": [
{
"type": "rive_animation_card",
"rive_card_text": "RiveCustom 1",
"rive_props": {
"url": "https://public.rive.app/community/runtime-files/3695-7723-funny-buttom.riv"
}
}
]
},
{
"type": "rive_animation_card",
"rive_card_text": "RiveCustom 2",
"rive_props": {
"url": "https://public.rive.app/community/runtime-files/3370-7083-cup-walk.riv"
}
},
{
"type": "rive_animation_card",
"rive_card_text": "RiveCustom 3",
"rive_props": {
"url": "https://public.rive.app/community/runtime-files/1414-2763-gang.riv"
}
},
{
"type": "rive_animation_card",
"rive_card_text": "RiveCustom 4",
"rive_props": {
"url": "https://public.rive.app/community/runtime-files/2193-4329-message-icon.riv"
}
},
{
"type": "rive_animation_card",
"rive_card_text": "RiveCustom 5",
"rive_props": {
"url": "https://public.rive.app/community/runtime-files/1180-2271-logistics-man-boxes.riv"
}
},
{
"type": "separator",
"alpha": 0
}
]
}
}
]
}
}
@@ -84,4 +84,3 @@
]
}
}
@@ -114,4 +114,4 @@
}
]
}
}
}
@@ -114,4 +114,4 @@
}
]
}
}
}
@@ -95,4 +95,4 @@
}
]
}
}
}
@@ -95,4 +95,4 @@
}
]
}
}
}
@@ -95,4 +95,4 @@
}
]
}
}
}
@@ -98,4 +98,4 @@
}
]
}
}
}
@@ -95,4 +95,4 @@
}
]
}
}
}
@@ -95,4 +95,4 @@
}
]
}
}
}
@@ -99,4 +99,4 @@
}
]
}
}
}
@@ -62,4 +62,4 @@
}
]
}
}
}
@@ -101,4 +101,4 @@
}
]
}
}
}
@@ -62,4 +62,4 @@
}
]
}
}
}
@@ -99,4 +99,4 @@
}
]
}
}
}
@@ -62,4 +62,4 @@
}
]
}
}
}
@@ -101,4 +101,4 @@
}
]
}
}
}
@@ -62,4 +62,4 @@
}
]
}
}
}
@@ -125,4 +125,4 @@
}
]
}
}
}
@@ -62,4 +62,4 @@
}
]
}
}
}
@@ -101,4 +101,4 @@
}
]
}
}
}
@@ -62,4 +62,4 @@
}
]
}
}
}
@@ -107,4 +107,4 @@
}
]
}
}
}
@@ -62,4 +62,4 @@
}
]
}
}
}
@@ -24,10 +24,12 @@
"border": {
"corner_radius": 8
},
"background": [{
"type": "solid",
"color": "#e0bae3"
}],
"background": [
{
"type": "solid",
"color": "#e0bae3"
}
],
"$image_url": "album_cover_url",
"action_animation": {
"name": "no_animation"
@@ -1,86 +1,86 @@
{
"templates": {
"input_text_borderless": {
"type": "input",
"width": {
"type": "match_parent"
},
"height": {
"type": "wrap_content"
},
"margins": {
"left": 16,
"top": 20,
"right": 16,
"bottom": 16
},
"paddings": {
"left": 16,
"top": 10,
"right": 16,
"bottom": 10
},
"alignment_horizontal": "center",
"alignment_vertical": "center",
"font_size": 16,
"font_weight": "medium",
"text_color": "#000000",
"hint_color": "#888888",
"highlight_color": "#e0bae3",
"line_height": 22
},
"input_text": {
"type": "input_text_borderless",
"background": [
{
"type": "solid",
"color": "#0e000000"
}
],
"border": {
"corner_radius": 8
}
}
"templates": {
"input_text_borderless": {
"type": "input",
"width": {
"type": "match_parent"
},
"height": {
"type": "wrap_content"
},
"margins": {
"left": 16,
"top": 20,
"right": 16,
"bottom": 16
},
"paddings": {
"left": 16,
"top": 10,
"right": 16,
"bottom": 10
},
"alignment_horizontal": "center",
"alignment_vertical": "center",
"font_size": 16,
"font_weight": "medium",
"text_color": "#000000",
"hint_color": "#888888",
"highlight_color": "#e0bae3",
"line_height": 22
},
"card": {
"log_id": "sample_card",
"variables": [
{
"name": "my_single_text",
"type": "string",
"value": "This is single-line input"
}
],
"states": [
{
"state_id": 0,
"div": {
"type": "container",
"orientation": "vertical",
"id": "1",
"transition_change": {
"type": "change_bounds",
"duration": 100
},
"items": [
{
"type": "container",
"orientation": "vertical",
"margins": {
"top": 24,
"bottom": 24
},
"items": [
{
"type": "input_text",
"text_variable": "my_single_text",
"keyboard_type": "single_line_text"
}
]
}
]
}
}
]
"input_text": {
"type": "input_text_borderless",
"background": [
{
"type": "solid",
"color": "#0e000000"
}
],
"border": {
"corner_radius": 8
}
}
},
"card": {
"log_id": "sample_card",
"variables": [
{
"name": "my_single_text",
"type": "string",
"value": "This is single-line input"
}
],
"states": [
{
"state_id": 0,
"div": {
"type": "container",
"orientation": "vertical",
"id": "1",
"transition_change": {
"type": "change_bounds",
"duration": 100
},
"items": [
{
"type": "container",
"orientation": "vertical",
"margins": {
"top": 24,
"bottom": 24
},
"items": [
{
"type": "input_text",
"text_variable": "my_single_text",
"keyboard_type": "single_line_text"
}
]
}
]
}
}
]
}
}
@@ -1,177 +1,177 @@
{
"templates": {
"number_input": {
"type": "input",
"width": {
"type": "match_parent"
},
"height": {
"type": "wrap_content"
},
"paddings": {
"left": 16,
"top": 16,
"right": 16,
"bottom": 16
},
"margins": {
"left": 16,
"top": 16,
"right": 16,
"bottom": 16
},
"border": {
"corner_radius": 8,
"stroke": {
"color": "#0000FF"
}
},
"focus": {
"background": [
{
"type": "solid",
"color": "#ff5500"
}
]
}
},
"button": {
"type": "text",
"paddings": {
"top": 4,
"bottom": 4,
"left": 8,
"right": 8
},
"margins": {
"right": 8,
"left": 8
},
"text_alignment_horizontal": "center",
"text_alignment_vertical": "center",
"font_size": 12,
"text_color": "#ffff",
"font_weight": "bold",
"height": {
"type": "wrap_content"
},
"width": {
"type": "match_parent"
},
"border": {
"corner_radius": 16
},
"background": [
{
"type": "solid",
"color": "#0000FF"
}
],
"focus": {
"background": [
{
"type": "solid",
"color": "#ff5500"
}
]
}
"templates": {
"number_input": {
"type": "input",
"width": {
"type": "match_parent"
},
"height": {
"type": "wrap_content"
},
"paddings": {
"left": 16,
"top": 16,
"right": 16,
"bottom": 16
},
"margins": {
"left": 16,
"top": 16,
"right": 16,
"bottom": 16
},
"border": {
"corner_radius": 8,
"stroke": {
"color": "#0000FF"
}
},
"card": {
"log_id": "tests",
"variables": [
{
"name": "input_value_1",
"type": "string",
"value": "initial_text_1"
},
{
"name": "input_value_2",
"type": "string",
"value": "initial_text_2"
},
{
"name": "input_value_3",
"type": "string",
"value": "initial_text_3"
},
{
"name": "select_value",
"type": "string",
"value": ""
},
{
"name": "slide_value",
"type": "integer",
"value": 2
},
{
"name": "slide_value2",
"type": "integer",
"value": 5
}
],
"states": [
{
"state_id": 0,
"div": {
"type": "container",
"orientation": "vertical",
"margins": {
"top": 24,
"bottom": 24
},
"items": [
{
"type": "container",
"item_builder": {
"data": [
{
"id": "input_1"
},
{
"id": "input_2"
},
{
"id": "input_3"
}
],
"prototypes": [
{
"id": "@{getStringFromDict(it, 'id')}",
"div": {
"type": "number_input",
"id": "input_1",
"text_variable": "input_value_1"
}
}
]
}
},
{
"type": "container",
"orientation": "horizontal",
"margins": {
"bottom": 16
},
"items": [
{
"type": "button",
"text": "Focus 2",
"id": "button_2",
"action": {
"log_id": "focus_2",
"typed": {
"type": "focus_element",
"element_id": "input_2"
}
}
}
]
}
]
}
}
},
"focus": {
"background": [
{
"type": "solid",
"color": "#ff5500"
}
]
}
},
"button": {
"type": "text",
"paddings": {
"top": 4,
"bottom": 4,
"left": 8,
"right": 8
},
"margins": {
"right": 8,
"left": 8
},
"text_alignment_horizontal": "center",
"text_alignment_vertical": "center",
"font_size": 12,
"text_color": "#ffff",
"font_weight": "bold",
"height": {
"type": "wrap_content"
},
"width": {
"type": "match_parent"
},
"border": {
"corner_radius": 16
},
"background": [
{
"type": "solid",
"color": "#0000FF"
}
],
"focus": {
"background": [
{
"type": "solid",
"color": "#ff5500"
}
]
}
}
},
"card": {
"log_id": "tests",
"variables": [
{
"name": "input_value_1",
"type": "string",
"value": "initial_text_1"
},
{
"name": "input_value_2",
"type": "string",
"value": "initial_text_2"
},
{
"name": "input_value_3",
"type": "string",
"value": "initial_text_3"
},
{
"name": "select_value",
"type": "string",
"value": ""
},
{
"name": "slide_value",
"type": "integer",
"value": 2
},
{
"name": "slide_value2",
"type": "integer",
"value": 5
}
],
"states": [
{
"state_id": 0,
"div": {
"type": "container",
"orientation": "vertical",
"margins": {
"top": 24,
"bottom": 24
},
"items": [
{
"type": "container",
"item_builder": {
"data": [
{
"id": "input_1"
},
{
"id": "input_2"
},
{
"id": "input_3"
}
],
"prototypes": [
{
"id": "@{getStringFromDict(it, 'id')}",
"div": {
"type": "number_input",
"id": "input_1",
"text_variable": "input_value_1"
}
}
]
}
},
{
"type": "container",
"orientation": "horizontal",
"margins": {
"bottom": 16
},
"items": [
{
"type": "button",
"text": "Focus 2",
"id": "button_2",
"action": {
"log_id": "focus_2",
"typed": {
"type": "focus_element",
"element_id": "input_2"
}
}
}
]
}
]
}
}
]
}
}
@@ -1,155 +1,155 @@
{
"templates": {
"exampleCard": {
"type": "container",
"border": {
"corner_radius": 16,
"stroke": {
"color": "#aaaaaa",
"width": 1
}
},
"margins": {
"bottom": 6
},
"orientation": "vertical",
"paddings": {
"top": 12,
"bottom": 12,
"left": 12,
"right": 12
}
"templates": {
"exampleCard": {
"type": "container",
"border": {
"corner_radius": 16,
"stroke": {
"color": "#aaaaaa",
"width": 1
}
},
"card": {
"log_id": "prototypes",
"variables": [
},
"margins": {
"bottom": 6
},
"orientation": "vertical",
"paddings": {
"top": 12,
"bottom": 12,
"left": 12,
"right": 12
}
}
},
"card": {
"log_id": "prototypes",
"variables": [
{
"name": "text_variable",
"type": "string",
"value": "Text displaying the description of the card."
},
{
"name": "data",
"type": "array",
"value": [
{
"style": "only_text",
"title": "First text card"
},
{
"style": "only_text",
"title": "Second text card"
},
{
"style": "only_text",
"title": "Third text card"
},
{
"style": "with_image",
"title": "Card with image",
"image_url": "https://yastatic.net/s3/home/divkit/chess.png"
}
]
}
],
"states": [
{
"state_id": 0,
"div": {
"type": "container",
"items": [
{
"name": "text_variable",
"type": "string",
"value": "Text displaying the description of the card."
"type": "exampleCard",
"items": [
{
"type": "text",
"text": "@{text_variable}"
}
]
},
{
"name": "data",
"type": "array",
"value": [
{
"style": "only_text",
"title": "First text card"
},
{
"style": "only_text",
"title": "Second text card"
},
{
"style": "only_text",
"title": "Third text card"
},
{
"style": "with_image",
"title": "Card with image",
"image_url": "https://yastatic.net/s3/home/divkit/chess.png"
}
]
}
],
"states": [
{
"state_id": 0,
"div": {
"type": "container",
"items": [
"type": "container",
"orientation": "vertical",
"item_builder": {
"data": "@{data}",
"data_element_name": "item",
"prototypes": [
{
"selector": "@{getStringFromDict(item, 'style') == 'only_text'}",
"div": {
"type": "exampleCard",
"actions": [
{
"type": "exampleCard",
"items": [
{
"type": "text",
"text": "@{text_variable}"
}
]
"log_id": "check",
"url": "div-action://set_variable?name=text_variable&value=@{getStringFromDict(item, 'title')}"
}
],
"items": [
{
"type": "text",
"text": "@{getStringFromDict(item, 'title')}",
"width": {
"type": "wrap_content"
},
"font_size": 16,
"margins": {
"bottom": 4
}
}
],
"width": {
"type": "wrap_content"
}
}
},
{
"selector": "@{getStringFromDict(item, 'style') == 'with_image'}",
"div": {
"type": "exampleCard",
"actions": [
{
"log_id": "check",
"url": "div-action://set_variable?name=text_variable&value=@{getStringFromDict(item, 'title')}"
}
],
"items": [
{
"type": "image",
"image_url": "@{getStringFromDict(item, 'image_url')}",
"width": {
"type": "fixed",
"value": 50
},
"height": {
"type": "fixed",
"value": 50
}
},
{
"type": "container",
"orientation": "vertical",
"item_builder": {
"data": "@{data}",
"data_element_name": "item",
"prototypes": [
{
"selector": "@{getStringFromDict(item, 'style') == 'only_text'}",
"div": {
"type": "exampleCard",
"actions": [
{
"log_id": "check",
"url": "div-action://set_variable?name=text_variable&value=@{getStringFromDict(item, 'title')}"
}
],
"items": [
{
"type": "text",
"text": "@{getStringFromDict(item, 'title')}",
"width": {
"type": "wrap_content"
},
"font_size": 16,
"margins": {
"bottom": 4
}
}
],
"width": {
"type": "wrap_content"
}
}
},
{
"selector": "@{getStringFromDict(item, 'style') == 'with_image'}",
"div": {
"type": "exampleCard",
"actions": [
{
"log_id": "check",
"url": "div-action://set_variable?name=text_variable&value=@{getStringFromDict(item, 'title')}"
}
],
"items": [
{
"type": "image",
"image_url": "@{getStringFromDict(item, 'image_url')}",
"width": {
"type": "fixed",
"value": 50
},
"height": {
"type": "fixed",
"value": 50
}
},
{
"type": "text",
"text": "@{getStringFromDict(item, 'title')}",
"width": {
"type": "wrap_content"
},
"alignment_vertical": "center",
"font_size": 16,
"margins": {
"left": 4
}
}
],
"width": {
"type": "wrap_content"
}
}
}
]
"type": "text",
"text": "@{getStringFromDict(item, 'title')}",
"width": {
"type": "wrap_content"
},
"alignment_vertical": "center",
"font_size": 16,
"margins": {
"left": 4
}
}
],
"width": {
"type": "wrap_content"
}
}
}
]
}
}
]
}
}
]
}
]
}
}
]
}
}
@@ -102,4 +102,4 @@
}
]
}
}
}
@@ -64,16 +64,16 @@
"keyboard_type": "single_line_text",
"enter_key_type": "search",
"enter_key_actions": [
{
"log_id": "clear focus",
"typed": {
"type": "clear_focus"
}
},
{
"log_id": "enter_key_tapped",
"url": "div-action://set_variable?name=my_edit_text&value=Search key tapped!"
{
"log_id": "clear focus",
"typed": {
"type": "clear_focus"
}
},
{
"log_id": "enter_key_tapped",
"url": "div-action://set_variable?name=my_edit_text&value=Search key tapped!"
}
]
},
{
@@ -308,4 +308,4 @@
}
]
}
}
}
@@ -265,4 +265,4 @@
}
]
}
}
}
@@ -130,7 +130,7 @@
},
{
"type": "text_block",
"header": "Item 1",
"header": "Item 1",
"visibility_actions": [
{
"log_id": "106",
@@ -147,7 +147,7 @@
},
{
"type": "text_block",
"header": "Item 2",
"header": "Item 2",
"visibility_actions": [
{
"log_id": "206",
@@ -164,7 +164,7 @@
},
{
"type": "text_block",
"header": "Item 3",
"header": "Item 3",
"visibility_actions": [
{
"log_id": "306",
@@ -124,7 +124,7 @@
},
{
"type": "text_block",
"header": "Item 1",
"header": "Item 1",
"visibility_actions": [
{
"log_id": "106",
@@ -135,7 +135,7 @@
},
{
"type": "text_block",
"header": "Item 2",
"header": "Item 2",
"visibility_actions": [
{
"log_id": "206",
@@ -146,7 +146,7 @@
},
{
"type": "text_block",
"header": "Item 3",
"header": "Item 3",
"visibility_actions": [
{
"log_id": "306",
@@ -130,7 +130,7 @@
},
{
"type": "text_block",
"header": "Item 1",
"header": "Item 1",
"visibility_actions": [
{
"log_id": "106",
@@ -147,7 +147,7 @@
},
{
"type": "text_block",
"header": "Item 2",
"header": "Item 2",
"visibility_actions": [
{
"log_id": "206",
@@ -164,7 +164,7 @@
},
{
"type": "text_block",
"header": "Item 3",
"header": "Item 3",
"visibility_actions": [
{
"log_id": "306",
@@ -715,4 +715,3 @@
]
}
}
@@ -493,4 +493,3 @@
]
}
}

Some files were not shown because too many files have changed in this diff Show More