fuma 2.0.45 → 2.0.47

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.
@@ -6,7 +6,7 @@
6
6
  import { FormControl, type InputProps } from './index.js'
7
7
  import { USE_COERCE_DATE } from '../../utils/constant.js'
8
8
 
9
- type $$Props = InputProps<Date | null | undefined> & { noTime?: boolean }
9
+ type $$Props = InputProps<Date | null | undefined> & { noPreserveTime?: boolean }
10
10
  export let value: Date | null | undefined = undefined
11
11
  export let input: HTMLInputAttributes = {}
12
12
  export let noPreserveTime = false
@@ -34,7 +34,7 @@ declare const InputDate: $$__sveltets_2_IsomorphicComponent<{
34
34
  value?: Date | null | undefined;
35
35
  bindWithParams?: boolean;
36
36
  } & {
37
- noTime?: boolean;
37
+ noPreserveTime?: boolean;
38
38
  }, {
39
39
  focus: FocusEvent;
40
40
  blur: FocusEvent;
@@ -38,6 +38,7 @@
38
38
  export let disabled = false
39
39
  export let shortcutKey = ''
40
40
  export let Icon: Component<{ class: string }> | undefined = undefined
41
+ export let debounceMs = 150
41
42
 
42
43
  let klass = ''
43
44
  export { klass as class }
@@ -90,7 +91,7 @@
90
91
  }
91
92
  }
92
93
 
93
- const searchItemsDebounce = debounce(searchItems, 150)
94
+ const searchItemsDebounce = debounce(searchItems, debounceMs)
94
95
 
95
96
  function handleFocus() {
96
97
  isFocus = true
@@ -29,6 +29,7 @@ declare class __sveltets_Render<RelationItem extends {
29
29
  Icon?: Component<{
30
30
  class: string;
31
31
  }, {}, string> | undefined;
32
+ debounceMs?: number;
32
33
  class?: string;
33
34
  classList?: string;
34
35
  inputElement?: HTMLInputElement | undefined;
@@ -27,6 +27,7 @@
27
27
  export let slotSuggestion: SnippetLike<[RelationItem]> = slotItem
28
28
  export let input: HTMLInputAttributes | undefined = undefined
29
29
  export let append: Snippet | undefined = undefined
30
+ export let debounceMs = 150
30
31
 
31
32
  let klass = ''
32
33
  export { klass as class }
@@ -82,7 +83,7 @@
82
83
  }
83
84
  }
84
85
 
85
- const searchItemsDebounce = debounce(searchItems, 150)
86
+ const searchItemsDebounce = debounce(searchItems, debounceMs)
86
87
 
87
88
  function handleFocus() {
88
89
  searchItems()
@@ -18,6 +18,7 @@ declare class __sveltets_Render<RelationItem extends {
18
18
  slotSuggestion?: SnippetLike<[RelationItem]> | undefined;
19
19
  input?: HTMLInputAttributes | undefined;
20
20
  append?: Snippet | undefined;
21
+ debounceMs?: number;
21
22
  class?: string;
22
23
  classList?: string;
23
24
  value?: RelationItem[] | null | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fuma",
3
- "version": "2.0.45",
3
+ "version": "2.0.47",
4
4
  "description": "My fullstack material build with sveltekit, daisyui, zod, prisma, lucia",
5
5
  "author": {
6
6
  "name": "Jonas Voisard",