Skip to content

Releases: parttio/textfieldformatter

23.3.0

25 Aug 14:34
Compare
Choose a tag to compare
  • Updated dependencies to Vaadin 23
  • Add workaround for unguarenteed order of JsModule loading
  • Fix client-server value synchronization issues
  • Add Java API to obtain Cleave raw value

5.4.0

19 Feb 21:53
Compare
Choose a tag to compare

Fixes since 5.3.0

Huge thanks to @roastedcpu for their contribution!

5.3.0

29 Nov 17:37
Compare
Choose a tag to compare

Fixes since 5.2.0

  • Fix for caret jump issue #26 . Thank you @paodb

5.2.0

23 Oct 14:21
Compare
Choose a tag to compare

Fixes since 5.1.0

  • Fixes some broken input cases after Vaadin TextField updates in Vaadin 14
  • Fixes #32

Known issues
⚠️ Calling setValue for TextField does not cause formatting

5.2.0.pre

10 Aug 11:18
Compare
Choose a tag to compare
5.2.0.pre Pre-release
Pre-release

Fixes the user input formatting broken since Vaadin 14.2.2 (Vaadin TextField 2.1.2)

⚠️ Calling setValue for TextField does not work

5.1.0

08 Jun 07:08
Compare
Choose a tag to compare

Added delimiterLazyShow

You can set the delimiter to be shown only after the user starts typing the first character in the next character group. By default, the delimiter is shown immediately when the last character in the current group is typed.

new CustomStringBlockFormatter.Builder()
  .blocks(1,2)
  .delimiters("-")
  .delimiterLazyShow()
  .build();

5.0.1

05 Jun 21:23
Compare
Choose a tag to compare

Fixed #28 - CustomStringBlockFormatter delimiters configuration

5.0.0

29 May 08:10
Compare
Choose a tag to compare

ℹ️ Copying to clipboard now preserves formatting

This is a behavior change from earlier versions. If you still want the copy-to-clipboard to have the unformatted raw value, please open an issue and I can add the configuration option.

Numeral formatter supports having a postfix/suffix

Here the API from Cleave.js leaks more than usual. You add a prefix and define it as a 'tailprefix'.

/**
 * Sets the prefix with possibility to add it to tail as postix/suffix with
 * addAsPostfix true.
 * 
 * @param value        the prefix
 * @param addAsPostfix true if the prefix should be shown as postfix/suffix
 *                     (after the numeral).
 */
new NumeralFieldFormatter.Builder().prefix("€", true);

4.2.0 for Vaadin 14

28 Feb 15:25
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);

4.1.4

12 Feb 21:49
Compare
Choose a tag to compare

Remove flow-build-info.json from the release artifact