fuma 2.0.18 → 2.0.20
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,7 @@
|
|
|
35
35
|
let klass = ''
|
|
36
36
|
export { klass as class }
|
|
37
37
|
export let classList = ''
|
|
38
|
-
|
|
39
|
-
let inputElement: HTMLInputElement
|
|
38
|
+
export let inputElement: HTMLInputElement
|
|
40
39
|
|
|
41
40
|
let proposedItems: RelationItem[] = []
|
|
42
41
|
|
|
@@ -55,7 +54,7 @@
|
|
|
55
54
|
inputElement.focus()
|
|
56
55
|
}
|
|
57
56
|
|
|
58
|
-
async function select(index = focusIndex) {
|
|
57
|
+
export async function select(index = focusIndex) {
|
|
59
58
|
item = proposedItems[index]
|
|
60
59
|
dispatch('input', { value: item })
|
|
61
60
|
}
|
|
@@ -114,18 +113,13 @@
|
|
|
114
113
|
{#if noSlotItemWrapper}
|
|
115
114
|
{@render slotItem(item)}
|
|
116
115
|
{:else}
|
|
117
|
-
<
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
class="btn btn-square btn-xs"
|
|
125
|
-
>
|
|
126
|
-
<Icon path={mdiClose} />
|
|
127
|
-
</button>
|
|
128
|
-
</div>
|
|
116
|
+
<button
|
|
117
|
+
type="button"
|
|
118
|
+
on:click|stopPropagation={() => clear()}
|
|
119
|
+
class="input h-auto min-h-10 w-full grow items-start pt-2 pr-2"
|
|
120
|
+
>
|
|
121
|
+
{@render slotItem(item)}
|
|
122
|
+
</button>
|
|
129
123
|
{/if}
|
|
130
124
|
<input
|
|
131
125
|
type="hidden"
|
|
@@ -26,7 +26,9 @@ declare class __sveltets_Render<RelationItem extends {
|
|
|
26
26
|
append?: Snippet | undefined;
|
|
27
27
|
class?: string;
|
|
28
28
|
classList?: string;
|
|
29
|
+
inputElement: HTMLInputElement;
|
|
29
30
|
clear?: (() => Promise<void>) | undefined;
|
|
31
|
+
select?: ((index?: number) => Promise<void>) | undefined;
|
|
30
32
|
};
|
|
31
33
|
events(): {
|
|
32
34
|
input: CustomEvent<{
|
|
@@ -39,6 +41,7 @@ declare class __sveltets_Render<RelationItem extends {
|
|
|
39
41
|
bindings(): string;
|
|
40
42
|
exports(): {
|
|
41
43
|
clear: () => Promise<void>;
|
|
44
|
+
select: (index?: number) => Promise<void>;
|
|
42
45
|
};
|
|
43
46
|
}
|
|
44
47
|
interface $$IsomorphicComponent {
|