fuma 2.0.46 → 2.0.47
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -38,6 +38,7 @@
|
|
|
38
38
|
export let disabled = false
|
|
39
39
|
export let shortcutKey = ''
|
|
40
40
|
export let Icon: Component<{ class: string }> | undefined = undefined
|
|
41
|
+
export let debounceMs = 150
|
|
41
42
|
|
|
42
43
|
let klass = ''
|
|
43
44
|
export { klass as class }
|
|
@@ -90,7 +91,7 @@
|
|
|
90
91
|
}
|
|
91
92
|
}
|
|
92
93
|
|
|
93
|
-
const searchItemsDebounce = debounce(searchItems,
|
|
94
|
+
const searchItemsDebounce = debounce(searchItems, debounceMs)
|
|
94
95
|
|
|
95
96
|
function handleFocus() {
|
|
96
97
|
isFocus = true
|
|
@@ -27,6 +27,7 @@
|
|
|
27
27
|
export let slotSuggestion: SnippetLike<[RelationItem]> = slotItem
|
|
28
28
|
export let input: HTMLInputAttributes | undefined = undefined
|
|
29
29
|
export let append: Snippet | undefined = undefined
|
|
30
|
+
export let debounceMs = 150
|
|
30
31
|
|
|
31
32
|
let klass = ''
|
|
32
33
|
export { klass as class }
|
|
@@ -82,7 +83,7 @@
|
|
|
82
83
|
}
|
|
83
84
|
}
|
|
84
85
|
|
|
85
|
-
const searchItemsDebounce = debounce(searchItems,
|
|
86
|
+
const searchItemsDebounce = debounce(searchItems, debounceMs)
|
|
86
87
|
|
|
87
88
|
function handleFocus() {
|
|
88
89
|
searchItems()
|
|
@@ -18,6 +18,7 @@ declare class __sveltets_Render<RelationItem extends {
|
|
|
18
18
|
slotSuggestion?: SnippetLike<[RelationItem]> | undefined;
|
|
19
19
|
input?: HTMLInputAttributes | undefined;
|
|
20
20
|
append?: Snippet | undefined;
|
|
21
|
+
debounceMs?: number;
|
|
21
22
|
class?: string;
|
|
22
23
|
classList?: string;
|
|
23
24
|
value?: RelationItem[] | null | undefined;
|