Add valueAsX props for specialized, non-text, input types and rich-value components #8578
Open
2 of 6 tasks
Labels
0 - new
New issues that need assignment.
Calcite (dev)
Issues logged by Calcite developers.
calcite-components
Issues specific to the @esri/calcite-components package.
enhancement
Issues tied to a new feature or request.
estimate - 8
Requires input from team, consider smaller steps.
impact - p3 - not time sensitive
User set priority impact status of p3 - not time sensitive
p - medium
Issue is non core or affecting less that 60% of people using the library
p4 - not time sensitive
User set priority status of p4 - not time sensitive
spike complete
Issues that have a research spike completed and dev work can proceed
Milestone
Check existing issues
Description
We have a few components that currently handle values as strings (e.g.,
calcite-color-picker
,calcite-input-number
,calcite-input-date-picker
,calcite-time-picker
). This approach often needs boilerplate conversions between the string value and the specific type (e.g., string to number or date) in various use cases (both internal and external to the component). To improve developer ergonomics and reduce redundant code, we should introduce avalueAsX
property (similar to input'svalueAsNumber
andvalueAsDate
props).Blocked issues: #8595
Acceptance Criteria
Adding
valueAsX
props across specialized, non-text, inputs and rich-value components.Relevant Info
No response
Which Component
color-picker
(valueAsColor
†)input-number
(valueAsNumber
)input-date-picker
(valueAsDate
)input-time-picker
(valueAsDate
)input-time-zone
(valueAsTimeZone
†)slider
(valueAsNumber
)time-picker
(valueAsDate
)†suggested name; type should be discussed prior implementation
Example Use Case
No response
Priority impact
p4 - not time sensitive
Calcite package
Esri team
Calcite (dev)
The text was updated successfully, but these errors were encountered: