mytek-components 2.1.10 → 2.1.11
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/main.es.js +10 -0
- package/dist/main.es.js.map +1 -1
- package/dist/main.umd.js +10 -0
- package/dist/main.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/main.umd.js
CHANGED
|
@@ -14273,6 +14273,16 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
|
|
|
14273
14273
|
validate(formatted);
|
|
14274
14274
|
setAmountInWords(numberToWords(rawValue, format));
|
|
14275
14275
|
break;
|
|
14276
|
+
case "number":
|
|
14277
|
+
val = val.replace(/\D/g, "");
|
|
14278
|
+
if (maxLength) {
|
|
14279
|
+
val = val.slice(0, maxLength);
|
|
14280
|
+
}
|
|
14281
|
+
onChange(name, val);
|
|
14282
|
+
if (minLength && val.length < minLength) {
|
|
14283
|
+
validate(val);
|
|
14284
|
+
}
|
|
14285
|
+
break;
|
|
14276
14286
|
case "number1":
|
|
14277
14287
|
val = val.replace(/\D/g, "").slice(4, 8);
|
|
14278
14288
|
onChange(name, val);
|