Skip to content

Conversation

@mguellsegarra
Copy link
Member

Summary

  • Add MaskedDateInput component with DD/MM/YYYY mask
  • Add MaskedDateTimeInput component with DD/MM/YYYY HH:mm:ss mask
  • Add MaskedTimeInput component with HH:mm:ss mask

Closes gisce/webclient#2291

🤖 Generated with Claude Code

- Add MaskedDateInput component with DD/MM/YYYY mask
- Add MaskedDateTimeInput component with DD/MM/YYYY HH:mm:ss mask
- Add MaskedTimeInput component with HH:mm:ss mask

Features:
- Input masking with auto-insert separators (using imask)
- Autocomplete on Enter key and blur
- Escape key commits value and moves to next focusable element
- Clear value when input is empty
- Optional calendar/clock popup buttons for visual selection
- Required field styling
- Error tooltip for invalid values

Closes gisce/webclient#2291

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Marc Güell Segarra <mguellsegarra@users.noreply.github.com>
@mguellsegarra mguellsegarra marked this pull request as draft January 8, 2026 10:35
mguellsegarra and others added 13 commits January 8, 2026 11:46
- Add onDoubleClick handler to MaskedDateInput, MaskedDateTimeInput, and MaskedTimeInput
- Double-click now commits value (same as Enter key) per issue gisce/webclient#2291
- Update MaskedDateInput.stories.tsx with comprehensive keyboard behavior demo
- Add keyboard/mouse behavior documentation to component description

Closes gisce/webclient#2291

Co-authored-by: Marc Güell Segarra <mguellsegarra@users.noreply.github.com>
…ed icon style

- When pressing Enter/Escape/Double-click on an empty masked input,
  it now autocompletes to the current date/time instead of setting null
- Changed visual style from separate button to integrated suffix icon
  inside the input (matching antd's DatePicker style)
- Updated Storybook with "Enter on Empty" test case

Closes gisce/webclient#2291

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-authored-by: Marc Güell Segarra <mguellsegarra@users.noreply.github.com>
…-formiga-components into claude/masked-datetime-input
@mguellsegarra mguellsegarra marked this pull request as ready for review January 9, 2026 07:59
@mguellsegarra mguellsegarra merged commit 08fe60f into main Jan 13, 2026
1 check passed
@mguellsegarra mguellsegarra deleted the claude/masked-datetime-input branch January 13, 2026 12:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants