Releases: ghiscoding/angular-validation
Rename errorMessageVisible flag to isErrorMessageVisible.
v1.5.15 Rename errorMessageVisible to isErrorMessageVisible
Merge to add errorMessageVisible in updateErrorMsg
Merged code to add errorMessageVisible in updateErrorMsg. Thanks to @Gusi
Basically, it had a boolean flag of ctrl.errorMessageVisible that is available on the element being validated.
issue #139 isValidationCancelled tweak
Make sure the element or form element exist before calling isValidationCancelled on that same element.
Fix a small issue introduced by last commit
Angular Form overwritten with simple object in some rare occasions
Fix checkFormValidity with formName argument
CheckFormValidity was not working in all cases, there was a problem inside the function getElementParentForm( ) which was returning null very often. This is due to the fact that myInputElement.form only works with input element and so if user had validation on let say a <div> or any other Angular element that isn't an input then the getElementParentForm( ) was returning null which was in turn making the checkFormValidity($scope.formName) and $validationSummary not working correctly.
Quick fix for UI Router on issue #137
I had a Global Option named resetGlobalOptionsOnRouteChange that was only working with Angular Router with a watch on $routeChangeStart. This was obviously not working with UI Router, so I added a second watch on $stateChangeStart to fix a found issue with UI Router. This will hopefully address the issue #137
Bump version for: Updated main entry at package.json to work with WebPack
Forgot to bump version after the merge
Updated main entry at package.json to work with WebPack
Thanks @Gusi for fixing the package.json
Add Dutch and Romanian #134
Thanks @ jdriesen for providing the following 2 new locales: Dutch and Romanian
Full validation on Dates (including leap year and calendar date validation)
- Prior to this change, all Date validators had basic tests on them and it wasn't validating leap year (now it does).
- Now it does check for leap year and also requires to be a valid calendar date
- Thanks @jdriesen for providing proper date regex for Euro, I then adapted them for US and found ISO later.
- NOTE: I deprecated the use of any
shortdates (that is year with 2 digits, date_euro_short, date_us_short) because I spent too much time trying to adapt regex I found. If someone can fix them, please make a PR