From 4dbef3fcd7a14437d55c555cf10d50de8e50d7d1 Mon Sep 17 00:00:00 2001 From: ivarlovlie Date: Fri, 9 Dec 2022 11:57:12 +0900 Subject: feat: Move everything out of $lib --- code/app/src/lib/components/combobox.svelte | 450 ---------------------------- 1 file changed, 450 deletions(-) delete mode 100644 code/app/src/lib/components/combobox.svelte (limited to 'code/app/src/lib/components/combobox.svelte') diff --git a/code/app/src/lib/components/combobox.svelte b/code/app/src/lib/components/combobox.svelte deleted file mode 100644 index 4e7b1cd..0000000 --- a/code/app/src/lib/components/combobox.svelte +++ /dev/null @@ -1,450 +0,0 @@ - - - - - - -
- {#if label} - - {/if} -
-
- {#if multiple === true && hasSelection} -
- {#each options.filter((c) => c.selected === true) as option} - methods.deselect_entry(e.detail.id)} - text={option.name} - /> - {/each} -
- {/if} -
- search.do()} - on:click={search.on_input_click} - on:focus={search.on_input_focus} - on:blur={search.on_input_focusout} - autocomplete="off" - /> - {#if hasSelection} - - {:else} - - - - {/if} -
-
- {#if errorText} -

- {errorText} -

- {/if} -
-
    - {#if searchResults.length > 0} - {#each searchResults.filter((c) => !c.selected) as result} -
  • - {@html highlight(result, '', "")} -
  • - {/each} - {:else if options.length > 0} - {#each options as option} - -
  • - {option.name} - {#if option.selected} - - - - {/if} -
  • - {/each} - {:else} - -

    {noResultsText}

    - {#if createable && !searchValue} -

    {$LL.combobox.createRecordHelpText()}

    - {/if} -
    - {/if} -
- {#if showCreationHint} -
-
- {/if} -
-
-
- - -- cgit v1.3