Releases: insin/inputmask-core
v2.2.0
v2.1.1
v2.1.0
Added mask.getRawValue() to get the user's raw input, without any non-editable placeholder characters. [muffinresearch]
Added customisation of the character used to fill in editable slots for which these is no input yet, by passing a single-character placeholderChar string as an option to the InputMask constructor. [muffinresearch]
v2.0.1
Fixed taking input for patterns with leading static parts when the cursor or entire selection is in the static part. [jordansexton]
v2.0.0
Added mask.undo() and mask.redo()
setPattern() now sets/resets the selection.
Breaking changes
setPattern() now takes an options Object for its second argument instead of a String for the new value. value and selection options may be given.
The given (or defaulted) selection object is now used as-is when setting initial selection. It used to be set via setSelection(), which moved it to the first editable index.
v1.2.0
Added customisation of format characters by passing a formatCharacters object as an option to the InputMask constructor.
Added the ability for format character definitions to transform valid input.
Changed letter format character to a
Added new format characters:
A- letter, which will be transformed to upper case#- alphanumeric, which will be transformed to upper case
v1.1.0
v1.0.0
Initial realease features:
- Fixed-width masking pattern
- Editable character placeholders:
1- numberA- letter*- alphanumeric
- Editing operations which are aware of cursor position/selection and update post-op cursor position:
- Single character input
- Pasting a string
- Backspacing