Skip to content

Releases: parttio/textfieldformatter

4.1.1

17 Jan 13:11
Compare
Choose a tag to compare
  • Fixed an exception in CleaveExtension.remove(). Thanks Syam Pillai for the issue report and fix.

4.1.0

20 Dec 09:43
Compare
Choose a tag to compare

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

18 Dec 22:35
Compare
Choose a tag to compare
  • Fixed #22 Calling setValue for a TextField having any formatter did not apply the formatting
  • Bundling of phone number formatting did not quite work in 4.0 betas. Now only the all countries bundle is available.
new PhoneI18nFieldFormatter(PhoneI18nFieldFormatter.REGION_DE).extend(myTextField);

2.3.0 for Vaadin 8

03 Sep 19:44
Compare
Choose a tag to compare

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

01 Sep 05:45
Compare
Choose a tag to compare

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

29 Aug 13:08
Compare
Choose a tag to compare
Pre-release

New

  • #16 Formatting phone numbers. Use either PhoneI18nFieldFormatter for with all regions (resulting a larger client-side resource bundle) or individual regions with PhoneXXFieldFormatter classes.

Breaking changes since beta3

  • PhoneNumberFieldFormatter is renamed to AbstractPhoneNumberFieldFormatter and is an abstract class

4.0.0.beta3 for Vaadin 14

28 Aug 09:42
Compare
Choose a tag to compare
Pre-release
  • #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

22 Aug 14:07
Compare
Choose a tag to compare
Pre-release

Updated for Vaadin 14.0.

Known limitations:

  • Credit card change event missing #17
  • Phone number formatting missing #16

4.0.0.beta1

25 May 21:20
Compare
Choose a tag to compare
4.0.0.beta1 Pre-release
Pre-release

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

24 Mar 17:11
Compare
Choose a tag to compare
3.0.alpha1 Pre-release
Pre-release

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