You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ma...@apache.org on 2023/10/11 21:30:03 UTC
[camel-karavan] branch main updated: FIx #935
This is an automated email from the ASF dual-hosted git repository.
marat pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-karavan.git
The following commit(s) were added to refs/heads/main by this push:
new 4e86c686 FIx #935
4e86c686 is described below
commit 4e86c686c7263571d0b7caecb67ec1a0655cd789
Author: Marat Gubaidullin <ma...@talismancloud.io>
AuthorDate: Wed Oct 11 17:29:51 2023 -0400
FIx #935
---
karavan-designer/public/example/demo.camel.yaml | 29 ++++------------------
.../route/property/ComponentParameterField.tsx | 4 ++-
.../route/property/ComponentParameterField.tsx | 4 ++-
.../route/property/ComponentParameterField.tsx | 4 ++-
4 files changed, 14 insertions(+), 27 deletions(-)
diff --git a/karavan-designer/public/example/demo.camel.yaml b/karavan-designer/public/example/demo.camel.yaml
index c12e8d34..a431e891 100644
--- a/karavan-designer/public/example/demo.camel.yaml
+++ b/karavan-designer/public/example/demo.camel.yaml
@@ -1,3 +1,8 @@
+- route:
+ id: route-a7ac
+ from:
+ uri: sql
+ id: from-82ca
- route:
id: route-1a95
from:
@@ -63,27 +68,3 @@
- log:
message: ${body}
id: log-1919
-- rest:
- id: rest-54e3
-- rest:
- id: rest-b9dd
-- rest:
- id: rest-b391
-- rest:
- id: rest-e066
-- rest:
- id: rest-5daa
-- rest:
- id: rest-b193
-- rest:
- id: rest-06e5
-- rest:
- id: rest-268d
-- beans:
- - {}
- - {}
- - {}
- - {}
- - {}
- - {}
- - {}
diff --git a/karavan-designer/src/designer/route/property/ComponentParameterField.tsx b/karavan-designer/src/designer/route/property/ComponentParameterField.tsx
index d8adbd08..f80c3e75 100644
--- a/karavan-designer/src/designer/route/property/ComponentParameterField.tsx
+++ b/karavan-designer/src/designer/route/property/ComponentParameterField.tsx
@@ -102,13 +102,15 @@ export function ComponentParameterField(props: Props) {
return (
<Select
id={id} name={id}
- variant={SelectVariant.single}
+ variant={SelectVariant.typeahead}
aria-label={property.name}
onToggle={(_event, isExpanded) => {
openSelect(property.name, isExpanded)
}}
onSelect={(e, value, isPlaceholder) => parametersChanged(property.name, (!isPlaceholder ? value : undefined))}
selections={value}
+ isCreatable={true}
+ createText=""
isOpen={isSelectOpen(property.name)}
aria-labelledby={property.name}
direction={SelectDirection.down}
diff --git a/karavan-space/src/designer/route/property/ComponentParameterField.tsx b/karavan-space/src/designer/route/property/ComponentParameterField.tsx
index d8adbd08..f80c3e75 100644
--- a/karavan-space/src/designer/route/property/ComponentParameterField.tsx
+++ b/karavan-space/src/designer/route/property/ComponentParameterField.tsx
@@ -102,13 +102,15 @@ export function ComponentParameterField(props: Props) {
return (
<Select
id={id} name={id}
- variant={SelectVariant.single}
+ variant={SelectVariant.typeahead}
aria-label={property.name}
onToggle={(_event, isExpanded) => {
openSelect(property.name, isExpanded)
}}
onSelect={(e, value, isPlaceholder) => parametersChanged(property.name, (!isPlaceholder ? value : undefined))}
selections={value}
+ isCreatable={true}
+ createText=""
isOpen={isSelectOpen(property.name)}
aria-labelledby={property.name}
direction={SelectDirection.down}
diff --git a/karavan-web/karavan-app/src/main/webui/src/designer/route/property/ComponentParameterField.tsx b/karavan-web/karavan-app/src/main/webui/src/designer/route/property/ComponentParameterField.tsx
index d8adbd08..f80c3e75 100644
--- a/karavan-web/karavan-app/src/main/webui/src/designer/route/property/ComponentParameterField.tsx
+++ b/karavan-web/karavan-app/src/main/webui/src/designer/route/property/ComponentParameterField.tsx
@@ -102,13 +102,15 @@ export function ComponentParameterField(props: Props) {
return (
<Select
id={id} name={id}
- variant={SelectVariant.single}
+ variant={SelectVariant.typeahead}
aria-label={property.name}
onToggle={(_event, isExpanded) => {
openSelect(property.name, isExpanded)
}}
onSelect={(e, value, isPlaceholder) => parametersChanged(property.name, (!isPlaceholder ? value : undefined))}
selections={value}
+ isCreatable={true}
+ createText=""
isOpen={isSelectOpen(property.name)}
aria-labelledby={property.name}
direction={SelectDirection.down}