Releases: parttio/textfieldformatter
Releases · parttio/textfieldformatter
4.1.1
- Fixed an exception in CleaveExtension.remove(). Thanks Syam Pillai for the issue report and fix.
4.1.0
Improved NumeralFieldFormatter
- NumeralFieldFormatter.Builder added for more flexible creation of the formatter
- A prefix can be set e.g. $
- Thousands grouping: Wan (Chinese), Lakh (Indian), Thousands, and no grouping at all
- Leading zeroes can be left without stripping
- The negative sign can be set to be shown before or after the prefix
4.0.1
2.3.0 for Vaadin 8
DateFieldFormatter
Formats dates according to the given pattern, delimiter, maximum and minimum value.
TextField myDateField = new TextField();
new DateFieldFormatter.Builder()
.datePattern("yyyyMMdd")
.delimiter("-")
.dateMin(LocalDate.of(1900, 01, 01))
.dateMax(LocalDate.of(2019, 9, 3))
.build().extend(myDateField);
// or
TextField myDateField = new TextField();
new DateFieldFormatter("yyyyMMdd", "-", LocalDate.of(1900, 01, 01), LocalDate.of(2019, 9, 3)).extend(myDateField);
2.2.0 for Vaadin 8
Updated Cleave.js to 1.5.3
Improved NumeralFieldFormatter
- NumeralFieldFormatter.Builder added for more flexible creation of the formatter
- A prefix can be set e.g. $
- Thousands grouping: Wan (Chinese), Lakh (Indian), Thousands, and no grouping at all
- Leading zeroes can be left without stripping
- The negative sign can be set to be shown before or after the prefix
4.0.0.beta4 for Vaadin 14
New
- #16 Formatting phone numbers. Use either
PhoneI18nFieldFormatter
for with all regions (resulting a larger client-side resource bundle) or individual regions withPhoneXXFieldFormatter
classes.
Breaking changes since beta3
PhoneNumberFieldFormatter
is renamed toAbstractPhoneNumberFieldFormatter
and is an abstract class
4.0.0.beta3 for Vaadin 14
- #17 - Credit card changed event is now available on server-side API for CreditCardFieldFormatter
- Fixed problematic JAR packaging in beta2, which included Vaadin build info files
4.0.0.beta2 for Vaadin 14
4.0.0.beta1
Supports Vaadin 14 with npm
- 4.x is for Vaadin 14 npm
- 3.x is for Vaadin 13 (and 14 in bowerMode)
- 2.x is for Vaadin 8.x
Known limitations
- Phone number formatting is not yet supported
- Credit card change event not available yet
- Credit card field does not get credit card field HTML attributes
3.0.alpha1
Supports Vaadin 13
The add-on moves now to Vaadin 13.
- 3.x is for Vaadin 13 (and later)
- 2.x is for Vaadin 8.x
Known limitations
- Phone number formatting is not yet supported
- Credit card change event not available yet
- Credit card field does not get credit card field HTML attributes