LuccaSA / lucca-front

documentation
https://prisme.lucca.io
MIT License
38 stars 4 forks source link

feat(date): allow string union type for `lu-date-select`,`lu-date-picker`,`luDateInput` and `lu-calendar` #2826

Closed F2X closed 4 months ago

F2X commented 4 months ago

Description

It is annoying to expose enum in templates, in addition to pass an enum value, we can now pass a string:

<!-- New syntax -->
<lu-date-select [granularity]="'month'" />

<!-- Previous but still working syntax -->
<lu-date-select [granularity]="ELuDateGranularity.month" />

LuccaIntegration commented 4 months ago

:woman_cook: https://lucca-front.lucca.tech/PR-2826/storybook

CCNET-iLucca commented 4 months ago

Tests d'interfaces