{ if (!value.startsWith("{")) { return -1 } const item = JSON.parse(value) as ListSchema.Item return ( commandScore(item.title, search, keywords) + (item.subTitle ? commandScore(item.subTitle, search, keywords) : 0) ) }} > { if (e.key === "Enter") { e.preventDefault() onEnterKeyPressed?.() } else if (e.key === "Escape") { e.preventDefault() if (searchTerm.length > 0) { searchTerm = "" } else { onGoBack?.() } } }} > {#snippet leftSlot()} {/snippet} {#if pbar} {/if} No results found. {#each listViewContent.sections || [] as section} {#each section.items as item} {/each} {/each} {#each listViewContent.items || [] as item} { onListItemSelected?.(item.value) }} /> {/each} {#if loading} Loading {/if} {#if listViewContent.detail} {/if} {@render footer?.()}