From a0f38429053dc4d1fa12fe390ac9aa8af1aa7c0f Mon Sep 17 00:00:00 2001 From: Dylan Carver Date: Fri, 6 Dec 2024 13:04:19 +0100 Subject: [PATCH 1/5] chore: update copy --- src/prefabs/structures/PriceInput/options/index.ts | 4 ++-- src/prefabs/structures/SelectInput/options/index.ts | 4 ++-- src/prefabs/structures/TextArea/options/index.ts | 4 ++-- src/prefabs/structures/TextInput/options/index.ts | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/prefabs/structures/PriceInput/options/index.ts b/src/prefabs/structures/PriceInput/options/index.ts index 503b79dba..3b59f1e4c 100644 --- a/src/prefabs/structures/PriceInput/options/index.ts +++ b/src/prefabs/structures/PriceInput/options/index.ts @@ -21,8 +21,8 @@ export const options = { propertyBased: buttongroup( 'Type', [ - ['Property based', 'true'], - ['Non property based', 'false'], + ['Property-based', 'true'], + ['Non-property-based', 'false'], ], { value: 'true', diff --git a/src/prefabs/structures/SelectInput/options/index.ts b/src/prefabs/structures/SelectInput/options/index.ts index 36c130ae6..1c4ee5b85 100644 --- a/src/prefabs/structures/SelectInput/options/index.ts +++ b/src/prefabs/structures/SelectInput/options/index.ts @@ -18,8 +18,8 @@ export const options = { propertyBased: buttongroup( 'Type', [ - ['Property based', 'true'], - ['Non property based', 'false'], + ['Property-based', 'true'], + ['Non-property-based', 'false'], ], { value: 'true', diff --git a/src/prefabs/structures/TextArea/options/index.ts b/src/prefabs/structures/TextArea/options/index.ts index 97fc4c148..d6ffbf5aa 100644 --- a/src/prefabs/structures/TextArea/options/index.ts +++ b/src/prefabs/structures/TextArea/options/index.ts @@ -16,8 +16,8 @@ export const options = { propertyBased: buttongroup( 'Type', [ - ['Property based', 'true'], - ['Non property based', 'false'], + ['Property-based', 'true'], + ['Non-property-based', 'false'], ], { value: 'true', diff --git a/src/prefabs/structures/TextInput/options/index.ts b/src/prefabs/structures/TextInput/options/index.ts index 957009a7b..c5acf46ee 100644 --- a/src/prefabs/structures/TextInput/options/index.ts +++ b/src/prefabs/structures/TextInput/options/index.ts @@ -14,8 +14,8 @@ export const options = { propertyBased: buttongroup( 'Type', [ - ['Property based', 'true'], - ['Non property based', 'false'], + ['Property-based', 'true'], + ['Non-property-based', 'false'], ], { value: 'true', From cd6d67e9f842464826d2e3acae48dc2a3255daa8 Mon Sep 17 00:00:00 2001 From: Ingmar van Stipriaan Date: Mon, 16 Dec 2024 15:12:45 +0100 Subject: [PATCH 2/5] feat: create actioninput variable when saving property via addchild --- package.json | 2 +- src/prefabs/structures/PriceInput/options/index.ts | 3 +++ src/prefabs/structures/SelectInput/options/index.ts | 3 +++ src/prefabs/structures/TextArea/options/index.ts | 3 +++ src/prefabs/structures/TextInput/options/index.ts | 3 +++ yarn.lock | 8 ++++---- 6 files changed, 17 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 09761be7e..a7327ac14 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "license": "UNLICENSED", "private": false, "devDependencies": { - "@betty-blocks/cli": "^25.99.0", + "@betty-blocks/cli": "^25.100.0", "@commitlint/cli": "^16.1.0", "@commitlint/config-angular": "^16.0.0", "@semantic-release/changelog": "^6.0.1", diff --git a/src/prefabs/structures/PriceInput/options/index.ts b/src/prefabs/structures/PriceInput/options/index.ts index 3b59f1e4c..1a394679d 100644 --- a/src/prefabs/structures/PriceInput/options/index.ts +++ b/src/prefabs/structures/PriceInput/options/index.ts @@ -51,6 +51,9 @@ export const options = { disabled: true, condition: showIf('propertyBased', 'EQ', 'true'), showOnDrop: true, + createActionInputVariable: { + type: CreateActionInputVariableKind.NUMBER, + }, }, }), diff --git a/src/prefabs/structures/SelectInput/options/index.ts b/src/prefabs/structures/SelectInput/options/index.ts index 1c4ee5b85..05658f8c3 100644 --- a/src/prefabs/structures/SelectInput/options/index.ts +++ b/src/prefabs/structures/SelectInput/options/index.ts @@ -50,6 +50,9 @@ export const options = { disabled: true, condition: showIf('propertyBased', 'EQ', 'true'), showOnDrop: true, + createActionInputVariable: { + type: CreateActionInputVariableKind.NUMBER, + }, }, }), diff --git a/src/prefabs/structures/TextArea/options/index.ts b/src/prefabs/structures/TextArea/options/index.ts index d6ffbf5aa..714a9ff2a 100644 --- a/src/prefabs/structures/TextArea/options/index.ts +++ b/src/prefabs/structures/TextArea/options/index.ts @@ -47,6 +47,9 @@ export const options = { disabled: true, condition: showIf('propertyBased', 'EQ', 'true'), showOnDrop: true, + createActionInputVariable: { + type: CreateActionInputVariableKind.TEXT, + }, }, }), diff --git a/src/prefabs/structures/TextInput/options/index.ts b/src/prefabs/structures/TextInput/options/index.ts index c5acf46ee..69cd3d1a3 100644 --- a/src/prefabs/structures/TextInput/options/index.ts +++ b/src/prefabs/structures/TextInput/options/index.ts @@ -45,6 +45,9 @@ export const options = { disabled: true, condition: showIf('propertyBased', 'EQ', 'true'), showOnDrop: true, + createActionInputVariable: { + type: CreateActionInputVariableKind.TEXT, + }, }, }), diff --git a/yarn.lock b/yarn.lock index d7860aa6d..78b5e3e97 100644 --- a/yarn.lock +++ b/yarn.lock @@ -154,10 +154,10 @@ "@babel/helper-validator-identifier" "^7.22.5" to-fast-properties "^2.0.0" -"@betty-blocks/cli@^25.99.0": - version "25.99.0" - resolved "https://registry.yarnpkg.com/@betty-blocks/cli/-/cli-25.99.0.tgz#93b4a90910e9c10893e6380d602c0761432b4b16" - integrity sha512-3KgXeCiy8YwibOmoepPUcFnr+sFA366boxiQ/Qf3U9E/ypuAam2AyPnSMKD/piDYjr+XLcMaTLd2+wsChIOQvA== +"@betty-blocks/cli@^25.100.0": + version "25.100.0" + resolved "https://registry.yarnpkg.com/@betty-blocks/cli/-/cli-25.100.0.tgz#c037d28d512d6073f62ee3473573d17def99d477" + integrity sha512-hHTVX4NeLHYa5lHb3nFYUJcmfcX9hPh6oH/F+s5uhBnqOMnYdJYgVAln/qHlXrGK+Im6EKvENy++8/M61o3W6g== dependencies: "@azure/ms-rest-js" "^2.0.4" "@azure/storage-blob" "^10.3.0" From 144b20f3bd4d30f49eb446862078b0eaa3996cd0 Mon Sep 17 00:00:00 2001 From: Ingmar van Stipriaan Date: Mon, 16 Dec 2024 15:46:11 +0100 Subject: [PATCH 3/5] chore: add addChild option to actionJsForm --- .../structures/ActionJSForm/children.ts | 70 ++++++++++++++++++- .../structures/ActionJSForm/options.ts | 9 ++- 2 files changed, 75 insertions(+), 4 deletions(-) diff --git a/src/prefabs/structures/ActionJSForm/children.ts b/src/prefabs/structures/ActionJSForm/children.ts index 21310405d..3860dd37b 100644 --- a/src/prefabs/structures/ActionJSForm/children.ts +++ b/src/prefabs/structures/ActionJSForm/children.ts @@ -1,4 +1,8 @@ -import { property, variable } from '@betty-blocks/component-sdk'; +import { + CreateActionInputVariableKind, + property, + variable, +} from '@betty-blocks/component-sdk'; import { AutocompleteInput, @@ -26,10 +30,70 @@ import { } from '..'; const defaultOptions = { - property: property('Property', { value: '', showInReconfigure: true }), - label: variable('Label', { value: [''], showInReconfigure: true }), + property: property('Property', { + value: '', + showInReconfigure: true, + }), + label: variable('Label', { + value: [''], + showInReconfigure: true, + }), +}; + +const propertyOption = ( + allowedKinds: string[], + actionInputType: CreateActionInputVariableKind, +) => { + return { + property: property('Property', { + value: '', + showInReconfigure: true, + showInAddChild: true, + optionRef: { + id: '#propertyRef', + }, + configuration: { + allowedKinds, + createActionInputVariable: { + type: actionInputType, + }, + }, + }), + }; }; +const labelOption = { + label: variable('Label', { + value: [''], + showInReconfigure: true, + optionRef: { + sourceId: '#propertyRef', + inherit: [{ name: '$name', id: '$id', type: 'PROPERTY_LABEL' }], + }, + }), +}; + +export const inputTypes = [ + { + label: 'Text (single line)', + structure: [ + TextInput({ + label: 'Text (single line) input', + inputLabel: 'Text (single line)', + type: 'text', + options: { + ...textInputOptions, + ...labelOption, + ...propertyOption( + ['TEXT', 'URL', 'IBAN', 'STRING'], + CreateActionInputVariableKind.TEXT, + ), + }, + }), + ], + }, +]; + export const children = [ TextInput({ options: { ...textInputOptions, ...defaultOptions }, diff --git a/src/prefabs/structures/ActionJSForm/options.ts b/src/prefabs/structures/ActionJSForm/options.ts index 05a035a00..4c11f706a 100644 --- a/src/prefabs/structures/ActionJSForm/options.ts +++ b/src/prefabs/structures/ActionJSForm/options.ts @@ -5,9 +5,10 @@ import { number, showIf, reconfigure, + addChild, } from '@betty-blocks/component-sdk'; import { advanced } from './advanced'; -import { children } from './children'; +import { children, inputTypes } from './children'; export const categories = [ { @@ -29,6 +30,12 @@ export const options = { reconfigureWizardType: 'ChildrenSelector', }, }), + addChild: addChild('Add form input', { + value: { + children: inputTypes, + addChildWizardType: 'ChildSelector', + }, + }), actionId: option('ACTION_JS', { label: 'Action', value: '' }), model: model('Model'), filter: filter('Filter', { configuration: { dependsOn: 'model' } }), From 162e8edc15e620c5f0c651af288af801f1c35719 Mon Sep 17 00:00:00 2001 From: Ingmar van Stipriaan Date: Mon, 16 Dec 2024 16:16:09 +0100 Subject: [PATCH 4/5] chore: add more children to actionjsform --- .../structures/ActionJSForm/children.ts | 71 +++++-------------- .../structures/PriceInput/options/index.ts | 7 +- .../structures/SelectInput/options/index.ts | 7 +- .../structures/TextArea/options/index.ts | 7 +- .../structures/TextInput/options/index.ts | 6 +- 5 files changed, 39 insertions(+), 59 deletions(-) diff --git a/src/prefabs/structures/ActionJSForm/children.ts b/src/prefabs/structures/ActionJSForm/children.ts index 3860dd37b..411eda37d 100644 --- a/src/prefabs/structures/ActionJSForm/children.ts +++ b/src/prefabs/structures/ActionJSForm/children.ts @@ -1,8 +1,4 @@ -import { - CreateActionInputVariableKind, - property, - variable, -} from '@betty-blocks/component-sdk'; +import { property, variable } from '@betty-blocks/component-sdk'; import { AutocompleteInput, @@ -11,10 +7,12 @@ import { DateTimePicker, FileUpload, MultiAutocomplete, + PriceInput, RadioInput, RatingInput, RichTextInput, SelectInput, + TextArea, TextInput, autocompleteInputOptions, checkboxGroupInputOptions, @@ -22,10 +20,12 @@ import { dateTimePickerOptions, fileUploadOptions, multiAutocompleteOptions, + priceInputOptions, radioInputOptions, ratingInputOptions, richTextOptions, selectInputOptions, + textAreaOptions, textInputOptions, } from '..'; @@ -40,57 +40,22 @@ const defaultOptions = { }), }; -const propertyOption = ( - allowedKinds: string[], - actionInputType: CreateActionInputVariableKind, -) => { - return { - property: property('Property', { - value: '', - showInReconfigure: true, - showInAddChild: true, - optionRef: { - id: '#propertyRef', - }, - configuration: { - allowedKinds, - createActionInputVariable: { - type: actionInputType, - }, - }, - }), - }; -}; - -const labelOption = { - label: variable('Label', { - value: [''], - showInReconfigure: true, - optionRef: { - sourceId: '#propertyRef', - inherit: [{ name: '$name', id: '$id', type: 'PROPERTY_LABEL' }], - }, - }), -}; - export const inputTypes = [ { label: 'Text (single line)', - structure: [ - TextInput({ - label: 'Text (single line) input', - inputLabel: 'Text (single line)', - type: 'text', - options: { - ...textInputOptions, - ...labelOption, - ...propertyOption( - ['TEXT', 'URL', 'IBAN', 'STRING'], - CreateActionInputVariableKind.TEXT, - ), - }, - }), - ], + structure: [TextInput({ options: { ...textInputOptions } })], + }, + { + label: 'Select', + structure: [SelectInput({ options: { ...selectInputOptions } })], + }, + { + label: 'Price', + structure: [PriceInput({ options: { ...priceInputOptions } })], + }, + { + label: 'TextArea', + structure: [TextArea({ options: { ...textAreaOptions } })], }, ]; diff --git a/src/prefabs/structures/PriceInput/options/index.ts b/src/prefabs/structures/PriceInput/options/index.ts index 1a394679d..67366bc84 100644 --- a/src/prefabs/structures/PriceInput/options/index.ts +++ b/src/prefabs/structures/PriceInput/options/index.ts @@ -26,6 +26,7 @@ export const options = { ], { value: 'true', + showInAddChild: true, configuration: { showOnDrop: true, }, @@ -35,6 +36,7 @@ export const options = { actionVariableId: option('ACTION_JS_VARIABLE', { label: 'Action input variable', value: '', + showInAddChild: true, configuration: { condition: showIf('propertyBased', 'EQ', 'false'), showOnDrop: true, @@ -46,6 +48,7 @@ export const options = { property: property('Property', { value: '', + showInAddChild: true, configuration: { allowedKinds: ['INTEGER', 'PRICE', 'PRICE_EXPRESSION'], disabled: true, @@ -57,8 +60,8 @@ export const options = { }, }), - label: variable('Label', { value: [''] }), - value: variable('Value', { value: [''] }), + label: variable('Label', { value: [''], showInAddChild: true }), + value: variable('Value', { value: [''], showInAddChild: true }), ...validation, diff --git a/src/prefabs/structures/SelectInput/options/index.ts b/src/prefabs/structures/SelectInput/options/index.ts index 05658f8c3..efedf75ed 100644 --- a/src/prefabs/structures/SelectInput/options/index.ts +++ b/src/prefabs/structures/SelectInput/options/index.ts @@ -23,6 +23,7 @@ export const options = { ], { value: 'true', + showInAddChild: true, configuration: { showOnDrop: true, }, @@ -32,6 +33,7 @@ export const options = { actionVariableId: option('ACTION_JS_VARIABLE', { label: 'Action input variable', value: '', + showInAddChild: true, configuration: { condition: showIf('propertyBased', 'EQ', 'false'), createActionInputVariable: { @@ -44,6 +46,7 @@ export const options = { property: property('Property', { value: '', showInReconfigure: true, + showInAddChild: true, configuration: { allowedKinds: ['LIST', 'BELONGS_TO'], allowRelations: true, @@ -59,8 +62,9 @@ export const options = { label: variable('Label', { value: ['Select'], configuration: { allowFormatting: false, allowPropertyName: true }, + showInAddChild: true, }), - value: variable('Value', { value: [''] }), + value: variable('Value', { value: [''], showInAddChild: true }), optionType: buttongroup( 'Option type', @@ -78,6 +82,7 @@ export const options = { ), model: modelAndRelation('Model', { value: '', + showInAddChild: true, configuration: { condition: showIf('optionType', 'EQ', 'variable'), }, diff --git a/src/prefabs/structures/TextArea/options/index.ts b/src/prefabs/structures/TextArea/options/index.ts index 714a9ff2a..29162035d 100644 --- a/src/prefabs/structures/TextArea/options/index.ts +++ b/src/prefabs/structures/TextArea/options/index.ts @@ -21,6 +21,7 @@ export const options = { ], { value: 'true', + showInAddChild: true, configuration: { showOnDrop: true, }, @@ -30,6 +31,7 @@ export const options = { actionVariableId: option('ACTION_JS_VARIABLE', { label: 'Action input variable', value: '', + showInAddChild: true, configuration: { condition: showIf('propertyBased', 'EQ', 'false'), createActionInputVariable: { @@ -41,6 +43,7 @@ export const options = { property: property('Property', { value: '', + showInAddChild: true, showInReconfigure: true, configuration: { allowedKinds: ['TEXT', 'URL', 'IBAN', 'STRING'], @@ -53,8 +56,8 @@ export const options = { }, }), - label: variable('Label', { value: [''] }), - value: variable('Value', { value: [''] }), + label: variable('Label', { value: [''], showInAddChild: true }), + value: variable('Value', { value: [''], showInAddChild: true }), ...validation, diff --git a/src/prefabs/structures/TextInput/options/index.ts b/src/prefabs/structures/TextInput/options/index.ts index 69cd3d1a3..3eaddc5c8 100644 --- a/src/prefabs/structures/TextInput/options/index.ts +++ b/src/prefabs/structures/TextInput/options/index.ts @@ -19,6 +19,7 @@ export const options = { ], { value: 'true', + showInAddChild: true, configuration: { showOnDrop: true, }, @@ -28,6 +29,7 @@ export const options = { actionVariableId: option('ACTION_JS_VARIABLE', { label: 'Action input variable', value: '', + showInAddChild: true, configuration: { condition: showIf('propertyBased', 'EQ', 'false'), createActionInputVariable: { @@ -40,6 +42,7 @@ export const options = { property: property('Property', { value: '', showInReconfigure: true, + showInAddChild: true, configuration: { allowedKinds: ['TEXT', 'URL', 'IBAN', 'STRING'], disabled: true, @@ -54,8 +57,9 @@ export const options = { label: variable('Label', { value: [''], configuration: { allowFormatting: false, allowPropertyName: true }, + showInAddChild: true, }), - value: variable('Value', { value: [''] }), + value: variable('Value', { value: [''], showInAddChild: true }), ...validation, ...styles, From 147decf4c23f6269cc593da49d48e7400696d8b1 Mon Sep 17 00:00:00 2001 From: Ingmar van Stipriaan Date: Tue, 17 Dec 2024 13:45:35 +0100 Subject: [PATCH 5/5] chore: refactor children to use prefabs directly --- .../structures/ActionJSForm/children.ts | 58 +++++-------------- .../structures/PriceInput/options/index.ts | 4 +- .../structures/SelectInput/options/index.ts | 4 +- .../structures/TextArea/options/index.ts | 4 +- .../structures/TextInput/options/index.ts | 3 +- 5 files changed, 21 insertions(+), 52 deletions(-) diff --git a/src/prefabs/structures/ActionJSForm/children.ts b/src/prefabs/structures/ActionJSForm/children.ts index 411eda37d..83415e63f 100644 --- a/src/prefabs/structures/ActionJSForm/children.ts +++ b/src/prefabs/structures/ActionJSForm/children.ts @@ -29,6 +29,13 @@ import { textInputOptions, } from '..'; +export const inputTypes = [ + TextInput({ label: 'Text field', options: { ...textInputOptions } }), + SelectInput({ label: 'Select', options: { ...selectInputOptions } }), + PriceInput({ label: 'Price', options: { ...priceInputOptions } }), + TextArea({ label: 'Textarea', options: { ...textAreaOptions } }), +]; + const defaultOptions = { property: property('Property', { value: '', @@ -40,57 +47,22 @@ const defaultOptions = { }), }; -export const inputTypes = [ - { - label: 'Text (single line)', - structure: [TextInput({ options: { ...textInputOptions } })], - }, - { - label: 'Select', - structure: [SelectInput({ options: { ...selectInputOptions } })], - }, - { - label: 'Price', - structure: [PriceInput({ options: { ...priceInputOptions } })], - }, - { - label: 'TextArea', - structure: [TextArea({ options: { ...textAreaOptions } })], - }, -]; - export const children = [ - TextInput({ - options: { ...textInputOptions, ...defaultOptions }, - }), - SelectInput({ - options: { ...selectInputOptions, ...defaultOptions }, - }), - CheckboxInput({ - options: { ...checkboxInputOptions, ...defaultOptions }, - }), + TextInput({ options: { ...textInputOptions, ...defaultOptions } }), + SelectInput({ options: { ...selectInputOptions, ...defaultOptions } }), + CheckboxInput({ options: { ...checkboxInputOptions, ...defaultOptions } }), AutocompleteInput({ options: { ...autocompleteInputOptions, ...defaultOptions }, }), - DateTimePicker({ - options: { ...dateTimePickerOptions, ...defaultOptions }, - }), + DateTimePicker({ options: { ...dateTimePickerOptions, ...defaultOptions } }), CheckboxGroup({ options: { ...checkboxGroupInputOptions, ...defaultOptions }, }), - RadioInput({ - options: { ...radioInputOptions, ...defaultOptions }, - }), + RadioInput({ options: { ...radioInputOptions, ...defaultOptions } }), MultiAutocomplete({ options: { ...multiAutocompleteOptions, ...defaultOptions }, }), - FileUpload({ - options: { ...fileUploadOptions, ...defaultOptions }, - }), - RatingInput({ - options: { ...ratingInputOptions, ...defaultOptions }, - }), - RichTextInput({ - options: { ...richTextOptions, ...defaultOptions }, - }), + FileUpload({ options: { ...fileUploadOptions, ...defaultOptions } }), + RatingInput({ options: { ...ratingInputOptions, ...defaultOptions } }), + RichTextInput({ options: { ...richTextOptions, ...defaultOptions } }), ]; diff --git a/src/prefabs/structures/PriceInput/options/index.ts b/src/prefabs/structures/PriceInput/options/index.ts index 67366bc84..bef3b2d3f 100644 --- a/src/prefabs/structures/PriceInput/options/index.ts +++ b/src/prefabs/structures/PriceInput/options/index.ts @@ -60,8 +60,8 @@ export const options = { }, }), - label: variable('Label', { value: [''], showInAddChild: true }), - value: variable('Value', { value: [''], showInAddChild: true }), + label: variable('Label', { value: [''] }), + value: variable('Value', { value: [''] }), ...validation, diff --git a/src/prefabs/structures/SelectInput/options/index.ts b/src/prefabs/structures/SelectInput/options/index.ts index efedf75ed..bf4e29652 100644 --- a/src/prefabs/structures/SelectInput/options/index.ts +++ b/src/prefabs/structures/SelectInput/options/index.ts @@ -62,9 +62,8 @@ export const options = { label: variable('Label', { value: ['Select'], configuration: { allowFormatting: false, allowPropertyName: true }, - showInAddChild: true, }), - value: variable('Value', { value: [''], showInAddChild: true }), + value: variable('Value', { value: [''] }), optionType: buttongroup( 'Option type', @@ -82,7 +81,6 @@ export const options = { ), model: modelAndRelation('Model', { value: '', - showInAddChild: true, configuration: { condition: showIf('optionType', 'EQ', 'variable'), }, diff --git a/src/prefabs/structures/TextArea/options/index.ts b/src/prefabs/structures/TextArea/options/index.ts index 29162035d..2cce65a4c 100644 --- a/src/prefabs/structures/TextArea/options/index.ts +++ b/src/prefabs/structures/TextArea/options/index.ts @@ -56,8 +56,8 @@ export const options = { }, }), - label: variable('Label', { value: [''], showInAddChild: true }), - value: variable('Value', { value: [''], showInAddChild: true }), + label: variable('Label', { value: [''] }), + value: variable('Value', { value: [''] }), ...validation, diff --git a/src/prefabs/structures/TextInput/options/index.ts b/src/prefabs/structures/TextInput/options/index.ts index 3eaddc5c8..2d3d5a884 100644 --- a/src/prefabs/structures/TextInput/options/index.ts +++ b/src/prefabs/structures/TextInput/options/index.ts @@ -57,9 +57,8 @@ export const options = { label: variable('Label', { value: [''], configuration: { allowFormatting: false, allowPropertyName: true }, - showInAddChild: true, }), - value: variable('Value', { value: [''], showInAddChild: true }), + value: variable('Value', { value: [''] }), ...validation, ...styles,