Commit Graph

35 Commits

Author SHA1 Message Date
Nathan Pitman
9319bd0b03 Update jquery.validation bindings and tests. Changes include:
* Relaxed $.validator.format so that the arguments don't have to be strings. Added overloads, so that if called with just a template and no arguments, it returns a curried function, as per http://jqueryvalidation.org/category/validator/. $.format might need changing (?) but I haven't touched it as it's deprecated anyway. Added tests.
* Place everything inside a JQueryValidation module to avoid cluttering the global namespace
* Split Validator into Validator and ValidatorStatic interfaces for correctness. Subdivide tests accordingly.
* Change rules to be typed as a RulesDictionary rather than an Object.
* Change ValidationOptions.groups to be { [groupName: string]: string } rather than Object.
* Change ValidationOptions.onclick, onfocusout and onkeyup from bool | Function to ShouldValidatePredicate, an alias for boolean | ((element: HTMLElement, event: JQueryEventObject) => void). Added more tests
2015-07-02 23:03:43 +12:00
Grégoire Castre
fa765633b5 Add missing methods and properties 2015-03-18 14:26:13 +01:00
Louis-Philippe Perras
e8a6d12dc7 Updated the tests test JQuery param.
Added a new test to validate that the element union now accepts JQuery object.
2015-02-04 18:09:38 -05:00
Louis-Philippe Perras
d34679d362 Allowed JQuery object to the element Validator. 2015-02-04 18:08:11 -05:00
johnnyreilly
e89af75d2c jQuery.Validation is union typed 2015-01-18 07:14:04 +00:00
Maks3w
e07da8a6fa [jquery.validation][1.11.1] invalidElements and validElements methods 2014-11-09 12:09:26 +01:00
Mohamed Hegazy
2aaa293cb1 Remove quotes from response files 2014-09-02 14:53:39 -07:00
Bart van der Schoor
1d345f6c14 cleaned-up headers 2014-06-18 23:31:11 +02:00
Martin D.
3f402aa458 Project URL updated 2014-06-06 13:20:28 -04:00
John Reilly
e984ccc6e3 jQuery-validate: interface JSDoc 2014-03-21 08:59:20 +00:00
John Reilly
c765fad27f jQuery-validate: fix up 2014-03-21 08:50:24 +00:00
John Reilly
6a22fbb286 jQuery-validate 2014-03-20 17:17:16 +00:00
John Reilly
21092d44c8 Merge pull request #1884 from johnnyreilly/master
jQuery.validation:started JSDoc for jQuery val
2014-03-20 14:19:11 +00:00
John Reilly
1485111fcf jQuery.validation:started JSDoc for jQuery val 2014-03-20 14:10:17 +00:00
Louis-Philippe Perras
90779813c5 Changed the any[] to be any
http://jqueryvalidation.org/jQuery.validator.addMethod#jQuery-validator-addMethod-name-method-message
2014-02-24 16:39:27 -05:00
Louis-Philippe Perras
7fa3c07750 addMethod params arguments vs array syntax
jQUery Validation does not send arguments but an array of the argument already built. By using the ... syntax of TypeScript, we get an array with one item that has the array sent by jQuery validation. I think the definition should use an array instead of arguments syntax.
2014-02-24 10:06:55 -05:00
John Reilly
da1982687c jQuery.validation: Gave definition to errorMap 2014-01-02 15:49:20 +00:00
Igor Oleinikov
49ddab3a0b Merge remote-tracking branch 'remotes/upstream/switch-0.9.5' into switch-0.9.5
Conflicts:
	jquery/jquery-tests.ts
	q/Q-tests.ts
	q/Q.d.ts
2013-12-23 15:40:56 +04:00
johnnyreilly
15e43db83a jQuery.validation: Fix tests 2013-12-23 10:17:28 +00:00
Igor Oleinikov
d33450a368 jquery.validation: fix test 2013-12-18 20:36:55 +04:00
John Reilly
6e0a06f02f Tightened up ValidationOptions
Using a combination of the source code and the documentation at
http://jqueryvalidation.org/validate/ I've tightened up the
ValidationOptions.  NB success remains as any because (AFAIK) it's not
possible to model alternate overloads in an interface with TypeScript (
https://typescript.codeplex.com/workitem/1893 ).
2013-11-15 11:57:53 +00:00
vvakame
34899afaae Merge commit '2772dfeec9cdb1744f6c010babef9e40b6770dd7' into plan-of-destroy-implicitAny 2013-10-18 12:41:53 +09:00
John Reilly
6b8d398be9 Added errorList / errorMap properties and valid / size / hideErrors functions with associated tests 2013-10-10 17:02:39 +01:00
vvakame
2708bc05cd Fixed tsc failed on Node.js v0.8.25 2013-10-03 11:23:38 +09:00
vvakame
3fe1f6bc4e Fixed to CI test passing 2013-10-03 10:18:58 +09:00
Stijn Herreman
4a18b68ad5 Add 'settings' property to expose the ValidationOptions. 2013-09-27 12:02:52 +02:00
Stijn Herreman
ba2f43d980 Up the version number. 2013-09-27 11:21:46 +02:00
Stijn Herreman
861a5b2a4d Sort interface members, so it's easier to find one. 2013-09-27 11:17:58 +02:00
Boris Yankov
dd35f69637 Big replacement: bool with boolean 2013-08-07 16:59:39 +03:00
Diullei Gomes
0ea971ff59 fix jquery.form tests 2013-02-24 13:31:08 -03:00
Boris Yankov
209d95071a Update reference paths 2013-01-17 20:03:30 +02:00
Boris Yankov
c98eebb137 Rename all definition files, remove versions 2013-01-17 17:17:27 +02:00
Natan Vivo
c7d2934d6d Update project references to use jQuery 1.9 instead of missing 1.8 file. 2013-01-17 12:05:06 -02:00
Boris Yankov
7c82efb17a Update reference paths 2012-11-19 01:28:08 +02:00
Boris Yankov
c91c45f9ae Move definitions and test in separate folders
This enables each definition to have a readme if necessary.
Also a .json metadata file to help with package managers.
And last, to have different versions of the definitions.
2012-11-18 22:28:44 +02:00