@@ -139,7 +139,7 @@ export class Datetime implements ComponentInterface {
139139 hour : 13 ,
140140 minute : 52 ,
141141 ampm : 'pm' ,
142- adjacentDay : false ,
142+ isAdjacentDay : false ,
143143 } ;
144144
145145 @Element ( ) el ! : HTMLIonDatetimeElement ;
@@ -2240,11 +2240,11 @@ export class Datetime implements ComponentInterface {
22402240 >
22412241 < div class = "calendar-month-grid" >
22422242 { getDaysOfMonth ( month , year , this . firstDayOfWeek % 7 , this . showAdjacentDays ) . map ( ( dateObject , index ) => {
2243- const { day, dayOfWeek, adjacentDay } = dateObject ;
2243+ const { day, dayOfWeek, isAdjacentDay } = dateObject ;
22442244 const { el, highlightedDates, isDateEnabled, multiple, showAdjacentDays } = this ;
22452245 let _month = month ;
22462246 let _year = year ;
2247- if ( showAdjacentDays && adjacentDay && day !== null ) {
2247+ if ( showAdjacentDays && isAdjacentDay && day !== null ) {
22482248 if ( day > 20 ) {
22492249 // Leading with the adjacent day from the previous month
22502250 // if its a adjacent day and is higher than '20' (last week even in feb)
@@ -2266,7 +2266,7 @@ export class Datetime implements ComponentInterface {
22662266 }
22672267 }
22682268
2269- const referenceParts = { month : _month , day, year : _year , adjacentDay } ;
2269+ const referenceParts = { month : _month , day, year : _year , isAdjacentDay } ;
22702270 const isCalendarPadding = day === null ;
22712271 const {
22722272 isActive,
@@ -2321,19 +2321,19 @@ export class Datetime implements ComponentInterface {
23212321 * Custom highlight styles should not override the style for selected dates,
23222322 * nor apply to "filler days" at the start of the grid.
23232323 */
2324- if ( highlightedDates !== undefined && ! isActive && day !== null && ! adjacentDay ) {
2324+ if ( highlightedDates !== undefined && ! isActive && day !== null && ! isAdjacentDay ) {
23252325 dateStyle = getHighlightStyles ( highlightedDates , dateIsoString , el ) ;
23262326 }
23272327
23282328 let dateParts = undefined ;
23292329
23302330 // "Filler days" at the beginning of the grid should not get the calendar day
23312331 // CSS parts added to them
2332- if ( ! isCalendarPadding && ! adjacentDay ) {
2332+ if ( ! isCalendarPadding && ! isAdjacentDay ) {
23332333 dateParts = `calendar-day${ isActive ? ' active' : '' } ${ isToday ? ' today' : '' } ${
23342334 isCalDayDisabled ? ' disabled' : ''
23352335 } `;
2336- } else if ( adjacentDay ) {
2336+ } else if ( isAdjacentDay ) {
23372337 dateParts = `calendar-day${ isCalDayDisabled ? ' disabled' : '' } ` ;
23382338 }
23392339
@@ -2369,7 +2369,7 @@ export class Datetime implements ComponentInterface {
23692369 'calendar-day-active' : isActive ,
23702370 'calendar-day-constrained' : isCalDayConstrained ,
23712371 'calendar-day-today' : isToday ,
2372- 'calendar-day-adjacent-day' : adjacentDay ,
2372+ 'calendar-day-adjacent-day' : isAdjacentDay ,
23732373 } }
23742374 part = { dateParts }
23752375 aria-hidden = { isCalendarPadding ? 'true' : null }
@@ -2380,7 +2380,7 @@ export class Datetime implements ComponentInterface {
23802380 return ;
23812381 }
23822382
2383- if ( adjacentDay ) {
2383+ if ( isAdjacentDay ) {
23842384 // The user selected a day outside the current month. Ignore this button, as the month will be re-rendered.
23852385 this . el . blur ( ) ;
23862386 }
@@ -2390,7 +2390,7 @@ export class Datetime implements ComponentInterface {
23902390 month : _month ,
23912391 day,
23922392 year : _year ,
2393- adjacentDay : adjacentDay ,
2393+ isAdjacentDay : isAdjacentDay ,
23942394 } ) ;
23952395
23962396 // multiple only needs date info, so we can wipe out other fields like time
@@ -2400,7 +2400,7 @@ export class Datetime implements ComponentInterface {
24002400 month : _month ,
24012401 day,
24022402 year : _year ,
2403- adjacentDay : adjacentDay ,
2403+ isAdjacentDay : isAdjacentDay ,
24042404 } ,
24052405 isActive
24062406 ) ;
@@ -2410,7 +2410,7 @@ export class Datetime implements ComponentInterface {
24102410 month : _month ,
24112411 day,
24122412 year : _year ,
2413- adjacentDay : adjacentDay ,
2413+ isAdjacentDay : isAdjacentDay ,
24142414 } ) ;
24152415 }
24162416 } }
0 commit comments