Browse Source

jquery.inputmask 3.1.26

Robin Herbots 11 years ago
parent
commit
bdfebaa7d4

+ 13 - 13
Gruntfile.js

@@ -9,28 +9,28 @@ module.exports = function (grunt) {
             '*/\n';
             '*/\n';
     }
     }
 
 
-    function createUglifyConfig(path) {
-        var uglifyConfig = {};
+    function createConcatConfig(path) {
+        var concatConfig = {};
         var srcFiles = grunt.file.expand(path + "/*.js");
         var srcFiles = grunt.file.expand(path + "/*.js");
         for (var srcNdx in srcFiles) {
         for (var srcNdx in srcFiles) {
             var dstFile = srcFiles[srcNdx].replace("js/", "");
             var dstFile = srcFiles[srcNdx].replace("js/", "");
             wrapAMDLoader(srcFiles[srcNdx], "build/" + dstFile, dstFile.indexOf("extension") == -1 ? ["jquery"] : ["jquery", "./jquery.inputmask"]);
             wrapAMDLoader(srcFiles[srcNdx], "build/" + dstFile, dstFile.indexOf("extension") == -1 ? ["jquery"] : ["jquery", "./jquery.inputmask"]);
-            uglifyConfig[dstFile] = {
+            concatConfig[dstFile] = {
                 dest: 'dist/inputmask/' + dstFile,
                 dest: 'dist/inputmask/' + dstFile,
                 src: "build/" + dstFile,
                 src: "build/" + dstFile,
-                options: { banner: createBanner(dstFile) }
+                options: { banner: createBanner(dstFile), stripBanners: true, }
             };
             };
         }
         }
 
 
         srcFiles = grunt.file.expand(path + "/*.extensions.js");
         srcFiles = grunt.file.expand(path + "/*.extensions.js");
         srcFiles.splice(0, 0, "js/jquery.inputmask.js");
         srcFiles.splice(0, 0, "js/jquery.inputmask.js");
-        uglifyConfig["inputmaskbundle"] = {
+        concatConfig["inputmaskbundle"] = {
             files: {
             files: {
                 'dist/<%= pkg.name %>.bundle.js': srcFiles
                 'dist/<%= pkg.name %>.bundle.js': srcFiles
             },
             },
-            options: { banner: createBanner('<%= pkg.name %>.bundle') }
+            options: { banner: createBanner('<%= pkg.name %>.bundle'), stripBanners: true, }
         }
         }
-        return uglifyConfig;
+        return concatConfig;
     }
     }
     function wrapAMDLoader(src, dst, dependencies) {
     function wrapAMDLoader(src, dst, dependencies) {
         function stripClosureExecution() {
         function stripClosureExecution() {
@@ -50,7 +50,7 @@ module.exports = function (grunt) {
     // Project configuration.
     // Project configuration.
     grunt.initConfig({
     grunt.initConfig({
         pkg: grunt.file.readJSON('package.json'),
         pkg: grunt.file.readJSON('package.json'),
-        uglify: createUglifyConfig("js"),
+        concat: createConcatConfig("js"),
         clean: ["dist"],
         clean: ["dist"],
         qunit: {
         qunit: {
             files: ['qunit/qunit.html']
             files: ['qunit/qunit.html']
@@ -98,7 +98,7 @@ module.exports = function (grunt) {
     });
     });
 
 
     // Load the plugin that provides the tasks.
     // Load the plugin that provides the tasks.
-    grunt.loadNpmTasks('grunt-contrib-uglify');
+    grunt.loadNpmTasks('grunt-contrib-concat');
     grunt.loadNpmTasks('grunt-contrib-clean');
     grunt.loadNpmTasks('grunt-contrib-clean');
     grunt.loadNpmTasks('grunt-contrib-qunit');
     grunt.loadNpmTasks('grunt-contrib-qunit');
     grunt.loadNpmTasks('grunt-bump');
     grunt.loadNpmTasks('grunt-bump');
@@ -106,11 +106,11 @@ module.exports = function (grunt) {
     grunt.loadNpmTasks('grunt-nuget');
     grunt.loadNpmTasks('grunt-nuget');
     grunt.loadNpmTasks('grunt-shell');
     grunt.loadNpmTasks('grunt-shell');
 
 
-    grunt.registerTask('publish:patch', ['clean', 'bump:patch', 'uglify', 'shell:gitcommitchanges', 'release', 'nugetpack', 'nugetpush']);
-    grunt.registerTask('publish:minor', ['clean', 'bump:minor', 'uglify', 'shell:gitcommitchanges', 'release', 'nugetpack', 'nugetpush']);
-    grunt.registerTask('publish:major', ['clean', 'bump:major', 'uglify', 'shell:gitcommitchanges', 'release', 'nugetpack', 'nugetpush']);
+    grunt.registerTask('publish:patch', ['clean', 'bump:patch', 'concat', 'shell:gitcommitchanges', 'release', 'nugetpack', 'nugetpush']);
+    grunt.registerTask('publish:minor', ['clean', 'bump:minor', 'concat', 'shell:gitcommitchanges', 'release', 'nugetpack', 'nugetpush']);
+    grunt.registerTask('publish:major', ['clean', 'bump:major', 'concat', 'shell:gitcommitchanges', 'release', 'nugetpack', 'nugetpush']);
 
 
     // Default task(s).
     // Default task(s).
-    grunt.registerTask('default', ['clean', 'uglify']);
+    grunt.registerTask('default', ['clean', 'concat']);
 
 
 };
 };

+ 1 - 1
bower.json

@@ -1,6 +1,6 @@
 {
 {
   "name": "jquery.inputmask",
   "name": "jquery.inputmask",
-  "version": "3.1.25",
+  "version": "3.1.26",
   "main": [
   "main": [
     "./dist/inputmask/jquery.inputmask.js",
     "./dist/inputmask/jquery.inputmask.js",
     "./dist/inputmask/jquery.inputmask.extensions.js",
     "./dist/inputmask/jquery.inputmask.extensions.js",

File diff suppressed because it is too large
+ 491 - 2
dist/inputmask/jquery.inputmask.date.extensions.js


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


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


File diff suppressed because it is too large
+ 295 - 2
dist/inputmask/jquery.inputmask.numeric.extensions.js


File diff suppressed because it is too large
+ 62 - 2
dist/inputmask/jquery.inputmask.phone.extensions.js


File diff suppressed because it is too large
+ 189 - 2
dist/inputmask/jquery.inputmask.regex.extensions.js


File diff suppressed because it is too large
+ 3125 - 3
dist/jquery.inputmask.bundle.js


+ 1 - 1
jquery.inputmask.jquery.json

@@ -8,7 +8,7 @@
 		"inputmask",
 		"inputmask",
 		"mask"
 		"mask"
     ],
     ],
-    "version": "3.1.25",
+    "version": "3.1.26",
     "author": {
     "author": {
         "name": "Robin Herbots",
         "name": "Robin Herbots",
         "url": "http://github.com/RobinHerbots/jquery.inputmask"
         "url": "http://github.com/RobinHerbots/jquery.inputmask"

+ 4 - 3
js/jquery.inputmask.numeric.extensions.js

@@ -35,7 +35,7 @@ Optional extensions on the jquery.inputmask base
                 }
                 }
 
 
                 opts.definitions[";"] = opts.definitions["~"]; //clone integer def for decimals
                 opts.definitions[";"] = opts.definitions["~"]; //clone integer def for decimals
-				
+
                 var mask = opts.prefix;
                 var mask = opts.prefix;
                 mask += "[+]";
                 mask += "[+]";
                 mask += "~{1," + opts.integerDigits + "}";
                 mask += "~{1," + opts.integerDigits + "}";
@@ -208,7 +208,8 @@ Optional extensions on the jquery.inputmask base
                         return new RegExp(signed).test(chrs);
                         return new RegExp(signed).test(chrs);
                     },
                     },
                     cardinality: 1,
                     cardinality: 1,
-                    prevalidator: null
+                    prevalidator: null,
+                    placeholder: ''
                 },
                 },
                 ':': {
                 ':': {
                     validator: function (chrs, maskset, pos, strict, opts) {
                     validator: function (chrs, maskset, pos, strict, opts) {
@@ -224,7 +225,7 @@ Optional extensions on the jquery.inputmask base
                     },
                     },
                     cardinality: 1,
                     cardinality: 1,
                     prevalidator: null,
                     prevalidator: null,
-                    placeholder: function(opts) { return opts.radixPoint; }
+                    placeholder: function (opts) { return opts.radixPoint; }
                 }
                 }
             },
             },
             insertMode: true,
             insertMode: true,