()
| 762 | } |
| 763 | |
| 764 | get secondaryCalendarTypeButtonText() { |
| 765 | if (!this.hasSecondaryCalendarType) { |
| 766 | return; |
| 767 | } |
| 768 | |
| 769 | const localDate = UI5Date.getInstance(this._timestamp * 1000); |
| 770 | const secondYearFormat = DateFormat.getDateInstance({ format: "y", calendarType: this._secondaryCalendarType }); |
| 771 | const dateInSecType = transformDateToSecondaryType(this._primaryCalendarType, this._secondaryCalendarType, this._timestamp); |
| 772 | const secondMonthInfo = convertMonthNumbersToMonthNames(dateInSecType.firstDate.getMonth(), dateInSecType.lastDate.getMonth(), this._secondaryCalendarType); |
| 773 | const secondYearText = secondYearFormat.format(localDate); |
| 774 | |
| 775 | return { |
| 776 | yearButtonText: secondYearText, |
| 777 | monthButtonText: secondMonthInfo.text, |
| 778 | monthButtonInfo: secondMonthInfo.textInfo, |
| 779 | }; |
| 780 | } |
| 781 | |
| 782 | get _isCompactMode() { |
| 783 | return getEffectiveContentDensity(this) === "compact"; |
nothing calls this directly
no test coverage detected