From f080dfbf669f5a9df06f6f1ff315a4326b00eb65 Mon Sep 17 00:00:00 2001 From: Denis Bykhov Date: Wed, 23 Jul 2025 12:07:46 +0500 Subject: [PATCH] Processes ui improvements (#9589) Signed-off-by: Denis Bykhov --- models/process/src/index.ts | 1 + .../src/components/ProcessAttribute.svelte | 9 +--- .../attributeEditors/ContextValue.svelte | 23 +++++++-- .../ContextValuePresenter.svelte | 38 ++++++++++----- .../attributeEditors/FunctionPresenter.svelte | 48 +++++++++++++++++++ .../NestedContextPresenter.svelte | 13 ++++- .../RelContextPresenter.svelte | 13 ++++- .../ProcessContextPresenter.svelte | 2 +- .../ProcessContextRawPresenter.svelte | 3 -- .../settings/AddTransitionPopup.svelte | 27 +++++++---- .../components/settings/ContextEditor.svelte | 2 +- .../components/settings/ContextFooter.svelte | 10 ++-- plugins/process/src/index.ts | 1 + 13 files changed, 145 insertions(+), 45 deletions(-) create mode 100644 plugins/process-resources/src/components/attributeEditors/FunctionPresenter.svelte diff --git a/models/process/src/index.ts b/models/process/src/index.ts index b7ecbec7d4..16eddc2b76 100644 --- a/models/process/src/index.ts +++ b/models/process/src/index.ts @@ -220,6 +220,7 @@ export class TProcessFunction extends TDoc implements ProcessFunction { category: AttributeCategory | undefined label!: IntlString editor?: AnyComponent + presenter?: AnyComponent allowMany?: boolean type!: 'transform' | 'reduce' | 'context' } diff --git a/plugins/process-resources/src/components/ProcessAttribute.svelte b/plugins/process-resources/src/components/ProcessAttribute.svelte index c85d1eb7e9..057f282e18 100644 --- a/plugins/process-resources/src/components/ProcessAttribute.svelte +++ b/plugins/process-resources/src/components/ProcessAttribute.svelte @@ -82,7 +82,7 @@ >