fuma 2.0.19 → 2.0.21

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,12 +54,12 @@
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
  }
62
61
 
63
- async function searchItems(searchValue = '') {
62
+ export async function searchItems(searchValue = '') {
64
63
  try {
65
64
  isLoading = true
66
65
  isError = false
@@ -26,7 +26,10 @@ 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;
32
+ searchItems?: ((searchValue?: string) => Promise<void>) | undefined;
30
33
  };
31
34
  events(): {
32
35
  input: CustomEvent<{
@@ -39,6 +42,8 @@ declare class __sveltets_Render<RelationItem extends {
39
42
  bindings(): string;
40
43
  exports(): {
41
44
  clear: () => Promise<void>;
45
+ select: (index?: number) => Promise<void>;
46
+ searchItems: (searchValue?: string) => Promise<void>;
42
47
  };
43
48
  }
44
49
  interface $$IsomorphicComponent {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fuma",
3
- "version": "2.0.19",
3
+ "version": "2.0.21",
4
4
  "description": "My fullstack material build with sveltekit, daisyui, zod, prisma, lucia",
5
5
  "author": {
6
6
  "name": "Jonas Voisard",