{@render openEditTab?.()}
{#if !noPreview}
{#if addProperty}
0 ? `width: 100%;` : `width: calc(100% - ${panelButtonWidth - pannelExtraButtonWidth}px);`} > {@render addProperty?.()}
{/if}
(previewSchema ? previewSchema : schema), (newSchema) => { schema = newSchema tick().then(() => dispatch('change', schema)) } } {dndType} {disableDnd} {onlyMaskPassword} bind:args on:click={(e) => { opened = e.detail }} on:reorder={(e) => { schema = { ...schema, order: e.detail } tick().then(() => dispatch('change', schema)) }} prettifyHeader={isAppInput} disabled={!!previewSchema} {diff} on:acceptChange on:rejectChange on:nestedChange={() => { dispatch('change', schema) }} {shouldDispatchChanges} bind:isValid noVariablePicker={noVariablePicker || customUi?.disableVariablePicker === true} /> {@render runButton?.()}
{/if} {#if editPanelSize > 0} 0 ? 'rounded-tl-none' : '')} > {#if editTab !== 'inputEditor'} {@render extraTab?.()} {:else} {#if jsonEnabled && customUi?.jsonOnly != true}
{ schemaString = JSON.stringify(schema, null, '\t') editor?.setCode(schemaString) }} />
{/if} {#if !jsonView}
{#if keys.length > 0} {#each keys as argName, i (argName)}
{ if (opened === argName) { opened = undefined } else { opened = argName } }} >
{argName} {#if !uiOnly}
{#snippet trigger()}
{/snippet}
{/if}
{#if schema.required?.includes(argName)} Required {/if} {#if !uiOnly} {/if}
{#if opened === argName}
{#if !hiddenArgs.includes(argName) && Object.keys(schema?.properties ?? {}).includes(argName)} {#if typeof args == 'object' && schema?.properties[argName]} { schema = $state.snapshot(schema) dispatch('change', schema) }} > {#snippet typeeditor()} {#if isFlowInput || isAppInput} {/if} {/snippet} {#if isFlowInput || isAppInput} { if (event.detail.required) { schema.required = schema.required ?? [] schema.required.push(argName) } else { schema.required = schema.required?.filter( (x) => x !== argName ) } dispatch('change', schema) }} on:schemaChange={(e) => { schema = $state.snapshot(schema) dispatch('change', schema) dispatch('schemaChange') }} /> {/if} {/if} {/if}
{/if}
{/each} {:else if !shouldHideNoInputs}
No inputs
{/if}
{:else}
{ try { schema = JSON.parse(schemaString) dispatch('change', schema) error = '' } catch (err) { error = err.message } }} bind:code={schemaString} lang="json" autoHeight automaticLayout />
{#if !emptyString(error)}
{error}
{:else}

{/if}
{/if} {/if} {/if} {#if !noVariablePicker} { if (pickForField) { if (args) { args[pickForField] = '$var:' + path } } }} itemName="Variable" tooltip="Variables are dynamic values that have a key associated to them and can be retrieved during the execution of a Script or Flow." documentationLink="https://www.windmill.dev/docs/core_concepts/variables_and_secrets" extraField="path" loadItems={async () => (await VariableService.listVariable({ workspace: $workspaceStore ?? '' })).map((x) => ({ name: x.path, ...x }))} > {#snippet submission()}
{/snippet}
{/if}