|
@@ -3,7 +3,7 @@
|
|
|
* https://github.com/RobinHerbots/jquery.inputmask
|
|
* https://github.com/RobinHerbots/jquery.inputmask
|
|
|
* Copyright (c) 2010 - 2016 Robin Herbots
|
|
* Copyright (c) 2010 - 2016 Robin Herbots
|
|
|
* Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
|
|
* Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
|
|
|
-* Version: 3.2.8-17
|
|
|
|
|
|
|
+* Version: 3.2.8-19
|
|
|
*/
|
|
*/
|
|
|
!function($) {
|
|
!function($) {
|
|
|
function Inputmask(alias, options) {
|
|
function Inputmask(alias, options) {
|
|
@@ -849,7 +849,7 @@
|
|
|
var valueGet, valueSet;
|
|
var valueGet, valueSet;
|
|
|
if (!npt.inputmask.__valueGet) {
|
|
if (!npt.inputmask.__valueGet) {
|
|
|
if (Object.getOwnPropertyDescriptor) {
|
|
if (Object.getOwnPropertyDescriptor) {
|
|
|
- var valueProperty = Object.getOwnPropertyDescriptor(Object.getPrototypeOf(npt), "value");
|
|
|
|
|
|
|
+ var valueProperty = Object.getPrototypeOf ? Object.getOwnPropertyDescriptor(Object.getPrototypeOf(npt), "value") : void 0;
|
|
|
valueProperty && valueProperty.get && valueProperty.set ? (valueGet = valueProperty.get,
|
|
valueProperty && valueProperty.get && valueProperty.set ? (valueGet = valueProperty.get,
|
|
|
valueSet = valueProperty.set, Object.defineProperty(npt, "value", {
|
|
valueSet = valueProperty.set, Object.defineProperty(npt, "value", {
|
|
|
get: getter,
|
|
get: getter,
|
|
@@ -1217,7 +1217,7 @@
|
|
|
el = actionObj.el, $el = $(el), maskset = el.inputmask.maskset, opts = el.inputmask.opts,
|
|
el = actionObj.el, $el = $(el), maskset = el.inputmask.maskset, opts = el.inputmask.opts,
|
|
|
el.inputmask._valueSet(unmaskedvalue(el)), EventRuler.off(el);
|
|
el.inputmask._valueSet(unmaskedvalue(el)), EventRuler.off(el);
|
|
|
var valueProperty;
|
|
var valueProperty;
|
|
|
- Object.getOwnPropertyDescriptor ? (valueProperty = Object.getOwnPropertyDescriptor(Object.getPrototypeOf(el), "value"),
|
|
|
|
|
|
|
+ Object.getOwnPropertyDescriptor && Object.getPrototypeOf ? (valueProperty = Object.getOwnPropertyDescriptor(Object.getPrototypeOf(el), "value"),
|
|
|
valueProperty && el.inputmask.__valueGet && Object.defineProperty(el, "value", {
|
|
valueProperty && el.inputmask.__valueGet && Object.defineProperty(el, "value", {
|
|
|
get: el.inputmask.__valueGet,
|
|
get: el.inputmask.__valueGet,
|
|
|
set: el.inputmask.__valueSet,
|
|
set: el.inputmask.__valueSet,
|
|
@@ -2107,7 +2107,7 @@
|
|
|
opts.placeholder.length > 1 && (opts.placeholder = opts.placeholder.charAt(0)),
|
|
opts.placeholder.length > 1 && (opts.placeholder = opts.placeholder.charAt(0)),
|
|
|
opts.radixFocus = opts.radixFocus && "" !== opts.placeholder && opts.integerOptional === !0,
|
|
opts.radixFocus = opts.radixFocus && "" !== opts.placeholder && opts.integerOptional === !0,
|
|
|
opts.definitions[";"] = opts.definitions["~"], opts.definitions[";"].definitionSymbol = "~",
|
|
opts.definitions[";"] = opts.definitions["~"], opts.definitions[";"].definitionSymbol = "~",
|
|
|
- 1 == opts.numericInput && (opts.radixFocus = !1, opts.digitsOptional = !1, isNaN(opts.digits) && (opts.digits = 2),
|
|
|
|
|
|
|
+ opts.numericInput === !0 && (opts.radixFocus = !1, opts.digitsOptional = !1, isNaN(opts.digits) && (opts.digits = 2),
|
|
|
opts.decimalProtect = !1);
|
|
opts.decimalProtect = !1);
|
|
|
var mask = autoEscape(opts.prefix);
|
|
var mask = autoEscape(opts.prefix);
|
|
|
return mask += "[+]", mask += opts.integerOptional === !0 ? "~{1," + opts.integerDigits + "}" : "~{" + opts.integerDigits + "}",
|
|
return mask += "[+]", mask += opts.integerOptional === !0 ? "~{1," + opts.integerDigits + "}" : "~{" + opts.integerDigits + "}",
|
|
@@ -2328,7 +2328,7 @@
|
|
|
"+": {
|
|
"+": {
|
|
|
validator: function(chrs, maskset, pos, strict, opts) {
|
|
validator: function(chrs, maskset, pos, strict, opts) {
|
|
|
var isValid = opts.signHandler(chrs, maskset, pos, strict, opts);
|
|
var isValid = opts.signHandler(chrs, maskset, pos, strict, opts);
|
|
|
- return !isValid && (strict && opts.allowMinus && chrs === opts.negationSymbol.front || opts.allowMinus && "-" === chrs || opts.allowPlus && "+" === chrs) && (isValid = "-" === chrs ? "" !== opts.negationSymbol.back ? {
|
|
|
|
|
|
|
+ return !isValid && (strict && opts.allowMinus && chrs === opts.negationSymbol.front || opts.allowMinus && "-" === chrs || opts.allowPlus && "+" === chrs) && (isValid = strict || "-" !== chrs ? !0 : "" !== opts.negationSymbol.back ? {
|
|
|
pos: pos,
|
|
pos: pos,
|
|
|
c: "-" === chrs ? opts.negationSymbol.front : "+",
|
|
c: "-" === chrs ? opts.negationSymbol.front : "+",
|
|
|
caret: pos + 1,
|
|
caret: pos + 1,
|
|
@@ -2340,7 +2340,7 @@
|
|
|
pos: pos,
|
|
pos: pos,
|
|
|
c: "-" === chrs ? opts.negationSymbol.front : "+",
|
|
c: "-" === chrs ? opts.negationSymbol.front : "+",
|
|
|
caret: pos + 1
|
|
caret: pos + 1
|
|
|
- } : !0), isValid;
|
|
|
|
|
|
|
+ }), isValid;
|
|
|
},
|
|
},
|
|
|
cardinality: 1,
|
|
cardinality: 1,
|
|
|
prevalidator: null,
|
|
prevalidator: null,
|