Skip to content

Latest commit

 

History

History
64 lines (34 loc) · 1.89 KB

CHANGELOG.md

File metadata and controls

64 lines (34 loc) · 1.89 KB

Changelog

6.0.0

Removed:

  • Mask::apply(), the autocomplete flag

This flag is now a part of the CaretGravity.FORWARD.

Modified:

  • CaretGravity is now a sealed class

Added:

  • CaretGravity.FORWARD, the autocomplete flag
  • CaretGravity.BACKWARD, the autoskip flag

5.0.0

Removed:

  • CaretStringIterator::beforeCaret()

This method is now replaced with ::insertionAffectsCaret() and ::deletionAffectsCaret() calls.

Added:

  • CaretString instances now contain caret gravity.

Caret gravity affects caret movement when Mask adds characters precisely at the caret position during formatting. It is important to retain caret position after text deletion/backspacing.

Default CaretGravity is .FORWARD. Set caret gravity to .BACKWARD only when user hits backspace.

  • CaretStringIterator::insertionAffectsCaret() and CaretStringIterator::deletionAffectsCaret()

These methods allow to incorporate new caret gravity setting.

  • Right-to-left masks.

4.3.0

Added:

  • AffinityCalculationStrategy.EXTRACTED_VALUE_CAPACITY option allowing to have radically different mask format depending on the extracted value length

4.2.0

Added:

  • AffinityCalculationStrategy.CAPACITY affinity calculation option allowing to have radically different mask format depending on the input length

4.1.0

Added:

  • formattedText to MaskedTextChangedListener.ValueListener::onTextChanged
  • Mask::isValid(format:customNotations:) method for format checks

Fixed:

  • Optional blocks of symbols are now ignored when extracted value completeness is calculated, see #70