Esri / calcite-design-system

A monorepo containing the packages for Esri's Calcite Design System
https://developers.arcgis.com/calcite-design-system/
Other
270 stars 75 forks source link

Add min/max to input time picker (like date picker) #8065

Closed JonUihlein closed 1 week ago

JonUihlein commented 8 months ago

Check existing issues

Description

Add min and max properties to <calcite-input-time-picker> that act like the min and max properties on <calcite-input-date-picker>. I don't think minAsDate or maxAsDate make much sense for times, so all we need is min and max.

Right now, we have to do our own validation for times in a given range, when this is handled automatically for us in the date picker.

Acceptance Criteria

min and max properties added to <calcite-input-time-picker>

Relevant Info

No response

Which Component

calcite-input-time-picker

Example Use Case

Same use-case as <calcite-input-date-picker> which already has these properties.

Priority impact

p2 - want for current milestone

Calcite package

Esri team

ArcGIS Maps SDK for JavaScript

nwhittaker commented 2 months ago

Also interested in this for Field Maps.

github-actions[bot] commented 1 week ago

Installed and assigned for verification.

DitwanP commented 1 week ago

🍍 Verified https://codepen.io/benelan/pen/VwOGwZy?editors=1010