diff --git a/frontend/src/lib/components/Path.svelte b/frontend/src/lib/components/Path.svelte index 98d7aacdf5943..d7236fdc68584 100644 --- a/frontend/src/lib/components/Path.svelte +++ b/frontend/src/lib/components/Path.svelte @@ -37,6 +37,7 @@ import { tick } from 'svelte' import FolderPicker from './FolderPicker.svelte' import TextInput from './text_input/TextInput.svelte' + import PathAutocompleteInput from './PathAutocompleteInput.svelte' type PathKind = | 'resource' @@ -95,7 +96,7 @@ } }) - let inputP: TextInput | undefined = $state(undefined) + let inputP: PathAutocompleteInput | undefined = $state(undefined) const dispatch = createEventDispatcher() @@ -464,19 +465,18 @@
/
{/if} diff --git a/frontend/src/lib/components/PathAutocompleteInput.svelte b/frontend/src/lib/components/PathAutocompleteInput.svelte new file mode 100644 index 0000000000000..04dbe1ab2fedf --- /dev/null +++ b/frontend/src/lib/components/PathAutocompleteInput.svelte @@ -0,0 +1,141 @@ + + +
(open = false) }}> + + + {#if suggestions.length > 0} + inputEl!.getBoundingClientRect())} + noItemsMsg="No matches" + /> + {/if} +