-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(input-time-picker): support fractional seconds (#7532)
**Related Issue:** #6591 ## Summary This PR adds initial support for fractional seconds in `input-time-picker` and `time-picker` components. Both `input-time-picker` and `time-picker` officially support fractional step values from `.001` to `.9`. --------- Co-authored-by: Erik Harper <eriklharper@pm.me>
- Loading branch information
1 parent
f413b61
commit c2bf34b
Showing
15 changed files
with
912 additions
and
144 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
8 changes: 1 addition & 7 deletions
8
packages/calcite-components/src/components/input-time-picker/usage/Basic.md
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,3 @@ | ||
```html | ||
<calcite-input-time-picker | ||
hour-display-format="12" | ||
name="light" | ||
scale="m" | ||
step="1" | ||
value="12:21" | ||
></calcite-input-time-picker> | ||
<calcite-input-time-picker name="light" scale="m" step="1" value="12:21:30"></calcite-input-time-picker> | ||
``` |
3 changes: 3 additions & 0 deletions
3
...calcite-components/src/components/input-time-picker/usage/Fractional-seconds.md
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
```html | ||
<calcite-input-time-picker name="light" scale="m" step=".001" value="12:21:30.045"></calcite-input-time-picker> | ||
``` |
3 changes: 3 additions & 0 deletions
3
packages/calcite-components/src/components/time-picker/assets/time-picker/t9n/messages.json
This file contains 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
3 changes: 3 additions & 0 deletions
3
...ges/calcite-components/src/components/time-picker/assets/time-picker/t9n/messages_en.json
This file contains 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
This file contains 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
Oops, something went wrong.