{#if arg != undefined}
{#if !checked && arg.type === 'javascript'}
{'${...}'}
{/if}
{ const type = e.detail ? 'javascript' : 'static' const staticTemplate = isStaticTemplate(inputCat) if (type === 'javascript') { arg.expr = getDefaultExpr( importPath, argName, staticTemplate ? `\`${arg.value ?? ''}\`` : arg.value ) arg.value = undefined propertyType = 'javascript' } else { arg.value = staticTemplate ? codeToStaticTemplate(arg.expr) : undefined arg.expr = undefined propertyType = 'static' } arg.type = type }} />
{ focusProp(argName, 'connect', (path) => { connectProperty(path) return false }) }}>Connect →
{#if propertyType === undefined || !checked}
{ if (isStaticTemplate(inputCat)) { setPropertyType(e.detail.rawValue) } }} /> {:else if checked} {#if arg.expr != undefined}
{ focusProp(argName, 'insert', (path) => { monaco?.insertAtCursor(path) return false }) }} />
{/if} {:else}
Not recognized arg type {arg.type}
{/if} {:else}
Arg at {argName} is undefined
{/if}