SAP / ui5-webcomponents

UI5 Web Components - the enterprise-flavored sugar on top of native APIs! Build SAP Fiori user interfaces with the technology of your choice.
https://sap.github.io/ui5-webcomponents/
Apache License 2.0
1.47k stars 254 forks source link

DataPicker should accept Date as an input parameter #9038

Open piotrmarkiewicz1 opened 1 month ago

piotrmarkiewicz1 commented 1 month ago

Is your feature request related to a problem?

It's not type safe to to pass data as a string and this how this works now only way to use DatePicker is

Describe the solution you'd like

There is already dateValue method but one is read only, for me perfect solution will be dateValue as a property (because using functions on component in react is bit strange) that can be read and write and accept Date as a type

Describe alternatives you've considered

it is possible to use dataValue to convert to string and then set string but this is workaround

Additional Context

No response

Organization

No response

Declaration

Lukas742 commented 1 month ago

Thanks for reporting! I'll forward this issue to our UI5 Web Components Colleagues as the affected component is developed in their repository.

Todor-ads commented 1 month ago

Hello @SAP/ui5-webcomponents-topic-b, Could you please look into this issue?

Regards, Todor

piotrmarkiewicz1 commented 1 month ago

any reason for removing this from roadmap? Using dates as string is terrible idea

Lukas742 commented 1 month ago

any reason for removing this from roadmap? Using dates as string is terrible idea

Since this issue is not about our React wrapper, there's no action on our end required. That's why the issue was transferred to this repo. It doesn't mean that the ui5-webcomponents team isn't looking into this.