intelliwaketssveltekitv25 0.1.172 → 0.1.174

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/Cookie.d.ts CHANGED
@@ -1,4 +1,4 @@
1
1
  export declare function CookieCreate(name: string, value: string | null, days?: number): void;
2
2
  export declare function CookieReadOld(name: string, defaultValue?: string | null): string | null;
3
- export declare function CookieRead(name: string, defaultValue?: string | null): string | null;
3
+ export declare function CookieRead<T extends string>(name: string, defaultValue?: T | null): T | null;
4
4
  export declare function CookieErase(name: string): void;
package/dist/Cookie.js CHANGED
@@ -29,10 +29,10 @@ export function CookieReadOld(name, defaultValue = null) {
29
29
  return defaultValue;
30
30
  }
31
31
  export function CookieRead(name, defaultValue = null) {
32
- return IsOn(env.SSR) ? null : document.cookie
32
+ return (IsOn(env.SSR) ? null : document.cookie
33
33
  .split(';')
34
34
  .find((row) => row.trim()
35
- .startsWith(`${name}=`))?.split('=')[1]?.trim() ?? defaultValue;
35
+ .startsWith(`${name}=`))?.split('=')[1]?.trim() ?? defaultValue);
36
36
  }
37
37
  export function CookieErase(name) {
38
38
  CookieCreate(name, '', -1);
@@ -21,6 +21,7 @@
21
21
  existing = $bindable([]),
22
22
  name = null,
23
23
  placeholder = '',
24
+ placeholderHideNoFocus = false,
24
25
  disabled = false,
25
26
  readonly = false,
26
27
  required = false,
@@ -63,6 +64,7 @@
63
64
  existing?: T[]
64
65
  name?: string | null
65
66
  placeholder?: string
67
+ placeholderHideNoFocus?: boolean
66
68
  disabled?: boolean
67
69
  readonly?: boolean
68
70
  required?: boolean
@@ -344,7 +346,9 @@
344
346
  autocomplete="off"
345
347
  bind:this={elInput}
346
348
  bind:value={searchValue}
347
- 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 placeholder:opacity-0 focus:placeholder:opacity-100 {inputClass}"
349
+ 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 {inputClass}"
350
+ class:placeholder:opacity-0={placeholderHideNoFocus}
351
+ class:focus:placeholder:opacity-100={placeholderHideNoFocus}
348
352
  onkeydown={onKeyPress} />
349
353
  {/if}
350
354
  </div>
@@ -12,6 +12,7 @@ declare class __sveltets_Render<T extends TGenericMultiSelect> {
12
12
  existing?: T[] | undefined;
13
13
  name?: string | null;
14
14
  placeholder?: string;
15
+ placeholderHideNoFocus?: boolean;
15
16
  disabled?: boolean;
16
17
  readonly?: boolean;
17
18
  required?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "intelliwaketssveltekitv25",
3
- "version": "0.1.172",
3
+ "version": "0.1.174",
4
4
  "exports": {
5
5
  ".": {
6
6
  "types": "./dist/index.d.ts",