@lavalogic/scoria 0.0.35 → 0.0.36
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.
|
@@ -81,6 +81,18 @@
|
|
|
81
81
|
onfocus
|
|
82
82
|
}: QuerySelectProps<V, VP> = $props();
|
|
83
83
|
|
|
84
|
+
export function forceQuery() {
|
|
85
|
+
clearTimeout(timeoutHandler);
|
|
86
|
+
|
|
87
|
+
const input = document.getElementById(inputId);
|
|
88
|
+
const searchValue = (input as HTMLInputElement).value;
|
|
89
|
+
|
|
90
|
+
const currentHandler = (timeoutHandler = setTimeout(() => {
|
|
91
|
+
tryQuery(currentHandler, searchValue);
|
|
92
|
+
}, 500) as unknown as number);
|
|
93
|
+
tryQuery(currentHandler, searchValue);
|
|
94
|
+
}
|
|
95
|
+
|
|
84
96
|
let ref: Svelecte | undefined = $state();
|
|
85
97
|
let hasAutoFocused = $state(false);
|
|
86
98
|
let loadingDiv: HTMLDivElement | undefined = $state();
|
|
@@ -29,7 +29,9 @@ export type QuerySelectProps<V extends object, VP extends ValueProp<V>> = QueryS
|
|
|
29
29
|
import type { NonNullableKey, ValueProp } from '../Types/Internal/Misc.js';
|
|
30
30
|
declare function $$render<V extends object, VP extends ValueProp<V>>(): {
|
|
31
31
|
props: QuerySelectProps<V, VP>;
|
|
32
|
-
exports: {
|
|
32
|
+
exports: {
|
|
33
|
+
forceQuery: () => void;
|
|
34
|
+
};
|
|
33
35
|
bindings: "options";
|
|
34
36
|
slots: {};
|
|
35
37
|
events: {};
|
|
@@ -39,7 +41,9 @@ declare class __sveltets_Render<V extends object, VP extends ValueProp<V>> {
|
|
|
39
41
|
events(): ReturnType<typeof $$render<V, VP>>['events'];
|
|
40
42
|
slots(): ReturnType<typeof $$render<V, VP>>['slots'];
|
|
41
43
|
bindings(): "options";
|
|
42
|
-
exports(): {
|
|
44
|
+
exports(): {
|
|
45
|
+
forceQuery: () => void;
|
|
46
|
+
};
|
|
43
47
|
}
|
|
44
48
|
interface $$IsomorphicComponent {
|
|
45
49
|
new <V extends object, VP extends ValueProp<V>>(options: import('svelte').ComponentConstructorOptions<ReturnType<__sveltets_Render<V, VP>['props']>>): import('svelte').SvelteComponent<ReturnType<__sveltets_Render<V, VP>['props']>, ReturnType<__sveltets_Render<V, VP>['events']>, ReturnType<__sveltets_Render<V, VP>['slots']>> & {
|