|
|
@@ -3,7 +3,7 @@
|
|
|
* https://github.com/RobinHerbots/Inputmask
|
|
|
* Copyright (c) 2010 - 2018 Robin Herbots
|
|
|
* Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
|
|
|
-* Version: 4.0.1-beta.17
|
|
|
+* Version: 4.0.1-beta.20
|
|
|
*/
|
|
|
|
|
|
!function(modules) {
|
|
|
@@ -62,8 +62,11 @@
|
|
|
_inputmask4.default === _jquery2.default && __webpack_require__(10), window.Inputmask = _inputmask2.default;
|
|
|
}, function(module, exports, __webpack_require__) {
|
|
|
"use strict";
|
|
|
- var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;
|
|
|
- "function" == typeof Symbol && Symbol.iterator;
|
|
|
+ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__, _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(obj) {
|
|
|
+ return typeof obj;
|
|
|
+ } : function(obj) {
|
|
|
+ return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
|
+ };
|
|
|
__WEBPACK_AMD_DEFINE_ARRAY__ = [ __webpack_require__(2), __webpack_require__(4) ],
|
|
|
void 0 === (__WEBPACK_AMD_DEFINE_RESULT__ = "function" == typeof (__WEBPACK_AMD_DEFINE_FACTORY__ = function($, Inputmask) {
|
|
|
var formatCode = {
|
|
|
@@ -179,6 +182,7 @@
|
|
|
}
|
|
|
return dateObj;
|
|
|
}
|
|
|
+ if (mask && "object" === (void 0 === mask ? "undefined" : _typeof(mask)) && mask.hasOwnProperty("date")) return mask;
|
|
|
}
|
|
|
return Inputmask.extendAliases({
|
|
|
datetime: {
|
|
|
@@ -187,7 +191,6 @@
|
|
|
opts.displayFormat = formatAlias[opts.displayFormat] || opts.displayFormat || opts.inputFormat,
|
|
|
opts.outputFormat = formatAlias[opts.outputFormat] || opts.outputFormat || opts.inputFormat,
|
|
|
opts.placeholder = "" !== opts.placeholder ? opts.placeholder : opts.inputFormat.replace(/[\[\]]/, ""),
|
|
|
- opts.min = analyseMask(opts.min, opts.inputFormat, opts), opts.max = analyseMask(opts.max, opts.inputFormat, opts),
|
|
|
opts.regex = parse(opts.inputFormat, void 0, opts), null;
|
|
|
},
|
|
|
placeholder: "",
|
|
|
@@ -202,6 +205,7 @@
|
|
|
ordinalSuffix: [ "st", "nd", "rd", "th" ]
|
|
|
},
|
|
|
postValidation: function(buffer, pos, currentResult, opts) {
|
|
|
+ opts.min = analyseMask(opts.min, opts.inputFormat, opts), opts.max = analyseMask(opts.max, opts.inputFormat, opts);
|
|
|
var result = currentResult, dateParts = analyseMask(buffer.join(""), opts.inputFormat, opts);
|
|
|
return result && dateParts.date.getTime() == dateParts.date.getTime() && (result = (result = function(dateParts, currentResult) {
|
|
|
return (!isFinite(dateParts.rawday) || "29" == dateParts.day && !isFinite(dateParts.rawyear) || new Date(dateParts.date.getFullYear(), isFinite(dateParts.rawmonth) ? dateParts.month : dateParts.date.getMonth() + 1, 0).getDate() >= dateParts.day) && currentResult;
|