intelliwaketssveltekitv25 0.1.64 → 0.1.65
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.
package/dist/MultiSelect.svelte
CHANGED
|
@@ -30,6 +30,7 @@
|
|
|
30
30
|
createPrefix = 'Create:',
|
|
31
31
|
create = undefined,
|
|
32
32
|
createValid = undefined,
|
|
33
|
+
tabindex = 0,
|
|
33
34
|
displayValue = (item: T) => item.name ?? item.id ?? '',
|
|
34
35
|
idValue = (item: T) => item.id ?? displayValue(item),
|
|
35
36
|
keyValue = (item: T) => idValue(item),
|
|
@@ -61,6 +62,7 @@
|
|
|
61
62
|
createPrefix?: string
|
|
62
63
|
create?: undefined | ((value: string) => T | null)
|
|
63
64
|
createValid?: undefined | ((value: string) => boolean | string)
|
|
65
|
+
tabindex?: number
|
|
64
66
|
displayValue?: ((item: T) => string | number)
|
|
65
67
|
idValue?: ((item: T) => any)
|
|
66
68
|
/** Compute the value of the "key" in the "each" statements to make them unique */
|
|
@@ -306,11 +308,11 @@
|
|
|
306
308
|
<input {id}
|
|
307
309
|
type='text'
|
|
308
310
|
use:useActions={use}
|
|
309
|
-
tabindex
|
|
311
|
+
{tabindex}
|
|
310
312
|
{placeholder}
|
|
311
313
|
bind:this={elInput}
|
|
312
314
|
bind:value={searchValue}
|
|
313
|
-
class='noFormat flex grow-1 m-1 ring-0 focus:ring-0 outline-0 focus:outline-0 min-w-[3em] w-[3em]'
|
|
315
|
+
class='noFormat flex grow-1 m-1 ring-0 focus:ring-0 outline-0 focus:outline-0 min-w-[3em] w-[3em] border-none p-0'
|
|
314
316
|
onkeydown={onKeyPress} />
|
|
315
317
|
{/if}
|
|
316
318
|
</div>
|
|
@@ -21,6 +21,7 @@ declare class __sveltets_Render<T extends TGenericMultiSelect> {
|
|
|
21
21
|
createPrefix?: string;
|
|
22
22
|
create?: ((value: string) => T | null) | undefined;
|
|
23
23
|
createValid?: ((value: string) => boolean | string) | undefined;
|
|
24
|
+
tabindex?: number;
|
|
24
25
|
displayValue?: ((item: T) => string | number) | undefined;
|
|
25
26
|
idValue?: ((item: T) => any) | undefined;
|
|
26
27
|
/** Compute the value of the "key" in the "each" statements to make them unique */
|