Skip to content

Commit

Permalink
fix refatoring regression in numeric alias
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinHerbots committed Jul 10, 2018
1 parent c52d1ad commit d7b3066
Show file tree
Hide file tree
Showing 48 changed files with 76 additions and 63 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "inputmask",
"version": "4.0.1-beta.12",
"version": "4.0.1-beta.14",
"main": [
"./index.js",
"./css/inputmask.css"
Expand Down
2 changes: 1 addition & 1 deletion component.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "inputmask",
"repository": "robinherbots/Inputmask",
"description": "Inputmask is a javascript library which creates an input mask. Inputmask can run against vanilla javascript, jQuery and jqlite.",
"version": "4.0.1-beta.12",
"version": "4.0.1-beta.14",
"keywords": [
"jquery",
"plugins",
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "robinherbots/inputmask",
"description": "Inputmask is a javascript library which creates an input mask. Inputmask can run against vanilla javascript, jQuery and jqlite.",
"version": "4.0.1-beta.12",
"version": "4.0.1-beta.14",
"type": "library",
"keywords": ["jquery", "plugins", "input", "form", "inputmask", "mask"],
"homepage": "http://robinherbots.github.io/Inputmask",
Expand Down
2 changes: 1 addition & 1 deletion dist/inputmask/bindings/inputmask.binding.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.12
* Version: 4.0.1-beta.14
*/

!function(factory) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.12
* Version: 4.0.1-beta.14
*/

!function(factory) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.12
* Version: 4.0.1-beta.14
*/

!function(factory) {
Expand Down
2 changes: 1 addition & 1 deletion dist/inputmask/dependencyLibs/inputmask.dependencyLib.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.12
* Version: 4.0.1-beta.14
*/

!function(factory) {
Expand Down
2 changes: 1 addition & 1 deletion dist/inputmask/global/document.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.12
* Version: 4.0.1-beta.14
*/

"function" == typeof define && define.amd ? define(function() {
Expand Down
2 changes: 1 addition & 1 deletion dist/inputmask/global/window.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.12
* Version: 4.0.1-beta.14
*/

"function" == typeof define && define.amd ? define(function() {
Expand Down
2 changes: 1 addition & 1 deletion dist/inputmask/inputmask.date.extensions.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.12
* Version: 4.0.1-beta.14
*/

!function(factory) {
Expand Down
2 changes: 1 addition & 1 deletion dist/inputmask/inputmask.extensions.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.12
* Version: 4.0.1-beta.14
*/

!function(factory) {
Expand Down
2 changes: 1 addition & 1 deletion dist/inputmask/inputmask.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.12
* Version: 4.0.1-beta.14
*/

!function(factory) {
Expand Down
10 changes: 5 additions & 5 deletions dist/inputmask/inputmask.numeric.extensions.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.12
* Version: 4.0.1-beta.14
*/

!function(factory) {
Expand Down Expand Up @@ -142,7 +142,7 @@
onBeforeWrite: function(e, buffer, caretPos, opts) {
if (e) switch (e.type) {
case "keydown":
return opts.postValidation(buffer, {
return opts.postValidation(buffer, caretPos, {
caret: caretPos,
dopost: !0
}, opts);
Expand All @@ -162,19 +162,19 @@
if (unmasked = opts.onUnMask(buffer.join(""), undefined, $.extend({}, opts, {
unmaskAsNumber: !0
})), null !== opts.min && unmasked < opts.min) return opts.isNegative = opts.min < 0,
opts.postValidation(opts.min.toString().replace(".", opts.radixPoint).split(""), {
opts.postValidation(opts.min.toString().replace(".", opts.radixPoint).split(""), caretPos, {
caret: caretPos,
dopost: !0,
placeholder: "0"
}, opts);
if (null !== opts.max && unmasked > opts.max) return opts.isNegative = opts.max < 0,
opts.postValidation(opts.max.toString().replace(".", opts.radixPoint).split(""), {
opts.postValidation(opts.max.toString().replace(".", opts.radixPoint).split(""), caretPos, {
caret: caretPos,
dopost: !0,
placeholder: "0"
}, opts);
}
return opts.postValidation(buffer, {
return opts.postValidation(buffer, caretPos, {
caret: caretPos,
placeholder: "0",
event: "blur"
Expand Down
2 changes: 1 addition & 1 deletion dist/inputmask/inputmask.phone.extensions.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.12
* Version: 4.0.1-beta.14
*/

!function(factory) {
Expand Down
2 changes: 1 addition & 1 deletion dist/inputmask/jquery.inputmask.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.12
* Version: 4.0.1-beta.14
*/

!function(factory) {
Expand Down
2 changes: 1 addition & 1 deletion dist/inputmask/phone-codes/phone-be.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.12
* Version: 4.0.1-beta.14
*/

!function(factory) {
Expand Down
2 changes: 1 addition & 1 deletion dist/inputmask/phone-codes/phone-ca.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.12
* Version: 4.0.1-beta.14
*/

!function(factory) {
Expand Down
2 changes: 1 addition & 1 deletion dist/inputmask/phone-codes/phone-hu.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.12
* Version: 4.0.1-beta.14
*/

!function(factory) {
Expand Down
2 changes: 1 addition & 1 deletion dist/inputmask/phone-codes/phone-it.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.12
* Version: 4.0.1-beta.14
*/

!function(factory) {
Expand Down
2 changes: 1 addition & 1 deletion dist/inputmask/phone-codes/phone-mx.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.12
* Version: 4.0.1-beta.14
*/

!function(factory) {
Expand Down
2 changes: 1 addition & 1 deletion dist/inputmask/phone-codes/phone-nl.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.12
* Version: 4.0.1-beta.14
*/

!function(factory) {
Expand Down
2 changes: 1 addition & 1 deletion dist/inputmask/phone-codes/phone-ru.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.12
* Version: 4.0.1-beta.14
*/

!function(factory) {
Expand Down
2 changes: 1 addition & 1 deletion dist/inputmask/phone-codes/phone.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.12
* Version: 4.0.1-beta.14
*/

!function(factory) {
Expand Down
26 changes: 19 additions & 7 deletions dist/jquery.inputmask.bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.12
* Version: 4.0.1-beta.14
*/

!function(modules) {
Expand All @@ -20,14 +20,26 @@
}
__webpack_require__.m = modules, __webpack_require__.c = installedModules, __webpack_require__.d = function(exports, name, getter) {
__webpack_require__.o(exports, name) || Object.defineProperty(exports, name, {
configurable: !1,
enumerable: !0,
get: getter
});
}, __webpack_require__.r = function(exports) {
Object.defineProperty(exports, "__esModule", {
"undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(exports, Symbol.toStringTag, {
value: "Module"
}), Object.defineProperty(exports, "__esModule", {
value: !0
});
}, __webpack_require__.t = function(value, mode) {
if (1 & mode && (value = __webpack_require__(value)), 8 & mode) return value;
if (4 & mode && "object" == typeof value && value && value.__esModule) return value;
var ns = Object.create(null);
if (__webpack_require__.r(ns), Object.defineProperty(ns, "default", {
enumerable: !0,
value: value
}), 2 & mode && "string" != typeof value) for (var key in value) __webpack_require__.d(ns, key, function(key) {
return value[key];
}.bind(null, key));
return ns;
}, __webpack_require__.n = function(module) {
var getter = module && module.__esModule ? function() {
return module.default;
Expand Down Expand Up @@ -2086,7 +2098,7 @@
onBeforeWrite: function(e, buffer, caretPos, opts) {
if (e) switch (e.type) {
case "keydown":
return opts.postValidation(buffer, {
return opts.postValidation(buffer, caretPos, {
caret: caretPos,
dopost: !0
}, opts);
Expand All @@ -2106,19 +2118,19 @@
if (unmasked = opts.onUnMask(buffer.join(""), undefined, $.extend({}, opts, {
unmaskAsNumber: !0
})), null !== opts.min && unmasked < opts.min) return opts.isNegative = opts.min < 0,
opts.postValidation(opts.min.toString().replace(".", opts.radixPoint).split(""), {
opts.postValidation(opts.min.toString().replace(".", opts.radixPoint).split(""), caretPos, {
caret: caretPos,
dopost: !0,
placeholder: "0"
}, opts);
if (null !== opts.max && unmasked > opts.max) return opts.isNegative = opts.max < 0,
opts.postValidation(opts.max.toString().replace(".", opts.radixPoint).split(""), {
opts.postValidation(opts.max.toString().replace(".", opts.radixPoint).split(""), caretPos, {
caret: caretPos,
dopost: !0,
placeholder: "0"
}, opts);
}
return opts.postValidation(buffer, {
return opts.postValidation(buffer, caretPos, {
caret: caretPos,
placeholder: "0",
event: "blur"
Expand Down
2 changes: 1 addition & 1 deletion dist/min/inputmask/bindings/inputmask.binding.min.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.12
* Version: 4.0.1-beta.14
*/

!function(a){"function"==typeof define&&define.amd?define(["jquery","../inputmask","../global/document"],a):"object"==typeof exports?module.exports=a(require("jquery"),require("../inputmask"),require("../global/document")):a(jQuery,window.Inputmask,document)}(function(a,t,n){a(n).ajaxComplete(function(n,i,e){-1!==a.inArray("html",e.dataTypes)&&a(".inputmask, [data-inputmask], [data-inputmask-mask], [data-inputmask-alias]").each(function(a,n){void 0===n.inputmask&&t().mask(n)})}).ready(function(){a(".inputmask, [data-inputmask], [data-inputmask-mask], [data-inputmask-alias]").each(function(a,n){void 0===n.inputmask&&t().mask(n)})})});

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -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.12
* Version: 4.0.1-beta.14
*/

!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?module.exports=e(require("jquery")):window.dependencyLib=e(jQuery)}(function(e){return e});

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/min/inputmask/global/document.min.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.12
* Version: 4.0.1-beta.14
*/

"function"==typeof define&&define.amd?define(function(){return document}):"object"==typeof exports&&(module.exports=document);
Loading

0 comments on commit d7b3066

Please sign in to comment.