• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

IgniteUI / igniteui-webcomponents / 31471428483
100%

Build:
DEFAULT BRANCH: master
Ran 11 Aug 2026 08:04AM UTC
Jobs 1
Files 223
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

11 Aug 2026 08:01AM UTC coverage: 98.368% (-0.01%) from 98.381%
31471428483

push

github

web-flow
feat: undo/redo for the masked inputs (#2314)

igc-mask-input, igc-date-time-input and igc-date-range-input now handle the
standard shortcuts - Ctrl+Z / Cmd+Z to undo, Ctrl+Y and Ctrl+Shift+Z /
Cmd+Shift+Z to redo - plus the browser's own undo affordances (context menu,
trackpad gesture), which arrive as `historyUndo` / `historyRedo` on
`beforeinput` and are now intercepted rather than left to no-op.

Until now none of that worked. The masked text is rendered through `live()`,
so every keystroke reassigns the native input's value, and each reassignment
clears the browser's undo stack. There was nothing left to undo.

The replacement is a small MaskHistory holding two stacks of
`{ value, start, end }` snapshots taken before each edit. It has no timers: a
run coalesces purely from caret geometry, so consecutive typing collapses
into one step, as does a run of deletions, and a click or an arrow key breaks
the run - the same sequence of edits always produces the same sequence of
steps. Paste, drop, cut, IME composition, spinning a date part and
setRangeText are atomic and each get their own step.

It is self-invalidating rather than instrumented. A programmatic `value`, a
form reset or `clear()` is caught by comparing against the text the history
last observed, and a changed pattern by a signature callback, so no call site
has to announce those changes. The signature is the *source* mask plus the
prompt, not the escaped mask: the date parsers translate a date format into
mask flags, so `MM/dd/yyyy` and `dd/MM/yyyy` both escape to `00/00/0000`
while meaning entirely different things, and signing on the escaped form
would silently keep a stale history alive across an input-format change.

Restoring a step emits `igcInput`, so composite hosts and two-way bindings
follow the undo. For the date editors the restored text stays an uncommitted
draft and `igcChange` still fires on blur only when the committed value
actually moved, matching the behavior introduced ... (continued)

6673 of 6993 branches covered (95.42%)

Branch coverage included in aggregate %.

836 of 862 new or added lines in 11 files covered. (96.98%)

2 existing lines in 1 file now uncovered.

47337 of 47913 relevant lines covered (98.8%)

1794.42 hits per line

Uncovered Changes

Lines Coverage ∆ File
25
96.02
-3.3% src/components/common/mixins/mask-behavior.ts
1
96.22
1.41% src/components/date-range-picker/date-range-input.ts

Coverage Regressions

Lines Coverage ∆ File
2
98.6
-0.54% src/components/mask-input/mask-input.ts
Jobs
ID Job ID Ran Files Coverage
1 31471428483.1 11 Aug 2026 08:04AM UTC 223
98.37
GitHub Action Run
Source Files on build 31471428483
  • Tree
  • List 223
  • Changed 11
  • Source Changed 10
  • Coverage Changed 11
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #31471428483
  • fd18a632 on github
  • Prev Build on master (#31470122794)
  • Next Build on master (#31482255532)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc