Implement issue and patch list fuzzy finder

This commit is contained in:
Rūdolfs Ošiņš
2025-04-01 17:16:03 +02:00
parent d01cf9b433
commit 83390aed59
8 changed files with 325 additions and 96 deletions
+21 -16
View File
@@ -7,36 +7,38 @@
import Border from "./Border.svelte";
interface Props {
name?: string;
placeholder?: string;
value?: string;
type?: string;
autofocus?: boolean;
autoselect?: boolean;
disabled?: boolean;
onSubmit?: () => void;
onDismiss?: () => void;
valid?: boolean;
oninput?: FormEventHandler<HTMLInputElement>;
keyShortcuts?: string;
left?: Snippet;
name?: string;
onDismiss?: () => void;
onFocus?: () => void;
onSubmit?: () => void;
oninput?: FormEventHandler<HTMLInputElement>;
placeholder?: string;
type?: string;
valid?: boolean;
value?: string;
}
/* eslint-disable prefer-const */
let {
name,
placeholder,
value = $bindable(undefined),
type = "text",
autofocus = false,
autoselect = false,
disabled = false,
onSubmit,
onDismiss,
valid = true,
oninput,
keyShortcuts,
left,
name,
onDismiss,
onFocus,
onSubmit,
oninput,
placeholder,
type = "text",
valid = true,
value = $bindable(undefined),
}: Props = $props();
/* eslint-enable prefer-const */
@@ -102,6 +104,9 @@
style:padding={left ? "0.25rem 0.75rem 0.25rem 0" : "0.25rem 0.75rem"}
aria-keyshortcuts={keyShortcuts}
onfocus={() => {
if (onFocus) {
onFocus();
}
focussed = true;
}}
onblur={() => {