From 6dd1d481d50ee52d238024a650e74fe3ad42547e Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Sat, 21 Sep 2024 20:45:50 +0200 Subject: [PATCH] [#341] Added support for dynamic context in procedure editor components. --- .../src/components/Action/ActionArgs.vue | 42 ++-- .../src/components/Action/ActionEditor.vue | 20 +- .../src/components/Action/ActionTile.vue | 8 + .../src/components/Action/ActionsBlock.vue | 1 + .../src/components/Action/ActionsList.vue | 57 +++++ .../src/components/Action/ActionsListItem.vue | 6 + .../src/components/Action/ConditionBlock.vue | 4 +- .../src/components/Action/ConditionTile.vue | 13 +- .../components/Action/ContextAutocomplete.vue | 170 ++++++++++++++ .../components/Action/ExpressionEditor.vue | 44 ++-- .../webapp/src/components/Action/ListItem.vue | 8 +- .../src/components/Action/LoopBlock.vue | 16 +- .../src/components/Action/LoopEditor.vue | 86 ++++--- .../webapp/src/components/Action/LoopTile.vue | 4 + .../webapp/src/components/Action/Mixin.vue | 36 +++ .../src/components/Action/ReturnTile.vue | 4 + .../components/Action/SetVariablesTile.vue | 48 ++-- .../webapp/src/components/Action/common.scss | 61 ++--- .../components/Procedure/ProcedureEditor.vue | 11 + .../src/components/elements/Autocomplete.vue | 212 ++++++++++-------- .../webapp/src/mixins/Autocomplete/Props.vue | 58 +++++ 21 files changed, 694 insertions(+), 215 deletions(-) create mode 100644 platypush/backend/http/webapp/src/components/Action/ContextAutocomplete.vue create mode 100644 platypush/backend/http/webapp/src/mixins/Autocomplete/Props.vue diff --git a/platypush/backend/http/webapp/src/components/Action/ActionArgs.vue b/platypush/backend/http/webapp/src/components/Action/ActionArgs.vue index 593bd0bbda..89accd0ea2 100644 --- a/platypush/backend/http/webapp/src/components/Action/ActionArgs.vue +++ b/platypush/backend/http/webapp/src/components/Action/ActionArgs.vue @@ -5,14 +5,15 @@
@@ -36,12 +37,13 @@ @input="onExtraArgNameEdit(i, $event.target.value)">