|
|
@@ -3,7 +3,7 @@
|
|
|
* https://github.com/RobinHerbots/Inputmask
|
|
|
* Copyright (c) 2010 - 2024 Robin Herbots
|
|
|
* Licensed under the MIT license
|
|
|
- * Version: 5.0.10-beta.0
|
|
|
+ * Version: 5.0.10-beta.1
|
|
|
*/
|
|
|
!function(e, t) {
|
|
|
if ("object" == typeof exports && "object" == typeof module) module.exports = t(require("jquery")); else if ("function" == typeof define && define.amd) define([ "jquery" ], t); else {
|
|
|
@@ -1607,15 +1607,15 @@
|
|
|
rewritePosition: t
|
|
|
};
|
|
|
},
|
|
|
- postValidation: function(e, t, n, i, a, r, o) {
|
|
|
+ postValidation: function(e, t, n, i, a, r, o, s, c) {
|
|
|
if (!1 === i) return i;
|
|
|
if (o) return !0;
|
|
|
if (null !== a.min || null !== a.max) {
|
|
|
- var s = a.onUnMask(e.slice().reverse().join(""), void 0, l.extend({}, a, {
|
|
|
+ var f = a.onUnMask(e.slice().reverse().join(""), void 0, l.extend({}, a, {
|
|
|
unmaskAsNumber: !0
|
|
|
}));
|
|
|
- if (null !== a.min && s < a.min && (s.toString().length > a.min.toString().length || s < 0)) return !1;
|
|
|
- if (null !== a.max && s > a.max) return !!a.SetMaxOnOverflow && {
|
|
|
+ if (null !== a.min && f < a.min && !0 !== c && (f.toString().length > a.min.toString().length || e[0] === a.radixPoint || f < 0)) return !1;
|
|
|
+ if (null !== a.max && f > a.max) return !!a.SetMaxOnOverflow && {
|
|
|
refreshFromBuffer: !0,
|
|
|
buffer: u(a.max.toString().replace(".", a.radixPoint).split(""), a.digits, a).reverse()
|
|
|
};
|
|
|
@@ -3536,7 +3536,7 @@
|
|
|
});
|
|
|
}
|
|
|
if ("function" == typeof k.postValidation && !0 !== i && !0 !== p) {
|
|
|
- var A = k.postValidation.call(g, r.getBuffer.call(g, !0), void 0 !== e.begin ? g.isRTL ? e.end : e.begin : e, t, S, k, b, n, v);
|
|
|
+ var A = k.postValidation.call(g, r.getBuffer.call(g, !0), void 0 !== e.begin ? g.isRTL ? e.end : e.begin : e, t, S, k, b, n, v, a);
|
|
|
void 0 !== A && (S = !0 === A ? S : A);
|
|
|
}
|
|
|
S && void 0 === S.pos && (S.pos = x), !1 === S || !0 === p ? (r.resetMaskSet.call(g, !0),
|