Open
Conversation
…e#6415) Add detailed implementation plan for adding millisecond granularity support to DateField and TimeField components. The plan covers: - Type definition updates for Granularity type - Core state management changes in useDateFieldState - Integration with Intl.DateTimeFormat's fractionalSecondDigits - Placeholder, accessibility, and documentation updates - Testing strategy This addresses the feature request in adobe#6415.
…nd TimeField This implements the feature request from issue adobe#6415 to add millisecond granularity support to DateField and TimeField components. Changes: - Add 'millisecond' to the Granularity type definition - Update getFormatOptions() to handle millisecond granularity using Intl.DateTimeFormat's fractionalSecondDigits option - Add 'millisecond' segment type with TYPE_MAPPING from 'fractionalSecond' - Update EDITABLE_SEGMENTS and PAGE_STEP to include millisecond (step of 100ms) - Implement getSegmentLimits(), addSegment(), and setSegment() for millisecond - Update processSegments() for RTL text direction handling with millisecond - Add three-dash placeholder ('–––') for millisecond field - Add 'millisecond' translations to all 34 locale files - Update useDateSegment to handle millisecond numeric input - Update useDisplayNames to fall back to polyfill for millisecond field - Update documentation to mention 'millisecond' granularity option - Add tests for millisecond granularity in TimeField and DatePicker Fixes: adobe#6415
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes
✅ Pull Request Checklist:
📝 Test Instructions:
🧢 Your Project: