Skip to content

Commit 50fd2fc

Browse files
Merge pull request #62 from IDEMSInternational/content/1.2.20
content: 1.2.20
2 parents be62534 + df1d780 commit 50fd2fc

File tree

5 files changed

+187
-145
lines changed

5 files changed

+187
-145
lines changed

app_data/sheets/contents.json

+6
Original file line numberDiff line numberDiff line change
@@ -1609,6 +1609,12 @@
16091609
"flow_subtype": "debug",
16101610
"_xlsxPath": "debug_sheets/to_be_sorted/debug_paragraphs.xlsx"
16111611
},
1612+
"debug_text_style_list": {
1613+
"flow_type": "template",
1614+
"flow_name": "debug_text_style_list",
1615+
"flow_subtype": "debug",
1616+
"_xlsxPath": "debug_sheets/debug_text.xlsx"
1617+
},
16121618
"debug_text_wrapping": {
16131619
"flow_type": "template",
16141620
"flow_name": "debug_text_wrapping",

app_data/sheets/template/component_demo/comp_data_items.json

+104-60
Original file line numberDiff line numberDiff line change
@@ -804,8 +804,8 @@
804804
},
805805
{
806806
"type": "button",
807-
"name": "index_1_button_@item.id",
808-
"value": "Set item at index 1 to completed: true",
807+
"name": "this_button_@item.id",
808+
"value": "Set this item to completed: false",
809809
"_translations": {
810810
"value": {}
811811
},
@@ -814,27 +814,26 @@
814814
"trigger": "click",
815815
"action_id": "set_item",
816816
"args": [],
817-
"_raw": "click | set_item | _index: 1, completed:true",
818-
"_cleaned": "click | set_item | _index: 1, completed:true",
817+
"_raw": "click | set_item | completed:false",
818+
"_cleaned": "click | set_item | completed:false",
819819
"params": {
820-
"_index": "1",
821-
"completed": true
820+
"completed": false
822821
}
823822
}
824823
],
825-
"_nested_name": "data_items.index_1_button_@item.id",
824+
"_nested_name": "data_items.this_button_@item.id",
826825
"_dynamicFields": {
827826
"name": [
828827
{
829-
"fullExpression": "index_1_button_@item.id",
828+
"fullExpression": "this_button_@item.id",
830829
"matchedExpression": "@item.id",
831830
"type": "item",
832831
"fieldName": "id"
833832
}
834833
],
835834
"_nested_name": [
836835
{
837-
"fullExpression": "data_items.index_1_button_@item.id",
836+
"fullExpression": "data_items.this_button_@item.id",
838837
"matchedExpression": "@item.id",
839838
"type": "item",
840839
"fieldName": "id"
@@ -850,8 +849,8 @@
850849
},
851850
{
852851
"type": "button",
853-
"name": "index_plus_1_button_@item.id",
854-
"value": "Set item at index (this + 1) to completed: false",
852+
"name": "this_button_@item.id",
853+
"value": "Set this item to completed: true",
855854
"_translations": {
856855
"value": {}
857856
},
@@ -860,57 +859,26 @@
860859
"trigger": "click",
861860
"action_id": "set_item",
862861
"args": [],
863-
"_raw": "click | set_item | _index: @item._index + 1, completed:false",
864-
"_cleaned": "click | set_item | _index: @item._index + 1, completed:false",
862+
"_raw": "click | set_item | completed:true",
863+
"_cleaned": "click | set_item | completed:true",
865864
"params": {
866-
"_index": "@item._index + 1",
867-
"completed": false
865+
"completed": true
868866
}
869867
}
870868
],
871-
"_nested_name": "data_items.index_plus_1_button_@item.id",
869+
"_nested_name": "data_items.this_button_@item.id",
872870
"_dynamicFields": {
873871
"name": [
874872
{
875-
"fullExpression": "index_plus_1_button_@item.id",
873+
"fullExpression": "this_button_@item.id",
876874
"matchedExpression": "@item.id",
877875
"type": "item",
878876
"fieldName": "id"
879877
}
880878
],
881-
"action_list": {
882-
"0": {
883-
"_raw": [
884-
{
885-
"fullExpression": "click | set_item | _index: @item._index + 1, completed:false",
886-
"matchedExpression": "@item._index",
887-
"type": "item",
888-
"fieldName": "_index"
889-
}
890-
],
891-
"_cleaned": [
892-
{
893-
"fullExpression": "click | set_item | _index: @item._index + 1, completed:false",
894-
"matchedExpression": "@item._index",
895-
"type": "item",
896-
"fieldName": "_index"
897-
}
898-
],
899-
"params": {
900-
"_index": [
901-
{
902-
"fullExpression": "@item._index + 1",
903-
"matchedExpression": "@item._index",
904-
"type": "item",
905-
"fieldName": "_index"
906-
}
907-
]
908-
}
909-
}
910-
},
911879
"_nested_name": [
912880
{
913-
"fullExpression": "data_items.index_plus_1_button_@item.id",
881+
"fullExpression": "data_items.this_button_@item.id",
914882
"matchedExpression": "@item.id",
915883
"type": "item",
916884
"fieldName": "id"
@@ -921,11 +889,52 @@
921889
"@item.id": [
922890
"name",
923891
"_nested_name"
892+
]
893+
}
894+
},
895+
{
896+
"type": "button",
897+
"name": "[email protected]",
898+
"value": "Set item at index 0 to completed: true",
899+
"_translations": {
900+
"value": {}
901+
},
902+
"action_list": [
903+
{
904+
"trigger": "click",
905+
"action_id": "set_item",
906+
"args": [],
907+
"_raw": "click | set_item | _index: 0, completed:true",
908+
"_cleaned": "click | set_item | _index: 0, completed:true",
909+
"params": {
910+
"_index": "0",
911+
"completed": true
912+
}
913+
}
914+
],
915+
"_nested_name": "[email protected]",
916+
"_dynamicFields": {
917+
"name": [
918+
{
919+
"fullExpression": "[email protected]",
920+
"matchedExpression": "@item.id",
921+
"type": "item",
922+
"fieldName": "id"
923+
}
924924
],
925-
"@item._index": [
926-
"action_list.0._raw",
927-
"action_list.0._cleaned",
928-
"action_list.0.params._index"
925+
"_nested_name": [
926+
{
927+
"fullExpression": "[email protected]",
928+
"matchedExpression": "@item.id",
929+
"type": "item",
930+
"fieldName": "id"
931+
}
932+
]
933+
},
934+
"_dynamicDependencies": {
935+
"@item.id": [
936+
"name",
937+
"_nested_name"
929938
]
930939
}
931940
},
@@ -977,8 +986,8 @@
977986
},
978987
{
979988
"type": "button",
980-
"name": "id_button_@item.id",
981-
"value": "Set item with id \"id_1\" to completed: false",
989+
"name": "index_plus_1_button_@item.id",
990+
"value": "Set item at index (this + 1) to completed: false",
982991
"_translations": {
983992
"value": {}
984993
},
@@ -987,27 +996,57 @@
987996
"trigger": "click",
988997
"action_id": "set_item",
989998
"args": [],
990-
"_raw": "click | set_item | _id: id_1, completed:false",
991-
"_cleaned": "click | set_item | _id: id_1, completed:false",
999+
"_raw": "click | set_item | _index: @item._index + 1, completed:false",
1000+
"_cleaned": "click | set_item | _index: @item._index + 1, completed:false",
9921001
"params": {
993-
"_id": "id_1",
1002+
"_index": "@item._index + 1",
9941003
"completed": false
9951004
}
9961005
}
9971006
],
998-
"_nested_name": "data_items.id_button_@item.id",
1007+
"_nested_name": "data_items.index_plus_1_button_@item.id",
9991008
"_dynamicFields": {
10001009
"name": [
10011010
{
1002-
"fullExpression": "id_button_@item.id",
1011+
"fullExpression": "index_plus_1_button_@item.id",
10031012
"matchedExpression": "@item.id",
10041013
"type": "item",
10051014
"fieldName": "id"
10061015
}
10071016
],
1017+
"action_list": {
1018+
"0": {
1019+
"_raw": [
1020+
{
1021+
"fullExpression": "click | set_item | _index: @item._index + 1, completed:false",
1022+
"matchedExpression": "@item._index",
1023+
"type": "item",
1024+
"fieldName": "_index"
1025+
}
1026+
],
1027+
"_cleaned": [
1028+
{
1029+
"fullExpression": "click | set_item | _index: @item._index + 1, completed:false",
1030+
"matchedExpression": "@item._index",
1031+
"type": "item",
1032+
"fieldName": "_index"
1033+
}
1034+
],
1035+
"params": {
1036+
"_index": [
1037+
{
1038+
"fullExpression": "@item._index + 1",
1039+
"matchedExpression": "@item._index",
1040+
"type": "item",
1041+
"fieldName": "_index"
1042+
}
1043+
]
1044+
}
1045+
}
1046+
},
10081047
"_nested_name": [
10091048
{
1010-
"fullExpression": "data_items.id_button_@item.id",
1049+
"fullExpression": "data_items.index_plus_1_button_@item.id",
10111050
"matchedExpression": "@item.id",
10121051
"type": "item",
10131052
"fieldName": "id"
@@ -1018,6 +1057,11 @@
10181057
"@item.id": [
10191058
"name",
10201059
"_nested_name"
1060+
],
1061+
"@item._index": [
1062+
"action_list.0._raw",
1063+
"action_list.0._cleaned",
1064+
"action_list.0.params._index"
10211065
]
10221066
}
10231067
}

0 commit comments

Comments
 (0)