Releases: sagrawal31/bootstrap-angular-validation
Releases · sagrawal31/bootstrap-angular-validation
Preference to [bs-form-group], option to suppress warnings & unique error containers
Improvements
- Giving preference to
[bs-form-group]
selector over.form-group
to support other template design #29 - Uniquely searching the error container based on the
id
attribute of the input element to be able to show errors for every input element grouped in a single form-group element - Converted two error messages to warnings to avoid noise in Google analytics
- Added an option to suppress those warnings
Code diff: v1.0.6...v1.0.7
Ability to distinguish between different types of errors
New Feature
- Ability to distinguish between different types of errors #21
Code diff: v1.0.5-1...v1.0.6
Added minified files for bower
v1.0.5-1 Version 1.0.5-1
Added support for adding filters for messages
New Feature
- Added message filter support. Thanks to @ShaneYu for the contribution.
Code diff: v1.0.4...v1.0.5
Option to disable form validation and optional flag to mark form pristine after submit
Fixes & Improvements
- Adding the flag
bs-no-validation
onform
will disable the bootstrap angular validation on the form and fallback to HTML5 validation (if present) - Adding a flag
bs-pristine-on-submit
onform
will change the form's state to pristine instead of submitted and will hide all the validations. This is helpful when a form is used multiple times (without page change) and we want to hide the validation after each successful submission.
Code diff: v1.0.3-1...v1.0.4
Removing success class in error validation
Fixes
- Success class was never removed if validation fails after successful validation
Code diff: v1.0.3...v1.0.3-1
Fixing error when there is no parent form
Option to define trigger on elements, option to disable validation state and other fixes
New Features
- Added option to define trigger state for displaying validation state using
bs-trigger
attribute - Added option to disable displaying validation state on input elements & parent form elements using
bs-no-validation
directive
Improvements
- Using cleaner approach to automagically add validation directive on input elements
Breaking Change
- If you are using
bootstrap-angular-validation-interceptor.min.js
file then that file is no longer needed. (Just remove it and no replacement is needed) - The above said improvement will enable displaying validation state to all input elements with
ng-model
directive unless thebs-no-validation
attribute is present
Fixes
- Properly triggering validation state change on change of ngModel errors
- Fixed adjusting tooltip arrow
Code diff: v1.0.1...v1.0.2
Globally customisable error messages and fixed removing tooltip error messages on page change
New Features
- Option to globally customize default error message #10
Bug fixes
- Removing tooltip based error messages (if append to body set to true) on page change.
Code diff: v1.0.0...v1.0.1
Various configuration options, tooltip message display, single field validation, broken down to different files
Welcome to the big release. This release contains various new features, performance improvements, and bug fixes along with the detailed documentation to make this module more flexible and easy to use.
Checkout below points to see what's new.
New Feature
bs-validation
directive can now be worked on individual elements without the parent form.- Customization options for when to display the validation state:
blur
(default),submit
&display
- Option to display validation error messages as tooltip (requires ui-bootstrap's $uibPosition service)
- Various global customization option for validation states
Enhancements
- The minified files are broken down to separate files to include them as needed (also one single file including all code)
- Only registering helper prototype methods either if there is no default implementation or jQuery is not available
- Merged
findAll()
&findOne()
DOM methods tofind()
.
Code diff: v0.0.6...v1.0.0