fuma 2.0.26 → 2.0.27
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.
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
let klass = ''
|
|
36
36
|
export { klass as class }
|
|
37
37
|
export let classList = ''
|
|
38
|
-
export let inputElement: HTMLInputElement
|
|
39
|
-
export let dropdown: DropDown | undefined
|
|
38
|
+
export let inputElement: HTMLInputElement | undefined = undefined
|
|
39
|
+
export let dropdown: DropDown | undefined = undefined
|
|
40
40
|
|
|
41
41
|
let proposedItems: RelationItem[] = []
|
|
42
42
|
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
item = null
|
|
55
55
|
dispatch('input', { value: item })
|
|
56
56
|
await tick()
|
|
57
|
-
inputElement
|
|
57
|
+
inputElement?.focus()
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
export async function select(index = focusIndex) {
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
export function focus() {
|
|
66
|
-
inputElement
|
|
66
|
+
inputElement?.focus()
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
export async function searchItems(searchValue = '') {
|
|
@@ -26,8 +26,8 @@ declare class __sveltets_Render<RelationItem extends {
|
|
|
26
26
|
append?: Snippet | undefined;
|
|
27
27
|
class?: string;
|
|
28
28
|
classList?: string;
|
|
29
|
-
inputElement
|
|
30
|
-
dropdown
|
|
29
|
+
inputElement?: HTMLInputElement | undefined;
|
|
30
|
+
dropdown?: DropDown | undefined;
|
|
31
31
|
clear?: (() => Promise<void>) | undefined;
|
|
32
32
|
select?: ((index?: number) => Promise<void>) | undefined;
|
|
33
33
|
focus?: (() => void) | undefined;
|