From 92774dc0ae7aea0a8828466809b1b2cdbc3d5ed3 Mon Sep 17 00:00:00 2001 From: EsmeeIDEMS Date: Wed, 1 May 2024 11:25:40 +0100 Subject: [PATCH] content: 1.2.27 --- .../generated/example_pipe_appended.json | 16 +- .../debug/debug_data_items_nesting.json | 186 ++++++++++++++++-- config.ts | 2 +- 3 files changed, 179 insertions(+), 25 deletions(-) diff --git a/app_data/sheets/data_list/generated/example_pipe_appended.json b/app_data/sheets/data_list/generated/example_pipe_appended.json index 5f6a9be..bfa971e 100644 --- a/app_data/sheets/data_list/generated/example_pipe_appended.json +++ b/app_data/sheets/data_list/generated/example_pipe_appended.json @@ -10,7 +10,7 @@ "sort_alpha": "bonus", "completed": true, "Text": "Hello id_1", - "Boolean": "FALSE" + "Boolean": false }, { "id": "id_2", @@ -19,7 +19,7 @@ "sort_alpha": "basis", "completed": false, "Text": "Hello id_2", - "Boolean": "FALSE" + "Boolean": false }, { "id": "id_3", @@ -27,7 +27,7 @@ "sort_order": 6, "sort_alpha": "topic", "Text": "Hello id_3", - "Boolean": "FALSE" + "Boolean": false }, { "id": "id_4", @@ -35,7 +35,7 @@ "sort_order": 5, "sort_alpha": "world", "Text": "Hello id_4", - "Boolean": "FALSE" + "Boolean": false }, { "id": "id_5", @@ -44,7 +44,7 @@ "sort_alpha": "event", "completed": true, "Text": "Hello id_5", - "Boolean": "FALSE" + "Boolean": false }, { "id": "id_6", @@ -53,7 +53,7 @@ "sort_alpha": "photo", "completed": true, "Text": "Hello id_6", - "Boolean": "FALSE" + "Boolean": false }, { "id": "id_7", @@ -62,7 +62,7 @@ "sort_alpha": "guest", "completed": false, "Text": "Hello id_7", - "Boolean": "FALSE" + "Boolean": false }, { "id": "id_8", @@ -71,7 +71,7 @@ "sort_alpha": "skill", "completed": false, "Text": "Hello id_8", - "Boolean": "FALSE" + "Boolean": false } ] } \ No newline at end of file diff --git a/app_data/sheets/template/debug/debug_data_items_nesting.json b/app_data/sheets/template/debug/debug_data_items_nesting.json index 988a693..6faf3fc 100644 --- a/app_data/sheets/template/debug/debug_data_items_nesting.json +++ b/app_data/sheets/template/debug/debug_data_items_nesting.json @@ -16,7 +16,10 @@ { "type": "data_items", "name": "data_items", - "value": "@data.comp_data_items_list", + "value": "example_pipe_appended", + "parameter_list": { + "limit": "2" + }, "rows": [ { "type": "text", @@ -174,22 +177,173 @@ } } ], - "_nested_name": "data_items", - "_dynamicFields": { - "value": [ - { - "fullExpression": "@data.comp_data_items_list", - "matchedExpression": "@data.comp_data_items_list", - "type": "data", - "fieldName": "comp_data_items_list" - } - ] + "_nested_name": "data_items" + }, + { + "type": "data_items", + "name": "data_items", + "value": "example_pipe_appended", + "parameter_list": { + "limit": "2" }, - "_dynamicDependencies": { - "@data.comp_data_items_list": [ - "value" - ] - } + "rows": [ + { + "type": "text", + "name": "id_@item.id", + "value": "Item ID: @item.id", + "_translations": { + "value": {} + }, + "_nested_name": "data_items.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.id_@item.id", + "matchedExpression": "@item.id", + "type": "item", + "fieldName": "id" + } + ] + }, + "_dynamicDependencies": { + "@item.id": [ + "name", + "value", + "_nested_name" + ] + } + }, + { + "type": "text", + "name": "completed_@item.id", + "value": "Item completed: @item.completed", + "_translations": { + "value": {} + }, + "_nested_name": "data_items.completed_@item.id", + "_dynamicFields": { + "name": [ + { + "fullExpression": "completed_@item.id", + "matchedExpression": "@item.id", + "type": "item", + "fieldName": "id" + } + ], + "value": [ + { + "fullExpression": "Item completed: @item.completed", + "matchedExpression": "@item.completed", + "type": "item", + "fieldName": "completed" + } + ], + "_nested_name": [ + { + "fullExpression": "data_items.completed_@item.id", + "matchedExpression": "@item.id", + "type": "item", + "fieldName": "id" + } + ] + }, + "_dynamicDependencies": { + "@item.id": [ + "name", + "_nested_name" + ], + "@item.completed": [ + "value" + ] + } + }, + { + "type": "template", + "name": "example_emit", + "value": "example_emit", + "action_list": [ + { + "trigger": "completed", + "action_id": "set_item", + "args": [], + "_raw": "completed | set_item | Boolean: true", + "_cleaned": "completed | set_item | Boolean: true", + "params": { + "Boolean": true + } + }, + { + "trigger": "uncompleted", + "action_id": "set_item", + "args": [], + "_raw": "uncompleted | set_item | _index: @item._index - 1, Boolean: false", + "_cleaned": "uncompleted | set_item | _index: @item._index - 1, Boolean: false", + "params": { + "_index": "@item._index - 1", + "Boolean": false + } + } + ], + "rows": [], + "_nested_name": "data_items.example_emit", + "_dynamicFields": { + "action_list": { + "1": { + "_raw": [ + { + "fullExpression": "uncompleted | set_item | _index: @item._index - 1, Boolean: false", + "matchedExpression": "@item._index", + "type": "item", + "fieldName": "_index" + } + ], + "_cleaned": [ + { + "fullExpression": "uncompleted | set_item | _index: @item._index - 1, Boolean: false", + "matchedExpression": "@item._index", + "type": "item", + "fieldName": "_index" + } + ], + "params": { + "_index": [ + { + "fullExpression": "@item._index - 1", + "matchedExpression": "@item._index", + "type": "item", + "fieldName": "_index" + } + ] + } + } + } + }, + "_dynamicDependencies": { + "@item._index": [ + "action_list.1._raw", + "action_list.1._cleaned", + "action_list.1.params._index" + ] + } + } + ], + "_nested_name": "data_items" } ], "_xlsxPath": "component_sheets/component_data_items.xlsx" diff --git a/config.ts b/config.ts index ef48b43..7fe9edd 100644 --- a/config.ts +++ b/config.ts @@ -14,7 +14,7 @@ config.web.favicon_asset = "images/icons/favicon.svg"; config.git = { content_repo: "https://github.com/IDEMSInternational/app-debug-content.git", - content_tag_latest: "1.2.26", + content_tag_latest: "1.2.27", }; config.app_config.ASSET_PACKS = {