Skip to content

feat(ui5-dynamic-date-range): introduce last/next X options #11621

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 32 commits into from
Aug 7, 2025

Conversation

tsanislavgatev
Copy link
Contributor

@tsanislavgatev tsanislavgatev commented May 29, 2025

Introducing new Last/Next options for the <ui5-dynamic-date-range> component.

These options allow relative date selections like "Last 7 Days", "Next 3 Months", etc.

The implementation supports both individual time units and flexible grouping of multiple units under a single option.

The New Options That Are Added (Inclusive):

  • LASTDAYS, LASTWEEKS, LASTMONTHS, LASTQUARTERS, LASTYEARS - Select periods going backward from today
  • NEXTDAYS, NEXTWEEKS, NEXTMONTHS, NEXTQUARTERS, NEXTYEARS - Select periods going forward from today

Sample usage with individual options:

<ui5-dynamic-date-range options="TODAY, LASTDAYS, NEXTWEEKS"></ui5-dynamic-date-range>

Sample usage with grouped options:

<ui5-dynamic-date-range options="LASTDAYS, LASTWEEKS, LASTMONTHS"></ui5-dynamic-date-range>
<!-- Shows: Number input + Unit selector (Days/Weeks/Months) -->
  • DateRange.ts: Fixed date range for backwards selections

Quick demos

As Single Options

2025-07-28_18-11-00 (1)

As Grouped Options (multiple, e.g. LASTDAYS, LASTWEEKS...)

2025-07-28_18-09-10 (1)

Fixes: 10718

@hinzzx hinzzx changed the title feat(ui5-dynamic-date-range): add new options feat(ui5-dynamic-date-range): introduce last/next X options Jun 10, 2025
@tsanislavgatev
Copy link
Contributor Author

Approve.

@hinzzx hinzzx self-requested a review August 7, 2025 11:23
@hinzzx hinzzx marked this pull request as ready for review August 7, 2025 11:23
@hinzzx hinzzx merged commit 50fd58d into main Aug 7, 2025
19 of 20 checks passed
@hinzzx hinzzx deleted the ddr-next-last-options branch August 7, 2025 11:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature Request]: Component where user can select different option of time, date or date range
3 participants