Skip to content

Commit 69d5f7a

Browse files
committedNov 6, 2013
adding new structure and minified jquery 10.2 version
1 parent b8c635c commit 69d5f7a

File tree

10 files changed

+9693
-9561
lines changed

10 files changed

+9693
-9561
lines changed
 

‎AUTHORS

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fábio M. Costa (http://github.com/fabiomcosta)

‎CHANGELOG

Whitespace-only changes.

‎CONTRIBUTING.md

Whitespace-only changes.

‎Gruntfile.js

+19-7
Original file line numberDiff line numberDiff line change
@@ -3,26 +3,38 @@
33
module.exports = function(grunt) {
44
// Project configuration.
55
grunt.initConfig({
6-
pkg: grunt.file.readJSON('meiomask.jquery.json'),
6+
pkg: grunt.file.readJSON('meiomask.json'),
77
concat: {
88
build: {
99
src: ['src/<%= pkg.name %>.js'],
10-
dest: '<%= pkg.name %>.js'
10+
dest: 'dist/<%= pkg.name %>.js'
1111
}
1212
},
1313
uglify: {
1414
build: {
15-
src: '<%= pkg.name %>.js',
16-
dest: '<%= pkg.name %>.min.js'
15+
src: 'dist/<%= pkg.name %>.js',
16+
dest: 'dist/<%= pkg.name %>.min.js'
17+
}
18+
},
19+
jasmine: {
20+
pivotal: {
21+
src: ['src/<%= pkg.name %>.js', 'spec/'],
22+
options: {
23+
specs: 'spec/*_spec.js',
24+
helpers: 'spec/javascripts/helpers/*.js'
25+
}
1726
}
1827
}
1928
});
2029

2130
// Loaded Plugins
2231
grunt.loadNpmTasks('grunt-contrib-concat');
2332
grunt.loadNpmTasks('grunt-contrib-uglify');
24-
//grunt.loadNpmTasks('grunt-contrib-jasmine');
33+
grunt.loadNpmTasks('grunt-contrib-jasmine');
34+
35+
// Build Task(s)
36+
grunt.registerTask('build', ['concat', 'uglify']);
2537

26-
// Default Task(s)
27-
grunt.registerTask('default', ['concat', 'uglify'])
38+
// Test Task(s)
39+
grunt.registerTask('test', ['']);
2840
};

‎LICENCE-MIT

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
Copyright (c) 2008-2013 Fábio M. Costa fabiomcosta@gmail.com, and contributors
2+
3+
Permission is hereby granted, free of charge, to any person
4+
obtaining a copy of this software and associated documentation
5+
files (the "Software"), to deal in the Software without
6+
restriction, including without limitation the rights to use,
7+
copy, modify, merge, publish, distribute, sublicense, and/or sell
8+
copies of the Software, and to permit persons to whom the
9+
Software is furnished to do so, subject to the following
10+
conditions:
11+
12+
The above copyright notice and this permission notice shall be
13+
included in all copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
17+
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
19+
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
20+
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
22+
OTHER DEALINGS IN THE SOFTWARE.

‎docs/todo.txt

+73
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
TODO FEATURES:
2+
3+
1.1.1 Bugs:
4+
* defaultValue is not set and should be, on initialization, so the reset button works properly; OK!
5+
* Next form element should be visible. (offsetWidth and height > 0);
6+
* âêô are not in the @ rule; OK!
7+
* set the size of the input, as an option. OK!
8+
9+
10+
* allow a default value to be at the input if you try to delete everything; OK!
11+
* a callback should be called when you input something that is incorrect, something is correct and the mask is full; OK!
12+
* make a function that will mask a string just like it does with the inputs; OK!
13+
* allow the setMask function to be used as setMask({mask:"3213",type:"reverse"}) and stuff. OK!
14+
* the value from the input will be masked at the time it's applied; OK!
15+
* allow negative numbers to be written on number masks. OK
16+
* iphone support -- OK, TESTAR NOVAMENTE
17+
* set the signal at the default value, not at a new option. Will be easier to setup and when you need a number with signal you'll always
18+
need a default value, althoug you could have '-' as the input value... it would look weird. OK
19+
20+
* FIX: 'phone-us' mask is now '(999) 999-9999';
21+
* CHANGE: change the 'infinite' mask name to 'repeat'; OK!
22+
* NEW: let 'repeat' have a maxLength; OK!
23+
* NEW: auto-tab focus form element from next form; OK! cool!
24+
* NEW: allow auto-tab, to focus the next form element when the input is completely filled; OK!
25+
* NEW: let the next input to be focused by auto-tab be selectable by a css selector; OK!
26+
* DEPRECATE: deprecated unmaskedVal. This function is too buggy... works for most cases but not all. The best way to do it is by doing it yourself. OK
27+
* FIX: fire the change event on reverse mask; OK
28+
* NEW: let masks have they're own fixedChars option, to give more flexibility; OK
29+
* fix usability bug that prevent correct character from being inputted;
30+
31+
32+
Changelog:
33+
34+
<h3>Changelog</h3>
35+
v1.1
36+
<ul>
37+
<li>Mask type 'infinite' is now called 'repeat' (using 'infinite' still works but it is deprecated). It now allows a maxLenght value to be set. MaxLength can be setted by the maxLength attribute or the maxLength option;</li>
38+
<li>You can easily set an auto-tab option that will focus the next form element when the masked input is totaly filled. It is true by default but you can put a jQuery selector string to match the next element you want to be focused.</li>
39+
<li>Deprecated 'unmaskVal' function. This function is too buggy... works for most cases but not all. The best way to unmask a value is by doing it yourself;</li>
40+
<li>'phone-us' mask is now '(999) 999-9999';</li>
41+
<li>Correctly fires the onChange event on reverse masked inputs.</li>
42+
</ul>
43+
v1.0.4
44+
<ul>
45+
<li>New mask type 'infinite', it allows infinite values at masks. See demos for a better understanding;</li>
46+
<li>Added new function 'unmaskVal' that returns the input value without the mask. See demos for a better understanding;</li>
47+
<li>Removed a serious bug at IE that was fixing the caret at the end of the input;</li>
48+
</ul>
49+
V1.0.3
50+
<ul>
51+
<li>Callback functions now receive the char number as it second parameter, so it is possible to detect exactly which key has been pressed;</li>
52+
<li>added the signed masks. It only works with the reverse mask. See demos for more details;</li>
53+
<li>iPhone support improved. iPhone now works 100% better than the 1.0.2 version. I'ts logic have been changed, and now it's working with full features. :P</li>
54+
</ul>
55+
v1.0.2
56+
<ul>
57+
<li>added input callbacks: onInvalid, onValid and onOverflow;</li>
58+
<li>added support for default values;</li>
59+
<li>can now be used like $().setMask({});</li>
60+
<li>added the function $.mask.string(string,mask) that will mask a string (see demos);</li>
61+
<li>now the value of the input is masked at the time the mask is applyed to it.</li>
62+
</ul>
63+
v1.0.1
64+
<ul>
65+
<li>added support for iphone;</li>
66+
<li>removed a bug where a fixed char would be replaced by an inputed one.</li>
67+
</ul>
68+
v1.0
69+
<ul>
70+
<li>initial release.</li>
71+
</ul>
72+
73+
http://www.meiocodigo.com/2008/09/29/meiomask-jquery-form-mask-input-plugin/,http://www.meiocodigo.com/2008/09/29/meiomask-101-version-released/,http://www.meiocodigo.com/2008/09/20/meiomask-a-jquery-plugin-for-masking-inputs/

0 commit comments

Comments
 (0)