Skip to content

Commit

Permalink
fix rightalign with colormask
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinHerbots committed Jul 17, 2017
1 parent 6deb372 commit 022fd7a
Show file tree
Hide file tree
Showing 41 changed files with 60 additions and 62 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-22",
"version": "4.0.1-23",
"main": [
"./dist/inputmask/inputmask.js",
"./dist/inputmask/inputmask.extensions.js",
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-22",
"version": "4.0.1-23",
"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-22",
"version": "4.0.1-23",
"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 - 2017 Robin Herbots
* Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
* Version: 4.0.1-22
* Version: 4.0.1-23
*/

!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 - 2017 Robin Herbots
* Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
* Version: 4.0.1-22
* Version: 4.0.1-23
*/

!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 - 2017 Robin Herbots
* Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
* Version: 4.0.1-22
* Version: 4.0.1-23
*/

!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 - 2017 Robin Herbots
* Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
* Version: 4.0.1-22
* Version: 4.0.1-23
*/

!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 - 2017 Robin Herbots
* Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
* Version: 4.0.1-22
* Version: 4.0.1-23
*/

"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 - 2017 Robin Herbots
* Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
* Version: 4.0.1-22
* Version: 4.0.1-23
*/

"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 - 2017 Robin Herbots
* Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
* Version: 4.0.1-22
* Version: 4.0.1-23
*/

!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 - 2017 Robin Herbots
* Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
* Version: 4.0.1-22
* Version: 4.0.1-23
*/

!function(factory) {
Expand Down
17 changes: 8 additions & 9 deletions 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 - 2017 Robin Herbots
* Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
* Version: 4.0.1-22
* Version: 4.0.1-23
*/

!function(factory) {
Expand Down Expand Up @@ -728,15 +728,14 @@
}
return document.body.removeChild(e), caretPos;
}
function clickHandler(e) {
return input.focus(), caret(input, findCaretPos(e.clientX)), EventHandlers.clickEvent.call(input, [ e ]);
}
var computedStyle = (input.ownerDocument.defaultView || window).getComputedStyle(input, null), template = document.createElement("div");
template.style.width = computedStyle.width, colorMask = document.createElement("div"),
colorMask.className = "im-colormask", input.parentNode.insertBefore(colorMask, input),
input.parentNode.removeChild(input), colorMask.appendChild(template), colorMask.appendChild(input),
input.style.left = template.offsetLeft + "px", $(input).on("click", clickHandler),
$(input).on("keydown", function(e) {
template.style.width = computedStyle.width, template.style.textAlign = computedStyle.textAlign,
colorMask = document.createElement("div"), colorMask.className = "im-colormask",
input.parentNode.insertBefore(colorMask, input), input.parentNode.removeChild(input),
colorMask.appendChild(template), colorMask.appendChild(input), input.style.left = template.offsetLeft + "px",
$(input).on("click", function(e) {
return caret(input, findCaretPos(e.clientX)), EventHandlers.clickEvent.call(input, [ e ]);
}), $(input).on("keydown", function(e) {
e.shiftKey || !1 === opts.insertMode || setTimeout(function() {
renderColorMask(input);
}, 0);
Expand Down
2 changes: 1 addition & 1 deletion 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 - 2017 Robin Herbots
* Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
* Version: 4.0.1-22
* Version: 4.0.1-23
*/

!function(factory) {
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 - 2017 Robin Herbots
* Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
* Version: 4.0.1-22
* Version: 4.0.1-23
*/

!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 - 2017 Robin Herbots
* Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
* Version: 4.0.1-22
* Version: 4.0.1-23
*/

!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 - 2017 Robin Herbots
* Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
* Version: 4.0.1-22
* Version: 4.0.1-23
*/

!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 - 2017 Robin Herbots
* Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
* Version: 4.0.1-22
* Version: 4.0.1-23
*/

!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 - 2017 Robin Herbots
* Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
* Version: 4.0.1-22
* Version: 4.0.1-23
*/

!function(factory) {
Expand Down
2 changes: 1 addition & 1 deletion dist/inputmask/phone-codes/phone-uk.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 - 2017 Robin Herbots
* Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
* Version: 4.0.1-22
* Version: 4.0.1-23
*/

!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 - 2017 Robin Herbots
* Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
* Version: 4.0.1-22
* Version: 4.0.1-23
*/

!function(factory) {
Expand Down
17 changes: 8 additions & 9 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 - 2017 Robin Herbots
* Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
* Version: 4.0.1-22
* Version: 4.0.1-23
*/

!function(modules) {
Expand Down Expand Up @@ -776,15 +776,14 @@
}
return document.body.removeChild(e), caretPos;
}
function clickHandler(e) {
return input.focus(), caret(input, findCaretPos(e.clientX)), EventHandlers.clickEvent.call(input, [ e ]);
}
var computedStyle = (input.ownerDocument.defaultView || window).getComputedStyle(input, null), template = document.createElement("div");
template.style.width = computedStyle.width, colorMask = document.createElement("div"),
colorMask.className = "im-colormask", input.parentNode.insertBefore(colorMask, input),
input.parentNode.removeChild(input), colorMask.appendChild(template), colorMask.appendChild(input),
input.style.left = template.offsetLeft + "px", $(input).on("click", clickHandler),
$(input).on("keydown", function(e) {
template.style.width = computedStyle.width, template.style.textAlign = computedStyle.textAlign,
colorMask = document.createElement("div"), colorMask.className = "im-colormask",
input.parentNode.insertBefore(colorMask, input), input.parentNode.removeChild(input),
colorMask.appendChild(template), colorMask.appendChild(input), input.style.left = template.offsetLeft + "px",
$(input).on("click", function(e) {
return caret(input, findCaretPos(e.clientX)), EventHandlers.clickEvent.call(input, [ e ]);
}), $(input).on("keydown", function(e) {
e.shiftKey || !1 === opts.insertMode || setTimeout(function() {
renderColorMask(input);
}, 0);
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 - 2017 Robin Herbots
* Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
* Version: 4.0.1-22
* Version: 4.0.1-23
*/

!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,b,c){a(c).ajaxComplete(function(c,d,e){-1!==a.inArray("html",e.dataTypes)&&a(".inputmask, [data-inputmask], [data-inputmask-mask], [data-inputmask-alias]").each(function(a,c){void 0===c.inputmask&&b().mask(c)})}).ready(function(){a(".inputmask, [data-inputmask], [data-inputmask-mask], [data-inputmask-alias]").each(function(a,c){void 0===c.inputmask&&b().mask(c)})})});

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 - 2017 Robin Herbots
* Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
* Version: 4.0.1-22
* Version: 4.0.1-23
*/

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

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 - 2017 Robin Herbots
* Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
* Version: 4.0.1-22
* Version: 4.0.1-23
*/

"function"==typeof define&&define.amd?define(function(){return document}):"object"==typeof exports&&(module.exports=document);
2 changes: 1 addition & 1 deletion dist/min/inputmask/global/window.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 - 2017 Robin Herbots
* Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
* Version: 4.0.1-22
* Version: 4.0.1-23
*/

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

0 comments on commit 022fd7a

Please sign in to comment.