diff --git a/core/api.txt b/core/api.txt index b4036e6b8e8..890251791f6 100644 --- a/core/api.txt +++ b/core/api.txt @@ -566,7 +566,13 @@ ion-datetime,part,calendar-day ion-datetime,part,calendar-day active ion-datetime,part,calendar-day disabled ion-datetime,part,calendar-day today +ion-datetime,part,calendar-header +ion-datetime,part,datetime-header +ion-datetime,part,days-of-week ion-datetime,part,month-year-button +ion-datetime,part,next-button +ion-datetime,part,prev-button +ion-datetime,part,prev-next-buttons ion-datetime,part,time-button ion-datetime,part,time-button active ion-datetime,part,wheel diff --git a/core/src/components/datetime/datetime.tsx b/core/src/components/datetime/datetime.tsx index 95f97d37cf0..69455c43192 100644 --- a/core/src/components/datetime/datetime.tsx +++ b/core/src/components/datetime/datetime.tsx @@ -88,14 +88,21 @@ import { checkForPresentationFormatMismatch, warnIfTimeZoneProvided } from './ut * layout with `presentation="date-time"` or `"time-date"`. * @part time-button active - The time picker button when the picker is open. * + * @part calendar-header - The calendar header manages the date navigation controls (month/year picker and prev/next buttons) and the days of the week when using a grid style layout. * @part month-year-button - The button that opens the month/year picker when * using a grid style layout. + * @part prev-next-buttons - The buttons used to navigate to the next or previous month when using a grid style layout. + * @part prev-button - The button used to navigate to the previous month when using a grid style layout. + * @part next-button - The button used to navigate to the next month when using a grid style layout. + * @part days-of-week - The container for the day-of-the-week header (both weekdays and weekends) when using a grid style layout. * * @part calendar-day - The individual buttons that display a day inside of the datetime * calendar. * @part calendar-day active - The currently selected calendar day. * @part calendar-day today - The calendar day that contains the current day. * @part calendar-day disabled - The calendar day that is disabled. + * + * @part datetime-header - The datetime header contains the content for the `title` slot and the selected date. */ @Component({ tag: 'ion-datetime', @@ -2166,7 +2173,7 @@ export class Datetime implements ComponentInterface { const hostDir = this.el.getAttribute('dir') || undefined; return ( -