intelliwaketssveltekitv25 0.1.63 → 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.
@@ -11,6 +11,7 @@
11
11
 
12
12
  // eslint-disable-next-line no-undef
13
13
  let {
14
+ id = undefined,
14
15
  show = $bindable(false),
15
16
  use = [],
16
17
  possibles,
@@ -29,6 +30,7 @@
29
30
  createPrefix = 'Create:',
30
31
  create = undefined,
31
32
  createValid = undefined,
33
+ tabindex = 0,
32
34
  displayValue = (item: T) => item.name ?? item.id ?? '',
33
35
  idValue = (item: T) => item.id ?? displayValue(item),
34
36
  keyValue = (item: T) => idValue(item),
@@ -41,6 +43,7 @@
41
43
  parentDivElement = null,
42
44
  form = undefined
43
45
  }: {
46
+ id?: string
44
47
  show?: boolean
45
48
  use?: ActionArray
46
49
  possibles: T[]
@@ -59,6 +62,7 @@
59
62
  createPrefix?: string
60
63
  create?: undefined | ((value: string) => T | null)
61
64
  createValid?: undefined | ((value: string) => boolean | string)
65
+ tabindex?: number
62
66
  displayValue?: ((item: T) => string | number)
63
67
  idValue?: ((item: T) => any)
64
68
  /** Compute the value of the "key" in the "each" statements to make them unique */
@@ -301,13 +305,14 @@
301
305
  </div>
302
306
  {/each}
303
307
  {#if !disable && (isMulti || !selected.length)}
304
- <input type='text'
308
+ <input {id}
309
+ type='text'
305
310
  use:useActions={use}
306
- tabindex={-1}
311
+ {tabindex}
307
312
  {placeholder}
308
313
  bind:this={elInput}
309
314
  bind:value={searchValue}
310
- 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'
311
316
  onkeydown={onKeyPress} />
312
317
  {/if}
313
318
  </div>
@@ -2,6 +2,7 @@ import { type TGenericMultiSelect } from './Definitions';
2
2
  import { type ActionArray } from './useActions';
3
3
  declare class __sveltets_Render<T extends TGenericMultiSelect> {
4
4
  props(): {
5
+ id?: string;
5
6
  show?: boolean;
6
7
  use?: ActionArray;
7
8
  possibles: T[];
@@ -20,6 +21,7 @@ declare class __sveltets_Render<T extends TGenericMultiSelect> {
20
21
  createPrefix?: string;
21
22
  create?: ((value: string) => T | null) | undefined;
22
23
  createValid?: ((value: string) => boolean | string) | undefined;
24
+ tabindex?: number;
23
25
  displayValue?: ((item: T) => string | number) | undefined;
24
26
  idValue?: ((item: T) => any) | undefined;
25
27
  /** Compute the value of the "key" in the "each" statements to make them unique */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "intelliwaketssveltekitv25",
3
- "version": "0.1.63",
3
+ "version": "0.1.65",
4
4
  "exports": {
5
5
  ".": {
6
6
  "types": "./dist/index.d.ts",