{#if showReset}
{/if}
{#if keys.length > 0 && args} {#each fields as item, i (item.id)} {@const argName = item.value} {@const prop = schema?.properties?.[argName]} *]:invisible' )} innerClass="w-full" > {#if !hiddenArgs.includes(argName) && keys.includes(argName)} {#if typeof diff[argName] === 'object' && diff[argName].oldSchema} {@const formerProperty = diff[argName].oldSchema}
{/if} {#if args && typeof args == 'object' && prop && !hidden[argName]}
{ dispatch('click', argName) }} > { dispatch('change') }} on:nestedChange={() => { dispatch('nestedChange') }} on:acceptChange={(e) => dispatch('acceptChange', e.detail)} on:rejectChange={(e) => dispatch('rejectChange', e.detail)} on:keydownCmdEnter={() => dispatch('keydownCmdEnter')} {disablePortal} {resourceTypes} {prettifyHeader} autofocus={i == 0 && autofocus ? true : null} label={argName} description={prop?.description} bind:value={args[argName]} type={prop?.type} oneOf={prop?.oneOf} required={schema?.required?.includes(argName)} pattern={prop?.pattern} bind:valid={inputCheck[argName]} defaultValue={defaultValues?.[argName] ?? structuredClone($state.snapshot(prop?.default))} enum_={dynamicEnums?.[argName] ?? prop?.enum} format={prop?.format} contentEncoding={prop?.contentEncoding} customErrorMessage={prop?.customErrorMessage} bind:properties={ () => prop?.properties, (v) => { if (prop) prop.properties = v } } bind:order={ () => prop?.order, (v) => { if (prop) prop.order = v } } nestedRequired={prop?.required} itemsType={prop?.items} disabled={disabledArgs.includes(argName) || disabled || prop?.disabled} {compact} {variableEditor} {itemPicker} bind:pickForField password={linkedSecrets.includes(argName)} extra={prop} {showSchemaExplorer} simpleTooltip={schemaFieldTooltip[argName]} {onlyMaskPassword} nullable={prop?.nullable} title={prop?.title} placeholder={prop?.placeholder} orderEditable={dndConfig != undefined} otherArgs={{ ...args, [argName]: undefined }} {helperScript} {lightHeader} diffStatus={diff[argName] ?? undefined} {nestedParent} {shouldDispatchChanges} {nestedClasses} {appPath} {computeS3ForceViewerPolicies} {workspace} {css} {displayType} > {#snippet actions()} {@render actions_render?.({ item })} {#if linkedSecretCandidates?.includes(argName)}
{ if (e.detail === 'secret') { if (!linkedSecrets.includes(argName)) { linkedSecrets = [...linkedSecrets, argName] } } else { linkedSecrets = linkedSecrets.filter((s) => s !== argName) } }} > {#snippet children({ item })} {/snippet}
{/if} {/snippet}
{/if} {/if}
{/each} {:else if !shouldHideNoInputs}
No inputs
{/if}
{#if !noVariablePicker} { if (pickForField && 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: ws ?? '' })).map((x) => ({ name: x.path, ...x }))} > {#snippet submission()}
{/snippet}
{/if}