intelliwaketssveltekitv25 0.1.76 → 0.1.78

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.
@@ -7,6 +7,8 @@
7
7
  inputClass = '',
8
8
  id,
9
9
  name,
10
+ placeholder,
11
+ title,
10
12
  onchange,
11
13
  decimals = 2,
12
14
  min = null,
@@ -20,6 +22,8 @@
20
22
  inputClass?: string,
21
23
  id?: string,
22
24
  name?: string
25
+ placeholder?: string
26
+ title?: string
23
27
  onchange?: (value: number | null) => void
24
28
  decimals?: number
25
29
  min?: number | null
@@ -36,6 +40,8 @@
36
40
  {inputClass}
37
41
  {id}
38
42
  {name}
43
+ {placeholder}
44
+ {title}
39
45
  {onchange}
40
46
  {decimals}
41
47
  {min}
@@ -4,6 +4,8 @@ type $$ComponentProps = {
4
4
  inputClass?: string;
5
5
  id?: string;
6
6
  name?: string;
7
+ placeholder?: string;
8
+ title?: string;
7
9
  onchange?: (value: number | null) => void;
8
10
  decimals?: number;
9
11
  min?: number | null;
@@ -9,6 +9,8 @@
9
9
  inputClass = '',
10
10
  id,
11
11
  name,
12
+ placeholder,
13
+ title,
12
14
  onchange,
13
15
  decimals = 0,
14
16
  min = null,
@@ -25,6 +27,8 @@
25
27
  inputClass?: string,
26
28
  id?: string,
27
29
  name?: string
30
+ placeholder?: string,
31
+ title?: string,
28
32
  onchange?: (value: number | null) => void
29
33
  decimals?: number
30
34
  min?: number | null
@@ -88,10 +92,14 @@
88
92
  <div class="inputAddOn relative overflow-hidden {clazz}">
89
93
  <input
90
94
  type="text"
95
+ inputmode={!!decimals ? "decimal" : "numeric"}
96
+ pattern={!!decimals ? "[0-9]*[.,]?[0-9]+" : "[0-9]*"}
91
97
  class="text-right {inputClass}"
92
98
  style={inputStyle}
93
99
  {id}
94
100
  {name}
101
+ {placeholder}
102
+ {title}
95
103
  {readonly}
96
104
  {disabled}
97
105
  {required}
@@ -4,6 +4,8 @@ type $$ComponentProps = {
4
4
  inputClass?: string;
5
5
  id?: string;
6
6
  name?: string;
7
+ placeholder?: string;
8
+ title?: string;
7
9
  onchange?: (value: number | null) => void;
8
10
  decimals?: number;
9
11
  min?: number | null;
@@ -7,6 +7,8 @@
7
7
  inputClass = '',
8
8
  id,
9
9
  name,
10
+ placeholder,
11
+ title,
10
12
  onchange,
11
13
  decimals = 0,
12
14
  min = null,
@@ -20,6 +22,8 @@
20
22
  inputClass?: string,
21
23
  id?: string,
22
24
  name?: string
25
+ placeholder?: string
26
+ title?: string
23
27
  onchange?: (value: number | null) => void
24
28
  decimals?: number
25
29
  min?: number | null
@@ -36,6 +40,8 @@
36
40
  {inputClass}
37
41
  {id}
38
42
  {name}
43
+ {placeholder}
44
+ {title}
39
45
  {onchange}
40
46
  {decimals}
41
47
  {min}
@@ -4,6 +4,8 @@ type $$ComponentProps = {
4
4
  inputClass?: string;
5
5
  id?: string;
6
6
  name?: string;
7
+ placeholder?: string;
8
+ title?: string;
7
9
  onchange?: (value: number | null) => void;
8
10
  decimals?: number;
9
11
  min?: number | null;
@@ -84,7 +84,7 @@
84
84
  {id}
85
85
  {hidden}
86
86
  use:useActions={use}
87
- class='[&_*]:cursor-pointer mt-1 select-none focus:ring-0 focus:outline-none group {clazz ?? ""}'
87
+ class='[&_*]:cursor-pointer w-fit mt-1 select-none focus:ring-0 focus:outline-none group {clazz ?? ""}'
88
88
  role='button'
89
89
  onclick={() => doCheck()}
90
90
  onkeydown={e => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "intelliwaketssveltekitv25",
3
- "version": "0.1.76",
3
+ "version": "0.1.78",
4
4
  "exports": {
5
5
  ".": {
6
6
  "types": "./dist/index.d.ts",