Browse Source

namespace dependencylib

Robin Herbots 10 years ago
parent
commit
eb570d0084
35 changed files with 601 additions and 25 deletions
  1. 6 0
      CHANGELOG.md
  2. 8 1
      README.md
  3. 1 1
      bower.json
  4. 1 1
      component.json
  5. 1 1
      composer.json
  6. 1 1
      dist/inputmask/inputmask.date.extensions.js
  7. 33 0
      dist/inputmask/inputmask.dependencyLib.jqlite.js
  8. 12 0
      dist/inputmask/inputmask.dependencyLib.jquery.js
  9. 59 0
      dist/inputmask/inputmask.dependencyLib.js
  10. 23 0
      dist/inputmask/inputmask.dependencyLib.zepto.js
  11. 1 1
      dist/inputmask/inputmask.extensions.js
  12. 2 2
      dist/inputmask/inputmask.js
  13. 1 1
      dist/inputmask/inputmask.numeric.extensions.js
  14. 1 1
      dist/inputmask/inputmask.phone.extensions.js
  15. 1 1
      dist/inputmask/inputmask.regex.extensions.js
  16. 1 1
      dist/inputmask/jquery.inputmask.js
  17. 1 1
      dist/jquery.inputmask.bundle.js
  18. 1 1
      dist/min/inputmask/inputmask.date.extensions.min.js
  19. 8 0
      dist/min/inputmask/inputmask.dependencyLib.jqlite.min.js
  20. 8 0
      dist/min/inputmask/inputmask.dependencyLib.jquery.min.js
  21. 8 0
      dist/min/inputmask/inputmask.dependencyLib.min.js
  22. 8 0
      dist/min/inputmask/inputmask.dependencyLib.zepto.min.js
  23. 1 1
      dist/min/inputmask/inputmask.extensions.min.js
  24. 2 2
      dist/min/inputmask/inputmask.min.js
  25. 1 1
      dist/min/inputmask/inputmask.numeric.extensions.min.js
  26. 1 1
      dist/min/inputmask/inputmask.phone.extensions.min.js
  27. 1 1
      dist/min/inputmask/inputmask.regex.extensions.min.js
  28. 1 1
      dist/min/inputmask/jquery.inputmask.min.js
  29. 120 0
      js/inputmask.dependencyLib.jqlite.js
  30. 13 0
      js/inputmask.dependencyLib.jquery.js
  31. 191 0
      js/inputmask.dependencyLib.js
  32. 80 0
      js/inputmask.dependencyLib.zepto.js
  33. 2 2
      js/inputmask.js
  34. 1 1
      package.json
  35. 1 1
      qunit/config.js

+ 6 - 0
CHANGELOG.md

@@ -3,7 +3,13 @@ All notable changes to this project will be documented in this file.
 
 
 ## [UNRELEASED]
 ## [UNRELEASED]
 
 
+### Added
+- inputmask.dependencyLib.jquery
+- inputmask.dependencyLib.jqlite
+- inputmask.dependencyLib.zepto
+
 ### Updates
 ### Updates
+- namespace dependencyLib => inputmask.dependencyLib
 - fix jquery.inputmask.bundle.js
 - fix jquery.inputmask.bundle.js
 - fix dependency paths for browserify
 - fix dependency paths for browserify
 - update files to be included for package.json, bower.json, component.json
 - update files to be included for package.json, bower.json, component.json

+ 8 - 1
README.md

@@ -45,12 +45,19 @@ If you use a module loader like requireJS, use the js-files in dist/inputmask
 ```javascript
 ```javascript
 paths: {
 paths: {
   ...
   ...
-  "dependencyLib": "../dist/inputmask/dependencyLib",
+  "inputmask.dependencyLib": "../dist/inputmask/inputmask.dependencyLib",
   "inputmask": "../dist/inputmask/inputmask",
   "inputmask": "../dist/inputmask/inputmask",
   ...
   ...
 }
 }
 ```
 ```
 
 
+As dependencyLib you can choose between the supported libraries.
+- inputmask.dependencyLib (vanilla) (WIP)
+- inputmask.dependencyLib.jquery
+- inputmask.dependencyLib.jqlite (WIP)
+- inputmask.dependencyLib.zepto (WIP)
+- .... (others will come)
+
 Define your masks:
 Define your masks:
 
 
 ```javascript
 ```javascript

+ 1 - 1
bower.json

@@ -1,6 +1,6 @@
 {
 {
   "name": "jquery.inputmask",
   "name": "jquery.inputmask",
-  "version": "3.2.1-85",
+  "version": "3.2.1-86",
   "main": [
   "main": [
     "./dist/inputmask/dependencyLib.js",
     "./dist/inputmask/dependencyLib.js",
     "./dist/inputmask/inputmask.js",
     "./dist/inputmask/inputmask.js",

+ 1 - 1
component.json

@@ -2,7 +2,7 @@
   "name": "jquery_inputmask",
   "name": "jquery_inputmask",
   "repository": "robinherbots/jquery.inputmask",
   "repository": "robinherbots/jquery.inputmask",
   "description": "jquery.inputmask is a jquery plugin which create an input mask.",
   "description": "jquery.inputmask is a jquery plugin which create an input mask.",
-  "version": "3.2.1-85",
+  "version": "3.2.1-86",
   "keywords": ["jquery", "plugins", "input", "form", "inputmask", "mask"],
   "keywords": ["jquery", "plugins", "input", "form", "inputmask", "mask"],
   "main": "./dist/jquery.inputmask.bundle.js",
   "main": "./dist/jquery.inputmask.bundle.js",
   "scripts": [
   "scripts": [

+ 1 - 1
composer.json

@@ -1,7 +1,7 @@
 {
 {
   "name": "robinherbots/jquery.inputmask",
   "name": "robinherbots/jquery.inputmask",
   "description": "jquery.inputmask is a jquery plugin which create an input mask.",
   "description": "jquery.inputmask is a jquery plugin which create an input mask.",
-  "version": "3.2.1-85",
+  "version": "3.2.1-86",
   "type": "library",
   "type": "library",
   "keywords": ["jquery", "plugins", "input", "form", "inputmask", "mask"],
   "keywords": ["jquery", "plugins", "input", "form", "inputmask", "mask"],
   "homepage": "http://robinherbots.github.io/jquery.inputmask",
   "homepage": "http://robinherbots.github.io/jquery.inputmask",

+ 1 - 1
dist/inputmask/inputmask.date.extensions.js

@@ -3,7 +3,7 @@
 * http://github.com/RobinHerbots/jquery.inputmask
 * http://github.com/RobinHerbots/jquery.inputmask
 * Copyright (c) 2010 - 2015 Robin Herbots
 * Copyright (c) 2010 - 2015 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.1-85
+* Version: 3.2.1-86
 */
 */
 !function(factory) {
 !function(factory) {
     "function" == typeof define && define.amd ? define([ "jquery", "inputmask" ], factory) : "object" == typeof exports ? module.exports = factory(require("jquery"), require("./inputmask")) : factory(jQuery, window.Inputmask);
     "function" == typeof define && define.amd ? define([ "jquery", "inputmask" ], factory) : "object" == typeof exports ? module.exports = factory(require("jquery"), require("./inputmask")) : factory(jQuery, window.Inputmask);

+ 33 - 0
dist/inputmask/inputmask.dependencyLib.jqlite.js

@@ -0,0 +1,33 @@
+/*!
+* inputmask.dependencyLib.jqlite.js
+* http://github.com/RobinHerbots/jquery.inputmask
+* Copyright (c) 2010 - 2015 Robin Herbots
+* Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
+* Version: 3.2.1-86
+*/
+!function(factory) {
+    "function" == typeof define && define.amd ? define([ "jqlite" ], factory) : "object" == typeof exports ? module.exports = factory(require("jqlite")) : factory(jQuery);
+}(function($) {
+    function type(obj) {
+        return null == obj ? obj + "" : "object" == typeof obj || "function" == typeof obj ? class2type[class2type.toString.call(obj)] || "object" : typeof obj;
+    }
+    for (var class2type = {}, classTypes = "Boolean Number String Function Array Date RegExp Object Error".split(" "), nameNdx = 0; nameNdx < classTypes.length; nameNdx++) class2type["[object " + classTypes[nameNdx] + "]"] = classTypes[nameNdx].toLowerCase();
+    return $.isFunction = function(obj) {
+        return "function" === type(obj);
+    }, $.isArray = Array.isArray, $.isWindow = function(obj) {
+        return null != obj && obj === obj.window;
+    }, $.isPlainObject = function(obj) {
+        return "object" !== type(obj) || obj.nodeType || $.isWindow(obj) ? !1 : obj.constructor && !class2type.hasOwnProperty.call(obj.constructor.prototype, "isPrototypeOf") ? !1 : !0;
+    }, $.extend = function() {
+        var options, name, src, copy, copyIsArray, clone, target = arguments[0] || {}, i = 1, length = arguments.length, deep = !1;
+        for ("boolean" == typeof target && (deep = target, target = arguments[i] || {}, 
+        i++), "object" == typeof target || $.isFunction(target) || (target = {}), i === length && (target = this, 
+        i--); length > i; i++) if (null != (options = arguments[i])) for (name in options) src = target[name], 
+        copy = options[name], target !== copy && (deep && copy && ($.isPlainObject(copy) || (copyIsArray = $.isArray(copy))) ? (copyIsArray ? (copyIsArray = !1, 
+        clone = src && $.isArray(src) ? src : []) : clone = src && $.isPlainObject(src) ? src : {}, 
+        target[name] = $.extend(deep, clone, copy)) : void 0 !== copy && (target[name] = copy));
+        return target;
+    }, $.data = function(elem, name, data) {
+        return $(elem).data(name, data);
+    }, window.dependencyLib = $, $;
+});

+ 12 - 0
dist/inputmask/inputmask.dependencyLib.jquery.js

@@ -0,0 +1,12 @@
+/*!
+* inputmask.dependencyLib.jquery.js
+* http://github.com/RobinHerbots/jquery.inputmask
+* Copyright (c) 2010 - 2015 Robin Herbots
+* Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
+* Version: 3.2.1-86
+*/
+!function(factory) {
+    "function" == typeof define && define.amd ? define([ "jquery" ], factory) : "object" == typeof exports ? module.exports = factory(require("jquery")) : factory(jQuery);
+}(function($) {
+    return window.dependencyLib = $, $;
+});

+ 59 - 0
dist/inputmask/inputmask.dependencyLib.js

@@ -0,0 +1,59 @@
+/*!
+* inputmask.dependencyLib.js
+* http://github.com/RobinHerbots/jquery.inputmask
+* Copyright (c) 2010 - 2015 Robin Herbots
+* Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
+* Version: 3.2.1-86
+*/
+!function(factory) {
+    "function" == typeof define && define.amd ? define([ "jquery" ], factory) : "object" == typeof exports ? module.exports = factory(require("jquery")) : factory(jQuery);
+}(function($) {
+    function indexOf(list, elem) {
+        for (var i = 0, len = list.length; len > i; i++) if (list[i] === elem) return i;
+        return -1;
+    }
+    function type(obj) {
+        return null == obj ? obj + "" : "object" == typeof obj || "function" == typeof obj ? class2type[class2type.toString.call(obj)] || "object" : typeof obj;
+    }
+    function Event(elem) {
+        this[0] = elem;
+    }
+    function DependencyLib(elem) {
+        return this[0] = elem, this instanceof DependencyLib ? void 0 : new DependencyLib(elem);
+    }
+    for (var class2type = {}, classTypes = "Boolean Number String Function Array Date RegExp Object Error".split(" "), nameNdx = 0; nameNdx < classTypes.length; nameNdx++) class2type["[object " + classTypes[nameNdx] + "]"] = classTypes[nameNdx].toLowerCase();
+    return Event.prototype = {
+        on: function() {
+            return $.fn.on.apply($(this[0]), arguments), this;
+        },
+        off: function() {
+            return $.fn.off.apply($(this[0]), arguments), this;
+        },
+        trigger: function() {
+            return $.fn.trigger.apply($(this[0]), arguments), this;
+        },
+        triggerHandler: function() {
+            return $.fn.triggerHandler.apply($(this[0]), arguments), this;
+        }
+    }, DependencyLib.prototype = Event.prototype, DependencyLib.isFunction = function(obj) {
+        return "function" === type(obj);
+    }, DependencyLib.noop = function() {}, DependencyLib.parseJSON = function(data) {
+        return JSON.parse(data + "");
+    }, DependencyLib.isArray = Array.isArray, DependencyLib.inArray = function(elem, arr, i) {
+        return null == arr ? -1 : indexOf(arr, elem, i);
+    }, DependencyLib.valHooks = $.valHooks, DependencyLib.isWindow = function(obj) {
+        return null != obj && obj === obj.window;
+    }, DependencyLib.isPlainObject = function(obj) {
+        return "object" !== type(obj) || obj.nodeType || DependencyLib.isWindow(obj) ? !1 : obj.constructor && !class2type.hasOwnProperty.call(obj.constructor.prototype, "isPrototypeOf") ? !1 : !0;
+    }, DependencyLib.extend = function() {
+        var options, name, src, copy, copyIsArray, clone, target = arguments[0] || {}, i = 1, length = arguments.length, deep = !1;
+        for ("boolean" == typeof target && (deep = target, target = arguments[i] || {}, 
+        i++), "object" == typeof target || DependencyLib.isFunction(target) || (target = {}), 
+        i === length && (target = this, i--); length > i; i++) if (null != (options = arguments[i])) for (name in options) src = target[name], 
+        copy = options[name], target !== copy && (deep && copy && (DependencyLib.isPlainObject(copy) || (copyIsArray = DependencyLib.isArray(copy))) ? (copyIsArray ? (copyIsArray = !1, 
+        clone = src && DependencyLib.isArray(src) ? src : []) : clone = src && DependencyLib.isPlainObject(src) ? src : {}, 
+        target[name] = DependencyLib.extend(deep, clone, copy)) : void 0 !== copy && (target[name] = copy));
+        return target;
+    }, DependencyLib.each = $.each, DependencyLib.map = $.map, DependencyLib.Event = $.Event, 
+    DependencyLib.data = $.data, window.dependencyLib = DependencyLib, DependencyLib;
+});

+ 23 - 0
dist/inputmask/inputmask.dependencyLib.zepto.js

@@ -0,0 +1,23 @@
+/*!
+* inputmask.dependencyLib.zepto.js
+* http://github.com/RobinHerbots/jquery.inputmask
+* Copyright (c) 2010 - 2015 Robin Herbots
+* Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
+* Version: 3.2.1-86
+*/
+!function(factory) {
+    "function" == typeof define && define.amd ? define([ "zepto", "zepto_data", "zepto_event" ], factory) : "object" == typeof exports ? module.exports = factory(require("zepto"), require("zepto_data"), require("zepto_event")) : factory(Zepto);
+}(function($) {
+    return $.extend = function() {
+        var options, name, src, copy, copyIsArray, clone, target = arguments[0] || {}, i = 1, length = arguments.length, deep = !1;
+        for ("boolean" == typeof target && (deep = target, target = arguments[i] || {}, 
+        i++), "object" == typeof target || $.isFunction(target) || (target = {}), i === length && (target = this, 
+        i--); length > i; i++) if (null != (options = arguments[i])) for (name in options) src = target[name], 
+        copy = options[name], target !== copy && (deep && copy && ($.isPlainObject(copy) || (copyIsArray = $.isArray(copy))) ? (copyIsArray ? (copyIsArray = !1, 
+        clone = src && $.isArray(src) ? src : []) : clone = src && $.isPlainObject(src) ? src : {}, 
+        target[name] = $.extend(deep, clone, copy)) : void 0 !== copy && (target[name] = copy));
+        return target;
+    }, $.data = function(elem, name, data) {
+        return $(elem).data(name, data);
+    }, window.dependencyLib = $, $;
+});

+ 1 - 1
dist/inputmask/inputmask.extensions.js

@@ -3,7 +3,7 @@
 * http://github.com/RobinHerbots/jquery.inputmask
 * http://github.com/RobinHerbots/jquery.inputmask
 * Copyright (c) 2010 - 2015 Robin Herbots
 * Copyright (c) 2010 - 2015 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.1-85
+* Version: 3.2.1-86
 */
 */
 !function(factory) {
 !function(factory) {
     "function" == typeof define && define.amd ? define([ "jquery", "inputmask" ], factory) : "object" == typeof exports ? module.exports = factory(require("jquery"), require("./inputmask")) : factory(jQuery, window.Inputmask);
     "function" == typeof define && define.amd ? define([ "jquery", "inputmask" ], factory) : "object" == typeof exports ? module.exports = factory(require("jquery"), require("./inputmask")) : factory(jQuery, window.Inputmask);

+ 2 - 2
dist/inputmask/inputmask.js

@@ -3,10 +3,10 @@
 * http://github.com/RobinHerbots/jquery.inputmask
 * http://github.com/RobinHerbots/jquery.inputmask
 * Copyright (c) 2010 - 2015 Robin Herbots
 * Copyright (c) 2010 - 2015 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.1-85
+* Version: 3.2.1-86
 */
 */
 !function(factory) {
 !function(factory) {
-    "function" == typeof define && define.amd ? define([ "./dependencyLib" ], factory) : "object" == typeof exports ? module.exports = factory(require("./dependencyLib")) : factory(window.dependencyLib || jQuery);
+    "function" == typeof define && define.amd ? define([ "inputmask.dependencyLib" ], factory) : "object" == typeof exports ? module.exports = factory(require("./inputmask.dependencyLib")) : factory(window.dependencyLib || jQuery);
 }(function($) {
 }(function($) {
     function Inputmask(options) {
     function Inputmask(options) {
         this.el = void 0, this.opts = $.extend(!0, {}, this.defaults, options), this.noMasksCache = options && void 0 !== options.definitions, 
         this.el = void 0, this.opts = $.extend(!0, {}, this.defaults, options), this.noMasksCache = options && void 0 !== options.definitions, 

+ 1 - 1
dist/inputmask/inputmask.numeric.extensions.js

@@ -3,7 +3,7 @@
 * http://github.com/RobinHerbots/jquery.inputmask
 * http://github.com/RobinHerbots/jquery.inputmask
 * Copyright (c) 2010 - 2015 Robin Herbots
 * Copyright (c) 2010 - 2015 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.1-85
+* Version: 3.2.1-86
 */
 */
 !function(factory) {
 !function(factory) {
     "function" == typeof define && define.amd ? define([ "jquery", "inputmask" ], factory) : "object" == typeof exports ? module.exports = factory(require("jquery"), require("./inputmask")) : factory(jQuery, window.Inputmask);
     "function" == typeof define && define.amd ? define([ "jquery", "inputmask" ], factory) : "object" == typeof exports ? module.exports = factory(require("jquery"), require("./inputmask")) : factory(jQuery, window.Inputmask);

+ 1 - 1
dist/inputmask/inputmask.phone.extensions.js

@@ -3,7 +3,7 @@
 * http://github.com/RobinHerbots/jquery.inputmask
 * http://github.com/RobinHerbots/jquery.inputmask
 * Copyright (c) 2010 - 2015 Robin Herbots
 * Copyright (c) 2010 - 2015 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.1-85
+* Version: 3.2.1-86
 */
 */
 !function(factory) {
 !function(factory) {
     "function" == typeof define && define.amd ? define([ "jquery", "inputmask" ], factory) : "object" == typeof exports ? module.exports = factory(require("jquery"), require("./inputmask")) : factory(jQuery, window.Inputmask);
     "function" == typeof define && define.amd ? define([ "jquery", "inputmask" ], factory) : "object" == typeof exports ? module.exports = factory(require("jquery"), require("./inputmask")) : factory(jQuery, window.Inputmask);

+ 1 - 1
dist/inputmask/inputmask.regex.extensions.js

@@ -3,7 +3,7 @@
 * http://github.com/RobinHerbots/jquery.inputmask
 * http://github.com/RobinHerbots/jquery.inputmask
 * Copyright (c) 2010 - 2015 Robin Herbots
 * Copyright (c) 2010 - 2015 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.1-85
+* Version: 3.2.1-86
 */
 */
 !function(factory) {
 !function(factory) {
     "function" == typeof define && define.amd ? define([ "jquery", "inputmask" ], factory) : "object" == typeof exports ? module.exports = factory(require("jquery"), require("./inputmask")) : factory(jQuery, window.Inputmask);
     "function" == typeof define && define.amd ? define([ "jquery", "inputmask" ], factory) : "object" == typeof exports ? module.exports = factory(require("jquery"), require("./inputmask")) : factory(jQuery, window.Inputmask);

+ 1 - 1
dist/inputmask/jquery.inputmask.js

@@ -3,7 +3,7 @@
 * http://github.com/RobinHerbots/jquery.inputmask
 * http://github.com/RobinHerbots/jquery.inputmask
 * Copyright (c) 2010 - 2015 Robin Herbots
 * Copyright (c) 2010 - 2015 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.1-85
+* Version: 3.2.1-86
 */
 */
 !function(factory) {
 !function(factory) {
     "function" == typeof define && define.amd ? define([ "jquery", "inputmask" ], factory) : "object" == typeof exports ? module.exports = factory(require("jquery"), require("./inputmask")) : factory(jQuery, window.Inputmask);
     "function" == typeof define && define.amd ? define([ "jquery", "inputmask" ], factory) : "object" == typeof exports ? module.exports = factory(require("jquery"), require("./inputmask")) : factory(jQuery, window.Inputmask);

+ 1 - 1
dist/jquery.inputmask.bundle.js

@@ -3,7 +3,7 @@
 * http://github.com/RobinHerbots/jquery.inputmask
 * http://github.com/RobinHerbots/jquery.inputmask
 * Copyright (c) 2010 - 2015 Robin Herbots
 * Copyright (c) 2010 - 2015 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.1-85
+* Version: 3.2.1-86
 */
 */
 !function($) {
 !function($) {
     function Inputmask(options) {
     function Inputmask(options) {

File diff suppressed because it is too large
+ 1 - 1
dist/min/inputmask/inputmask.date.extensions.min.js


File diff suppressed because it is too large
+ 8 - 0
dist/min/inputmask/inputmask.dependencyLib.jqlite.min.js


+ 8 - 0
dist/min/inputmask/inputmask.dependencyLib.jquery.min.js

@@ -0,0 +1,8 @@
+/*!
+* inputmask.dependencyLib.jquery.min.js
+* http://github.com/RobinHerbots/jquery.inputmask
+* Copyright (c) 2010 - 2015 Robin Herbots
+* Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
+* Version: 3.2.1-86
+*/
+!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof exports?module.exports=a(require("jquery")):a(jQuery)}(function(a){return window.dependencyLib=a,a});

File diff suppressed because it is too large
+ 8 - 0
dist/min/inputmask/inputmask.dependencyLib.min.js


File diff suppressed because it is too large
+ 8 - 0
dist/min/inputmask/inputmask.dependencyLib.zepto.min.js


File diff suppressed because it is too large
+ 1 - 1
dist/min/inputmask/inputmask.extensions.min.js


File diff suppressed because it is too large
+ 2 - 2
dist/min/inputmask/inputmask.min.js


File diff suppressed because it is too large
+ 1 - 1
dist/min/inputmask/inputmask.numeric.extensions.min.js


File diff suppressed because it is too large
+ 1 - 1
dist/min/inputmask/inputmask.phone.extensions.min.js


File diff suppressed because it is too large
+ 1 - 1
dist/min/inputmask/inputmask.regex.extensions.min.js


File diff suppressed because it is too large
+ 1 - 1
dist/min/inputmask/jquery.inputmask.min.js


+ 120 - 0
js/inputmask.dependencyLib.jqlite.js

@@ -0,0 +1,120 @@
+(function(factory) {
+		if (typeof define === "function" && define.amd) {
+			define(["jqlite"], factory);
+		} else if (typeof exports === "object") {
+			module.exports = factory(require("jqlite"));
+		} else {
+			factory(jQuery);
+		}
+	}
+	(function($) {
+		var class2type = {},
+			classTypes = "Boolean Number String Function Array Date RegExp Object Error".split(" ");
+		for (var nameNdx = 0; nameNdx < classTypes.length; nameNdx++) {
+			class2type["[object " + classTypes[nameNdx] + "]"] = classTypes[nameNdx].toLowerCase();
+		}
+
+		function type(obj) {
+			if (obj == null) {
+				return obj + "";
+			}
+			// Support: Android<4.0, iOS<6 (functionish RegExp)
+			return typeof obj === "object" || typeof obj === "function" ?
+				class2type[class2type.toString.call(obj)] || "object" :
+				typeof obj;
+		}
+		$.isFunction = function(obj) {
+			return type(obj) === "function";
+		};
+		$.isArray = Array.isArray;
+		$.isWindow = function(obj) {
+			return obj != null && obj === obj.window;
+		};
+		$.isPlainObject = function(obj) {
+			// Not plain objects:
+			// - Any object or value whose internal [[Class]] property is not "[object Object]"
+			// - DOM nodes
+			// - window
+			if (type(obj) !== "object" || obj.nodeType || $.isWindow(obj)) {
+				return false;
+			}
+
+			if (obj.constructor && !class2type.hasOwnProperty.call(obj.constructor.prototype, "isPrototypeOf")) {
+				return false;
+			}
+
+			// If the function hasn't returned already, we're confident that
+			// |obj| is a plain object, created by {} or constructed with new Object
+			return true;
+		};
+		$.extend = function() {
+			var options, name, src, copy, copyIsArray, clone,
+				target = arguments[0] || {},
+				i = 1,
+				length = arguments.length,
+				deep = false;
+
+			// Handle a deep copy situation
+			if (typeof target === "boolean") {
+				deep = target;
+
+				// Skip the boolean and the target
+				target = arguments[i] || {};
+				i++;
+			}
+
+			// Handle case when target is a string or something (possible in deep copy)
+			if (typeof target !== "object" && !$.isFunction(target)) {
+				target = {};
+			}
+
+			// Extend jQuery itself if only one argument is passed
+			if (i === length) {
+				target = this;
+				i--;
+			}
+
+			for (; i < length; i++) {
+				// Only deal with non-null/undefined values
+				if ((options = arguments[i]) != null) {
+					// Extend the base object
+					for (name in options) {
+						src = target[name];
+						copy = options[name];
+
+						// Prevent never-ending loop
+						if (target === copy) {
+							continue;
+						}
+
+						// Recurse if we're merging plain objects or arrays
+						if (deep && copy && ($.isPlainObject(copy) || (copyIsArray = $.isArray(copy)))) {
+							if (copyIsArray) {
+								copyIsArray = false;
+								clone = src && $.isArray(src) ? src : [];
+
+							} else {
+								clone = src && $.isPlainObject(src) ? src : {};
+							}
+
+							// Never move original objects, clone them
+							target[name] = $.extend(deep, clone, copy);
+
+							// Don't bring in undefined values
+						} else if (copy !== undefined) {
+							target[name] = copy;
+						}
+					}
+				}
+			}
+
+			// Return the modified object
+			return target;
+		};
+		$.data = function(elem, name, data) {
+			return $(elem).data(name, data);
+		};
+
+		window.dependencyLib = $;
+		return $;
+	}));

+ 13 - 0
js/inputmask.dependencyLib.jquery.js

@@ -0,0 +1,13 @@
+(function(factory) {
+		if (typeof define === "function" && define.amd) {
+			define(["jquery"], factory);
+		} else if (typeof exports === "object") {
+			module.exports = factory(require("jquery"));
+		} else {
+			factory(jQuery);
+		}
+	}
+	(function($) {
+		window.dependencyLib = $;
+		return $;
+	}));

+ 191 - 0
js/inputmask.dependencyLib.js

@@ -0,0 +1,191 @@
+(function(factory) {
+		if (typeof define === "function" && define.amd) {
+			define(["jquery"], factory);
+		} else if (typeof exports === "object") {
+			module.exports = factory(require("jquery"));
+		} else {
+			factory(jQuery);
+		}
+	}
+	(function($) {
+
+		//helper functions
+
+		// Use a stripped-down indexOf as it's faster than native
+		// http://jsperf.com/thor-indexof-vs-for/5
+		function indexOf(list, elem) {
+			var i = 0,
+				len = list.length;
+			for (; i < len; i++) {
+				if (list[i] === elem) {
+					return i;
+				}
+			}
+			return -1;
+		}
+
+		var class2type = {},
+			classTypes = "Boolean Number String Function Array Date RegExp Object Error".split(" ");
+		for (var nameNdx = 0; nameNdx < classTypes.length; nameNdx++) {
+			class2type["[object " + classTypes[nameNdx] + "]"] = classTypes[nameNdx].toLowerCase();
+		}
+
+		function type(obj) {
+			if (obj == null) {
+				return obj + "";
+			}
+			// Support: Android<4.0, iOS<6 (functionish RegExp)
+			return typeof obj === "object" || typeof obj === "function" ?
+				class2type[class2type.toString.call(obj)] || "object" :
+				typeof obj;
+		}
+
+		//micro event lib
+		function Event(elem) {
+			this[0] = elem;
+		}
+
+		Event.prototype = {
+			on: function() {
+				$.fn.on.apply($(this[0]), arguments);
+				return this;
+			},
+			off: function() {
+				$.fn.off.apply($(this[0]), arguments);
+				return this;
+			},
+			trigger: function() {
+				$.fn.trigger.apply($(this[0]), arguments);
+				return this;
+			},
+			triggerHandler: function() {
+				$.fn.triggerHandler.apply($(this[0]), arguments);
+				return this;
+			}
+		};
+
+		function getDomEvents() {
+			var domEvents = [];
+			for (var i in document) {
+				if (i.substring(0, 2) === "on" && (document[i] === null || typeof document[i] === 'function'))
+					domEvents.push(i);
+			}
+			return domEvents;
+		};
+
+
+		function DependencyLib(elem) {
+			this[0] = elem;
+			if (!(this instanceof DependencyLib)) {
+				return new DependencyLib(elem);
+			}
+		}
+		DependencyLib.prototype = Event.prototype;
+
+		//static
+		DependencyLib.isFunction = function(obj) {
+			return type(obj) === "function";
+		};
+		DependencyLib.noop = function() {};
+		DependencyLib.parseJSON = function(data) {
+			return JSON.parse(data + "");
+		};
+		DependencyLib.isArray = Array.isArray;
+		DependencyLib.inArray = function(elem, arr, i) {
+			return arr == null ? -1 : indexOf(arr, elem, i);
+		};
+		DependencyLib.valHooks = $.valHooks;
+		DependencyLib.isWindow = function(obj) {
+			return obj != null && obj === obj.window;
+		};
+		DependencyLib.isPlainObject = function(obj) {
+			// Not plain objects:
+			// - Any object or value whose internal [[Class]] property is not "[object Object]"
+			// - DOM nodes
+			// - window
+			if (type(obj) !== "object" || obj.nodeType || DependencyLib.isWindow(obj)) {
+				return false;
+			}
+
+			if (obj.constructor && !class2type.hasOwnProperty.call(obj.constructor.prototype, "isPrototypeOf")) {
+				return false;
+			}
+
+			// If the function hasn't returned already, we're confident that
+			// |obj| is a plain object, created by {} or constructed with new Object
+			return true;
+		};
+
+		DependencyLib.extend = function() {
+			var options, name, src, copy, copyIsArray, clone,
+				target = arguments[0] || {},
+				i = 1,
+				length = arguments.length,
+				deep = false;
+
+			// Handle a deep copy situation
+			if (typeof target === "boolean") {
+				deep = target;
+
+				// Skip the boolean and the target
+				target = arguments[i] || {};
+				i++;
+			}
+
+			// Handle case when target is a string or something (possible in deep copy)
+			if (typeof target !== "object" && !DependencyLib.isFunction(target)) {
+				target = {};
+			}
+
+			// Extend jQuery itself if only one argument is passed
+			if (i === length) {
+				target = this;
+				i--;
+			}
+
+			for (; i < length; i++) {
+				// Only deal with non-null/undefined values
+				if ((options = arguments[i]) != null) {
+					// Extend the base object
+					for (name in options) {
+						src = target[name];
+						copy = options[name];
+
+						// Prevent never-ending loop
+						if (target === copy) {
+							continue;
+						}
+
+						// Recurse if we're merging plain objects or arrays
+						if (deep && copy && (DependencyLib.isPlainObject(copy) || (copyIsArray = DependencyLib.isArray(copy)))) {
+							if (copyIsArray) {
+								copyIsArray = false;
+								clone = src && DependencyLib.isArray(src) ? src : [];
+
+							} else {
+								clone = src && DependencyLib.isPlainObject(src) ? src : {};
+							}
+
+							// Never move original objects, clone them
+							target[name] = DependencyLib.extend(deep, clone, copy);
+
+							// Don't bring in undefined values
+						} else if (copy !== undefined) {
+							target[name] = copy;
+						}
+					}
+				}
+			}
+
+			// Return the modified object
+			return target;
+		};
+
+		DependencyLib.each = $.each;
+		DependencyLib.map = $.map;
+		DependencyLib.Event = $.Event; //needs to be replaced
+		DependencyLib.data = $.data; //needs to be replaced
+
+		window.dependencyLib = DependencyLib;
+		return DependencyLib;
+	}));

+ 80 - 0
js/inputmask.dependencyLib.zepto.js

@@ -0,0 +1,80 @@
+(function(factory) {
+		if (typeof define === "function" && define.amd) {
+			define(["zepto", "zepto_data", "zepto_event"], factory);
+		} else if (typeof exports === "object") {
+			module.exports = factory(require("zepto"), require("zepto_data"), require("zepto_event"));
+		} else {
+			factory(Zepto); //requires a zepto build with data & event
+		}
+	}
+	(function($) {
+		$.extend = function() {
+			var options, name, src, copy, copyIsArray, clone,
+				target = arguments[0] || {},
+				i = 1,
+				length = arguments.length,
+				deep = false;
+
+			// Handle a deep copy situation
+			if (typeof target === "boolean") {
+				deep = target;
+
+				// Skip the boolean and the target
+				target = arguments[i] || {};
+				i++;
+			}
+
+			// Handle case when target is a string or something (possible in deep copy)
+			if (typeof target !== "object" && !$.isFunction(target)) {
+				target = {};
+			}
+
+			// Extend jQuery itself if only one argument is passed
+			if (i === length) {
+				target = this;
+				i--;
+			}
+
+			for (; i < length; i++) {
+				// Only deal with non-null/undefined values
+				if ((options = arguments[i]) != null) {
+					// Extend the base object
+					for (name in options) {
+						src = target[name];
+						copy = options[name];
+
+						// Prevent never-ending loop
+						if (target === copy) {
+							continue;
+						}
+
+						// Recurse if we're merging plain objects or arrays
+						if (deep && copy && ($.isPlainObject(copy) || (copyIsArray = $.isArray(copy)))) {
+							if (copyIsArray) {
+								copyIsArray = false;
+								clone = src && $.isArray(src) ? src : [];
+
+							} else {
+								clone = src && $.isPlainObject(src) ? src : {};
+							}
+
+							// Never move original objects, clone them
+							target[name] = $.extend(deep, clone, copy);
+
+							// Don't bring in undefined values
+						} else if (copy !== undefined) {
+							target[name] = copy;
+						}
+					}
+				}
+			}
+
+			// Return the modified object
+			return target;
+		};
+		$.data = function(elem, name, data) {
+			return $(elem).data(name, data);
+		};
+		window.dependencyLib = $;
+		return $;
+	}));

+ 2 - 2
js/inputmask.js

@@ -7,9 +7,9 @@
  */
  */
 (function(factory) {
 (function(factory) {
 		if (typeof define === "function" && define.amd) {
 		if (typeof define === "function" && define.amd) {
-			define(["./dependencyLib"], factory);
+			define(["inputmask.dependencyLib"], factory);
 		} else if (typeof exports === "object") {
 		} else if (typeof exports === "object") {
-			module.exports = factory(require("./dependencyLib"));
+			module.exports = factory(require("./inputmask.dependencyLib"));
 		} else {
 		} else {
 			factory(window.dependencyLib || jQuery);
 			factory(window.dependencyLib || jQuery);
 		}
 		}

+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
 {
   "name": "jquery.inputmask",
   "name": "jquery.inputmask",
-  "version": "3.2.1-85",
+  "version": "3.2.1-86",
   "description": "jquery.inputmask is a jquery plugin which create an input mask.",
   "description": "jquery.inputmask is a jquery plugin which create an input mask.",
   "main": "./dist/inputmask/jquery.inputmask.js",
   "main": "./dist/inputmask/jquery.inputmask.js",
   "files": [
   "files": [

+ 1 - 1
qunit/config.js

@@ -7,7 +7,7 @@ requirejs.config({
 		"zepto_event": "../node_modules/zepto-component/src/event",
 		"zepto_event": "../node_modules/zepto-component/src/event",
 		"zepto_data": "../node_modules/zepto-component/src/data",
 		"zepto_data": "../node_modules/zepto-component/src/data",
 		"qunit": "../node_modules/qunitjs/qunit/qunit",
 		"qunit": "../node_modules/qunitjs/qunit/qunit",
-		"dependencyLib": "../dist/inputmask/dependencyLib",
+		"inputmask.dependencyLib": "../dist/inputmask/inputmask.dependencyLib",
 		"inputmask": "../dist/inputmask/inputmask"
 		"inputmask": "../dist/inputmask/inputmask"
 	},
 	},
 	shim: {
 	shim: {