@ui5/webcomponents 2.21.0 → 2.22.0-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (114) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/dist/.tsbuildinfo +1 -1
  3. package/dist/Calendar.d.ts +39 -0
  4. package/dist/Calendar.js +109 -3
  5. package/dist/Calendar.js.map +1 -1
  6. package/dist/CalendarHeaderTemplate.d.ts +13 -1
  7. package/dist/CalendarHeaderTemplate.js +48 -12
  8. package/dist/CalendarHeaderTemplate.js.map +1 -1
  9. package/dist/CalendarTemplate.js +58 -2
  10. package/dist/CalendarTemplate.js.map +1 -1
  11. package/dist/Carousel.js +1 -1
  12. package/dist/Carousel.js.map +1 -1
  13. package/dist/DateRangePicker.d.ts +27 -0
  14. package/dist/DateRangePicker.js +57 -3
  15. package/dist/DateRangePicker.js.map +1 -1
  16. package/dist/DateRangePickerTemplate.js +7 -3
  17. package/dist/DateRangePickerTemplate.js.map +1 -1
  18. package/dist/DateTimePicker.js +0 -3
  19. package/dist/DateTimePicker.js.map +1 -1
  20. package/dist/Popup.js +4 -0
  21. package/dist/Popup.js.map +1 -1
  22. package/dist/SliderHandle.d.ts +0 -8
  23. package/dist/SliderHandle.js +0 -11
  24. package/dist/SliderHandle.js.map +1 -1
  25. package/dist/SliderTemplate.js +1 -1
  26. package/dist/SliderTemplate.js.map +1 -1
  27. package/dist/css/themes/Calendar.css +1 -1
  28. package/dist/css/themes/DatePickerPopover.css +1 -1
  29. package/dist/css/themes/Popup.css +1 -1
  30. package/dist/css/themes/ResponsivePopoverCommon.css +1 -1
  31. package/dist/css/themes/sap_fiori_3/parameters-bundle.css +1 -1
  32. package/dist/css/themes/sap_fiori_3_dark/parameters-bundle.css +1 -1
  33. package/dist/css/themes/sap_fiori_3_hcb/parameters-bundle.css +1 -1
  34. package/dist/css/themes/sap_fiori_3_hcw/parameters-bundle.css +1 -1
  35. package/dist/css/themes/sap_horizon/parameters-bundle.css +1 -1
  36. package/dist/css/themes/sap_horizon_auto/parameters-bundle.css +8 -0
  37. package/dist/css/themes/sap_horizon_dark/parameters-bundle.css +1 -1
  38. package/dist/css/themes/sap_horizon_hc_auto/parameters-bundle.css +9 -1
  39. package/dist/css/themes/sap_horizon_hcb/parameters-bundle.css +1 -1
  40. package/dist/css/themes/sap_horizon_hcw/parameters-bundle.css +1 -1
  41. package/dist/custom-elements-internal.json +20 -20
  42. package/dist/custom-elements.json +19 -19
  43. package/dist/generated/assets/themes/sap_fiori_3/parameters-bundle.css.json +1 -1
  44. package/dist/generated/assets/themes/sap_fiori_3_dark/parameters-bundle.css.json +1 -1
  45. package/dist/generated/assets/themes/sap_fiori_3_hcb/parameters-bundle.css.json +1 -1
  46. package/dist/generated/assets/themes/sap_fiori_3_hcw/parameters-bundle.css.json +1 -1
  47. package/dist/generated/assets/themes/sap_horizon/parameters-bundle.css.json +1 -1
  48. package/dist/generated/assets/themes/sap_horizon_auto/parameters-bundle.css.json +1 -1
  49. package/dist/generated/assets/themes/sap_horizon_dark/parameters-bundle.css.json +1 -1
  50. package/dist/generated/assets/themes/sap_horizon_hc_auto/parameters-bundle.css.json +1 -1
  51. package/dist/generated/assets/themes/sap_horizon_hcb/parameters-bundle.css.json +1 -1
  52. package/dist/generated/assets/themes/sap_horizon_hcw/parameters-bundle.css.json +1 -1
  53. package/dist/generated/i18n/i18n-defaults.d.ts +3 -1
  54. package/dist/generated/i18n/i18n-defaults.js +3 -1
  55. package/dist/generated/i18n/i18n-defaults.js.map +1 -1
  56. package/dist/generated/themes/Calendar.css.d.ts +1 -1
  57. package/dist/generated/themes/Calendar.css.js +1 -1
  58. package/dist/generated/themes/Calendar.css.js.map +1 -1
  59. package/dist/generated/themes/DatePickerPopover.css.d.ts +1 -1
  60. package/dist/generated/themes/DatePickerPopover.css.js +1 -1
  61. package/dist/generated/themes/DatePickerPopover.css.js.map +1 -1
  62. package/dist/generated/themes/Popup.css.d.ts +1 -1
  63. package/dist/generated/themes/Popup.css.js +1 -1
  64. package/dist/generated/themes/Popup.css.js.map +1 -1
  65. package/dist/generated/themes/ResponsivePopoverCommon.css.d.ts +1 -1
  66. package/dist/generated/themes/ResponsivePopoverCommon.css.js +1 -1
  67. package/dist/generated/themes/ResponsivePopoverCommon.css.js.map +1 -1
  68. package/dist/generated/themes/sap_fiori_3/parameters-bundle.css.d.ts +1 -1
  69. package/dist/generated/themes/sap_fiori_3/parameters-bundle.css.js +1 -1
  70. package/dist/generated/themes/sap_fiori_3/parameters-bundle.css.js.map +1 -1
  71. package/dist/generated/themes/sap_fiori_3_dark/parameters-bundle.css.d.ts +1 -1
  72. package/dist/generated/themes/sap_fiori_3_dark/parameters-bundle.css.js +1 -1
  73. package/dist/generated/themes/sap_fiori_3_dark/parameters-bundle.css.js.map +1 -1
  74. package/dist/generated/themes/sap_fiori_3_hcb/parameters-bundle.css.d.ts +1 -1
  75. package/dist/generated/themes/sap_fiori_3_hcb/parameters-bundle.css.js +1 -1
  76. package/dist/generated/themes/sap_fiori_3_hcb/parameters-bundle.css.js.map +1 -1
  77. package/dist/generated/themes/sap_fiori_3_hcw/parameters-bundle.css.d.ts +1 -1
  78. package/dist/generated/themes/sap_fiori_3_hcw/parameters-bundle.css.js +1 -1
  79. package/dist/generated/themes/sap_fiori_3_hcw/parameters-bundle.css.js.map +1 -1
  80. package/dist/generated/themes/sap_horizon/parameters-bundle.css.d.ts +1 -1
  81. package/dist/generated/themes/sap_horizon/parameters-bundle.css.js +1 -1
  82. package/dist/generated/themes/sap_horizon/parameters-bundle.css.js.map +1 -1
  83. package/dist/generated/themes/sap_horizon_auto/parameters-bundle.css.d.ts +1 -1
  84. package/dist/generated/themes/sap_horizon_auto/parameters-bundle.css.js +8 -0
  85. package/dist/generated/themes/sap_horizon_auto/parameters-bundle.css.js.map +1 -1
  86. package/dist/generated/themes/sap_horizon_dark/parameters-bundle.css.d.ts +1 -1
  87. package/dist/generated/themes/sap_horizon_dark/parameters-bundle.css.js +1 -1
  88. package/dist/generated/themes/sap_horizon_dark/parameters-bundle.css.js.map +1 -1
  89. package/dist/generated/themes/sap_horizon_hc_auto/parameters-bundle.css.d.ts +1 -1
  90. package/dist/generated/themes/sap_horizon_hc_auto/parameters-bundle.css.js +9 -1
  91. package/dist/generated/themes/sap_horizon_hc_auto/parameters-bundle.css.js.map +1 -1
  92. package/dist/generated/themes/sap_horizon_hcb/parameters-bundle.css.d.ts +1 -1
  93. package/dist/generated/themes/sap_horizon_hcb/parameters-bundle.css.js +1 -1
  94. package/dist/generated/themes/sap_horizon_hcb/parameters-bundle.css.js.map +1 -1
  95. package/dist/generated/themes/sap_horizon_hcw/parameters-bundle.css.d.ts +1 -1
  96. package/dist/generated/themes/sap_horizon_hcw/parameters-bundle.css.js +1 -1
  97. package/dist/generated/themes/sap_horizon_hcw/parameters-bundle.css.js.map +1 -1
  98. package/dist/vscode.html-custom-data.json +5 -5
  99. package/dist/web-types.json +11 -11
  100. package/package.json +9 -9
  101. package/src/CalendarHeaderTemplate.tsx +148 -77
  102. package/src/CalendarTemplate.tsx +203 -66
  103. package/src/DateRangePickerTemplate.tsx +29 -1
  104. package/src/SliderTemplate.tsx +0 -1
  105. package/src/i18n/messagebundle.properties +6 -0
  106. package/src/themes/Calendar.css +144 -0
  107. package/src/themes/DatePickerPopover.css +3 -2
  108. package/src/themes/Popup.css +4 -0
  109. package/src/themes/ResponsivePopoverCommon.css +6 -1
  110. package/src/themes/base/CalendarHeader-parameters.css +9 -0
  111. package/src/themes/base/TextArea-parameters.css +1 -1
  112. package/src/themes/base/sizes-parameters.css +12 -0
  113. package/src/themes/sap_horizon/TextArea-parameters.css +0 -1
  114. package/src/themes/sap_horizon_dark/TextArea-parameters.css +0 -1
@@ -16,6 +16,7 @@ import type CalendarLegend from "./CalendarLegend.js";
16
16
  import type { CalendarLegendItemSelectionChangeEventDetail } from "./CalendarLegend.js";
17
17
  import type SpecialCalendarDate from "./SpecialCalendarDate.js";
18
18
  import type CalendarLegendItemType from "./types/CalendarLegendItemType.js";
19
+ import type { ResizeObserverCallback } from "@ui5/webcomponents-base/dist/delegate/ResizeHandler.js";
19
20
  import "@ui5/webcomponents-localization/dist/features/calendar/Gregorian.js";
20
21
  import type { YearRangePickerChangeEventDetail } from "./YearRangePicker.js";
21
22
  interface ICalendarPicker extends HTMLElement {
@@ -195,6 +196,13 @@ declare class Calendar extends CalendarPart {
195
196
  * @public
196
197
  */
197
198
  hideWeekNumbers: boolean;
199
+ /**
200
+ * Defines whether the component displays two months side by side in the picker popup.
201
+ * @default false
202
+ * @private
203
+ * @since 2.22.0
204
+ */
205
+ _showTwoMonths: boolean;
198
206
  /**
199
207
  * Which picker is currently visible to the user: day/month/year/yearRange
200
208
  * @private
@@ -242,8 +250,34 @@ declare class Calendar extends CalendarPart {
242
250
  * @private
243
251
  */
244
252
  _selectedItemType: `${CalendarLegendItemType}`;
253
+ _phoneMode: boolean;
254
+ _handleResizeBound: ResizeObserverCallback;
245
255
  static i18nBundle: I18nBundle;
246
256
  constructor();
257
+ onEnterDOM(): void;
258
+ get _phoneView(): boolean;
259
+ get _portraitView(): boolean;
260
+ /**
261
+ * Handles document resize to switch between `phoneMode` and `portraitMode`.
262
+ * - `_phoneMode`: When resolution is under PHONE_MODE_BREAKPOINT (regardless of device type)
263
+ */
264
+ _handleResize(): void;
265
+ onExitDOM(): void;
266
+ /**
267
+ * Returns the timestamp for a specific month index when displaying multiple months
268
+ * @private
269
+ */
270
+ _getMonthTimestamp(monthIndex: number): number;
271
+ /**
272
+ * Generates header button text (month and year) for a specific month timestamp
273
+ * @private
274
+ */
275
+ _getHeaderTextForMonth(monthTimestamp: number): {
276
+ monthText: string;
277
+ yearText: string;
278
+ secondMonthText?: string;
279
+ secondYearText?: string;
280
+ };
247
281
  /**
248
282
  * @private
249
283
  */
@@ -302,6 +336,8 @@ declare class Calendar extends CalendarPart {
302
336
  monthButtonText: any;
303
337
  monthButtonInfo: any;
304
338
  } | undefined;
339
+ get _isCompactMode(): boolean;
340
+ get _monthsToShow(): 1 | 2;
305
341
  /**
306
342
  * The month button is hidden when the month picker or year picker is shown
307
343
  * @private
@@ -321,6 +357,9 @@ declare class Calendar extends CalendarPart {
321
357
  get _isMonthPickerHidden(): boolean;
322
358
  get _isYearPickerHidden(): boolean;
323
359
  get _isYearRangePickerHidden(): boolean;
360
+ get _isDefaultHeaderModeInMultipleMonths(): boolean;
361
+ get _shouldShowOnePickerHeaderButtonInMultipleMonths(): boolean;
362
+ get _inert(): boolean;
324
363
  get _currentYearRange(): CalendarYearRangeT;
325
364
  _fireEventAndUpdateSelectedDates(selectedDates: Array<number>): void;
326
365
  onSelectedDatesChange(e: CustomEvent<DayPickerChangeEventDetail>): void;
package/dist/Calendar.js CHANGED
@@ -28,6 +28,8 @@ import "./SpecialCalendarDate.js";
28
28
  import CalendarPart from "./CalendarPart.js";
29
29
  import CalendarSelectionMode from "./types/CalendarSelectionMode.js";
30
30
  import CalendarPickersMode from "./types/CalendarPickersMode.js";
31
+ import { isPhone } from "@ui5/webcomponents-base/dist/Device.js";
32
+ import ResizeHandler from "@ui5/webcomponents-base/dist/delegate/ResizeHandler.js";
31
33
  // Default calendar for bundling
32
34
  import "@ui5/webcomponents-localization/dist/features/calendar/Gregorian.js";
33
35
  // Template
@@ -36,6 +38,9 @@ import CalendarTemplate from "./CalendarTemplate.js";
36
38
  import calendarCSS from "./generated/themes/Calendar.css.js";
37
39
  import CalendarHeaderCss from "./generated/themes/CalendarHeader.css.js";
38
40
  import { CALENDAR_HEADER_MONTH_BUTTON, CALENDAR_HEADER_MONTH_BUTTON_SHORTCUT, CALENDAR_HEADER_YEAR_BUTTON, CALENDAR_HEADER_YEAR_BUTTON_SHORTCUT, CALENDAR_HEADER_YEAR_RANGE_BUTTON, CALENDAR_HEADER_YEAR_RANGE_BUTTON_SHORTCUT, CALENDAR_HEADER_MONTH_NEXT_BUTTON_TITLE, CALENDAR_HEADER_MONTH_NEXT_BUTTON_SHORTCUT, CALENDAR_HEADER_MONTH_PREVIOUS_BUTTON_TITLE, CALENDAR_HEADER_MONTH_PREVIOUS_BUTTON_SHORTCUT, CALENDAR_HEADER_YEAR_NEXT_BUTTON_TITLE, CALENDAR_HEADER_YEAR_PREVIOUS_BUTTON_TITLE, CALENDAR_HEADER_YEAR_RANGE_NEXT_BUTTON_TITLE, CALENDAR_HEADER_YEAR_RANGE_PREVIOUS_BUTTON_TITLE, } from "./generated/i18n/i18n-defaults.js";
41
+ import getEffectiveContentDensity from "@ui5/webcomponents-base/dist/util/getEffectiveContentDensity.js";
42
+ import modifyDateBy from "@ui5/webcomponents-localization/dist/dates/modifyDateBy.js";
43
+ const PHONE_MODE_BREAKPOINT = 640; // px
39
44
  /**
40
45
  * @class
41
46
  *
@@ -173,6 +178,13 @@ let Calendar = Calendar_1 = class Calendar extends CalendarPart {
173
178
  * @public
174
179
  */
175
180
  this.hideWeekNumbers = false;
181
+ /**
182
+ * Defines whether the component displays two months side by side in the picker popup.
183
+ * @default false
184
+ * @private
185
+ * @since 2.22.0
186
+ */
187
+ this._showTwoMonths = false;
176
188
  /**
177
189
  * Which picker is currently visible to the user: day/month/year/yearRange
178
190
  * @private
@@ -187,7 +199,75 @@ let Calendar = Calendar_1 = class Calendar extends CalendarPart {
187
199
  * @private
188
200
  */
189
201
  this._selectedItemType = "None";
202
+ this._phoneMode = false;
190
203
  this._valueIsProcessed = false;
204
+ this._handleResizeBound = this._handleResize.bind(this);
205
+ }
206
+ onEnterDOM() {
207
+ ResizeHandler.register(document.body, this._handleResizeBound);
208
+ this._handleResize();
209
+ }
210
+ get _phoneView() {
211
+ return isPhone() || this._phoneMode;
212
+ }
213
+ get _portraitView() {
214
+ return this._phoneMode;
215
+ }
216
+ /**
217
+ * Handles document resize to switch between `phoneMode` and `portraitMode`.
218
+ * - `_phoneMode`: When resolution is under PHONE_MODE_BREAKPOINT (regardless of device type)
219
+ */
220
+ _handleResize() {
221
+ if (!this._showTwoMonths) {
222
+ return;
223
+ }
224
+ const documentWidth = document.body.offsetWidth;
225
+ const underBreakpoint = documentWidth <= PHONE_MODE_BREAKPOINT;
226
+ // Phone mode: only when it's an actual phone device
227
+ const phoneModeChange = (underBreakpoint && !this._phoneMode) || (!underBreakpoint && this._phoneMode);
228
+ if (phoneModeChange) {
229
+ this._phoneMode = underBreakpoint;
230
+ }
231
+ }
232
+ onExitDOM() {
233
+ ResizeHandler.deregister(document.body, this._handleResizeBound);
234
+ }
235
+ /**
236
+ * Returns the timestamp for a specific month index when displaying multiple months
237
+ * @private
238
+ */
239
+ _getMonthTimestamp(monthIndex) {
240
+ if (monthIndex === 0) {
241
+ return this._timestamp;
242
+ }
243
+ const calendarDate = CalendarDateComponent.fromTimestamp(this._timestamp * 1000, this._primaryCalendarType);
244
+ const modifiedDate = modifyDateBy(calendarDate, monthIndex, "month", false);
245
+ return modifiedDate.valueOf() / 1000;
246
+ }
247
+ /**
248
+ * Generates header button text (month and year) for a specific month timestamp
249
+ * @private
250
+ */
251
+ _getHeaderTextForMonth(monthTimestamp) {
252
+ const calendarDate = CalendarDateComponent.fromTimestamp(monthTimestamp * 1000, this._primaryCalendarType);
253
+ const localeData = getCachedLocaleDataInstance(getLocale());
254
+ const yearFormat = DateFormat.getDateInstance({ format: "y", calendarType: this._primaryCalendarType });
255
+ const monthText = localeData.getMonthsStandAlone("wide", this._primaryCalendarType)[calendarDate.getMonth()];
256
+ const localDate = calendarDate.toLocalJSDate();
257
+ const yearText = String(yearFormat.format(localDate, true));
258
+ const result = {
259
+ monthText,
260
+ yearText,
261
+ };
262
+ if (this.hasSecondaryCalendarType) {
263
+ const secondaryDate = transformDateToSecondaryType(this._primaryCalendarType, this._secondaryCalendarType, monthTimestamp, true);
264
+ const secondaryCalendarDate = secondaryDate.firstDate || secondaryDate.lastDate;
265
+ const secondaryLocaleData = getCachedLocaleDataInstance(getLocale());
266
+ result.secondMonthText = secondaryLocaleData.getMonthsStandAlone("wide", this._secondaryCalendarType)[secondaryCalendarDate.getMonth()];
267
+ const secondaryYearFormat = DateFormat.getDateInstance({ format: "y", calendarType: this._secondaryCalendarType });
268
+ result.secondYearText = String(secondaryYearFormat.format(secondaryCalendarDate.toLocalJSDate(), true));
269
+ }
270
+ return result;
191
271
  }
192
272
  /**
193
273
  * @private
@@ -432,9 +512,9 @@ let Calendar = Calendar_1 = class Calendar extends CalendarPart {
432
512
  this._headerYearButtonTextSecType = String(yearFormatSecType.format(this._localDate, true));
433
513
  const currentYearRange = this._currentYearRange;
434
514
  const { rangeStart, rangeEnd } = this._createYearRangeDates(currentYearRange);
435
- const rangeStartSecType = transformDateToSecondaryType(this.primaryCalendarType, this._secondaryCalendarType, rangeStart.valueOf() / 1000, true)
515
+ const rangeStartSecType = transformDateToSecondaryType(this._primaryCalendarType, this._secondaryCalendarType, rangeStart.valueOf() / 1000, true)
436
516
  .firstDate;
437
- const rangeEndSecType = transformDateToSecondaryType(this.primaryCalendarType, this._secondaryCalendarType, rangeEnd.valueOf() / 1000, true)
517
+ const rangeEndSecType = transformDateToSecondaryType(this._primaryCalendarType, this._secondaryCalendarType, rangeEnd.valueOf() / 1000, true)
438
518
  .lastDate;
439
519
  this._headerYearRangeButtonTextSecType = `${yearFormatSecType.format(rangeStartSecType.toLocalJSDate())} - ${yearFormatSecType.format(rangeEndSecType.toLocalJSDate())}`;
440
520
  }
@@ -453,12 +533,19 @@ let Calendar = Calendar_1 = class Calendar extends CalendarPart {
453
533
  monthButtonInfo: secondMonthInfo.textInfo,
454
534
  };
455
535
  }
536
+ get _isCompactMode() {
537
+ return getEffectiveContentDensity(this) === "compact";
538
+ }
539
+ get _monthsToShow() {
540
+ const monthsToShow = this._showTwoMonths && !isPhone() ? 2 : 1;
541
+ return monthsToShow;
542
+ }
456
543
  /**
457
544
  * The month button is hidden when the month picker or year picker is shown
458
545
  * @private
459
546
  */
460
547
  get _isHeaderMonthButtonHidden() {
461
- return this._currentPicker !== "day";
548
+ return this._showTwoMonths ? this._currentPicker === "yearrange" || this._currentPicker === "year" : this._currentPicker !== "day";
462
549
  }
463
550
  /**
464
551
  * The year range picker button is shown only in the year picker
@@ -475,6 +562,10 @@ let Calendar = Calendar_1 = class Calendar extends CalendarPart {
475
562
  return !(this._currentPicker === "day" || this._currentPicker === "month");
476
563
  }
477
564
  get _isDayPickerHidden() {
565
+ // In multi-month mode (monthsToShow > 1), keep day pickers visible even when other pickers are shown
566
+ if (this._showTwoMonths) {
567
+ return false;
568
+ }
478
569
  return this._currentPicker !== "day";
479
570
  }
480
571
  get _isMonthPickerHidden() {
@@ -486,6 +577,15 @@ let Calendar = Calendar_1 = class Calendar extends CalendarPart {
486
577
  get _isYearRangePickerHidden() {
487
578
  return this._currentPicker !== "yearrange";
488
579
  }
580
+ get _isDefaultHeaderModeInMultipleMonths() {
581
+ return !this._isDayPickerHidden && this._isYearPickerHidden;
582
+ }
583
+ get _shouldShowOnePickerHeaderButtonInMultipleMonths() {
584
+ return !this._isDayPickerHidden && !this._isYearPickerHidden;
585
+ }
586
+ get _inert() {
587
+ return this._showTwoMonths && (!this._isMonthPickerHidden || !this._isYearPickerHidden || !this._isYearRangePickerHidden);
588
+ }
489
589
  get _currentYearRange() {
490
590
  const rangeSize = this.hasSecondaryCalendarType ? 8 : 20;
491
591
  const yearsOffset = this.hasSecondaryCalendarType ? 2 : 9;
@@ -747,6 +847,9 @@ __decorate([
747
847
  __decorate([
748
848
  property({ type: Boolean })
749
849
  ], Calendar.prototype, "hideWeekNumbers", void 0);
850
+ __decorate([
851
+ property({ type: Boolean })
852
+ ], Calendar.prototype, "_showTwoMonths", void 0);
750
853
  __decorate([
751
854
  property()
752
855
  ], Calendar.prototype, "_currentPicker", void 0);
@@ -789,6 +892,9 @@ __decorate([
789
892
  __decorate([
790
893
  property()
791
894
  ], Calendar.prototype, "_selectedItemType", void 0);
895
+ __decorate([
896
+ property({ type: Boolean, noAttribute: true })
897
+ ], Calendar.prototype, "_phoneMode", void 0);
792
898
  __decorate([
793
899
  i18n("@ui5/webcomponents")
794
900
  ], Calendar, "i18nB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AAE,WAAW,EAAE,IAAI,EAAE,CAAC;8CAC0B;AAY1D;IADC,IAAI,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,uBAAuB,EAAE,IAAI,EAAE,CAAC;gDACrB;AAStC;IADC,IAAI,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,uBAAuB,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;uCAChC;AAQ5C;IADC,IAAI,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,uBAAuB,EAAE,IAAI,EAAE,CAAC;8CAClB;AAUzC;IADC,IAAI,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,uBAAuB,EAAE,IAAI,EAAE,CAAC;+CACnB;AAOxC;IADC,QAAQ,EAAE;mDAC6C;AAGjD;IADN,IAAI,CAAC,oBAAoB,CAAC;kCACG;AA7GzB,QAAQ;IA7Bb,aAAa,CAAC;QACd,GAAG,EAAE,cAAc;QACnB,cAAc,EAAE,IAAI;QACpB,QAAQ,EAAE,gBAAgB;QAC1B,MAAM,EAAE,CAAC,WAAW,EAAE,iBAAiB,CAAC;KACxC,CAAC;IACF;;;;;;;;OAQG;;IACF,KAAK,CAAC,kBAAkB,EAAE;QAC1B,OAAO,EAAE,IAAI;QACb,UAAU,EAAE,IAAI;KAChB,CAAC;IAED,KAAK,CAAC,iBAAiB,EAAE;QACzB,OAAO,EAAE,IAAI;KACb,CAAC;IACD,KAAK,CAAC,gBAAgB,EAAE;QACxB,OAAO,EAAE,IAAI;KACb,CAAC;IACD,KAAK,CAAC,sBAAsB,EAAE;QAC9B,OAAO,EAAE,IAAI;KACb,CAAC;GACI,QAAQ,CA+vBb;AAED,QAAQ,CAAC,MAAM,EAAE,CAAC;AAElB,eAAe,QAAQ,CAAC","sourcesContent":["import customElement from \"@ui5/webcomponents-base/dist/decorators/customElement.js\";\nimport type UI5Element from \"@ui5/webcomponents-base/dist/UI5Element.js\";\nimport type { ChangeInfo, DefaultSlot, Slot } from \"@ui5/webcomponents-base/dist/UI5Element.js\";\nimport event from \"@ui5/webcomponents-base/dist/decorators/event-strict.js\";\nimport property from \"@ui5/webcomponents-base/dist/decorators/property.js\";\nimport slot from \"@ui5/webcomponents-base/dist/decorators/slot-strict.js\";\nimport i18n from \"@ui5/webcomponents-base/dist/decorators/i18n.js\";\nimport transformDateToSecondaryType from \"@ui5/webcomponents-localization/dist/dates/transformDateToSecondaryType.js\";\nimport convertMonthNumbersToMonthNames from \"@ui5/webcomponents-localization/dist/dates/convertMonthNumbersToMonthNames.js\";\nimport CalendarDateComponent from \"@ui5/webcomponents-localization/dist/dates/CalendarDate.js\";\nimport { renderFinished } from \"@ui5/webcomponents-base/dist/Render.js\";\nimport {\n\tisEnter,\n\tisF4,\n\tisF4Shift,\n\tisSpace,\n} from \"@ui5/webcomponents-base/dist/Keys.js\";\nimport type I18nBundle from \"@ui5/webcomponents-base/dist/i18nBundle.js\";\nimport getCachedLocaleDataInstance from \"@ui5/webcomponents-localization/dist/getCachedLocaleDataInstance.js\";\nimport getLocale from \"@ui5/webcomponents-base/dist/locale/getLocale.js\";\nimport DateFormat from \"@ui5/webcomponents-localization/dist/DateFormat.js\";\nimport UI5Date from \"@ui5/webcomponents-localization/dist/dates/UI5Date.js\";\nimport \"@ui5/webcomponents-icons/dist/slim-arrow-left.js\";\nimport \"@ui5/webcomponents-icons/dist/slim-arrow-right.js\";\nimport { getMaxCalendarDate } from \"@ui5/webcomponents-localization/dist/dates/ExtremeDates.js\";\nimport CalendarDate from \"./CalendarDate.js\";\nimport CalendarDateRange from \"./CalendarDateRange.js\";\nimport \"./SpecialCalendarDate.js\";\nimport CalendarPart from \"./CalendarPart.js\";\nimport type { DayPickerChangeEventDetail } from \"./DayPicker.js\";\nimport type { MonthPickerChangeEventDetail } from \"./MonthPicker.js\";\nimport type { YearPickerChangeEventDetail } from \"./YearPicker.js\";\nimport CalendarSelectionMode from \"./types/CalendarSelectionMode.js\";\nimport CalendarPickersMode from \"./types/CalendarPickersMode.js\";\nimport type CalendarLegend from \"./CalendarLegend.js\";\nimport type { CalendarLegendItemSelectionChangeEventDetail } from \"./CalendarLegend.js\";\nimport type SpecialCalendarDate from \"./SpecialCalendarDate.js\";\nimport type CalendarLegendItemType from \"./types/CalendarLegendItemType.js\";\n\n// Default calendar for bundling\nimport \"@ui5/webcomponents-localization/dist/features/calendar/Gregorian.js\";\n\n// Template\nimport CalendarTemplate from \"./CalendarTemplate.js\";\n\n// Styles\nimport calendarCSS from \"./generated/themes/Calendar.css.js\";\nimport CalendarHeaderCss from \"./generated/themes/CalendarHeader.css.js\";\nimport {\n\tCALENDAR_HEADER_MONTH_BUTTON,\n\tCALENDAR_HEADER_MONTH_BUTTON_SHORTCUT,\n\tCALENDAR_HEADER_YEAR_BUTTON,\n\tCALENDAR_HEADER_YEAR_BUTTON_SHORTCUT,\n\tCALENDAR_HEADER_YEAR_RANGE_BUTTON,\n\tCALENDAR_HEADER_YEAR_RANGE_BUTTON_SHORTCUT,\n\tCALENDAR_HEADER_MONTH_NEXT_BUTTON_TITLE,\n\tCALENDAR_HEADER_MONTH_NEXT_BUTTON_SHORTCUT,\n\tCALENDAR_HEADER_MONTH_PREVIOUS_BUTTON_TITLE,\n\tCALENDAR_HEADER_MONTH_PREVIOUS_BUTTON_SHORTCUT,\n\tCALENDAR_HEADER_YEAR_NEXT_BUTTON_TITLE,\n\tCALENDAR_HEADER_YEAR_PREVIOUS_BUTTON_TITLE,\n\tCALENDAR_HEADER_YEAR_RANGE_NEXT_BUTTON_TITLE,\n\tCALENDAR_HEADER_YEAR_RANGE_PREVIOUS_BUTTON_TITLE,\n} from \"./generated/i18n/i18n-defaults.js\";\nimport type { YearRangePickerChangeEventDetail } from \"./YearRangePicker.js\";\n\ninterface ICalendarPicker extends HTMLElement {\n\t_showPreviousPage: () => void,\n\t_showNextPage: () => void,\n\t_hasPreviousPage: () => boolean,\n\t_hasNextPage: () => boolean,\n\t_currentYearRange?: CalendarYearRangeT,\n}\n\n/**\n * Interface for components that may be slotted inside a `ui5-calendar`.\n *\n * **Note:** Use with `ui5-date` or `ui5-date-range` as calendar date selection types.\n * @public\n */\ninterface ICalendarSelectedDates extends UI5Element {\n\tvalue?: string,\n\tstartValue?: string,\n\tendValue?: string\n}\n\ntype CalendarSelectionChangeEventDetail = {\n\tselectedValues: Array<string>,\n\tselectedDates: Array<number>,\n\ttimestamp: number | undefined,\n}\n\ntype SpecialCalendarDateT = {\n\tspecialDateTimestamp: number;\n\ttype: `${CalendarLegendItemType}`;\n\ttooltip?: string;\n};\n\ntype CalendarYearRangeT = {\n\tstartYear: number,\n\tendYear: number,\n}\n\ntype DisabledDateRangeT = {\n\tstartValue?: string,\n\tendValue?: string\n}\n\n/**\n * @class\n *\n * ### Overview\n *\n * The `ui5-calendar` component allows users to select one or more dates.\n *\n * Currently selected dates are represented with instances of `ui5-date` as\n * children of the `ui5-calendar`. The value property of each `ui5-date` must be a\n * date string, correctly formatted according to the `ui5-calendar`'s `formatPattern` property.\n * Whenever the user changes the date selection, `ui5-calendar` will automatically create/remove instances\n * of `ui5-date` in itself, unless you prevent this behavior by calling `preventDefault()` for the\n * `selection-change` event. This is useful if you want to control the selected dates externally.\n *\n * ### Usage\n *\n * The user can navigate to a particular date by:\n *\n * - Pressing over a month inside the months view\n * - Pressing over an year inside the years view\n *\n * The user can confirm a date selection by pressing over a date inside the days view.\n *\n * ### Keyboard Handling\n * The `ui5-calendar` provides advanced keyboard handling.\n * When a picker is showed and focused the user can use the following keyboard\n * shortcuts in order to perform a navigation:\n *\n * - Day picker:\n *\n * - [F4] - Shows month picker\n * - [Shift] + [F4] - Shows year picker\n * - [Page Up] - Navigate to the previous month\n * - [Page Down] - Navigate to the next month\n * - [Shift] + [Page Up] - Navigate to the previous year\n * - [Shift] + [Page Down] - Navigate to the next year\n * - [Ctrl] + [Shift] + [Page Up] - Navigate ten years backwards\n * - [Ctrl] + [Shift] + [Page Down] - Navigate ten years forwards\n * - [Home] - Navigate to the first day of the week\n * - [End] - Navigate to the last day of the week\n * - [Ctrl] + [Home] - Navigate to the first day of the month\n * - [Ctrl] + [End] - Navigate to the last day of the month\n *\n * - Month picker:\n *\n * - [Page Up] - Navigate to the previous year\n * - [Page Down] - Navigate to the next year\n * - [Home] - Navigate to the first month of the current row\n * - [End] - Navigate to the last month of the current row\n * - [Ctrl] + [Home] - Navigate to the first month of the current year\n * - [Ctrl] + [End] - Navigate to the last month of the year\n *\n * - Year picker:\n *\n * - [Page Up] - Navigate to the previous year range\n * - [Page Down] - Navigate the next year range\n * - [Home] - Navigate to the first year of the current row\n * - [End] - Navigate to the last year of the current row\n * - [Ctrl] + [Home] - Navigate to the first year of the current year range\n * - [Ctrl] + [End] - Navigate to the last year of the current year range\n *\n * #### Fast Navigation\n * This component provides a build in fast navigation group which can be used via [F6] / [Shift] + [F6] / [Ctrl] + [Alt/Option] / [Down] or [Ctrl] + [Alt/Option] + [Up].\n * In order to use this functionality, you need to import the following module:\n * `import \"@ui5/webcomponents-base/dist/features/F6Navigation.js\"`\n *\n * ### Calendar types\n * The component supports several calendar types - Gregorian, Buddhist, Islamic, Japanese and Persian.\n * By default the Gregorian Calendar is used. In order to use the Buddhist, Islamic, Japanese or Persian calendar,\n * you need to set the `primaryCalendarType` property and import one or more of the following modules:\n *\n * `import \"@ui5/webcomponents-localization/dist/features/calendar/Buddhist.js\";`\n *\n * `import \"@ui5/webcomponents-localization/dist/features/calendar/Islamic.js\";`\n *\n * `import \"@ui5/webcomponents-localization/dist/features/calendar/Japanese.js\";`\n *\n * `import \"@ui5/webcomponents-localization/dist/features/calendar/Persian.js\";`\n *\n * Or, you can use the global configuration and set the `calendarType` key:\n *\n * ```html\n * <script data-id=\"sap-ui-config\" type=\"application/json\">\n * \t{\n * \t\t\"calendarType\": \"Japanese\"\n * \t}\n * </script>\n * ```\n *\n * ### ES6 Module Import\n *\n * `import \"@ui5/webcomponents/dist/Calendar.js\";`\n * @constructor\n * @extends CalendarPart\n * @public\n * @csspart day-cell - Used to style the day cells.\n * @csspart day-cell-selected - Used to style the day cells when selected.\n * @csspart day-cell-selected-between - Used to style the day cells in between of selected dates in range.\n * @csspart month-cell - Used to style the month cells.\n * @csspart month-cell-selected - Used to style the month cells when selected.\n * @csspart month-cell-selected-between - Used to style the day cells in between of selected months in range.\n * @csspart month-picker-root - Used to style the month picker root container.\n * @csspart year-cell - Used to style the year cells.\n * @csspart year-cell-selected - Used to style the year cells when selected.\n * @csspart year-cell-selected-between - Used to style the year cells in between of selected years in range.\n * @csspart year-picker-root - Used to style the year picker root container.\n * @csspart year-range-cell - Used to style the year range cells.\n * @csspart year-range-cell-selected - Used to style the year range cells when selected.\n * @csspart year-range-cell-selected-between - Used to style the year range cells in between of selected year ranges.\n * @csspart year-range-picker-root - Used to style the year range picker root container.\n * @csspart calendar-header-middle-button - Used to style the calendar header middle buttons (month/year/year-range buttons).\n * @csspart calendar-header-arrow-button - Used to style the calendar header navigation arrow buttons (previous/next buttons).\n * @since 1.0.0-rc.11\n */\n@customElement({\n\ttag: \"ui5-calendar\",\n\tfastNavigation: true,\n\ttemplate: CalendarTemplate,\n\tstyles: [calendarCSS, CalendarHeaderCss],\n})\n/**\n * Fired when the selected dates change.\n *\n * **Note:** If you call `preventDefault()` for this event, the component will not\n * create instances of `ui5-date` for the newly selected dates. In that case you should do this manually.\n * @param {Array<string>} selectedValues The selected dates\n * @param {Array<number>} selectedDates The selected dates as UTC timestamps\n * @public\n */\n@event(\"selection-change\", {\n\tbubbles: true,\n\tcancelable: true,\n})\n\n@event(\"show-month-view\", {\n\tbubbles: true,\n})\n@event(\"show-year-view\", {\n\tbubbles: true,\n})\n@event(\"show-year-range-view\", {\n\tbubbles: true,\n})\nclass Calendar extends CalendarPart {\n\teventDetails!: CalendarPart[\"eventDetails\"] & {\n\t\t\"selection-change\": CalendarSelectionChangeEventDetail,\n\t\t\"show-month-view\": void,\n\t\t\"show-year-view\": void,\n\t\t\"show-year-range-view\": void,\n\t}\n\t/**\n\t * Defines the type of selection used in the calendar component.\n\t * Accepted property values are:\n\t *\n\t * - `CalendarSelectionMode.Single` - enables a single date selection.(default value)\n\t * - `CalendarSelectionMode.Range` - enables selection of a date range.\n\t * - `CalendarSelectionMode.Multiple` - enables selection of multiple dates.\n\t * @default \"Single\"\n\t * @public\n\t */\n\t@property()\n\tselectionMode: `${CalendarSelectionMode}` = \"Single\";\n\n\t/**\n\t * Defines the visibility of the week numbers column.\n\t *\n\t * **Note:** For calendars other than Gregorian,\n\t * the week numbers are not displayed regardless of what is set.\n\t * @default false\n\t * @public\n\t */\n\t@property({ type: Boolean })\n\thideWeekNumbers = false;\n\n\t/**\n\t * Which picker is currently visible to the user: day/month/year/yearRange\n\t * @private\n\t */\n\t@property()\n\t_currentPicker: \"day\" | \"month\" | \"year\" | \"yearrange\" = \"day\"\n\n\t@property({ type: Boolean })\n\t_previousButtonDisabled = false;\n\n\t@property({ type: Boolean })\n\t_nextButtonDisabled = false;\n\n\t@property()\n\t_headerMonthButtonText?: string;\n\n\t@property()\n\t_headerYearButtonText?: string;\n\n\t@property()\n\t_headerYearButtonTextSecType?: string;\n\n\t@property()\n\t_headerYearRangeButtonText?: string;\n\n\t@property()\n\t_headerYearRangeButtonTextSecType?: string;\n\n\t@property({ noAttribute: true })\n\t_pickersMode: `${CalendarPickersMode}` = \"DAY_MONTH_YEAR\";\n\n\t_valueIsProcessed = false;\n\n\t_rangeStartYear?: number;\n\n\t/**\n\t * Defines the calendar legend of the component.\n\t * @public\n\t * @since 1.23.0\n\t */\n\t@slot({ type: HTMLElement, invalidateOnChildChange: true })\n\tcalendarLegend!: Slot<CalendarLegend>;\n\n\t/**\n\t * Defines the selected date or dates (depending on the `selectionMode` property)\n\t * for this calendar as instances of `ui5-date` or `ui5-date-range`.\n\t * Use `ui5-date` for single or multiple selection, and `ui5-date-range` for range selection.\n\t * @public\n\t */\n\t@slot({ type: HTMLElement, invalidateOnChildChange: true, \"default\": true })\n\tdates!: DefaultSlot<ICalendarSelectedDates>;\n\n\t/**\n\t * Defines the special dates, visually emphasized in the calendar.\n\t * @public\n\t * @since 1.23.0\n\t */\n\t@slot({ type: HTMLElement, invalidateOnChildChange: true })\n\tspecialDates!: Slot<SpecialCalendarDate>;\n\n\t/**\n\t * Defines the disabled date ranges that cannot be selected in the calendar.\n\t * Use `ui5-date-range` elements to specify ranges of disabled dates.\n\t * Each range can define a start date, an end date, or both.\n\t * @public\n\t * @since 2.16.0\n\t */\n\t@slot({ type: HTMLElement, invalidateOnChildChange: true })\n\tdisabledDates!: Slot<CalendarDateRange>;\n\n\t/**\n\t * Defines the selected item type of the calendar legend item (if such exists).\n\t * @private\n\t */\n\t@property()\n\t_selectedItemType: `${CalendarLegendItemType}` = \"None\";\n\n\t@i18n(\"@ui5/webcomponents\")\n\tstatic i18nBundle: I18nBundle;\n\n\tconstructor() {\n\t\tsuper();\n\n\t\tthis._valueIsProcessed = false;\n\t}\n\n\t/**\n\t * @private\n\t */\n\tget _selectedDatesTimestamps(): Array<number> {\n\t\tlet selectedDates: Array<number> = [];\n\n\t\tif (this.selectionMode === CalendarSelectionMode.Range) {\n\t\t\tconst range = this.dates.find(date => date.hasAttribute(\"ui5-date-range\"));\n\t\t\tconst startDate = range && range.startValue && this.getFormat().parse(range.startValue, true) as Date;\n\t\t\tconst endDate = range && range.endValue && this.getFormat().parse(range.endValue, true) as Date;\n\n\t\t\tif (startDate) {\n\t\t\t\tselectedDates.push(startDate.getTime() / 1000);\n\t\t\t}\n\n\t\t\tif (endDate) {\n\t\t\t\tselectedDates.push(endDate.getTime() / 1000);\n\t\t\t}\n\t\t} else {\n\t\t\tselectedDates = this.dates\n\t\t\t\t.filter(dateElement => {\n\t\t\t\t\treturn dateElement.hasAttribute(\"ui5-date\")\n\t\t\t\t\t\t&& dateElement.value\n\t\t\t\t\t\t&& this._isValidCalendarDate(dateElement.value)\n\t\t\t\t\t\t&& this._getTimeStampFromString(dateElement.value);\n\t\t\t\t})\n\t\t\t\t.map(dateElement => Number(this._getTimeStampFromString(dateElement.value!)) / 1000);\n\t\t}\n\n\t\treturn selectedDates;\n\t}\n\n\t/**\n\t * @private\n\t */\n\t_setSelectedDates(selectedDates: Array<number>) {\n\t\tconst selectedUTCDates = selectedDates.map(timestamp => this.getFormat().format(UI5Date.getInstance(timestamp * 1000), true));\n\n\t\tif (this.selectionMode === CalendarSelectionMode.Range) {\n\t\t\t// Create tags for the selected dates that don't already exist in DOM\n\t\t\tif (selectedUTCDates.length) {\n\t\t\t\tlet dateRange = this.dates.find(dateElement => dateElement.hasAttribute(\"ui5-date-range\") && dateElement.startValue === selectedUTCDates[0]);\n\t\t\t\tif (!dateRange) {\n\t\t\t\t\tdateRange = document.createElement(CalendarDateRange.getMetadata().getTag()) as CalendarDateRange;\n\t\t\t\t\tdateRange.startValue = selectedUTCDates[0];\n\t\t\t\t\tthis.appendChild(dateRange);\n\t\t\t\t} else {\n\t\t\t\t\tdateRange.endValue = selectedUTCDates[1];\n\t\t\t\t}\n\t\t\t\t// Remove all elements for dates that are no longer selected\n\t\t\t\tthis.dates\n\t\t\t\t\t.filter(dateElement => {\n\t\t\t\t\t\treturn dateElement.hasAttribute(\"ui5-date\")\n\t\t\t\t\t\t\t|| (dateRange && dateElement.startValue !== dateRange.startValue);\n\t\t\t\t\t})\n\t\t\t\t\t.forEach(dateElement => {\n\t\t\t\t\t\tthis.removeChild(dateElement);\n\t\t\t\t\t});\n\t\t\t}\n\t\t} else {\n\t\t\tconst valuesInDOM = this._selectedDatesTimestamps.map(timestamp => this.getFormat().format(UI5Date.getInstance(timestamp * 1000)));\n\n\t\t\t// Remove all elements for dates that are no longer selected\n\t\t\tthis.dates\n\t\t\t\t.filter(dateElement => {\n\t\t\t\t\treturn dateElement.hasAttribute(\"ui5-date-range\")\n\t\t\t\t\t\t|| (dateElement.hasAttribute(\"ui5-date\") && !selectedUTCDates.includes(dateElement.value!));\n\t\t\t\t})\n\t\t\t\t.forEach(dateElement => {\n\t\t\t\t\tthis.removeChild(dateElement);\n\t\t\t\t});\n\n\t\t\t// Create tags for the selected dates that don't already exist in DOM\n\t\t\tselectedUTCDates\n\t\t\t\t.filter(value => !valuesInDOM.includes(value))\n\t\t\t\t.forEach(value => {\n\t\t\t\t\tconst dateElement = document.createElement(CalendarDate.getMetadata().getTag()) as CalendarDate;\n\t\t\t\t\tdateElement.value = value;\n\t\t\t\t\tthis.appendChild(dateElement);\n\t\t\t\t});\n\t\t}\n\t}\n\n\t_isValidCalendarDate(dateString: string): boolean {\n\t\tconst date = this.getFormat().parse(dateString);\n\t\treturn !!date;\n\t}\n\n\tget _disabledDates() {\n\t\tconst validDisabledDateRanges = this.disabledDates.filter(dateRange => {\n\t\t\tconst startValue = dateRange.startValue;\n\t\t\tconst endValue = dateRange.endValue;\n\t\t\treturn (startValue && this._isValidCalendarDate(startValue)) || (endValue && this._isValidCalendarDate(endValue));\n\t\t});\n\n\t\treturn validDisabledDateRanges.map(dateRange => ({\n\t\t\tstartValue: dateRange.startValue,\n\t\t\tendValue: dateRange.endValue,\n\t\t}));\n\t}\n\n\tget _specialCalendarDates() {\n\t\tconst hasSelectedType = this._specialDates.some(date => date.type === this._selectedItemType);\n\t\tconst validSpecialDates = this._specialDates.filter(date => {\n\t\t\tconst dateType = date.type;\n\t\t\tconst dateValue = date.value;\n\t\t\tconst isTypeMatch = hasSelectedType\n\t\t\t\t? (dateType === this._selectedItemType || dateType === \"Working\" || dateType === \"NonWorking\")\n\t\t\t\t: true;\n\t\t\treturn isTypeMatch && dateValue && this._isValidCalendarDate(dateValue);\n\t\t});\n\n\t\tvalidSpecialDates.forEach(date => {\n\t\t\tconst refLegendItem = this.calendarLegend.length ? this.calendarLegend[0].items.find(item => item.type === date.type) : undefined;\n\t\t\tdate._tooltip = refLegendItem?.text || \"\";\n\t\t});\n\n\t\tconst uniqueDates = new Set();\n\t\tconst uniqueSpecialDates: Array<SpecialCalendarDateT> = [];\n\n\t\tvalidSpecialDates.forEach(date => {\n\t\t\tconst dateFromValue = this.getFormat().parse(date.value) as Date | UI5Date;\n\t\t\tconst timestamp = dateFromValue.getTime();\n\n\t\t\tif (!uniqueDates.has(timestamp)) {\n\t\t\t\tuniqueDates.add(timestamp);\n\t\t\t\tconst specialDateTimestamp = CalendarDateComponent.fromLocalJSDate(dateFromValue).valueOf() / 1000;\n\t\t\t\tconst type = date.type;\n\t\t\t\tconst tooltip = date._tooltip;\n\t\t\t\tuniqueSpecialDates.push({ specialDateTimestamp, type, tooltip });\n\t\t\t}\n\t\t});\n\n\t\treturn uniqueSpecialDates;\n\t}\n\n\t_onCalendarLegendSelectionChange(e: CustomEvent<CalendarLegendItemSelectionChangeEventDetail>) {\n\t\tconst defaultTypes = [\"Working\", \"NonWorking\", \"Selected\", \"Today\"];\n\t\tthis._selectedItemType = e.detail.item.type;\n\n\t\tif (defaultTypes.includes(this._selectedItemType)) {\n\t\t\tthis._selectedItemType = \"None\"; // In order to avoid filtering of default types\n\t\t}\n\t}\n\n\t/**\n\t * Makes sure that _currentPicker is always set to a value, allowed by _pickersMode\n\t */\n\t_normalizeCurrentPicker() {\n\t\tif (this._currentPicker === \"day\" && this._pickersMode !== CalendarPickersMode.DAY_MONTH_YEAR) {\n\t\t\tthis.switchToMonthPicker(true);\n\t\t}\n\n\t\tif (this._currentPicker === \"month\" && this._pickersMode === CalendarPickersMode.YEAR) {\n\t\t\tthis.switchToYearPicker(true);\n\t\t}\n\t}\n\n\tonBeforeRendering() {\n\t\tthis._normalizeCurrentPicker();\n\n\t\tif (!this._valueIsProcessed) {\n\t\t\tif (this._selectedDatesTimestamps.length) {\n\t\t\t\tthis.timestamp = this._selectedDatesTimestamps[0];\n\t\t\t}\n\n\t\t\tthis._valueIsProcessed = true;\n\t\t}\n\t}\n\n\tasync onAfterRendering() {\n\t\tawait renderFinished(); // Await for the current picker to render and then ask if it has previous/next pages\n\t\tthis._previousButtonDisabled = !this._currentPickerDOM._hasPreviousPage();\n\t\tthis._nextButtonDisabled = !this._currentPickerDOM._hasNextPage();\n\n\t\tconst yearFormat = DateFormat.getDateInstance({ format: \"y\", calendarType: this.primaryCalendarType });\n\t\tconst localeData = getCachedLocaleDataInstance(getLocale());\n\t\tthis._headerMonthButtonText = localeData.getMonthsStandAlone(\"wide\", this.primaryCalendarType)[this._calendarDate.getMonth()];\n\t\tthis._headerYearButtonText = String(yearFormat.format(this._localDate, true));\n\n\t\tconst currentYearRange = this._currentYearRange;\n\t\tconst { rangeStartText, rangeEndText } = this._formatYearRangeText(currentYearRange);\n\t\tthis._headerYearRangeButtonText = `${rangeStartText} - ${rangeEndText}`;\n\n\t\tthis._secondaryCalendarType && this._setSecondaryCalendarTypeButtonText();\n\t}\n\n\tonInvalidation(changeInfo: ChangeInfo) {\n\t\tif (changeInfo.reason === \"childchange\") {\n\t\t\tthis._valueIsProcessed = false;\n\t\t}\n\t}\n\n\t/**\n\t * The user clicked the \"month\" button in the header\n\t */\n\tonHeaderMonthButtonPress() {\n\t\tthis.switchToMonthPicker();\n\t\tthis.fireDecoratorEvent(\"show-month-view\");\n\t}\n\n\tasync switchToDayPicker(suppressFocus = false) {\n\t\tthis._currentPicker = \"day\";\n\t\tif (!suppressFocus) {\n\t\t\tawait renderFinished();\n\t\t\tthis._currentPickerDOM.focus();\n\t\t}\n\t}\n\n\tasync switchToMonthPicker(suppressFocus = false) {\n\t\tthis._currentPicker = \"month\";\n\t\tif (!suppressFocus) {\n\t\t\tawait renderFinished();\n\t\t\tthis._currentPickerDOM.focus();\n\t\t}\n\t}\n\n\t/**\n\t * The user clicked the \"year\" button in the header\n\t */\n\tonHeaderYearButtonPress() {\n\t\tthis.switchToYearPicker();\n\t\tthis.fireDecoratorEvent(\"show-year-view\");\n\t}\n\n\tasync switchToYearPicker(suppressFocus = false) {\n\t\tthis._currentPicker = \"year\";\n\t\tif (!suppressFocus) {\n\t\t\tawait renderFinished();\n\t\t\tthis._currentPickerDOM.focus();\n\t\t}\n\t}\n\n\t/**\n\t * The user clicked the \"year range\" button in the YearPicker header\n\t */\n\tonHeaderYearRangeButtonPress() {\n\t\tthis.switchToYearRangePicker();\n\t\tthis.fireDecoratorEvent(\"show-year-range-view\");\n\t}\n\n\tasync switchToYearRangePicker(suppressFocus = false) {\n\t\tthis._currentPicker = \"yearrange\";\n\t\tif (!suppressFocus) {\n\t\t\tawait renderFinished();\n\t\t\tthis._currentPickerDOM.focus();\n\t\t}\n\t}\n\n\tget _currentPickerDOM() {\n\t\t// Calendar's shadowRoot and all the pickers are always present - the \"!\" is safe to be used.\n\t\treturn this.shadowRoot!.querySelector(`[ui5-${this._currentPicker}picker]`)! as unknown as ICalendarPicker;\n\t}\n\n\t/**\n\t * Returns the focusable element inside the Calendar (the current picker)\n\t * @override\n\t */\n\tgetFocusDomRef() {\n\t\treturn this._currentPickerDOM as HTMLElement | undefined;\n\t}\n\n\t/**\n\t * The year clicked the \"Previous\" button in the header\n\t */\n\tonHeaderPreviousPress() {\n\t\tthis._currentPickerDOM._showPreviousPage();\n\t}\n\n\t/**\n\t * The year clicked the \"Next\" button in the header\n\t */\n\tonHeaderNextPress() {\n\t\tthis._currentPickerDOM._showNextPage();\n\t}\n\n\t_setSecondaryCalendarTypeButtonText() {\n\t\tconst yearFormatSecType = DateFormat.getDateInstance({ format: \"y\", calendarType: this._secondaryCalendarType });\n\t\tthis._headerYearButtonTextSecType = String(yearFormatSecType.format(this._localDate, true));\n\n\t\tconst currentYearRange = this._currentYearRange;\n\t\tconst { rangeStart, rangeEnd } = this._createYearRangeDates(currentYearRange);\n\n\t\tconst rangeStartSecType = transformDateToSecondaryType(this.primaryCalendarType, this._secondaryCalendarType, rangeStart.valueOf() / 1000, true)\n\t\t\t.firstDate;\n\t\tconst rangeEndSecType = transformDateToSecondaryType(this.primaryCalendarType, this._secondaryCalendarType, rangeEnd.valueOf() / 1000, true)\n\t\t\t.lastDate;\n\n\t\tthis._headerYearRangeButtonTextSecType = `${yearFormatSecType.format(rangeStartSecType.toLocalJSDate())} - ${yearFormatSecType.format(rangeEndSecType.toLocalJSDate())}`;\n\t}\n\n\tget secondaryCalendarTypeButtonText() {\n\t\tif (!this.hasSecondaryCalendarType) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst localDate = UI5Date.getInstance(this._timestamp * 1000);\n\t\tconst secondYearFormat = DateFormat.getDateInstance({ format: \"y\", calendarType: this._secondaryCalendarType });\n\t\tconst dateInSecType = transformDateToSecondaryType(this._primaryCalendarType, this._secondaryCalendarType, this._timestamp);\n\t\tconst secondMonthInfo = convertMonthNumbersToMonthNames(dateInSecType.firstDate.getMonth(), dateInSecType.lastDate.getMonth(), this._secondaryCalendarType);\n\t\tconst secondYearText = secondYearFormat.format(localDate);\n\n\t\treturn {\n\t\t\tyearButtonText: secondYearText,\n\t\t\tmonthButtonText: secondMonthInfo.text,\n\t\t\tmonthButtonInfo: secondMonthInfo.textInfo,\n\t\t};\n\t}\n\n\t/**\n\t * The month button is hidden when the month picker or year picker is shown\n\t * @private\n\t */\n\tget _isHeaderMonthButtonHidden(): boolean {\n\t\treturn this._currentPicker !== \"day\";\n\t}\n\n\t/**\n\t * The year range picker button is shown only in the year picker\n\t * @private\n\t */\n\tget _isHeaderYearRangeButtonHidden(): boolean {\n\t\treturn this._currentPicker !== \"year\";\n\t}\n\n\t/**\n\t * The year button is shown only in the day & month pickers\n\t * @private\n\t */\n\tget _isHeaderYearButtonHidden(): boolean {\n\t\treturn !(this._currentPicker === \"day\" || this._currentPicker === \"month\");\n\t}\n\n\tget _isDayPickerHidden() {\n\t\treturn this._currentPicker !== \"day\";\n\t}\n\n\tget _isMonthPickerHidden() {\n\t\treturn this._currentPicker !== \"month\";\n\t}\n\n\tget _isYearPickerHidden() {\n\t\treturn this._currentPicker !== \"year\";\n\t}\n\n\tget _isYearRangePickerHidden() {\n\t\treturn this._currentPicker !== \"yearrange\";\n\t}\n\n\tget _currentYearRange(): CalendarYearRangeT {\n\t\tconst rangeSize = this.hasSecondaryCalendarType ? 8 : 20;\n\t\tconst yearsOffset = this.hasSecondaryCalendarType ? 2 : 9;\n\t\tconst currentYear = this._calendarDate.getYear();\n\n\t\t// On first load, current year should be the 3rd or 10th year in the range (depending on the calendar type)\n\t\tif (!this._rangeStartYear) {\n\t\t\tthis._rangeStartYear = currentYear - yearsOffset;\n\t\t}\n\n\t\t// If page navigation occured, update the current range start year\n\t\tthis._rangeStartYear += Math.floor((currentYear - this._rangeStartYear) / rangeSize) * rangeSize;\n\n\t\t// Normalize range start year to be between the min and absolute max year\n\t\tconst minYear = this._minDate.getYear();\n\t\tif (currentYear - rangeSize < minYear) {\n\t\t\tthis._rangeStartYear = minYear;\n\t\t}\n\n\t\tconst absoluteMaxYear = getMaxCalendarDate(this._primaryCalendarType).getYear();\n\t\tif (currentYear + rangeSize > absoluteMaxYear) {\n\t\t\tthis._rangeStartYear = absoluteMaxYear - rangeSize + 1;\n\t\t}\n\n\t\treturn {\n\t\t\tstartYear: this._rangeStartYear,\n\t\t\tendYear: this._rangeStartYear + rangeSize - 1,\n\t\t};\n\t}\n\n\t_fireEventAndUpdateSelectedDates(selectedDates: Array<number>) {\n\t\tconst datesValues = selectedDates.map(timestamp => {\n\t\t\tconst calendarDate = CalendarDateComponent.fromTimestamp(timestamp * 1000, this._primaryCalendarType);\n\t\t\treturn this.getFormat().format(calendarDate.toUTCJSDate(), true);\n\t\t});\n\n\t\tconst defaultPrevented = !this.fireDecoratorEvent(\"selection-change\", { timestamp: this.timestamp, selectedDates: [...selectedDates], selectedValues: datesValues });\n\t\tif (!defaultPrevented) {\n\t\t\tthis._setSelectedDates(selectedDates);\n\t\t}\n\t}\n\n\tonSelectedDatesChange(e: CustomEvent<DayPickerChangeEventDetail>) {\n\t\tthis.timestamp = e.detail.timestamp;\n\t\tthis._fireEventAndUpdateSelectedDates(e.detail.dates);\n\t}\n\n\tonSelectedMonthChange(e: CustomEvent<MonthPickerChangeEventDetail>) {\n\t\tthis.timestamp = e.detail.timestamp;\n\n\t\tif (this._pickersMode === CalendarPickersMode.DAY_MONTH_YEAR) {\n\t\t\tthis.switchToDayPicker();\n\t\t} else {\n\t\t\tthis._fireEventAndUpdateSelectedDates(e.detail.dates);\n\t\t}\n\t}\n\n\tonSelectedYearChange(e: CustomEvent<YearPickerChangeEventDetail>) {\n\t\tthis.timestamp = e.detail.timestamp;\n\n\t\tif (this._pickersMode === CalendarPickersMode.DAY_MONTH_YEAR) {\n\t\t\tthis.switchToDayPicker();\n\t\t} else if (this._pickersMode === CalendarPickersMode.MONTH_YEAR) {\n\t\t\tthis.switchToMonthPicker();\n\t\t} else {\n\t\t\tthis._fireEventAndUpdateSelectedDates(e.detail.dates);\n\t\t}\n\t}\n\n\tonSelectedYearRangeChange(e: CustomEvent<YearRangePickerChangeEventDetail>) {\n\t\tthis.timestamp = e.detail.timestamp;\n\t\tthis.switchToYearPicker();\n\t}\n\n\tasync onNavigate(e: CustomEvent) {\n\t\tthis.timestamp = e.detail.timestamp;\n\t\tawait renderFinished();\n\t\tthis._currentPickerDOM.focus();\n\t}\n\n\t_onkeydown(e: KeyboardEvent) {\n\t\tif (isF4(e) && this._currentPicker !== \"month\") {\n\t\t\tthis.switchToMonthPicker();\n\t\t\tthis.fireDecoratorEvent(\"show-month-view\");\n\t\t}\n\n\t\tif (!isF4Shift(e)) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (this._currentPicker !== \"year\") {\n\t\t\tthis.switchToYearPicker();\n\t\t\tthis.fireDecoratorEvent(\"show-year-view\");\n\t\t} else {\n\t\t\tthis.switchToYearRangePicker();\n\t\t\tthis.fireDecoratorEvent(\"show-year-range-view\");\n\t\t}\n\t}\n\n\t_onLegendFocusOut() {\n\t\tthis._selectedItemType = \"None\";\n\t}\n\n\tget _specialDates() {\n\t\treturn this.getSlottedNodes<SpecialCalendarDate>(\"specialDates\");\n\t}\n\n\tget classes() {\n\t\treturn {\n\t\t\tprevButton: {\n\t\t\t\t\"ui5-calheader-arrowbtn\": true,\n\t\t\t\t\"ui5-calheader-arrowbtn-disabled\": this._previousButtonDisabled,\n\t\t\t},\n\t\t\tnextButton: {\n\t\t\t\t\"ui5-calheader-arrowbtn\": true,\n\t\t\t\t\"ui5-calheader-arrowbtn-disabled\": this._nextButtonDisabled,\n\t\t\t},\n\t\t};\n\t}\n\n\tget accInfo() {\n\t\tconst currentYearRange = this._currentYearRange;\n\t\tconst { rangeStartText, rangeEndText } = this._formatYearRangeText(currentYearRange);\n\n\t\tconst headerMonthButtonText = this.hasSecondaryCalendarType\n\t\t\t? `${this._headerMonthButtonText}, ${this.secondMonthButtonText}` : `${this._headerMonthButtonText}`;\n\n\t\t// Get base labels\n\t\tconst monthLabel = Calendar.i18nBundle?.getText(CALENDAR_HEADER_MONTH_BUTTON, headerMonthButtonText);\n\t\tconst yearLabel = Calendar.i18nBundle?.getText(CALENDAR_HEADER_YEAR_BUTTON, this._headerYearButtonText as string);\n\t\tconst yearRangeLabel = Calendar.i18nBundle?.getText(CALENDAR_HEADER_YEAR_RANGE_BUTTON, rangeStartText, rangeEndText);\n\t\tlet nextBtnLabel = Calendar.i18nBundle?.getText(CALENDAR_HEADER_MONTH_NEXT_BUTTON_TITLE);\n\t\tlet prevBtnLabel = Calendar.i18nBundle?.getText(CALENDAR_HEADER_MONTH_PREVIOUS_BUTTON_TITLE);\n\n\t\tif (this._currentPicker === \"month\") {\n\t\t\tnextBtnLabel = Calendar.i18nBundle?.getText(CALENDAR_HEADER_YEAR_NEXT_BUTTON_TITLE);\n\t\t\tprevBtnLabel = Calendar.i18nBundle?.getText(CALENDAR_HEADER_YEAR_PREVIOUS_BUTTON_TITLE);\n\t\t} else if (this._currentPicker === \"year\" || this._currentPicker === \"yearrange\") {\n\t\t\tnextBtnLabel = Calendar.i18nBundle?.getText(CALENDAR_HEADER_YEAR_RANGE_NEXT_BUTTON_TITLE);\n\t\t\tprevBtnLabel = Calendar.i18nBundle?.getText(CALENDAR_HEADER_YEAR_RANGE_PREVIOUS_BUTTON_TITLE);\n\t\t}\n\n\t\t// Get shortcuts\n\t\tconst monthShortcut = Calendar.i18nBundle?.getText(CALENDAR_HEADER_MONTH_BUTTON_SHORTCUT);\n\t\tconst yearShortcut = Calendar.i18nBundle?.getText(CALENDAR_HEADER_YEAR_BUTTON_SHORTCUT);\n\t\tconst yearRangeShortcut = Calendar.i18nBundle?.getText(CALENDAR_HEADER_YEAR_RANGE_BUTTON_SHORTCUT);\n\t\tconst nextBtnShortcut = Calendar.i18nBundle?.getText(CALENDAR_HEADER_MONTH_NEXT_BUTTON_SHORTCUT);\n\t\tconst prevBtnShortcut = Calendar.i18nBundle?.getText(CALENDAR_HEADER_MONTH_PREVIOUS_BUTTON_SHORTCUT);\n\n\t\treturn {\n\t\t\tariaLabelMonthButton: monthLabel,\n\t\t\tariaLabelYearButton: yearLabel,\n\t\t\tariaLabelYearRangeButton: yearRangeLabel,\n\t\t\tariaLabelNextButton: nextBtnLabel,\n\t\t\tariaLabelPrevButton: prevBtnLabel,\n\n\t\t\t// Keyboard shortcuts for aria-keyshortcuts\n\t\t\tkeyShortcutMonthButton: monthShortcut,\n\t\t\tkeyShortcutYearButton: yearShortcut,\n\t\t\tkeyShortcutYearRangeButton: yearRangeShortcut,\n\t\t\tkeyShortcutNextButton: nextBtnShortcut,\n\t\t\tkeyShortcutPrevButton: prevBtnShortcut,\n\n\t\t\t// Tooltips combining label and shortcut\n\t\t\ttooltipMonthButton: `${monthLabel} (${monthShortcut})`,\n\t\t\ttooltipYearButton: `${yearLabel} (${yearShortcut})`,\n\t\t\ttooltipYearRangeButton: `${yearRangeLabel} (${yearRangeShortcut})`,\n\t\t\ttooltipNextButton: `${nextBtnLabel} (${nextBtnShortcut})`,\n\t\t\ttooltipPrevButton: `${prevBtnLabel} (${prevBtnShortcut})`,\n\t\t};\n\t}\n\n\t/**\n\t * Helper method to create CalendarDateComponent instances for year range\n\t * @private\n\t */\n\t_createYearRangeDates(yearRange: CalendarYearRangeT, calendarType: string = this._primaryCalendarType) {\n\t\tconst rangeStart = new CalendarDateComponent(this._calendarDate, calendarType);\n\t\tconst rangeEnd = new CalendarDateComponent(this._calendarDate, calendarType);\n\n\t\trangeStart.setYear(yearRange.startYear);\n\t\trangeEnd.setYear(yearRange.endYear);\n\n\t\treturn { rangeStart, rangeEnd };\n\t}\n\n\t/**\n\t * Helper method to format year range text\n\t * @private\n\t */\n\t_formatYearRangeText(yearRange: CalendarYearRangeT) {\n\t\tconst yearFormat = DateFormat.getDateInstance({ format: \"y\", calendarType: this.primaryCalendarType });\n\t\tconst { rangeStart, rangeEnd } = this._createYearRangeDates(yearRange, this.primaryCalendarType);\n\n\t\tconst rangeStartText = yearFormat.format(rangeStart.toLocalJSDate());\n\t\tconst rangeEndText = yearFormat.format(rangeEnd.toLocalJSDate());\n\n\t\treturn { rangeStartText, rangeEndText };\n\t}\n\n\tget secondMonthButtonText() {\n\t\tconst secondMonthButtonText = this.secondaryCalendarTypeButtonText?.monthButtonText as string;\n\n\t\treturn secondMonthButtonText;\n\t}\n\n\tonMonthButtonKeyDown(e: KeyboardEvent) {\n\t\tif (isSpace(e)) {\n\t\t\te.preventDefault();\n\t\t}\n\n\t\tif (isEnter(e)) {\n\t\t\tthis.switchToMonthPicker();\n\t\t\tthis.fireDecoratorEvent(\"show-month-view\");\n\t\t}\n\t}\n\n\tonMonthButtonKeyUp(e: KeyboardEvent) {\n\t\tif (isSpace(e)) {\n\t\t\te.preventDefault();\n\t\t\tthis.switchToMonthPicker();\n\t\t\tthis.fireDecoratorEvent(\"show-month-view\");\n\t\t}\n\t}\n\n\tonYearButtonKeyDown(e: KeyboardEvent) {\n\t\tif (isSpace(e)) {\n\t\t\te.preventDefault();\n\t\t}\n\n\t\tif (isEnter(e)) {\n\t\t\tthis.switchToYearPicker();\n\t\t\tthis.fireDecoratorEvent(\"show-year-view\");\n\t\t}\n\t}\n\n\tonYearButtonKeyUp(e: KeyboardEvent) {\n\t\tif (isSpace(e)) {\n\t\t\tthis.switchToYearPicker();\n\t\t\tthis.fireDecoratorEvent(\"show-year-view\");\n\t\t}\n\t}\n\n\tonYearRangeButtonKeyDown(e: KeyboardEvent) {\n\t\tif (isSpace(e)) {\n\t\t\te.preventDefault();\n\t\t}\n\n\t\tif (isEnter(e)) {\n\t\t\tthis.switchToYearRangePicker();\n\t\t\tthis.fireDecoratorEvent(\"show-year-range-view\");\n\t\t}\n\t}\n\n\tonYearRangeButtonKeyUp(e: KeyboardEvent) {\n\t\tif (isSpace(e)) {\n\t\t\tthis.switchToYearRangePicker();\n\t\t\tthis.fireDecoratorEvent(\"show-year-range-view\");\n\t\t}\n\t}\n\n\t_handleNavigationButtonKeyDown(e: MouseEvent, isDisabled: boolean, action: () => void) {\n\t\tif (isDisabled) {\n\t\t\te.preventDefault();\n\t\t\treturn;\n\t\t}\n\n\t\tif (e.button !== 0) {\n\t\t\treturn;\n\t\t}\n\n\t\taction();\n\t\te.preventDefault();\n\t}\n\n\tonPrevButtonClick(e: MouseEvent) {\n\t\tthis._handleNavigationButtonKeyDown(e, this._previousButtonDisabled, () => this.onHeaderPreviousPress());\n\t}\n\n\tonNextButtonClick(e: MouseEvent) {\n\t\tthis._handleNavigationButtonKeyDown(e, this._nextButtonDisabled, () => this.onHeaderNextPress());\n\t}\n\n\t/**\n\t * Returns an array of UTC timestamps, representing the selected dates.\n\t * @protected\n\t * @deprecated\n\t */\n\tget selectedDates(): Array<number> {\n\t\treturn this._selectedDatesTimestamps;\n\t}\n\n\t/**\n\t * Creates instances of `ui5-date` or `ui5-date-range` inside this `ui5-calendar` with values, equal to the provided UTC timestamps\n\t * @protected\n\t * @deprecated\n\t * @param selectedDates Array of UTC timestamps\n\t */\n\tset selectedDates(selectedDates: Array<number>) {\n\t\tthis._setSelectedDates(selectedDates);\n\t}\n}\n\nCalendar.define();\n\nexport default Calendar;\nexport type {\n\tICalendarPicker,\n\tCalendarYearRangeT,\n\tICalendarSelectedDates,\n\tCalendarSelectionChangeEventDetail,\n\tSpecialCalendarDateT,\n\tDisabledDateRangeT,\n};\n"]}
1
+ {"version":3,"file":"Calendar.js","sourceRoot":"","sources":["../src/Calendar.ts"],"names":[],"mappings":";;;;;;;AAAA,OAAO,aAAa,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ACb,CAAC;IACD,KAAK,CAAC,sBAAsB,EAAE;QAC9B,OAAO,EAAE,IAAI;KACb,CAAC;GACI,QAAQ,CAy3Bb;AAED,QAAQ,CAAC,MAAM,EAAE,CAAC;AAElB,eAAe,QAAQ,CAAC","sourcesContent":["import customElement from \"@ui5/webcomponents-base/dist/decorators/customElement.js\";\nimport type UI5Element from \"@ui5/webcomponents-base/dist/UI5Element.js\";\nimport type { ChangeInfo, DefaultSlot, Slot } from \"@ui5/webcomponents-base/dist/UI5Element.js\";\nimport event from \"@ui5/webcomponents-base/dist/decorators/event-strict.js\";\nimport property from \"@ui5/webcomponents-base/dist/decorators/property.js\";\nimport slot from \"@ui5/webcomponents-base/dist/decorators/slot-strict.js\";\nimport i18n from \"@ui5/webcomponents-base/dist/decorators/i18n.js\";\nimport transformDateToSecondaryType from \"@ui5/webcomponents-localization/dist/dates/transformDateToSecondaryType.js\";\nimport convertMonthNumbersToMonthNames from \"@ui5/webcomponents-localization/dist/dates/convertMonthNumbersToMonthNames.js\";\nimport CalendarDateComponent from \"@ui5/webcomponents-localization/dist/dates/CalendarDate.js\";\nimport { renderFinished } from \"@ui5/webcomponents-base/dist/Render.js\";\nimport {\n\tisEnter,\n\tisF4,\n\tisF4Shift,\n\tisSpace,\n} from \"@ui5/webcomponents-base/dist/Keys.js\";\nimport type I18nBundle from \"@ui5/webcomponents-base/dist/i18nBundle.js\";\nimport getCachedLocaleDataInstance from \"@ui5/webcomponents-localization/dist/getCachedLocaleDataInstance.js\";\nimport getLocale from \"@ui5/webcomponents-base/dist/locale/getLocale.js\";\nimport DateFormat from \"@ui5/webcomponents-localization/dist/DateFormat.js\";\nimport UI5Date from \"@ui5/webcomponents-localization/dist/dates/UI5Date.js\";\nimport \"@ui5/webcomponents-icons/dist/slim-arrow-left.js\";\nimport \"@ui5/webcomponents-icons/dist/slim-arrow-right.js\";\nimport { getMaxCalendarDate } from \"@ui5/webcomponents-localization/dist/dates/ExtremeDates.js\";\nimport CalendarDate from \"./CalendarDate.js\";\nimport CalendarDateRange from \"./CalendarDateRange.js\";\nimport \"./SpecialCalendarDate.js\";\nimport CalendarPart from \"./CalendarPart.js\";\nimport type { DayPickerChangeEventDetail } from \"./DayPicker.js\";\nimport type { MonthPickerChangeEventDetail } from \"./MonthPicker.js\";\nimport type { YearPickerChangeEventDetail } from \"./YearPicker.js\";\nimport CalendarSelectionMode from \"./types/CalendarSelectionMode.js\";\nimport CalendarPickersMode from \"./types/CalendarPickersMode.js\";\nimport type CalendarLegend from \"./CalendarLegend.js\";\nimport type { CalendarLegendItemSelectionChangeEventDetail } from \"./CalendarLegend.js\";\nimport type SpecialCalendarDate from \"./SpecialCalendarDate.js\";\nimport type CalendarLegendItemType from \"./types/CalendarLegendItemType.js\";\nimport { isPhone } from \"@ui5/webcomponents-base/dist/Device.js\";\nimport type { ResizeObserverCallback } from \"@ui5/webcomponents-base/dist/delegate/ResizeHandler.js\";\nimport ResizeHandler from \"@ui5/webcomponents-base/dist/delegate/ResizeHandler.js\";\n\n// Default calendar for bundling\nimport \"@ui5/webcomponents-localization/dist/features/calendar/Gregorian.js\";\n\n// Template\nimport CalendarTemplate from \"./CalendarTemplate.js\";\n\n// Styles\nimport calendarCSS from \"./generated/themes/Calendar.css.js\";\nimport CalendarHeaderCss from \"./generated/themes/CalendarHeader.css.js\";\nimport {\n\tCALENDAR_HEADER_MONTH_BUTTON,\n\tCALENDAR_HEADER_MONTH_BUTTON_SHORTCUT,\n\tCALENDAR_HEADER_YEAR_BUTTON,\n\tCALENDAR_HEADER_YEAR_BUTTON_SHORTCUT,\n\tCALENDAR_HEADER_YEAR_RANGE_BUTTON,\n\tCALENDAR_HEADER_YEAR_RANGE_BUTTON_SHORTCUT,\n\tCALENDAR_HEADER_MONTH_NEXT_BUTTON_TITLE,\n\tCALENDAR_HEADER_MONTH_NEXT_BUTTON_SHORTCUT,\n\tCALENDAR_HEADER_MONTH_PREVIOUS_BUTTON_TITLE,\n\tCALENDAR_HEADER_MONTH_PREVIOUS_BUTTON_SHORTCUT,\n\tCALENDAR_HEADER_YEAR_NEXT_BUTTON_TITLE,\n\tCALENDAR_HEADER_YEAR_PREVIOUS_BUTTON_TITLE,\n\tCALENDAR_HEADER_YEAR_RANGE_NEXT_BUTTON_TITLE,\n\tCALENDAR_HEADER_YEAR_RANGE_PREVIOUS_BUTTON_TITLE,\n} from \"./generated/i18n/i18n-defaults.js\";\nimport type { YearRangePickerChangeEventDetail } from \"./YearRangePicker.js\";\nimport getEffectiveContentDensity from \"@ui5/webcomponents-base/dist/util/getEffectiveContentDensity.js\";\nimport modifyDateBy from \"@ui5/webcomponents-localization/dist/dates/modifyDateBy.js\";\n\nconst PHONE_MODE_BREAKPOINT = 640; // px\n\ninterface ICalendarPicker extends HTMLElement {\n\t_showPreviousPage: () => void,\n\t_showNextPage: () => void,\n\t_hasPreviousPage: () => boolean,\n\t_hasNextPage: () => boolean,\n\t_currentYearRange?: CalendarYearRangeT,\n}\n\n/**\n * Interface for components that may be slotted inside a `ui5-calendar`.\n *\n * **Note:** Use with `ui5-date` or `ui5-date-range` as calendar date selection types.\n * @public\n */\ninterface ICalendarSelectedDates extends UI5Element {\n\tvalue?: string,\n\tstartValue?: string,\n\tendValue?: string\n}\n\ntype CalendarSelectionChangeEventDetail = {\n\tselectedValues: Array<string>,\n\tselectedDates: Array<number>,\n\ttimestamp: number | undefined,\n}\n\ntype SpecialCalendarDateT = {\n\tspecialDateTimestamp: number;\n\ttype: `${CalendarLegendItemType}`;\n\ttooltip?: string;\n};\n\ntype CalendarYearRangeT = {\n\tstartYear: number,\n\tendYear: number,\n}\n\ntype DisabledDateRangeT = {\n\tstartValue?: string,\n\tendValue?: string\n}\n\n/**\n * @class\n *\n * ### Overview\n *\n * The `ui5-calendar` component allows users to select one or more dates.\n *\n * Currently selected dates are represented with instances of `ui5-date` as\n * children of the `ui5-calendar`. The value property of each `ui5-date` must be a\n * date string, correctly formatted according to the `ui5-calendar`'s `formatPattern` property.\n * Whenever the user changes the date selection, `ui5-calendar` will automatically create/remove instances\n * of `ui5-date` in itself, unless you prevent this behavior by calling `preventDefault()` for the\n * `selection-change` event. This is useful if you want to control the selected dates externally.\n *\n * ### Usage\n *\n * The user can navigate to a particular date by:\n *\n * - Pressing over a month inside the months view\n * - Pressing over an year inside the years view\n *\n * The user can confirm a date selection by pressing over a date inside the days view.\n *\n * ### Keyboard Handling\n * The `ui5-calendar` provides advanced keyboard handling.\n * When a picker is showed and focused the user can use the following keyboard\n * shortcuts in order to perform a navigation:\n *\n * - Day picker:\n *\n * - [F4] - Shows month picker\n * - [Shift] + [F4] - Shows year picker\n * - [Page Up] - Navigate to the previous month\n * - [Page Down] - Navigate to the next month\n * - [Shift] + [Page Up] - Navigate to the previous year\n * - [Shift] + [Page Down] - Navigate to the next year\n * - [Ctrl] + [Shift] + [Page Up] - Navigate ten years backwards\n * - [Ctrl] + [Shift] + [Page Down] - Navigate ten years forwards\n * - [Home] - Navigate to the first day of the week\n * - [End] - Navigate to the last day of the week\n * - [Ctrl] + [Home] - Navigate to the first day of the month\n * - [Ctrl] + [End] - Navigate to the last day of the month\n *\n * - Month picker:\n *\n * - [Page Up] - Navigate to the previous year\n * - [Page Down] - Navigate to the next year\n * - [Home] - Navigate to the first month of the current row\n * - [End] - Navigate to the last month of the current row\n * - [Ctrl] + [Home] - Navigate to the first month of the current year\n * - [Ctrl] + [End] - Navigate to the last month of the year\n *\n * - Year picker:\n *\n * - [Page Up] - Navigate to the previous year range\n * - [Page Down] - Navigate the next year range\n * - [Home] - Navigate to the first year of the current row\n * - [End] - Navigate to the last year of the current row\n * - [Ctrl] + [Home] - Navigate to the first year of the current year range\n * - [Ctrl] + [End] - Navigate to the last year of the current year range\n *\n * #### Fast Navigation\n * This component provides a build in fast navigation group which can be used via [F6] / [Shift] + [F6] / [Ctrl] + [Alt/Option] / [Down] or [Ctrl] + [Alt/Option] + [Up].\n * In order to use this functionality, you need to import the following module:\n * `import \"@ui5/webcomponents-base/dist/features/F6Navigation.js\"`\n *\n * ### Calendar types\n * The component supports several calendar types - Gregorian, Buddhist, Islamic, Japanese and Persian.\n * By default the Gregorian Calendar is used. In order to use the Buddhist, Islamic, Japanese or Persian calendar,\n * you need to set the `primaryCalendarType` property and import one or more of the following modules:\n *\n * `import \"@ui5/webcomponents-localization/dist/features/calendar/Buddhist.js\";`\n *\n * `import \"@ui5/webcomponents-localization/dist/features/calendar/Islamic.js\";`\n *\n * `import \"@ui5/webcomponents-localization/dist/features/calendar/Japanese.js\";`\n *\n * `import \"@ui5/webcomponents-localization/dist/features/calendar/Persian.js\";`\n *\n * Or, you can use the global configuration and set the `calendarType` key:\n *\n * ```html\n * <script data-id=\"sap-ui-config\" type=\"application/json\">\n * \t{\n * \t\t\"calendarType\": \"Japanese\"\n * \t}\n * </script>\n * ```\n *\n * ### ES6 Module Import\n *\n * `import \"@ui5/webcomponents/dist/Calendar.js\";`\n * @constructor\n * @extends CalendarPart\n * @public\n * @csspart day-cell - Used to style the day cells.\n * @csspart day-cell-selected - Used to style the day cells when selected.\n * @csspart day-cell-selected-between - Used to style the day cells in between of selected dates in range.\n * @csspart month-cell - Used to style the month cells.\n * @csspart month-cell-selected - Used to style the month cells when selected.\n * @csspart month-cell-selected-between - Used to style the day cells in between of selected months in range.\n * @csspart month-picker-root - Used to style the month picker root container.\n * @csspart year-cell - Used to style the year cells.\n * @csspart year-cell-selected - Used to style the year cells when selected.\n * @csspart year-cell-selected-between - Used to style the year cells in between of selected years in range.\n * @csspart year-picker-root - Used to style the year picker root container.\n * @csspart year-range-cell - Used to style the year range cells.\n * @csspart year-range-cell-selected - Used to style the year range cells when selected.\n * @csspart year-range-cell-selected-between - Used to style the year range cells in between of selected year ranges.\n * @csspart year-range-picker-root - Used to style the year range picker root container.\n * @csspart calendar-header-middle-button - Used to style the calendar header middle buttons (month/year/year-range buttons).\n * @csspart calendar-header-arrow-button - Used to style the calendar header navigation arrow buttons (previous/next buttons).\n * @since 1.0.0-rc.11\n */\n@customElement({\n\ttag: \"ui5-calendar\",\n\tfastNavigation: true,\n\ttemplate: CalendarTemplate,\n\tstyles: [calendarCSS, CalendarHeaderCss],\n})\n/**\n * Fired when the selected dates change.\n *\n * **Note:** If you call `preventDefault()` for this event, the component will not\n * create instances of `ui5-date` for the newly selected dates. In that case you should do this manually.\n * @param {Array<string>} selectedValues The selected dates\n * @param {Array<number>} selectedDates The selected dates as UTC timestamps\n * @public\n */\n@event(\"selection-change\", {\n\tbubbles: true,\n\tcancelable: true,\n})\n\n@event(\"show-month-view\", {\n\tbubbles: true,\n})\n@event(\"show-year-view\", {\n\tbubbles: true,\n})\n@event(\"show-year-range-view\", {\n\tbubbles: true,\n})\nclass Calendar extends CalendarPart {\n\teventDetails!: CalendarPart[\"eventDetails\"] & {\n\t\t\"selection-change\": CalendarSelectionChangeEventDetail,\n\t\t\"show-month-view\": void,\n\t\t\"show-year-view\": void,\n\t\t\"show-year-range-view\": void,\n\t}\n\t/**\n\t * Defines the type of selection used in the calendar component.\n\t * Accepted property values are:\n\t *\n\t * - `CalendarSelectionMode.Single` - enables a single date selection.(default value)\n\t * - `CalendarSelectionMode.Range` - enables selection of a date range.\n\t * - `CalendarSelectionMode.Multiple` - enables selection of multiple dates.\n\t * @default \"Single\"\n\t * @public\n\t */\n\t@property()\n\tselectionMode: `${CalendarSelectionMode}` = \"Single\";\n\n\t/**\n\t * Defines the visibility of the week numbers column.\n\t *\n\t * **Note:** For calendars other than Gregorian,\n\t * the week numbers are not displayed regardless of what is set.\n\t * @default false\n\t * @public\n\t */\n\t@property({ type: Boolean })\n\thideWeekNumbers = false;\n\n\t/**\n\t * Defines whether the component displays two months side by side in the picker popup.\n\t * @default false\n\t * @private\n\t * @since 2.22.0\n\t */\n\t@property({ type: Boolean })\n\t_showTwoMonths = false;\n\n\t/**\n\t * Which picker is currently visible to the user: day/month/year/yearRange\n\t * @private\n\t */\n\t@property()\n\t_currentPicker: \"day\" | \"month\" | \"year\" | \"yearrange\" = \"day\"\n\n\t@property({ type: Boolean })\n\t_previousButtonDisabled = false;\n\n\t@property({ type: Boolean })\n\t_nextButtonDisabled = false;\n\n\t@property()\n\t_headerMonthButtonText?: string;\n\n\t@property()\n\t_headerYearButtonText?: string;\n\n\t@property()\n\t_headerYearButtonTextSecType?: string;\n\n\t@property()\n\t_headerYearRangeButtonText?: string;\n\n\t@property()\n\t_headerYearRangeButtonTextSecType?: string;\n\n\t@property({ noAttribute: true })\n\t_pickersMode: `${CalendarPickersMode}` = \"DAY_MONTH_YEAR\";\n\n\t_valueIsProcessed = false;\n\n\t_rangeStartYear?: number;\n\n\t/**\n\t * Defines the calendar legend of the component.\n\t * @public\n\t * @since 1.23.0\n\t */\n\t@slot({ type: HTMLElement, invalidateOnChildChange: true })\n\tcalendarLegend!: Slot<CalendarLegend>;\n\n\t/**\n\t * Defines the selected date or dates (depending on the `selectionMode` property)\n\t * for this calendar as instances of `ui5-date` or `ui5-date-range`.\n\t * Use `ui5-date` for single or multiple selection, and `ui5-date-range` for range selection.\n\t * @public\n\t */\n\t@slot({ type: HTMLElement, invalidateOnChildChange: true, \"default\": true })\n\tdates!: DefaultSlot<ICalendarSelectedDates>;\n\n\t/**\n\t * Defines the special dates, visually emphasized in the calendar.\n\t * @public\n\t * @since 1.23.0\n\t */\n\t@slot({ type: HTMLElement, invalidateOnChildChange: true })\n\tspecialDates!: Slot<SpecialCalendarDate>;\n\n\t/**\n\t * Defines the disabled date ranges that cannot be selected in the calendar.\n\t * Use `ui5-date-range` elements to specify ranges of disabled dates.\n\t * Each range can define a start date, an end date, or both.\n\t * @public\n\t * @since 2.16.0\n\t */\n\t@slot({ type: HTMLElement, invalidateOnChildChange: true })\n\tdisabledDates!: Slot<CalendarDateRange>;\n\n\t/**\n\t * Defines the selected item type of the calendar legend item (if such exists).\n\t * @private\n\t */\n\t@property()\n\t_selectedItemType: `${CalendarLegendItemType}` = \"None\";\n\n\t@property({ type: Boolean, noAttribute: true })\n\t_phoneMode = false;\n\n\t_handleResizeBound: ResizeObserverCallback;\n\n\t@i18n(\"@ui5/webcomponents\")\n\tstatic i18nBundle: I18nBundle;\n\n\tconstructor() {\n\t\tsuper();\n\n\t\tthis._valueIsProcessed = false;\n\t\tthis._handleResizeBound = this._handleResize.bind(this);\n\t}\n\n\tonEnterDOM() {\n\t\tResizeHandler.register(document.body, this._handleResizeBound);\n\t\tthis._handleResize();\n\t}\n\n\tget _phoneView() {\n\t\treturn isPhone() || this._phoneMode;\n\t}\n\n\tget _portraitView() {\n\t\treturn this._phoneMode;\n\t}\n\n\t/**\n\t * Handles document resize to switch between `phoneMode` and `portraitMode`.\n\t * - `_phoneMode`: When resolution is under PHONE_MODE_BREAKPOINT (regardless of device type)\n\t */\n\t_handleResize() {\n\t\tif (!this._showTwoMonths) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst documentWidth = document.body.offsetWidth;\n\t\tconst underBreakpoint = documentWidth <= PHONE_MODE_BREAKPOINT;\n\n\t\t// Phone mode: only when it's an actual phone device\n\t\tconst phoneModeChange = (underBreakpoint && !this._phoneMode) || (!underBreakpoint && this._phoneMode);\n\n\t\tif (phoneModeChange) {\n\t\t\tthis._phoneMode = underBreakpoint;\n\t\t}\n\t}\n\n\tonExitDOM() {\n\t\tResizeHandler.deregister(document.body, this._handleResizeBound);\n\t}\n\n\t/**\n\t * Returns the timestamp for a specific month index when displaying multiple months\n\t * @private\n\t */\n\t_getMonthTimestamp(monthIndex: number): number {\n\t\tif (monthIndex === 0) {\n\t\t\treturn this._timestamp;\n\t\t}\n\n\t\tconst calendarDate = CalendarDateComponent.fromTimestamp(this._timestamp * 1000, this._primaryCalendarType);\n\t\tconst modifiedDate = modifyDateBy(calendarDate, monthIndex, \"month\", false);\n\n\t\treturn modifiedDate.valueOf() / 1000;\n\t}\n\n\t/**\n\t * Generates header button text (month and year) for a specific month timestamp\n\t * @private\n\t */\n\t_getHeaderTextForMonth(monthTimestamp: number): { monthText: string, yearText: string, secondMonthText?: string, secondYearText?: string } {\n\t\tconst calendarDate = CalendarDateComponent.fromTimestamp(monthTimestamp * 1000, this._primaryCalendarType);\n\t\tconst localeData = getCachedLocaleDataInstance(getLocale());\n\t\tconst yearFormat = DateFormat.getDateInstance({ format: \"y\", calendarType: this._primaryCalendarType });\n\n\t\tconst monthText = localeData.getMonthsStandAlone(\"wide\", this._primaryCalendarType)[calendarDate.getMonth()];\n\t\tconst localDate = calendarDate.toLocalJSDate();\n\t\tconst yearText = String(yearFormat.format(localDate, true));\n\n\t\tconst result: { monthText: string, yearText: string, secondMonthText?: string, secondYearText?: string } = {\n\t\t\tmonthText,\n\t\t\tyearText,\n\t\t};\n\n\t\tif (this.hasSecondaryCalendarType) {\n\t\t\tconst secondaryDate = transformDateToSecondaryType(this._primaryCalendarType, this._secondaryCalendarType, monthTimestamp, true);\n\t\t\tconst secondaryCalendarDate = secondaryDate.firstDate || secondaryDate.lastDate;\n\t\t\tconst secondaryLocaleData = getCachedLocaleDataInstance(getLocale());\n\t\t\tresult.secondMonthText = secondaryLocaleData.getMonthsStandAlone(\"wide\", this._secondaryCalendarType)[secondaryCalendarDate.getMonth()];\n\t\t\tconst secondaryYearFormat = DateFormat.getDateInstance({ format: \"y\", calendarType: this._secondaryCalendarType });\n\t\t\tresult.secondYearText = String(secondaryYearFormat.format(secondaryCalendarDate.toLocalJSDate(), true));\n\t\t}\n\n\t\treturn result;\n\t}\n\n\t/**\n\t * @private\n\t */\n\tget _selectedDatesTimestamps(): Array<number> {\n\t\tlet selectedDates: Array<number> = [];\n\n\t\tif (this.selectionMode === CalendarSelectionMode.Range) {\n\t\t\tconst range = this.dates.find(date => date.hasAttribute(\"ui5-date-range\"));\n\t\t\tconst startDate = range && range.startValue && this.getFormat().parse(range.startValue, true) as Date;\n\t\t\tconst endDate = range && range.endValue && this.getFormat().parse(range.endValue, true) as Date;\n\n\t\t\tif (startDate) {\n\t\t\t\tselectedDates.push(startDate.getTime() / 1000);\n\t\t\t}\n\n\t\t\tif (endDate) {\n\t\t\t\tselectedDates.push(endDate.getTime() / 1000);\n\t\t\t}\n\t\t} else {\n\t\t\tselectedDates = this.dates\n\t\t\t\t.filter(dateElement => {\n\t\t\t\t\treturn dateElement.hasAttribute(\"ui5-date\")\n\t\t\t\t\t\t&& dateElement.value\n\t\t\t\t\t\t&& this._isValidCalendarDate(dateElement.value)\n\t\t\t\t\t\t&& this._getTimeStampFromString(dateElement.value);\n\t\t\t\t})\n\t\t\t\t.map(dateElement => Number(this._getTimeStampFromString(dateElement.value!)) / 1000);\n\t\t}\n\n\t\treturn selectedDates;\n\t}\n\n\t/**\n\t * @private\n\t */\n\t_setSelectedDates(selectedDates: Array<number>) {\n\t\tconst selectedUTCDates = selectedDates.map(timestamp => this.getFormat().format(UI5Date.getInstance(timestamp * 1000), true));\n\n\t\tif (this.selectionMode === CalendarSelectionMode.Range) {\n\t\t\t// Create tags for the selected dates that don't already exist in DOM\n\t\t\tif (selectedUTCDates.length) {\n\t\t\t\tlet dateRange = this.dates.find(dateElement => dateElement.hasAttribute(\"ui5-date-range\") && dateElement.startValue === selectedUTCDates[0]);\n\t\t\t\tif (!dateRange) {\n\t\t\t\t\tdateRange = document.createElement(CalendarDateRange.getMetadata().getTag()) as CalendarDateRange;\n\t\t\t\t\tdateRange.startValue = selectedUTCDates[0];\n\t\t\t\t\tthis.appendChild(dateRange);\n\t\t\t\t} else {\n\t\t\t\t\tdateRange.endValue = selectedUTCDates[1];\n\t\t\t\t}\n\t\t\t\t// Remove all elements for dates that are no longer selected\n\t\t\t\tthis.dates\n\t\t\t\t\t.filter(dateElement => {\n\t\t\t\t\t\treturn dateElement.hasAttribute(\"ui5-date\")\n\t\t\t\t\t\t\t|| (dateRange && dateElement.startValue !== dateRange.startValue);\n\t\t\t\t\t})\n\t\t\t\t\t.forEach(dateElement => {\n\t\t\t\t\t\tthis.removeChild(dateElement);\n\t\t\t\t\t});\n\t\t\t}\n\t\t} else {\n\t\t\tconst valuesInDOM = this._selectedDatesTimestamps.map(timestamp => this.getFormat().format(UI5Date.getInstance(timestamp * 1000)));\n\n\t\t\t// Remove all elements for dates that are no longer selected\n\t\t\tthis.dates\n\t\t\t\t.filter(dateElement => {\n\t\t\t\t\treturn dateElement.hasAttribute(\"ui5-date-range\")\n\t\t\t\t\t\t|| (dateElement.hasAttribute(\"ui5-date\") && !selectedUTCDates.includes(dateElement.value!));\n\t\t\t\t})\n\t\t\t\t.forEach(dateElement => {\n\t\t\t\t\tthis.removeChild(dateElement);\n\t\t\t\t});\n\n\t\t\t// Create tags for the selected dates that don't already exist in DOM\n\t\t\tselectedUTCDates\n\t\t\t\t.filter(value => !valuesInDOM.includes(value))\n\t\t\t\t.forEach(value => {\n\t\t\t\t\tconst dateElement = document.createElement(CalendarDate.getMetadata().getTag()) as CalendarDate;\n\t\t\t\t\tdateElement.value = value;\n\t\t\t\t\tthis.appendChild(dateElement);\n\t\t\t\t});\n\t\t}\n\t}\n\n\t_isValidCalendarDate(dateString: string): boolean {\n\t\tconst date = this.getFormat().parse(dateString);\n\t\treturn !!date;\n\t}\n\n\tget _disabledDates() {\n\t\tconst validDisabledDateRanges = this.disabledDates.filter(dateRange => {\n\t\t\tconst startValue = dateRange.startValue;\n\t\t\tconst endValue = dateRange.endValue;\n\t\t\treturn (startValue && this._isValidCalendarDate(startValue)) || (endValue && this._isValidCalendarDate(endValue));\n\t\t});\n\n\t\treturn validDisabledDateRanges.map(dateRange => ({\n\t\t\tstartValue: dateRange.startValue,\n\t\t\tendValue: dateRange.endValue,\n\t\t}));\n\t}\n\n\tget _specialCalendarDates() {\n\t\tconst hasSelectedType = this._specialDates.some(date => date.type === this._selectedItemType);\n\t\tconst validSpecialDates = this._specialDates.filter(date => {\n\t\t\tconst dateType = date.type;\n\t\t\tconst dateValue = date.value;\n\t\t\tconst isTypeMatch = hasSelectedType\n\t\t\t\t? (dateType === this._selectedItemType || dateType === \"Working\" || dateType === \"NonWorking\")\n\t\t\t\t: true;\n\t\t\treturn isTypeMatch && dateValue && this._isValidCalendarDate(dateValue);\n\t\t});\n\n\t\tvalidSpecialDates.forEach(date => {\n\t\t\tconst refLegendItem = this.calendarLegend.length ? this.calendarLegend[0].items.find(item => item.type === date.type) : undefined;\n\t\t\tdate._tooltip = refLegendItem?.text || \"\";\n\t\t});\n\n\t\tconst uniqueDates = new Set();\n\t\tconst uniqueSpecialDates: Array<SpecialCalendarDateT> = [];\n\n\t\tvalidSpecialDates.forEach(date => {\n\t\t\tconst dateFromValue = this.getFormat().parse(date.value) as Date | UI5Date;\n\t\t\tconst timestamp = dateFromValue.getTime();\n\n\t\t\tif (!uniqueDates.has(timestamp)) {\n\t\t\t\tuniqueDates.add(timestamp);\n\t\t\t\tconst specialDateTimestamp = CalendarDateComponent.fromLocalJSDate(dateFromValue).valueOf() / 1000;\n\t\t\t\tconst type = date.type;\n\t\t\t\tconst tooltip = date._tooltip;\n\t\t\t\tuniqueSpecialDates.push({ specialDateTimestamp, type, tooltip });\n\t\t\t}\n\t\t});\n\n\t\treturn uniqueSpecialDates;\n\t}\n\n\t_onCalendarLegendSelectionChange(e: CustomEvent<CalendarLegendItemSelectionChangeEventDetail>) {\n\t\tconst defaultTypes = [\"Working\", \"NonWorking\", \"Selected\", \"Today\"];\n\t\tthis._selectedItemType = e.detail.item.type;\n\n\t\tif (defaultTypes.includes(this._selectedItemType)) {\n\t\t\tthis._selectedItemType = \"None\"; // In order to avoid filtering of default types\n\t\t}\n\t}\n\n\t/**\n\t * Makes sure that _currentPicker is always set to a value, allowed by _pickersMode\n\t */\n\t_normalizeCurrentPicker() {\n\t\tif (this._currentPicker === \"day\" && this._pickersMode !== CalendarPickersMode.DAY_MONTH_YEAR) {\n\t\t\tthis.switchToMonthPicker(true);\n\t\t}\n\n\t\tif (this._currentPicker === \"month\" && this._pickersMode === CalendarPickersMode.YEAR) {\n\t\t\tthis.switchToYearPicker(true);\n\t\t}\n\t}\n\n\tonBeforeRendering() {\n\t\tthis._normalizeCurrentPicker();\n\n\t\tif (!this._valueIsProcessed) {\n\t\t\tif (this._selectedDatesTimestamps.length) {\n\t\t\t\tthis.timestamp = this._selectedDatesTimestamps[0];\n\t\t\t}\n\n\t\t\tthis._valueIsProcessed = true;\n\t\t}\n\t}\n\n\tasync onAfterRendering() {\n\t\tawait renderFinished(); // Await for the current picker to render and then ask if it has previous/next pages\n\t\tthis._previousButtonDisabled = !this._currentPickerDOM._hasPreviousPage();\n\t\tthis._nextButtonDisabled = !this._currentPickerDOM._hasNextPage();\n\n\t\tconst yearFormat = DateFormat.getDateInstance({ format: \"y\", calendarType: this.primaryCalendarType });\n\t\tconst localeData = getCachedLocaleDataInstance(getLocale());\n\t\tthis._headerMonthButtonText = localeData.getMonthsStandAlone(\"wide\", this.primaryCalendarType)[this._calendarDate.getMonth()];\n\t\tthis._headerYearButtonText = String(yearFormat.format(this._localDate, true));\n\n\t\tconst currentYearRange = this._currentYearRange;\n\t\tconst { rangeStartText, rangeEndText } = this._formatYearRangeText(currentYearRange);\n\t\tthis._headerYearRangeButtonText = `${rangeStartText} - ${rangeEndText}`;\n\n\t\tthis._secondaryCalendarType && this._setSecondaryCalendarTypeButtonText();\n\t}\n\n\tonInvalidation(changeInfo: ChangeInfo) {\n\t\tif (changeInfo.reason === \"childchange\") {\n\t\t\tthis._valueIsProcessed = false;\n\t\t}\n\t}\n\n\t/**\n\t * The user clicked the \"month\" button in the header\n\t */\n\tonHeaderMonthButtonPress() {\n\t\tthis.switchToMonthPicker();\n\t\tthis.fireDecoratorEvent(\"show-month-view\");\n\t}\n\n\tasync switchToDayPicker(suppressFocus = false) {\n\t\tthis._currentPicker = \"day\";\n\t\tif (!suppressFocus) {\n\t\t\tawait renderFinished();\n\t\t\tthis._currentPickerDOM.focus();\n\t\t}\n\t}\n\n\tasync switchToMonthPicker(suppressFocus = false) {\n\t\tthis._currentPicker = \"month\";\n\t\tif (!suppressFocus) {\n\t\t\tawait renderFinished();\n\t\t\tthis._currentPickerDOM.focus();\n\t\t}\n\t}\n\n\t/**\n\t * The user clicked the \"year\" button in the header\n\t */\n\tonHeaderYearButtonPress() {\n\t\tthis.switchToYearPicker();\n\t\tthis.fireDecoratorEvent(\"show-year-view\");\n\t}\n\n\tasync switchToYearPicker(suppressFocus = false) {\n\t\tthis._currentPicker = \"year\";\n\t\tif (!suppressFocus) {\n\t\t\tawait renderFinished();\n\t\t\tthis._currentPickerDOM.focus();\n\t\t}\n\t}\n\n\t/**\n\t * The user clicked the \"year range\" button in the YearPicker header\n\t */\n\tonHeaderYearRangeButtonPress() {\n\t\tthis.switchToYearRangePicker();\n\t\tthis.fireDecoratorEvent(\"show-year-range-view\");\n\t}\n\n\tasync switchToYearRangePicker(suppressFocus = false) {\n\t\tthis._currentPicker = \"yearrange\";\n\t\tif (!suppressFocus) {\n\t\t\tawait renderFinished();\n\t\t\tthis._currentPickerDOM.focus();\n\t\t}\n\t}\n\n\tget _currentPickerDOM() {\n\t\t// Calendar's shadowRoot and all the pickers are always present - the \"!\" is safe to be used.\n\t\treturn this.shadowRoot!.querySelector(`[ui5-${this._currentPicker}picker]`)! as unknown as ICalendarPicker;\n\t}\n\n\t/**\n\t * Returns the focusable element inside the Calendar (the current picker)\n\t * @override\n\t */\n\tgetFocusDomRef() {\n\t\treturn this._currentPickerDOM as HTMLElement | undefined;\n\t}\n\n\t/**\n\t * The year clicked the \"Previous\" button in the header\n\t */\n\tonHeaderPreviousPress() {\n\t\tthis._currentPickerDOM._showPreviousPage();\n\t}\n\n\t/**\n\t * The year clicked the \"Next\" button in the header\n\t */\n\tonHeaderNextPress() {\n\t\tthis._currentPickerDOM._showNextPage();\n\t}\n\n\t_setSecondaryCalendarTypeButtonText() {\n\t\tconst yearFormatSecType = DateFormat.getDateInstance({ format: \"y\", calendarType: this._secondaryCalendarType });\n\t\tthis._headerYearButtonTextSecType = String(yearFormatSecType.format(this._localDate, true));\n\n\t\tconst currentYearRange = this._currentYearRange;\n\t\tconst { rangeStart, rangeEnd } = this._createYearRangeDates(currentYearRange);\n\n\t\tconst rangeStartSecType = transformDateToSecondaryType(this._primaryCalendarType, this._secondaryCalendarType, rangeStart.valueOf() / 1000, true)\n\t\t\t.firstDate;\n\t\tconst rangeEndSecType = transformDateToSecondaryType(this._primaryCalendarType, this._secondaryCalendarType, rangeEnd.valueOf() / 1000, true)\n\t\t\t.lastDate;\n\n\t\tthis._headerYearRangeButtonTextSecType = `${yearFormatSecType.format(rangeStartSecType.toLocalJSDate())} - ${yearFormatSecType.format(rangeEndSecType.toLocalJSDate())}`;\n\t}\n\n\tget secondaryCalendarTypeButtonText() {\n\t\tif (!this.hasSecondaryCalendarType) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst localDate = UI5Date.getInstance(this._timestamp * 1000);\n\t\tconst secondYearFormat = DateFormat.getDateInstance({ format: \"y\", calendarType: this._secondaryCalendarType });\n\t\tconst dateInSecType = transformDateToSecondaryType(this._primaryCalendarType, this._secondaryCalendarType, this._timestamp);\n\t\tconst secondMonthInfo = convertMonthNumbersToMonthNames(dateInSecType.firstDate.getMonth(), dateInSecType.lastDate.getMonth(), this._secondaryCalendarType);\n\t\tconst secondYearText = secondYearFormat.format(localDate);\n\n\t\treturn {\n\t\t\tyearButtonText: secondYearText,\n\t\t\tmonthButtonText: secondMonthInfo.text,\n\t\t\tmonthButtonInfo: secondMonthInfo.textInfo,\n\t\t};\n\t}\n\n\tget _isCompactMode() {\n\t\treturn getEffectiveContentDensity(this) === \"compact\";\n\t}\n\n\tget _monthsToShow() {\n\t\tconst monthsToShow = this._showTwoMonths && !isPhone() ? 2 : 1;\n\t\treturn monthsToShow;\n\t}\n\n\t/**\n\t * The month button is hidden when the month picker or year picker is shown\n\t * @private\n\t */\n\tget _isHeaderMonthButtonHidden(): boolean {\n\t\treturn this._showTwoMonths ? this._currentPicker === \"yearrange\" || this._currentPicker === \"year\" : this._currentPicker !== \"day\";\n\t}\n\n\t/**\n\t * The year range picker button is shown only in the year picker\n\t * @private\n\t */\n\tget _isHeaderYearRangeButtonHidden(): boolean {\n\t\treturn this._currentPicker !== \"year\";\n\t}\n\n\t/**\n\t * The year button is shown only in the day & month pickers\n\t * @private\n\t */\n\tget _isHeaderYearButtonHidden(): boolean {\n\t\treturn !(this._currentPicker === \"day\" || this._currentPicker === \"month\");\n\t}\n\n\tget _isDayPickerHidden() {\n\t\t// In multi-month mode (monthsToShow > 1), keep day pickers visible even when other pickers are shown\n\t\tif (this._showTwoMonths) {\n\t\t\treturn false;\n\t\t}\n\t\treturn this._currentPicker !== \"day\";\n\t}\n\n\tget _isMonthPickerHidden() {\n\t\treturn this._currentPicker !== \"month\";\n\t}\n\n\tget _isYearPickerHidden() {\n\t\treturn this._currentPicker !== \"year\";\n\t}\n\n\tget _isYearRangePickerHidden() {\n\t\treturn this._currentPicker !== \"yearrange\";\n\t}\n\n\tget _isDefaultHeaderModeInMultipleMonths() {\n\t\treturn !this._isDayPickerHidden && this._isYearPickerHidden;\n\t}\n\n\tget _shouldShowOnePickerHeaderButtonInMultipleMonths() {\n\t\treturn !this._isDayPickerHidden && !this._isYearPickerHidden;\n\t}\n\n\tget _inert() {\n\t\treturn this._showTwoMonths && (!this._isMonthPickerHidden || !this._isYearPickerHidden || !this._isYearRangePickerHidden);\n\t}\n\n\tget _currentYearRange(): CalendarYearRangeT {\n\t\tconst rangeSize = this.hasSecondaryCalendarType ? 8 : 20;\n\t\tconst yearsOffset = this.hasSecondaryCalendarType ? 2 : 9;\n\t\tconst currentYear = this._calendarDate.getYear();\n\n\t\t// On first load, current year should be the 3rd or 10th year in the range (depending on the calendar type)\n\t\tif (!this._rangeStartYear) {\n\t\t\tthis._rangeStartYear = currentYear - yearsOffset;\n\t\t}\n\n\t\t// If page navigation occured, update the current range start year\n\t\tthis._rangeStartYear += Math.floor((currentYear - this._rangeStartYear) / rangeSize) * rangeSize;\n\n\t\t// Normalize range start year to be between the min and absolute max year\n\t\tconst minYear = this._minDate.getYear();\n\t\tif (currentYear - rangeSize < minYear) {\n\t\t\tthis._rangeStartYear = minYear;\n\t\t}\n\n\t\tconst absoluteMaxYear = getMaxCalendarDate(this._primaryCalendarType).getYear();\n\t\tif (currentYear + rangeSize > absoluteMaxYear) {\n\t\t\tthis._rangeStartYear = absoluteMaxYear - rangeSize + 1;\n\t\t}\n\n\t\treturn {\n\t\t\tstartYear: this._rangeStartYear,\n\t\t\tendYear: this._rangeStartYear + rangeSize - 1,\n\t\t};\n\t}\n\n\t_fireEventAndUpdateSelectedDates(selectedDates: Array<number>) {\n\t\tconst datesValues = selectedDates.map(timestamp => {\n\t\t\tconst calendarDate = CalendarDateComponent.fromTimestamp(timestamp * 1000, this._primaryCalendarType);\n\t\t\treturn this.getFormat().format(calendarDate.toUTCJSDate(), true);\n\t\t});\n\n\t\tconst defaultPrevented = !this.fireDecoratorEvent(\"selection-change\", { timestamp: this.timestamp, selectedDates: [...selectedDates], selectedValues: datesValues });\n\t\tif (!defaultPrevented) {\n\t\t\tthis._setSelectedDates(selectedDates);\n\t\t}\n\t}\n\n\tonSelectedDatesChange(e: CustomEvent<DayPickerChangeEventDetail>) {\n\t\tthis.timestamp = e.detail.timestamp;\n\t\tthis._fireEventAndUpdateSelectedDates(e.detail.dates);\n\t}\n\n\tonSelectedMonthChange(e: CustomEvent<MonthPickerChangeEventDetail>) {\n\t\tthis.timestamp = e.detail.timestamp;\n\n\t\tif (this._pickersMode === CalendarPickersMode.DAY_MONTH_YEAR) {\n\t\t\tthis.switchToDayPicker();\n\t\t} else {\n\t\t\tthis._fireEventAndUpdateSelectedDates(e.detail.dates);\n\t\t}\n\t}\n\n\tonSelectedYearChange(e: CustomEvent<YearPickerChangeEventDetail>) {\n\t\tthis.timestamp = e.detail.timestamp;\n\n\t\tif (this._pickersMode === CalendarPickersMode.DAY_MONTH_YEAR) {\n\t\t\tthis.switchToDayPicker();\n\t\t} else if (this._pickersMode === CalendarPickersMode.MONTH_YEAR) {\n\t\t\tthis.switchToMonthPicker();\n\t\t} else {\n\t\t\tthis._fireEventAndUpdateSelectedDates(e.detail.dates);\n\t\t}\n\t}\n\n\tonSelectedYearRangeChange(e: CustomEvent<YearRangePickerChangeEventDetail>) {\n\t\tthis.timestamp = e.detail.timestamp;\n\t\tthis.switchToYearPicker();\n\t}\n\n\tasync onNavigate(e: CustomEvent) {\n\t\tthis.timestamp = e.detail.timestamp;\n\t\tawait renderFinished();\n\t\tthis._currentPickerDOM.focus();\n\t}\n\n\t_onkeydown(e: KeyboardEvent) {\n\t\tif (isF4(e) && this._currentPicker !== \"month\") {\n\t\t\tthis.switchToMonthPicker();\n\t\t\tthis.fireDecoratorEvent(\"show-month-view\");\n\t\t}\n\n\t\tif (!isF4Shift(e)) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (this._currentPicker !== \"year\") {\n\t\t\tthis.switchToYearPicker();\n\t\t\tthis.fireDecoratorEvent(\"show-year-view\");\n\t\t} else {\n\t\t\tthis.switchToYearRangePicker();\n\t\t\tthis.fireDecoratorEvent(\"show-year-range-view\");\n\t\t}\n\t}\n\n\t_onLegendFocusOut() {\n\t\tthis._selectedItemType = \"None\";\n\t}\n\n\tget _specialDates() {\n\t\treturn this.getSlottedNodes<SpecialCalendarDate>(\"specialDates\");\n\t}\n\n\tget classes() {\n\t\treturn {\n\t\t\tprevButton: {\n\t\t\t\t\"ui5-calheader-arrowbtn\": true,\n\t\t\t\t\"ui5-calheader-arrowbtn-disabled\": this._previousButtonDisabled,\n\t\t\t},\n\t\t\tnextButton: {\n\t\t\t\t\"ui5-calheader-arrowbtn\": true,\n\t\t\t\t\"ui5-calheader-arrowbtn-disabled\": this._nextButtonDisabled,\n\t\t\t},\n\t\t};\n\t}\n\n\tget accInfo() {\n\t\tconst currentYearRange = this._currentYearRange;\n\t\tconst { rangeStartText, rangeEndText } = this._formatYearRangeText(currentYearRange);\n\n\t\tconst headerMonthButtonText = this.hasSecondaryCalendarType\n\t\t\t? `${this._headerMonthButtonText}, ${this.secondMonthButtonText}` : `${this._headerMonthButtonText}`;\n\n\t\t// Get base labels\n\t\tconst monthLabel = Calendar.i18nBundle?.getText(CALENDAR_HEADER_MONTH_BUTTON, headerMonthButtonText);\n\t\tconst yearLabel = Calendar.i18nBundle?.getText(CALENDAR_HEADER_YEAR_BUTTON, this._headerYearButtonText as string);\n\t\tconst yearRangeLabel = Calendar.i18nBundle?.getText(CALENDAR_HEADER_YEAR_RANGE_BUTTON, rangeStartText, rangeEndText);\n\t\tlet nextBtnLabel = Calendar.i18nBundle?.getText(CALENDAR_HEADER_MONTH_NEXT_BUTTON_TITLE);\n\t\tlet prevBtnLabel = Calendar.i18nBundle?.getText(CALENDAR_HEADER_MONTH_PREVIOUS_BUTTON_TITLE);\n\n\t\tif (this._currentPicker === \"month\") {\n\t\t\tnextBtnLabel = Calendar.i18nBundle?.getText(CALENDAR_HEADER_YEAR_NEXT_BUTTON_TITLE);\n\t\t\tprevBtnLabel = Calendar.i18nBundle?.getText(CALENDAR_HEADER_YEAR_PREVIOUS_BUTTON_TITLE);\n\t\t} else if (this._currentPicker === \"year\" || this._currentPicker === \"yearrange\") {\n\t\t\tnextBtnLabel = Calendar.i18nBundle?.getText(CALENDAR_HEADER_YEAR_RANGE_NEXT_BUTTON_TITLE);\n\t\t\tprevBtnLabel = Calendar.i18nBundle?.getText(CALENDAR_HEADER_YEAR_RANGE_PREVIOUS_BUTTON_TITLE);\n\t\t}\n\n\t\t// Get shortcuts\n\t\tconst monthShortcut = Calendar.i18nBundle?.getText(CALENDAR_HEADER_MONTH_BUTTON_SHORTCUT);\n\t\tconst yearShortcut = Calendar.i18nBundle?.getText(CALENDAR_HEADER_YEAR_BUTTON_SHORTCUT);\n\t\tconst yearRangeShortcut = Calendar.i18nBundle?.getText(CALENDAR_HEADER_YEAR_RANGE_BUTTON_SHORTCUT);\n\t\tconst nextBtnShortcut = Calendar.i18nBundle?.getText(CALENDAR_HEADER_MONTH_NEXT_BUTTON_SHORTCUT);\n\t\tconst prevBtnShortcut = Calendar.i18nBundle?.getText(CALENDAR_HEADER_MONTH_PREVIOUS_BUTTON_SHORTCUT);\n\n\t\treturn {\n\t\t\tariaLabelMonthButton: monthLabel,\n\t\t\tariaLabelYearButton: yearLabel,\n\t\t\tariaLabelYearRangeButton: yearRangeLabel,\n\t\t\tariaLabelNextButton: nextBtnLabel,\n\t\t\tariaLabelPrevButton: prevBtnLabel,\n\n\t\t\t// Keyboard shortcuts for aria-keyshortcuts\n\t\t\tkeyShortcutMonthButton: monthShortcut,\n\t\t\tkeyShortcutYearButton: yearShortcut,\n\t\t\tkeyShortcutYearRangeButton: yearRangeShortcut,\n\t\t\tkeyShortcutNextButton: nextBtnShortcut,\n\t\t\tkeyShortcutPrevButton: prevBtnShortcut,\n\n\t\t\t// Tooltips combining label and shortcut\n\t\t\ttooltipMonthButton: `${monthLabel} (${monthShortcut})`,\n\t\t\ttooltipYearButton: `${yearLabel} (${yearShortcut})`,\n\t\t\ttooltipYearRangeButton: `${yearRangeLabel} (${yearRangeShortcut})`,\n\t\t\ttooltipNextButton: `${nextBtnLabel} (${nextBtnShortcut})`,\n\t\t\ttooltipPrevButton: `${prevBtnLabel} (${prevBtnShortcut})`,\n\t\t};\n\t}\n\n\t/**\n\t * Helper method to create CalendarDateComponent instances for year range\n\t * @private\n\t */\n\t_createYearRangeDates(yearRange: CalendarYearRangeT, calendarType: string = this._primaryCalendarType) {\n\t\tconst rangeStart = new CalendarDateComponent(this._calendarDate, calendarType);\n\t\tconst rangeEnd = new CalendarDateComponent(this._calendarDate, calendarType);\n\n\t\trangeStart.setYear(yearRange.startYear);\n\t\trangeEnd.setYear(yearRange.endYear);\n\n\t\treturn { rangeStart, rangeEnd };\n\t}\n\n\t/**\n\t * Helper method to format year range text\n\t * @private\n\t */\n\t_formatYearRangeText(yearRange: CalendarYearRangeT) {\n\t\tconst yearFormat = DateFormat.getDateInstance({ format: \"y\", calendarType: this.primaryCalendarType });\n\t\tconst { rangeStart, rangeEnd } = this._createYearRangeDates(yearRange, this.primaryCalendarType);\n\n\t\tconst rangeStartText = yearFormat.format(rangeStart.toLocalJSDate());\n\t\tconst rangeEndText = yearFormat.format(rangeEnd.toLocalJSDate());\n\n\t\treturn { rangeStartText, rangeEndText };\n\t}\n\n\tget secondMonthButtonText() {\n\t\tconst secondMonthButtonText = this.secondaryCalendarTypeButtonText?.monthButtonText as string;\n\n\t\treturn secondMonthButtonText;\n\t}\n\n\tonMonthButtonKeyDown(e: KeyboardEvent) {\n\t\tif (isSpace(e)) {\n\t\t\te.preventDefault();\n\t\t}\n\n\t\tif (isEnter(e)) {\n\t\t\tthis.switchToMonthPicker();\n\t\t\tthis.fireDecoratorEvent(\"show-month-view\");\n\t\t}\n\t}\n\n\tonMonthButtonKeyUp(e: KeyboardEvent) {\n\t\tif (isSpace(e)) {\n\t\t\te.preventDefault();\n\t\t\tthis.switchToMonthPicker();\n\t\t\tthis.fireDecoratorEvent(\"show-month-view\");\n\t\t}\n\t}\n\n\tonYearButtonKeyDown(e: KeyboardEvent) {\n\t\tif (isSpace(e)) {\n\t\t\te.preventDefault();\n\t\t}\n\n\t\tif (isEnter(e)) {\n\t\t\tthis.switchToYearPicker();\n\t\t\tthis.fireDecoratorEvent(\"show-year-view\");\n\t\t}\n\t}\n\n\tonYearButtonKeyUp(e: KeyboardEvent) {\n\t\tif (isSpace(e)) {\n\t\t\tthis.switchToYearPicker();\n\t\t\tthis.fireDecoratorEvent(\"show-year-view\");\n\t\t}\n\t}\n\n\tonYearRangeButtonKeyDown(e: KeyboardEvent) {\n\t\tif (isSpace(e)) {\n\t\t\te.preventDefault();\n\t\t}\n\n\t\tif (isEnter(e)) {\n\t\t\tthis.switchToYearRangePicker();\n\t\t\tthis.fireDecoratorEvent(\"show-year-range-view\");\n\t\t}\n\t}\n\n\tonYearRangeButtonKeyUp(e: KeyboardEvent) {\n\t\tif (isSpace(e)) {\n\t\t\tthis.switchToYearRangePicker();\n\t\t\tthis.fireDecoratorEvent(\"show-year-range-view\");\n\t\t}\n\t}\n\n\t_handleNavigationButtonKeyDown(e: MouseEvent, isDisabled: boolean, action: () => void) {\n\t\tif (isDisabled) {\n\t\t\te.preventDefault();\n\t\t\treturn;\n\t\t}\n\n\t\tif (e.button !== 0) {\n\t\t\treturn;\n\t\t}\n\n\t\taction();\n\t\te.preventDefault();\n\t}\n\n\tonPrevButtonClick(e: MouseEvent) {\n\t\tthis._handleNavigationButtonKeyDown(e, this._previousButtonDisabled, () => this.onHeaderPreviousPress());\n\t}\n\n\tonNextButtonClick(e: MouseEvent) {\n\t\tthis._handleNavigationButtonKeyDown(e, this._nextButtonDisabled, () => this.onHeaderNextPress());\n\t}\n\n\t/**\n\t * Returns an array of UTC timestamps, representing the selected dates.\n\t * @protected\n\t * @deprecated\n\t */\n\tget selectedDates(): Array<number> {\n\t\treturn this._selectedDatesTimestamps;\n\t}\n\n\t/**\n\t * Creates instances of `ui5-date` or `ui5-date-range` inside this `ui5-calendar` with values, equal to the provided UTC timestamps\n\t * @protected\n\t * @deprecated\n\t * @param selectedDates Array of UTC timestamps\n\t */\n\tset selectedDates(selectedDates: Array<number>) {\n\t\tthis._setSelectedDates(selectedDates);\n\t}\n}\n\nCalendar.define();\n\nexport default Calendar;\nexport type {\n\tICalendarPicker,\n\tCalendarYearRangeT,\n\tICalendarSelectedDates,\n\tCalendarSelectionChangeEventDetail,\n\tSpecialCalendarDateT,\n\tDisabledDateRangeT,\n};\n"]}
@@ -1,2 +1,14 @@
1
1
  import type Calendar from "./Calendar.js";
2
- export default function CalendarTemplate(this: Calendar): import("@ui5/webcomponents-base/jsx-runtime").JSX.Element;
2
+ interface CalendarHeaderOptions {
3
+ headerText?: {
4
+ monthText: string;
5
+ yearText: string;
6
+ secondMonthText?: string;
7
+ secondYearText?: string;
8
+ };
9
+ isFirst?: boolean;
10
+ isLast?: boolean;
11
+ isMultiple?: boolean;
12
+ }
13
+ export default function CalendarHeaderTemplate(this: Calendar, options?: CalendarHeaderOptions): import("@ui5/webcomponents-base/jsx-runtime").JSX.Element;
14
+ export {};