fuma 2.0.13 → 2.0.15

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.
@@ -45,11 +45,12 @@
45
45
  let focusIndex = 0
46
46
  let searchValue = ''
47
47
 
48
- const dispatch = createEventDispatcher<{ input: { value: RelationItem } }>()
48
+ const dispatch = createEventDispatcher<{ input: { value: RelationItem | null } }>()
49
49
 
50
50
  export async function clear() {
51
51
  searchValue = ''
52
52
  item = null
53
+ dispatch('input', { value: item })
53
54
  await tick()
54
55
  inputElement.focus()
55
56
  }
@@ -113,7 +114,7 @@
113
114
  {#if noSlotItemWrapper}
114
115
  {@render slotItem(item)}
115
116
  {:else}
116
- <div class="input h-auto min-h-10 grow items-start pt-2 pr-2">
117
+ <div class="input h-auto min-h-10 w-full grow items-start pt-2 pr-2">
117
118
  <div class="grow">
118
119
  {@render slotItem(item)}
119
120
  </div>
@@ -30,7 +30,7 @@ declare class __sveltets_Render<RelationItem extends {
30
30
  };
31
31
  events(): {
32
32
  input: CustomEvent<{
33
- value: RelationItem;
33
+ value: RelationItem | null;
34
34
  }>;
35
35
  } & {
36
36
  [evt: string]: CustomEvent<any>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fuma",
3
- "version": "2.0.13",
3
+ "version": "2.0.15",
4
4
  "description": "My fullstack material build with sveltekit, daisyui, zod, prisma, lucia",
5
5
  "author": {
6
6
  "name": "Jonas Voisard",