Skip to content

feat(datetime): add showAdjacentDays to display days from the previous and next months - #30262

Merged
JoaoFerreira-FrontEnd merged 62 commits into
feature-8.6from
ROU-11118_V2
Mar 19, 2025
Merged

feat(datetime): add showAdjacentDays to display days from the previous and next months#30262
JoaoFerreira-FrontEnd merged 62 commits into
feature-8.6from
ROU-11118_V2

Conversation

@JoaoFerreira-FrontEnd

@JoaoFerreira-FrontEnd JoaoFerreira-FrontEnd commented Mar 17, 2025

Copy link
Copy Markdown
Contributor

Issue number: Internal

What is the new behavior?

Adds a new property to datetime, showAdjacentDays, that when true will show the last days of the previous month and the first days of the next month. This will just occupy empty "cells" at the beginning of the month "table" and add rows to the table until a maximum of 6 rows are displayed.

Changes

  • add styles for adjacent day button
  • add showAdjacentDays property to datetime component
  • change month generation to respect new property
  • add visual tests to new feature

Does this introduce a breaking change?

  • Yes
  • No

Other information

Preview

JoaoFerreira-FrontEnd and others added 30 commits February 24, 2025 18:44
- add showDaysOutsideCurrentMonth property to datetime  component;
- change month generation to respect new property;
- create specific test page for showDaysOutsideCurrentMonth;
Co-authored-by: Brandy Smith <brandyscarney@users.noreply.github.com>
Co-authored-by: Brandy Smith <brandyscarney@users.noreply.github.com>
…datetime.e2e.ts

Co-authored-by: Brandy Smith <brandyscarney@users.noreply.github.com>
…datetime.e2e.ts

Co-authored-by: Brandy Smith <brandyscarney@users.noreply.github.com>
Co-authored-by: Brandy Smith <brandyscarney@users.noreply.github.com>
…datetime.e2e.ts

Co-authored-by: Brandy Smith <brandyscarney@users.noreply.github.com>
Co-authored-by: Brandy Smith <brandyscarney@users.noreply.github.com>
…datetime.e2e.ts

Co-authored-by: Brandy Smith <brandyscarney@users.noreply.github.com>
Co-authored-by: Brandy Smith <brandyscarney@users.noreply.github.com>
…index.html

Co-authored-by: Brandy Smith <brandyscarney@users.noreply.github.com>
Co-authored-by: Brandy Smith <brandyscarney@users.noreply.github.com>
…datetime.e2e.ts

Co-authored-by: Brandy Smith <brandyscarney@users.noreply.github.com>
…datetime.e2e.ts

Co-authored-by: Brandy Smith <brandyscarney@users.noreply.github.com>
…datetime.e2e.ts

Co-authored-by: Brandy Smith <brandyscarney@users.noreply.github.com>
…datetime.e2e.ts

Co-authored-by: Brandy Smith <brandyscarney@users.noreply.github.com>
…datetime.e2e.ts

Co-authored-by: Brandy Smith <brandyscarney@users.noreply.github.com>
…datetime.e2e.ts

Co-authored-by: Brandy Smith <brandyscarney@users.noreply.github.com>
…datetime.e2e.ts

Co-authored-by: Brandy Smith <brandyscarney@users.noreply.github.com>
…datetime.e2e.ts

Co-authored-by: Brandy Smith <brandyscarney@users.noreply.github.com>
…datetime.e2e.ts

Co-authored-by: Brandy Smith <brandyscarney@users.noreply.github.com>
…datetime.e2e.ts

Co-authored-by: Brandy Smith <brandyscarney@users.noreply.github.com>

@brandyscarney brandyscarney left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good just requested a couple things!

Comment thread packages/angular/src/directives/proxies.ts
Comment thread core/package-lock.json
@brandyscarney
brandyscarney requested review from thetaPC and removed request for christian-bromann March 17, 2025 19:23
Comment thread core/src/components/datetime/datetime-interface.ts Outdated
Comment thread core/src/components/datetime/datetime.tsx Outdated
Comment thread core/src/components/datetime/utils/data.ts Outdated
Comment thread core/src/components/datetime/utils/data.ts Outdated
JoaoFerreira-FrontEnd and others added 3 commits March 19, 2025 10:08
Co-authored-by: Maria Hutt <thetaPC@users.noreply.github.com>
Co-authored-by: Maria Hutt <thetaPC@users.noreply.github.com>
Co-authored-by: Maria Hutt <thetaPC@users.noreply.github.com>
Comment thread core/src/components/datetime/datetime.tsx Outdated
Comment thread core/src/components/datetime/datetime.tsx Outdated
Comment thread core/src/components/datetime/datetime.tsx Outdated
JoaoFerreira-FrontEnd and others added 3 commits March 19, 2025 15:44
Co-authored-by: Maria Hutt <thetaPC@users.noreply.github.com>
Co-authored-by: Maria Hutt <thetaPC@users.noreply.github.com>
Co-authored-by: Maria Hutt <thetaPC@users.noreply.github.com>

@thetaPC thetaPC left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

package: angular @ionic/angular package package: core @ionic/core package package: vue @ionic/vue package

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants