IgniteUI / igniteui-webcomponents

Ignite UI for Web Components is a complete library of UI components, giving you the ability to build modern web applications using encapsulation and the concept of reusable components in a dependency-free approach.
https://www.infragistics.com/products/ignite-ui-web-components
Other
113 stars 2 forks source link

Date-Time-Input: support additional time input formats #1155

Open ddaribo opened 2 months ago

ddaribo commented 2 months ago

Add the following additional input formats for the Date-Time-Input. Related to this issue and changes from the igniteui-angular repo. Update the spec section about Custom input format.

Format Description
S Fractional seconds 1 digit, will be coerced with leading zero while editing.
SS Fractional seconds 2 digits, will be coerced with leading zero while editing.
SSS Fractional seconds 3 digits with explicitly set leading zero.
a AM/PM section for 12-hour format.
aa AM/PM section for 12-hour format.
aaa AM/PM section for 12-hour format.
aaaa AM/PM section for 12-hour format.
aaaaa a/p section for 12-hour format.

Note: if fractional seconds are to be supported for input, they also have to be supported for display, which isn't currently the case for the IgcDateTimeInput. This is different than the Angular feature, where the display format is handled by the Date Pipe and no additional handling is needed there in that regard.