fuma 2.0.41 → 2.0.43

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.
@@ -2,7 +2,6 @@ export function selector(node, { trigger, focusIndex = -1, listQuerySelector = '
2
2
  trigger?.addEventListener('keydown', handleKeydown);
3
3
  function handleKeydown(event) {
4
4
  const items = node.querySelectorAll(itemsQuerySelector);
5
- console.log('DEBUG', { items });
6
5
  if (event.key === 'Enter') {
7
6
  if (keyDownPreventDefault)
8
7
  event.preventDefault();
@@ -32,13 +31,11 @@ export function selector(node, { trigger, focusIndex = -1, listQuerySelector = '
32
31
  }
33
32
  function scrollToSelected(items) {
34
33
  const list = node.tagName === 'UL' ? node : node.querySelector(listQuerySelector);
35
- console.log('DEBUG', { list });
36
34
  if (!(list instanceof HTMLElement)) {
37
35
  console.error('wrapper element not found');
38
36
  return;
39
37
  }
40
38
  const item = items[focusIndex];
41
- console.log('DEBUG', { item });
42
39
  if (!item)
43
40
  return;
44
41
  const top = item.offsetTop - 4;
@@ -55,6 +55,7 @@
55
55
 
56
56
  const dispatch = createEventDispatcher<{
57
57
  input: { value: RelationItem | null }
58
+ blur: void
58
59
  }>()
59
60
 
60
61
  export async function clear() {
@@ -98,6 +99,7 @@
98
99
  async function handleBlur() {
99
100
  isFocus = false
100
101
  searchValue = ''
102
+ dispatch('blur')
101
103
  }
102
104
  </script>
103
105
 
@@ -42,6 +42,7 @@ declare class __sveltets_Render<RelationItem extends {
42
42
  input: CustomEvent<{
43
43
  value: RelationItem | null;
44
44
  }>;
45
+ blur: CustomEvent<void>;
45
46
  } & {
46
47
  [evt: string]: CustomEvent<any>;
47
48
  };
@@ -101,10 +101,7 @@
101
101
  </div>
102
102
 
103
103
  <div class="hidden">
104
- <div
105
- class="{klass} bg-base-100 max-h-80 overflow-auto rounded-lg border p-1 shadow-lg"
106
- bind:this={content}
107
- >
104
+ <div class="{klass} bg-base-100 rounded-lg border p-1 shadow-lg" bind:this={content}>
108
105
  <slot {tip} />
109
106
  </div>
110
107
  </div>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fuma",
3
- "version": "2.0.41",
3
+ "version": "2.0.43",
4
4
  "description": "My fullstack material build with sveltekit, daisyui, zod, prisma, lucia",
5
5
  "author": {
6
6
  "name": "Jonas Voisard",