|
|
|
@ -13,11 +13,10 @@ |
|
|
|
: [] |
|
|
|
</script> |
|
|
|
|
|
|
|
<label class="uk-form-label">{workflowBlock.type}: {workflowBlock.name}</label> |
|
|
|
<label class="selected-label">{workflowBlock.type}: {workflowBlock.name}</label> |
|
|
|
{#each workflowParams as [parameter, type]} |
|
|
|
<div class="block-field"> |
|
|
|
<label class="uk-form-label">{parameter}</label> |
|
|
|
<div class="uk-form-controls"> |
|
|
|
<label class="label">{parameter}</label> |
|
|
|
{#if Array.isArray(type)} |
|
|
|
<select |
|
|
|
class="budibase_input" |
|
|
|
@ -30,7 +29,7 @@ |
|
|
|
<ComponentSelector bind:value={workflowBlock.args[parameter]} /> |
|
|
|
{:else if type === 'accessLevel'} |
|
|
|
<select |
|
|
|
class="budibase__input" |
|
|
|
class="budibase_input" |
|
|
|
bind:value={workflowBlock.args[parameter]}> |
|
|
|
<option value="ADMIN">Admin</option> |
|
|
|
<option value="POWER_USER">Power User</option> |
|
|
|
@ -38,17 +37,17 @@ |
|
|
|
{:else if type === 'password'} |
|
|
|
<input |
|
|
|
type="password" |
|
|
|
class="budibase__input" |
|
|
|
class="budibase_input" |
|
|
|
bind:value={workflowBlock.args[parameter]} /> |
|
|
|
{:else if type === 'number'} |
|
|
|
<input |
|
|
|
type="number" |
|
|
|
class="budibase__input" |
|
|
|
class="budibase_input" |
|
|
|
bind:value={workflowBlock.args[parameter]} /> |
|
|
|
{:else if type === 'longText'} |
|
|
|
<textarea |
|
|
|
type="text" |
|
|
|
class="budibase__input" |
|
|
|
class="budibase_input" |
|
|
|
bind:value={workflowBlock.args[parameter]} /> |
|
|
|
{:else if type === 'model'} |
|
|
|
<ModelSelector bind:value={workflowBlock.args[parameter]} /> |
|
|
|
@ -57,41 +56,46 @@ |
|
|
|
{:else if type === 'string'} |
|
|
|
<input |
|
|
|
type="text" |
|
|
|
class="budibase__input" |
|
|
|
class="budibase_input" |
|
|
|
bind:value={workflowBlock.args[parameter]} /> |
|
|
|
{/if} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
{/each} |
|
|
|
|
|
|
|
<style> |
|
|
|
|
|
|
|
.block-field { |
|
|
|
border-radius: 3px; |
|
|
|
background: var(--grey-1); |
|
|
|
padding: 12px; |
|
|
|
margin: 0px 0px 4px 0px; |
|
|
|
display: grid; |
|
|
|
} |
|
|
|
|
|
|
|
.budibase_input { |
|
|
|
height: 36px; |
|
|
|
width: 220px; |
|
|
|
border-radius: 3px; |
|
|
|
border: 1px solid var(--grey-4); |
|
|
|
border-radius: 5px; |
|
|
|
background-color: var(--grey-2); |
|
|
|
border: 1px solid var(--grey-2); |
|
|
|
text-align: left; |
|
|
|
color: var(--ink); |
|
|
|
font-size: 14px; |
|
|
|
padding-left: 12px; |
|
|
|
margin-top: 8px; |
|
|
|
} |
|
|
|
|
|
|
|
label { |
|
|
|
text-transform: capitalize; |
|
|
|
font-size: 14px; |
|
|
|
font-weight: 500; |
|
|
|
margin-top: 20px; |
|
|
|
} |
|
|
|
|
|
|
|
.selected-label { |
|
|
|
text-transform: capitalize; |
|
|
|
font-size: 14px; |
|
|
|
font-weight: 500; |
|
|
|
} |
|
|
|
|
|
|
|
textarea { |
|
|
|
min-height: 150px; |
|
|
|
font-family: inherit; |
|
|
|
padding: 5px; |
|
|
|
padding: 12px; |
|
|
|
margin-top: 8px; |
|
|
|
} |
|
|
|
</style> |
|
|
|
|