Skip to content
Closed
Show file tree
Hide file tree
Changes from 6 commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
af7472b
- add styles for hidden day button;
JoaoFerreira-FrontEnd Feb 24, 2025
8c2d033
- fix focus of hidden day;
JoaoFerreira-FrontEnd Feb 25, 2025
6dd9bc4
- add styles for hidden-days on md and ios themes;
JoaoFerreira-FrontEnd Feb 26, 2025
7fe2359
- ensure hidden days styles are not applied on disable days;
JoaoFerreira-FrontEnd Feb 26, 2025
4ba73b0
- add visual tests to new feature;
JoaoFerreira-FrontEnd Feb 27, 2025
a2b4473
- lint.fix
JoaoFerreira-FrontEnd Feb 27, 2025
a908402
- remove custom wheel example;
JoaoFerreira-FrontEnd Feb 27, 2025
9cd8a3c
- update snapshots;
JoaoFerreira-FrontEnd Feb 27, 2025
4cef43e
- fix snapshots;
JoaoFerreira-FrontEnd Feb 28, 2025
970b52c
Update core/src/components/datetime/datetime.md.scss
JoaoFerreira-FrontEnd Mar 6, 2025
37457dd
Update core/src/components/datetime/datetime.md.scss
JoaoFerreira-FrontEnd Mar 6, 2025
08119cc
Update core/src/components/datetime/test/showDaysOutsideCurrentMonth/…
JoaoFerreira-FrontEnd Mar 6, 2025
6aca32d
Update core/src/components/datetime/test/showDaysOutsideCurrentMonth/…
JoaoFerreira-FrontEnd Mar 6, 2025
64a92f8
Update core/src/components/datetime/utils/data.ts
JoaoFerreira-FrontEnd Mar 6, 2025
cb835af
Update core/src/components/datetime/test/showDaysOutsideCurrentMonth/…
JoaoFerreira-FrontEnd Mar 6, 2025
d1fed86
Update core/src/components/datetime/datetime.tsx
JoaoFerreira-FrontEnd Mar 6, 2025
2d332d5
Update core/src/components/datetime/test/showDaysOutsideCurrentMonth/…
JoaoFerreira-FrontEnd Mar 6, 2025
2d671d0
Update core/src/components/datetime/datetime.tsx
JoaoFerreira-FrontEnd Mar 6, 2025
e4de5db
Update core/src/components/datetime/test/showDaysOutsideCurrentMonth/…
JoaoFerreira-FrontEnd Mar 6, 2025
e2393a5
Update core/src/components/datetime/datetime.tsx
JoaoFerreira-FrontEnd Mar 6, 2025
9ec10fb
Update core/src/components/datetime/test/showDaysOutsideCurrentMonth/…
JoaoFerreira-FrontEnd Mar 6, 2025
08e2990
Update core/src/components/datetime/test/showDaysOutsideCurrentMonth/…
JoaoFerreira-FrontEnd Mar 6, 2025
0eca20e
Update core/src/components/datetime/test/showDaysOutsideCurrentMonth/…
JoaoFerreira-FrontEnd Mar 6, 2025
e219fc7
Update core/src/components/datetime/test/showDaysOutsideCurrentMonth/…
JoaoFerreira-FrontEnd Mar 6, 2025
185feef
Update core/src/components/datetime/test/showDaysOutsideCurrentMonth/…
JoaoFerreira-FrontEnd Mar 6, 2025
de4c6af
Update core/src/components/datetime/test/showDaysOutsideCurrentMonth/…
JoaoFerreira-FrontEnd Mar 6, 2025
f61d607
Update core/src/components/datetime/test/showDaysOutsideCurrentMonth/…
JoaoFerreira-FrontEnd Mar 6, 2025
8b8ddcb
Update core/src/components/datetime/test/showDaysOutsideCurrentMonth/…
JoaoFerreira-FrontEnd Mar 6, 2025
f4867c4
Update core/src/components/datetime/test/showDaysOutsideCurrentMonth/…
JoaoFerreira-FrontEnd Mar 6, 2025
68f331d
Update core/src/components/datetime/test/showDaysOutsideCurrentMonth/…
JoaoFerreira-FrontEnd Mar 6, 2025
0094648
- change naming to adjacent-day;
JoaoFerreira-FrontEnd Mar 6, 2025
053843f
Merge branch 'feature-8.5' into ROU-11118_V2
JoaoFerreira-FrontEnd Mar 6, 2025
b857c1d
- lint.fix;
JoaoFerreira-FrontEnd Mar 6, 2025
624573d
test(datetime): update naming, screenshot config, remove unnecessary …
brandyscarney Mar 7, 2025
d06803d
chore(): add updated snapshots
brandyscarney Mar 7, 2025
516d589
docs(datetime): update showAdjacentDays description
brandyscarney Mar 7, 2025
21bad1e
test(datetime): add missing id and screenshots
brandyscarney Mar 7, 2025
327a033
-fix focus logic to work with or without adjacent days;
JoaoFerreira-FrontEnd Mar 11, 2025
df33f7b
Merge branch 'ROU-11118_V2' of https://github.com/ionic-team/ionic-fr…
JoaoFerreira-FrontEnd Mar 11, 2025
5961b86
Merge branch 'feature-8.5' into ROU-11118_V2
JoaoFerreira-FrontEnd Mar 11, 2025
a997c95
Update core/src/components/datetime/datetime.scss
JoaoFerreira-FrontEnd Mar 11, 2025
1ccd3b7
Update core/src/components/datetime/datetime.ios.scss
JoaoFerreira-FrontEnd Mar 11, 2025
d231205
Update core/src/components/datetime/datetime.md.scss
JoaoFerreira-FrontEnd Mar 11, 2025
9904427
Update core/src/components/datetime/datetime.ios.scss
JoaoFerreira-FrontEnd Mar 11, 2025
e58dca4
Update core/src/components/datetime/datetime.md.scss
JoaoFerreira-FrontEnd Mar 11, 2025
5a3d706
-run lint.fix;
JoaoFerreira-FrontEnd Mar 12, 2025
f552628
Merge branch 'feature-8.5' into ROU-11118_V2
JoaoFerreira-FrontEnd Mar 12, 2025
58894ad
- fix snapshots;
JoaoFerreira-FrontEnd Mar 12, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions core/api.txt
Original file line number Diff line number Diff line change
Expand Up @@ -529,6 +529,7 @@ ion-datetime,prop,preferWheel,boolean,false,false,false
ion-datetime,prop,presentation,"date" | "date-time" | "month" | "month-year" | "time" | "time-date" | "year",'date-time',false,false
ion-datetime,prop,readonly,boolean,false,false,false
ion-datetime,prop,showClearButton,boolean,false,false,false
ion-datetime,prop,showDaysOutsideCurrentMonth,boolean | undefined,false,false,false
ion-datetime,prop,showDefaultButtons,boolean,false,false,false
ion-datetime,prop,showDefaultTimeLabel,boolean,true,false,false
ion-datetime,prop,showDefaultTitle,boolean,false,false,false
Expand Down
8 changes: 8 additions & 0 deletions core/src/components.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -936,6 +936,10 @@ export namespace Components {
* If `true`, a "Clear" button will be rendered alongside the default "Cancel" and "OK" buttons at the bottom of the `ion-datetime` component. Developers can also use the `button` slot if they want to customize these buttons. If custom buttons are set in the `button` slot then the default buttons will not be rendered.
*/
"showClearButton": boolean;
/**
* If `true`, the datetime will show the last days of the previous month and the first days of the next month on a table of 42 elements.
*/
"showDaysOutsideCurrentMonth"?: boolean;
/**
* If `true`, the default "Cancel" and "OK" buttons will be rendered at the bottom of the `ion-datetime` component. Developers can also use the `button` slot if they want to customize these buttons. If custom buttons are set in the `button` slot then the default buttons will not be rendered.
*/
Expand Down Expand Up @@ -5723,6 +5727,10 @@ declare namespace LocalJSX {
* If `true`, a "Clear" button will be rendered alongside the default "Cancel" and "OK" buttons at the bottom of the `ion-datetime` component. Developers can also use the `button` slot if they want to customize these buttons. If custom buttons are set in the `button` slot then the default buttons will not be rendered.
*/
"showClearButton"?: boolean;
/**
* If `true`, the datetime will show the last days of the previous month and the first days of the next month on a table of 42 elements.
*/
"showDaysOutsideCurrentMonth"?: boolean;
/**
* If `true`, the default "Cancel" and "OK" buttons will be rendered at the bottom of the `ion-datetime` component. Developers can also use the `button` slot if they want to customize these buttons. If custom buttons are set in the `button` slot then the default buttons will not be rendered.
*/
Expand Down
1 change: 1 addition & 0 deletions core/src/components/datetime/datetime-interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export interface DatetimeParts {
hour?: number;
minute?: number;
ampm?: 'am' | 'pm';
hiddenDay?: boolean;
}

export type DatetimePresentation = 'date-time' | 'time-date' | 'date' | 'time' | 'month' | 'year' | 'month-year';
Expand Down
6 changes: 6 additions & 0 deletions core/src/components/datetime/datetime.ios.scss
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,12 @@
color: current-color(contrast);
}

:host .calendar-day.calendar-day-hidden-day:not([disabled]) {
color: $text-color-step-700;

opacity: 1;
}

// Time / Header
// -----------------------------------
:host .datetime-time {
Expand Down
6 changes: 6 additions & 0 deletions core/src/components/datetime/datetime.md.scss
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,12 @@
background: current-color(base);
}

:host .calendar-day.calendar-day-hidden-day:not([disabled]) {
color: $text-color-step-500;

opacity: 1;
}

// Time / Header
// -----------------------------------
:host .datetime-time {
Expand Down
6 changes: 5 additions & 1 deletion core/src/components/datetime/datetime.scss
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,11 @@
opacity: 0.4;
}

.calendar-day:focus {
:host .calendar-day.calendar-day-hidden-day {
opacity: 0.4;
}

.calendar-day:not(.calendar-day-hidden-day):focus {
background: current-color(base, 0.2);

box-shadow: 0px 0px 0px 4px current-color(base, 0.2);
Expand Down
Loading
Loading