{#if arg != undefined}
{#if isStaticTemplate(inputCat)}
{'${...}'}
{/if}
{ focusProp(argName, 'connect', (path) => { connectProperty(path) return true }) }}>Connect →
{ const staticTemplate = isStaticTemplate(inputCat) if (e.detail === 'javascript') { if (arg.expr == undefined) { arg.expr = getDefaultExpr( argName, previousModuleId, staticTemplate ? `\`${arg.value ?? ''}\`` : arg.value ? JSON.stringify(arg.value, null, 4) : '' ) } arg.value = undefined propertyType = 'javascript' arg.type = 'javascript' } else { if (staticTemplate) { arg.value = codeToStaticTemplate(arg.expr) setPropertyType(arg.value) } else { arg.type = 'static' arg.value = undefined arg.expr = undefined } propertyType = 'static' } }} > {#if isStaticTemplate(inputCat)}
{'${} '}Templatable
{:else}
Static
{/if}
Dynamic (JS)
{#if $propPickerConfig?.propName == argName && $propPickerConfig?.insertionMode == 'connect'}
Connect input →
{/if} {#if propertyType === undefined || propertyType == 'static'}
{ if (isStaticTemplate(inputCat)) { setPropertyType(e.detail.rawValue) } }} {variableEditor} {itemPicker} bind:pickForField /> {:else if arg.expr != undefined}
{ focusProp(argName, 'insert', (path) => { monaco?.insertAtCursor(path) return false }) }} autoHeight />
{:else} Not recognized input type {argName} {/if}
{:else}
Arg at {argName} is undefined
{/if}