@nectary/components 5.8.0 → 5.8.1
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/bundle.js +10 -0
- package/input/index.js +10 -0
- package/input/types.d.ts +1 -1
- package/package.json +1 -1
package/bundle.js
CHANGED
|
@@ -5302,6 +5302,11 @@ class Input extends NectaryElement {
|
|
|
5302
5302
|
if (min !== null && !isNaN(parseFloat(min))) {
|
|
5303
5303
|
this.#$input.value = min;
|
|
5304
5304
|
setFormValue(this.#internals, min);
|
|
5305
|
+
this.dispatchEvent(
|
|
5306
|
+
new CustomEvent("-change", {
|
|
5307
|
+
detail: min
|
|
5308
|
+
})
|
|
5309
|
+
);
|
|
5305
5310
|
}
|
|
5306
5311
|
}
|
|
5307
5312
|
break;
|
|
@@ -5312,6 +5317,11 @@ class Input extends NectaryElement {
|
|
|
5312
5317
|
if (max !== null && !isNaN(parseFloat(max))) {
|
|
5313
5318
|
this.#$input.value = max;
|
|
5314
5319
|
setFormValue(this.#internals, max);
|
|
5320
|
+
this.dispatchEvent(
|
|
5321
|
+
new CustomEvent("-change", {
|
|
5322
|
+
detail: max
|
|
5323
|
+
})
|
|
5324
|
+
);
|
|
5315
5325
|
}
|
|
5316
5326
|
}
|
|
5317
5327
|
}
|
package/input/index.js
CHANGED
|
@@ -136,6 +136,11 @@ class Input extends NectaryElement {
|
|
|
136
136
|
if (min !== null && !isNaN(parseFloat(min))) {
|
|
137
137
|
this.#$input.value = min;
|
|
138
138
|
setFormValue(this.#internals, min);
|
|
139
|
+
this.dispatchEvent(
|
|
140
|
+
new CustomEvent("-change", {
|
|
141
|
+
detail: min
|
|
142
|
+
})
|
|
143
|
+
);
|
|
139
144
|
}
|
|
140
145
|
}
|
|
141
146
|
break;
|
|
@@ -146,6 +151,11 @@ class Input extends NectaryElement {
|
|
|
146
151
|
if (max !== null && !isNaN(parseFloat(max))) {
|
|
147
152
|
this.#$input.value = max;
|
|
148
153
|
setFormValue(this.#internals, max);
|
|
154
|
+
this.dispatchEvent(
|
|
155
|
+
new CustomEvent("-change", {
|
|
156
|
+
detail: max
|
|
157
|
+
})
|
|
158
|
+
);
|
|
149
159
|
}
|
|
150
160
|
}
|
|
151
161
|
}
|
package/input/types.d.ts
CHANGED
|
@@ -33,7 +33,7 @@ export type TSinchInputProps = {
|
|
|
33
33
|
/** Whether or not the input is required **/
|
|
34
34
|
required?: boolean;
|
|
35
35
|
/** Maximum length of the input value */
|
|
36
|
-
|
|
36
|
+
maxlength?: number | null;
|
|
37
37
|
/** Maximum numeric value for type 'number' */
|
|
38
38
|
max?: number | null;
|
|
39
39
|
/** Minimum numeric value for type 'number' */
|