{#if showReset}
{/if}
{#if keys.length > 0} {#each fields as item, i (item.id)} {@const argName = item.value}
{#if !schemaSkippedValues.includes(argName) && Object.keys(schema?.properties ?? {}).includes(argName)}
{ dispatch('click', argName) }} > {#if typeof args == 'object' && schema?.properties[argName]} {#if computeShow(argName, schema?.properties[argName].showExpr, args)} {#if lightweightMode} {#if linkedSecretCandidates?.includes(argName)}
{ if (e.detail) { linkedSecret = argName } else if (linkedSecret == argName) { linkedSecret = undefined } }} >
{/if}
{:else} dispatch('change')} {disablePortal} {resourceTypes} {prettifyHeader} autofocus={i == 0 && autofocus ? true : null} label={argName} description={schema.properties[argName].description} bind:value={args[argName]} type={schema.properties[argName].type} oneOf={schema.properties[argName].oneOf} required={schema?.required?.includes(argName)} pattern={schema.properties[argName].pattern} bind:valid={inputCheck[argName]} defaultValue={schema.properties[argName].default} enum_={schema.properties[argName].enum} format={schema.properties[argName].format} contentEncoding={schema.properties[argName].contentEncoding} customErrorMessage={schema.properties[argName].customErrorMessage} bind:properties={schema.properties[argName].properties} bind:order={schema.properties[argName].order} nestedRequired={schema.properties[argName]?.required} itemsType={schema.properties[argName].items} disabled={disabledArgs.includes(argName) || disabled} {compact} {variableEditor} {itemPicker} bind:pickForField password={linkedSecret == argName} extra={schema.properties[argName]} {showSchemaExplorer} simpleTooltip={schemaFieldTooltip[argName]} {onlyMaskPassword} nullable={schema.properties[argName].nullable} title={schema.properties[argName].title} placeholder={schema.properties[argName].placeholder} orderEditable={dndConfig != undefined} > {#if linkedSecretCandidates?.includes(argName)}
{ if (e.detail) { linkedSecret = argName } else if (linkedSecret == argName) { linkedSecret = undefined } }} >
{/if}
{/if} {/if} {/if}
{/if}
{/each} {:else if !shouldHideNoInputs}
No inputs
{/if}
{#if !noVariablePicker} { if (pickForField) { 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 }))} >
{/if}