From a2992074a11ae6a1af59855f5a8b56e055796531 Mon Sep 17 00:00:00 2001 From: Johnny McQuade Date: Mon, 20 May 2024 15:21:21 +0100 Subject: [PATCH] content --- app_data/sheets/contents.json | 6 + .../debug/debug_data_items_actions.json | 101 ++- .../template/debug/debug_data_items_list.json | 670 ++++++++++++++++++ .../debug/debug_fullscreen_pop_up_1.json | 30 +- .../sheets/template/feature_rtl_language.json | 18 +- app_data/translations/contents.json | 3 + app_data/translations/en_rtl/strings.json | 3 + .../translated_strings/translated.en_rtl.json | 7 + 8 files changed, 814 insertions(+), 24 deletions(-) create mode 100644 app_data/sheets/template/debug/debug_data_items_list.json create mode 100644 app_data/translations/en_rtl/strings.json create mode 100644 app_data/translations_source/translated_strings/translated.en_rtl.json diff --git a/app_data/sheets/contents.json b/app_data/sheets/contents.json index b19621a..cf831b6 100644 --- a/app_data/sheets/contents.json +++ b/app_data/sheets/contents.json @@ -1056,6 +1056,12 @@ "flow_subtype": "debug", "_xlsxPath": "debug_sheets/debug_data_items.xlsx" }, + "debug_data_items_list": { + "flow_type": "template", + "flow_name": "debug_data_items_list", + "flow_subtype": "debug", + "_xlsxPath": "debug_sheets/debug_data_items.xlsx" + }, "debug_data_items_nesting": { "flow_type": "template", "flow_name": "debug_data_items_nesting", diff --git a/app_data/sheets/template/debug/debug_data_items_actions.json b/app_data/sheets/template/debug/debug_data_items_actions.json index dac9e09..ac94b85 100644 --- a/app_data/sheets/template/debug/debug_data_items_actions.json +++ b/app_data/sheets/template/debug/debug_data_items_actions.json @@ -4,14 +4,47 @@ "status": "released", "flow_subtype": "debug", "rows": [ + { + "name": "local_var", + "value": "original_value", + "_translations": { + "value": {} + }, + "type": "set_variable", + "_nested_name": "local_var" + }, + { + "type": "text", + "name": "text", + "value": "Value of local variable: @local.local_var", + "_translations": { + "value": {} + }, + "_nested_name": "text", + "_dynamicFields": { + "value": [ + { + "fullExpression": "Value of local variable: @local.local_var", + "matchedExpression": "@local.local_var", + "type": "local", + "fieldName": "local_var" + } + ] + }, + "_dynamicDependencies": { + "@local.local_var": [ + "value" + ] + } + }, { "type": "title", "value": "Data items actions - no nesting", "_translations": { "value": {} }, - "name": "title_2", - "_nested_name": "title_2" + "name": "title_4", + "_nested_name": "title_4" }, { "type": "data_items", @@ -24,7 +57,7 @@ "value": {} }, "name": "text_1", - "_nested_name": "data_items_3.text_1", + "_nested_name": "data_items_5.text_1", "_dynamicFields": { "value": [ { @@ -60,7 +93,7 @@ } ], "name": "button_2", - "_nested_name": "data_items_3.button_2", + "_nested_name": "data_items_5.button_2", "_dynamicFields": { "action_list": { "0": { @@ -100,10 +133,31 @@ "action_list.0.params.completed" ] } + }, + { + "type": "button", + "value": "Set local", + "_translations": { + "value": {} + }, + "action_list": [ + { + "trigger": "click", + "action_id": "set_local", + "args": [ + "local_var", + "new_value" + ], + "_raw": "click | set_local: local_var: new_value", + "_cleaned": "click | set_local: local_var: new_value" + } + ], + "name": "button_3", + "_nested_name": "data_items_5.button_3" } ], - "name": "data_items_3", - "_nested_name": "data_items_3", + "name": "data_items_5", + "_nested_name": "data_items_5", "_dynamicFields": { "value": [ { @@ -126,8 +180,8 @@ "_translations": { "value": {} }, - "name": "title_5", - "_nested_name": "title_5" + "name": "title_7", + "_nested_name": "title_7" }, { "type": "data_items", @@ -140,7 +194,7 @@ "value": {} }, "name": "text_1", - "_nested_name": "data_items_6.text_1", + "_nested_name": "data_items_8.text_1", "_dynamicFields": { "value": [ { @@ -179,7 +233,7 @@ } ], "name": "button_1", - "_nested_name": "data_items_6.display_group_2.button_1", + "_nested_name": "data_items_8.display_group_2.button_1", "_dynamicFields": { "action_list": { "0": { @@ -219,14 +273,35 @@ "action_list.0.params.completed" ] } + }, + { + "type": "button", + "value": "Set local", + "_translations": { + "value": {} + }, + "action_list": [ + { + "trigger": "click", + "action_id": "set_local", + "args": [ + "local_var", + "new_value" + ], + "_raw": "click | set_local: local_var: new_value", + "_cleaned": "click | set_local: local_var: new_value" + } + ], + "name": "button_2", + "_nested_name": "data_items_8.display_group_2.button_2" } ], "name": "display_group_2", - "_nested_name": "data_items_6.display_group_2" + "_nested_name": "data_items_8.display_group_2" } ], - "name": "data_items_6", - "_nested_name": "data_items_6", + "name": "data_items_8", + "_nested_name": "data_items_8", "_dynamicFields": { "value": [ { diff --git a/app_data/sheets/template/debug/debug_data_items_list.json b/app_data/sheets/template/debug/debug_data_items_list.json new file mode 100644 index 0000000..9cb247f --- /dev/null +++ b/app_data/sheets/template/debug/debug_data_items_list.json @@ -0,0 +1,670 @@ +{ + "flow_type": "template", + "flow_name": "debug_data_items_list", + "status": "released", + "flow_subtype": "debug", + "rows": [ + { + "type": "title", + "name": "title", + "value": "Looping over list specified in local variable", + "_translations": { + "value": {} + }, + "_nested_name": "title" + }, + { + "name": "data_flow", + "value": "debug_data_list_order", + "_translations": { + "value": {} + }, + "type": "set_variable", + "_nested_name": "data_flow" + }, + { + "name": "data_name", + "value": "debug", + "_translations": { + "value": {} + }, + "type": "set_variable", + "_nested_name": "data_name" + }, + { + "type": "text", + "value": "**Data items by flow name**", + "_translations": { + "value": {} + }, + "name": "text_5", + "_nested_name": "text_5" + }, + { + "type": "text", + "value": "Excl data", + "_translations": { + "value": {} + }, + "name": "text_6", + "_nested_name": "text_6" + }, + { + "type": "data_items", + "value": "@local.data_flow", + "rows": [ + { + "type": "text", + "name": "id_@item.id", + "value": "Item ID: @item.id", + "_translations": { + "value": {} + }, + "_nested_name": "data_items_7.id_@item.id", + "_dynamicFields": { + "name": [ + { + "fullExpression": "id_@item.id", + "matchedExpression": "@item.id", + "type": "item", + "fieldName": "id" + } + ], + "value": [ + { + "fullExpression": "Item ID: @item.id", + "matchedExpression": "@item.id", + "type": "item", + "fieldName": "id" + } + ], + "_nested_name": [ + { + "fullExpression": "data_items_7.id_@item.id", + "matchedExpression": "@item.id", + "type": "item", + "fieldName": "id" + } + ] + }, + "_dynamicDependencies": { + "@item.id": [ + "name", + "value", + "_nested_name" + ] + } + } + ], + "name": "data_items_7", + "_nested_name": "data_items_7", + "_dynamicFields": { + "value": [ + { + "fullExpression": "@local.data_flow", + "matchedExpression": "@local.data_flow", + "type": "local", + "fieldName": "data_flow" + } + ] + }, + "_dynamicDependencies": { + "@local.data_flow": [ + "value" + ] + } + }, + { + "type": "text", + "value": "Incl data", + "_translations": { + "value": {} + }, + "name": "text_9", + "_nested_name": "text_9" + }, + { + "type": "data_items", + "value": "@data.@local.data_flow", + "condition": false, + "rows": [ + { + "type": "text", + "name": "id_@item.id", + "value": "Item ID: @item.id", + "_translations": { + "value": {} + }, + "_nested_name": "data_items_10.id_@item.id", + "_dynamicFields": { + "name": [ + { + "fullExpression": "id_@item.id", + "matchedExpression": "@item.id", + "type": "item", + "fieldName": "id" + } + ], + "value": [ + { + "fullExpression": "Item ID: @item.id", + "matchedExpression": "@item.id", + "type": "item", + "fieldName": "id" + } + ], + "_nested_name": [ + { + "fullExpression": "data_items_10.id_@item.id", + "matchedExpression": "@item.id", + "type": "item", + "fieldName": "id" + } + ] + }, + "_dynamicDependencies": { + "@item.id": [ + "name", + "value", + "_nested_name" + ] + } + } + ], + "name": "data_items_10", + "_nested_name": "data_items_10", + "_dynamicFields": { + "value": [ + { + "fullExpression": "@data.@local.data_flow", + "matchedExpression": "@local.data_flow", + "type": "local", + "fieldName": "data_flow" + } + ] + }, + "_dynamicDependencies": { + "@local.data_flow": [ + "value" + ] + } + }, + { + "type": "text", + "value": "**Data items by data list name**", + "_translations": { + "value": {} + }, + "name": "text_12", + "_nested_name": "text_12" + }, + { + "type": "text", + "value": "Excl data", + "_translations": { + "value": {} + }, + "name": "text_13", + "_nested_name": "text_13" + }, + { + "type": "data_items", + "value": "@local.data_name", + "condition": false, + "rows": [ + { + "type": "text", + "name": "id_@item.id", + "value": "Item ID: @item.id", + "_translations": { + "value": {} + }, + "_nested_name": "data_items_14.id_@item.id", + "_dynamicFields": { + "name": [ + { + "fullExpression": "id_@item.id", + "matchedExpression": "@item.id", + "type": "item", + "fieldName": "id" + } + ], + "value": [ + { + "fullExpression": "Item ID: @item.id", + "matchedExpression": "@item.id", + "type": "item", + "fieldName": "id" + } + ], + "_nested_name": [ + { + "fullExpression": "data_items_14.id_@item.id", + "matchedExpression": "@item.id", + "type": "item", + "fieldName": "id" + } + ] + }, + "_dynamicDependencies": { + "@item.id": [ + "name", + "value", + "_nested_name" + ] + } + } + ], + "name": "data_items_14", + "_nested_name": "data_items_14", + "_dynamicFields": { + "value": [ + { + "fullExpression": "@local.data_name", + "matchedExpression": "@local.data_name", + "type": "local", + "fieldName": "data_name" + } + ] + }, + "_dynamicDependencies": { + "@local.data_name": [ + "value" + ] + } + }, + { + "type": "text", + "value": "Incl data", + "_translations": { + "value": {} + }, + "name": "text_16", + "_nested_name": "text_16" + }, + { + "type": "data_items", + "value": "@data.@local.data_name", + "condition": false, + "rows": [ + { + "type": "text", + "name": "id_@item.id", + "value": "Item ID: @item.id", + "_translations": { + "value": {} + }, + "_nested_name": "data_items_17.id_@item.id", + "_dynamicFields": { + "name": [ + { + "fullExpression": "id_@item.id", + "matchedExpression": "@item.id", + "type": "item", + "fieldName": "id" + } + ], + "value": [ + { + "fullExpression": "Item ID: @item.id", + "matchedExpression": "@item.id", + "type": "item", + "fieldName": "id" + } + ], + "_nested_name": [ + { + "fullExpression": "data_items_17.id_@item.id", + "matchedExpression": "@item.id", + "type": "item", + "fieldName": "id" + } + ] + }, + "_dynamicDependencies": { + "@item.id": [ + "name", + "value", + "_nested_name" + ] + } + } + ], + "name": "data_items_17", + "_nested_name": "data_items_17", + "_dynamicFields": { + "value": [ + { + "fullExpression": "@data.@local.data_name", + "matchedExpression": "@local.data_name", + "type": "local", + "fieldName": "data_name" + } + ] + }, + "_dynamicDependencies": { + "@local.data_name": [ + "value" + ] + } + }, + { + "type": "text", + "value": "**Items by flow name**", + "_translations": { + "value": {} + }, + "name": "text_19", + "_nested_name": "text_19" + }, + { + "type": "text", + "value": "Excl data", + "_translations": { + "value": {} + }, + "name": "text_20", + "_nested_name": "text_20" + }, + { + "type": "items", + "value": "@local.data_flow", + "condition": false, + "rows": [ + { + "type": "text", + "name": "id_@item.id", + "value": "Item ID: @item.id", + "_translations": { + "value": {} + }, + "_nested_name": "items_21.id_@item.id", + "_dynamicFields": { + "name": [ + { + "fullExpression": "id_@item.id", + "matchedExpression": "@item.id", + "type": "item", + "fieldName": "id" + } + ], + "value": [ + { + "fullExpression": "Item ID: @item.id", + "matchedExpression": "@item.id", + "type": "item", + "fieldName": "id" + } + ], + "_nested_name": [ + { + "fullExpression": "items_21.id_@item.id", + "matchedExpression": "@item.id", + "type": "item", + "fieldName": "id" + } + ] + }, + "_dynamicDependencies": { + "@item.id": [ + "name", + "value", + "_nested_name" + ] + } + } + ], + "name": "items_21", + "_nested_name": "items_21", + "_dynamicFields": { + "value": [ + { + "fullExpression": "@local.data_flow", + "matchedExpression": "@local.data_flow", + "type": "local", + "fieldName": "data_flow" + } + ] + }, + "_dynamicDependencies": { + "@local.data_flow": [ + "value" + ] + } + }, + { + "type": "text", + "value": "Incl data", + "_translations": { + "value": {} + }, + "name": "text_23", + "_nested_name": "text_23" + }, + { + "type": "items", + "value": "@data.@local.data_flow", + "rows": [ + { + "type": "text", + "name": "id_@item.id", + "value": "Item ID: @item.id", + "_translations": { + "value": {} + }, + "_nested_name": "items_24.id_@item.id", + "_dynamicFields": { + "name": [ + { + "fullExpression": "id_@item.id", + "matchedExpression": "@item.id", + "type": "item", + "fieldName": "id" + } + ], + "value": [ + { + "fullExpression": "Item ID: @item.id", + "matchedExpression": "@item.id", + "type": "item", + "fieldName": "id" + } + ], + "_nested_name": [ + { + "fullExpression": "items_24.id_@item.id", + "matchedExpression": "@item.id", + "type": "item", + "fieldName": "id" + } + ] + }, + "_dynamicDependencies": { + "@item.id": [ + "name", + "value", + "_nested_name" + ] + } + } + ], + "name": "items_24", + "_nested_name": "items_24", + "_dynamicFields": { + "value": [ + { + "fullExpression": "@data.@local.data_flow", + "matchedExpression": "@local.data_flow", + "type": "local", + "fieldName": "data_flow" + } + ] + }, + "_dynamicDependencies": { + "@local.data_flow": [ + "value" + ] + } + }, + { + "type": "text", + "value": "**Items by data list name**", + "_translations": { + "value": {} + }, + "name": "text_26", + "_nested_name": "text_26" + }, + { + "type": "text", + "value": "Excl data", + "_translations": { + "value": {} + }, + "name": "text_27", + "_nested_name": "text_27" + }, + { + "type": "items", + "value": "@local.data_name", + "condition": false, + "rows": [ + { + "type": "text", + "name": "id_@item.id", + "value": "Item ID: @item.id", + "_translations": { + "value": {} + }, + "_nested_name": "items_28.id_@item.id", + "_dynamicFields": { + "name": [ + { + "fullExpression": "id_@item.id", + "matchedExpression": "@item.id", + "type": "item", + "fieldName": "id" + } + ], + "value": [ + { + "fullExpression": "Item ID: @item.id", + "matchedExpression": "@item.id", + "type": "item", + "fieldName": "id" + } + ], + "_nested_name": [ + { + "fullExpression": "items_28.id_@item.id", + "matchedExpression": "@item.id", + "type": "item", + "fieldName": "id" + } + ] + }, + "_dynamicDependencies": { + "@item.id": [ + "name", + "value", + "_nested_name" + ] + } + } + ], + "name": "items_28", + "_nested_name": "items_28", + "_dynamicFields": { + "value": [ + { + "fullExpression": "@local.data_name", + "matchedExpression": "@local.data_name", + "type": "local", + "fieldName": "data_name" + } + ] + }, + "_dynamicDependencies": { + "@local.data_name": [ + "value" + ] + } + }, + { + "type": "text", + "value": "Incl data", + "_translations": { + "value": {} + }, + "name": "text_30", + "_nested_name": "text_30" + }, + { + "type": "items", + "value": "@data.@local.data_name", + "condition": false, + "rows": [ + { + "type": "text", + "name": "id_@item.id", + "value": "Item ID: @item.id", + "_translations": { + "value": {} + }, + "_nested_name": "items_31.id_@item.id", + "_dynamicFields": { + "name": [ + { + "fullExpression": "id_@item.id", + "matchedExpression": "@item.id", + "type": "item", + "fieldName": "id" + } + ], + "value": [ + { + "fullExpression": "Item ID: @item.id", + "matchedExpression": "@item.id", + "type": "item", + "fieldName": "id" + } + ], + "_nested_name": [ + { + "fullExpression": "items_31.id_@item.id", + "matchedExpression": "@item.id", + "type": "item", + "fieldName": "id" + } + ] + }, + "_dynamicDependencies": { + "@item.id": [ + "name", + "value", + "_nested_name" + ] + } + } + ], + "name": "items_31", + "_nested_name": "items_31", + "_dynamicFields": { + "value": [ + { + "fullExpression": "@data.@local.data_name", + "matchedExpression": "@local.data_name", + "type": "local", + "fieldName": "data_name" + } + ] + }, + "_dynamicDependencies": { + "@local.data_name": [ + "value" + ] + } + } + ], + "_xlsxPath": "debug_sheets/debug_data_items.xlsx" +} \ No newline at end of file diff --git a/app_data/sheets/template/debug/debug_fullscreen_pop_up_1.json b/app_data/sheets/template/debug/debug_fullscreen_pop_up_1.json index b3dacde..1db5d60 100644 --- a/app_data/sheets/template/debug/debug_fullscreen_pop_up_1.json +++ b/app_data/sheets/template/debug/debug_fullscreen_pop_up_1.json @@ -6,7 +6,31 @@ "rows": [ { "type": "button", - "value": "Launch fullscreen popup", + "value": "Launch fullscreen popup (new style)", + "_translations": { + "value": {} + }, + "action_list": [ + { + "trigger": "click", + "action_id": "pop_up", + "args": [ + "debug_fullscreen_pop_up_2" + ], + "_raw": "click | pop_up: debug_fullscreen_pop_up_2 | fullscreen_alt: true", + "_cleaned": "click | pop_up: debug_fullscreen_pop_up_2 | fullscreen_alt: true", + "params": { + "fullscreen_alt": true + } + } + ], + "exclude_from_translation": true, + "name": "button_2", + "_nested_name": "button_2" + }, + { + "type": "button", + "value": "Launch fullscreen popup (old style)", "_translations": { "value": {} }, @@ -25,8 +49,8 @@ } ], "exclude_from_translation": true, - "name": "button_2", - "_nested_name": "button_2" + "name": "button_3", + "_nested_name": "button_3" } ], "_xlsxPath": "debug_sheets/to_be_sorted/debug_fullscreen_pop_up.xlsx" diff --git a/app_data/sheets/template/feature_rtl_language.json b/app_data/sheets/template/feature_rtl_language.json index f4e46af..07ae6b4 100644 --- a/app_data/sheets/template/feature_rtl_language.json +++ b/app_data/sheets/template/feature_rtl_language.json @@ -14,9 +14,11 @@ }, { "type": "text", - "value": "Some text", + "value": "Some text in English", "_translations": { - "value": {} + "value": { + "en_rtl": true + } }, "name": "text_3", "_nested_name": "text_3" @@ -26,11 +28,11 @@ "value": [ { "name": "gb_en", - "text": "English" + "text": "1. English" }, { "name": "en_rtl", - "text": "English RTL" + "text": "2. English RTL" } ], "exclude_from_translation": true, @@ -52,8 +54,8 @@ "set_language", "this.value" ], - "_raw": "changed | emit: set_language:@local.language_select", - "_cleaned": "changed | emit: set_language:@local.language_select" + "_raw": "changed | emit: set_language: @local.language_select", + "_cleaned": "changed | emit: set_language: @local.language_select" }, { "trigger": "changed", @@ -83,7 +85,7 @@ "0": { "_raw": [ { - "fullExpression": "changed | emit: set_language:@local.language_select", + "fullExpression": "changed | emit: set_language: @local.language_select", "matchedExpression": "@local.language_select", "type": "local", "fieldName": "language_select" @@ -91,7 +93,7 @@ ], "_cleaned": [ { - "fullExpression": "changed | emit: set_language:@local.language_select", + "fullExpression": "changed | emit: set_language: @local.language_select", "matchedExpression": "@local.language_select", "type": "local", "fieldName": "language_select" diff --git a/app_data/translations/contents.json b/app_data/translations/contents.json index f697e8a..24bda2b 100644 --- a/app_data/translations/contents.json +++ b/app_data/translations/contents.json @@ -1,4 +1,7 @@ { + "en_rtl": { + "filename": "en_rtl/strings.json" + }, "es_sp": { "filename": "es_sp/strings.json" } diff --git a/app_data/translations/en_rtl/strings.json b/app_data/translations/en_rtl/strings.json new file mode 100644 index 0000000..12d3739 --- /dev/null +++ b/app_data/translations/en_rtl/strings.json @@ -0,0 +1,3 @@ +{ + "Some text in English": "hsilgnE LTR ni txet emoS" +} \ No newline at end of file diff --git a/app_data/translations_source/translated_strings/translated.en_rtl.json b/app_data/translations_source/translated_strings/translated.en_rtl.json new file mode 100644 index 0000000..5308096 --- /dev/null +++ b/app_data/translations_source/translated_strings/translated.en_rtl.json @@ -0,0 +1,7 @@ +[ + { + "SourceText": "Some text in English", + "text": "hsilgnE LTR ni txet emoS", + "type": "template" + } +] \ No newline at end of file