@openui5/sap.ui.unified 1.108.2 → 1.110.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 (92) hide show
  1. package/.reuse/dep5 +16 -16
  2. package/THIRDPARTY.txt +2 -2
  3. package/package.json +2 -2
  4. package/src/sap/ui/unified/.library +2 -2
  5. package/src/sap/ui/unified/Calendar.js +38 -35
  6. package/src/sap/ui/unified/CalendarAppointment.js +7 -8
  7. package/src/sap/ui/unified/CalendarDateInterval.js +12 -7
  8. package/src/sap/ui/unified/CalendarDateIntervalRenderer.js +1 -1
  9. package/src/sap/ui/unified/CalendarLegend.js +2 -2
  10. package/src/sap/ui/unified/CalendarLegendItem.js +2 -2
  11. package/src/sap/ui/unified/CalendarLegendRenderer.js +1 -1
  12. package/src/sap/ui/unified/CalendarMonthInterval.js +16 -16
  13. package/src/sap/ui/unified/CalendarMonthIntervalRenderer.js +1 -1
  14. package/src/sap/ui/unified/CalendarOneMonthInterval.js +2 -2
  15. package/src/sap/ui/unified/CalendarOneMonthIntervalRenderer.js +1 -1
  16. package/src/sap/ui/unified/CalendarRenderer.js +1 -1
  17. package/src/sap/ui/unified/CalendarRow.js +17 -7
  18. package/src/sap/ui/unified/CalendarRowRenderer.js +6 -2
  19. package/src/sap/ui/unified/CalendarTimeInterval.js +34 -19
  20. package/src/sap/ui/unified/CalendarTimeIntervalRenderer.js +1 -1
  21. package/src/sap/ui/unified/CalendarWeekInterval.js +2 -2
  22. package/src/sap/ui/unified/ColorPicker.js +2 -2
  23. package/src/sap/ui/unified/ColorPickerDisplayMode.js +1 -1
  24. package/src/sap/ui/unified/ColorPickerPopover.js +2 -2
  25. package/src/sap/ui/unified/ColorPickerRenderer.js +1 -1
  26. package/src/sap/ui/unified/ContentSwitcher.js +2 -2
  27. package/src/sap/ui/unified/ContentSwitcherRenderer.js +2 -2
  28. package/src/sap/ui/unified/Currency.js +3 -3
  29. package/src/sap/ui/unified/CurrencyRenderer.js +2 -2
  30. package/src/sap/ui/unified/DateRange.js +14 -2
  31. package/src/sap/ui/unified/DateTypeRange.js +2 -2
  32. package/src/sap/ui/unified/FileUploader.js +23 -24
  33. package/src/sap/ui/unified/FileUploaderHttpRequestMethod.js +1 -1
  34. package/src/sap/ui/unified/FileUploaderParameter.js +2 -2
  35. package/src/sap/ui/unified/FileUploaderRenderer.js +1 -1
  36. package/src/sap/ui/unified/FileUploaderXHRSettings.js +2 -2
  37. package/src/sap/ui/unified/Menu.js +8 -30
  38. package/src/sap/ui/unified/MenuItem.js +2 -2
  39. package/src/sap/ui/unified/MenuItemBase.js +2 -2
  40. package/src/sap/ui/unified/MenuRenderer.js +2 -2
  41. package/src/sap/ui/unified/MenuTextFieldItem.js +5 -5
  42. package/src/sap/ui/unified/Shell.js +2 -2
  43. package/src/sap/ui/unified/ShellHeadItem.js +2 -2
  44. package/src/sap/ui/unified/ShellHeadUserItem.js +2 -2
  45. package/src/sap/ui/unified/ShellHeader.js +1 -1
  46. package/src/sap/ui/unified/ShellLayout.js +2 -2
  47. package/src/sap/ui/unified/ShellLayoutRenderer.js +1 -1
  48. package/src/sap/ui/unified/ShellOverlay.js +2 -2
  49. package/src/sap/ui/unified/ShellOverlayRenderer.js +1 -1
  50. package/src/sap/ui/unified/ShellRenderer.js +1 -1
  51. package/src/sap/ui/unified/SplitContainer.js +2 -2
  52. package/src/sap/ui/unified/SplitContainerRenderer.js +2 -2
  53. package/src/sap/ui/unified/calendar/CalendarDate.js +1 -1
  54. package/src/sap/ui/unified/calendar/CalendarUtils.js +11 -6
  55. package/src/sap/ui/unified/calendar/CustomMonthPicker.js +1 -1
  56. package/src/sap/ui/unified/calendar/CustomYearPicker.js +1 -1
  57. package/src/sap/ui/unified/calendar/DatesRow.js +33 -16
  58. package/src/sap/ui/unified/calendar/DatesRowRenderer.js +1 -1
  59. package/src/sap/ui/unified/calendar/Header.js +2 -2
  60. package/src/sap/ui/unified/calendar/HeaderRenderer.js +1 -1
  61. package/src/sap/ui/unified/calendar/IndexPicker.js +2 -2
  62. package/src/sap/ui/unified/calendar/IndexPickerRenderer.js +1 -1
  63. package/src/sap/ui/unified/calendar/Month.js +30 -28
  64. package/src/sap/ui/unified/calendar/MonthPicker.js +2 -2
  65. package/src/sap/ui/unified/calendar/MonthPickerRenderer.js +1 -1
  66. package/src/sap/ui/unified/calendar/MonthRenderer.js +1 -1
  67. package/src/sap/ui/unified/calendar/MonthsRow.js +93 -24
  68. package/src/sap/ui/unified/calendar/MonthsRowRenderer.js +54 -7
  69. package/src/sap/ui/unified/calendar/OneMonthDatesRow.js +2 -2
  70. package/src/sap/ui/unified/calendar/OneMonthDatesRowRenderer.js +1 -1
  71. package/src/sap/ui/unified/calendar/TimesRow.js +41 -13
  72. package/src/sap/ui/unified/calendar/TimesRowRenderer.js +1 -1
  73. package/src/sap/ui/unified/calendar/YearPicker.js +9 -9
  74. package/src/sap/ui/unified/calendar/YearPickerRenderer.js +1 -1
  75. package/src/sap/ui/unified/calendar/YearRangePicker.js +2 -2
  76. package/src/sap/ui/unified/calendar/YearRangePickerRenderer.js +1 -1
  77. package/src/sap/ui/unified/designtime/Calendar.designtime.js +1 -1
  78. package/src/sap/ui/unified/designtime/CalendarDateInterval.designtime.js +1 -1
  79. package/src/sap/ui/unified/designtime/CalendarLegend.designtime.js +1 -1
  80. package/src/sap/ui/unified/designtime/Currency.designtime.js +1 -1
  81. package/src/sap/ui/unified/designtime/FileUploader.designtime.js +1 -1
  82. package/src/sap/ui/unified/designtime/library.designtime.js +1 -1
  83. package/src/sap/ui/unified/library.js +3 -3
  84. package/src/sap/ui/unified/library.support.js +1 -1
  85. package/src/sap/ui/unified/messagebundle_bg.properties +8 -8
  86. package/src/sap/ui/unified/messagebundle_es.properties +3 -3
  87. package/src/sap/ui/unified/messagebundle_hr.properties +2 -2
  88. package/src/sap/ui/unified/rules/FileUploader.support.js +1 -1
  89. package/src/sap/ui/unified/themes/base/Calendar.less +2 -5
  90. package/src/sap/ui/unified/themes/base/Menu.less +12 -0
  91. package/src/sap/ui/unified/themes/base/library.source.less +1 -1
  92. package/src/sap/ui/unified/themes/sap_hcb/library.source.less +1 -1
package/.reuse/dep5 CHANGED
@@ -28,7 +28,7 @@ Disclaimer: The code in this project may include calls to APIs (“API Calls”)
28
28
  # OpenUI5 code
29
29
 
30
30
  Files: *
31
- Copyright: 2009-2022 SAP SE or an SAP affiliate company and OpenUI5 contributors
31
+ Copyright: 2009-2023 SAP SE or an SAP affiliate company and OpenUI5 contributors
32
32
  License: Apache-2.0
33
33
 
34
34
 
@@ -68,7 +68,7 @@ Comment: these files belong to: jQuery UI
68
68
 
69
69
  Files: src/sap.ui.commons/src/sap/ui/commons/Carousel.js
70
70
  Copyright:
71
- 2009-2022 SAP SE or an SAP affiliate company and OpenUI5 contributors
71
+ 2009-2023 SAP SE or an SAP affiliate company and OpenUI5 contributors
72
72
  Spencer Tipping
73
73
  License: Apache-2.0 and MIT
74
74
  Comment: these files contain content from SAP and jquery.fix.clone: Carousel.js is authored by SAP, but contains an improved implementation of the clone function which is taken from jquery-fix-clone
@@ -83,35 +83,35 @@ Comment: these files belong to: jQuery 3
83
83
 
84
84
  Files: src/sap.ui.core/src/sap/base/util/isPlainObject.js
85
85
  Copyright:
86
- 2009-2022 SAP SE or an SAP affiliate company and OpenUI5 contributors
86
+ 2009-2023 SAP SE or an SAP affiliate company and OpenUI5 contributors
87
87
  OpenJS Foundation and other contributors
88
88
  License: Apache-2.0 and MIT
89
89
  Comment: these files contain content from SAP and jQuery 3: isPlainObject.js is overall written by SAP, but contains a modified implementation of jQuery.isPlainObject taken from jQuery
90
90
 
91
91
  Files: src/sap.ui.core/src/sap/base/util/_merge.js
92
92
  Copyright:
93
- 2009-2022 SAP SE or an SAP affiliate company and OpenUI5 contributors
93
+ 2009-2023 SAP SE or an SAP affiliate company and OpenUI5 contributors
94
94
  OpenJS Foundation and other contributors
95
95
  License: Apache-2.0 and MIT
96
96
  Comment: these files contain content from SAP and jQuery 3: _merge.js is overall written by SAP, but contains a modified implementation of jQuery.extend taken from jQuery
97
97
 
98
98
  Files: src/sap.ui.core/src/jquery.sap.script.js
99
99
  Copyright:
100
- 2009-2022 SAP SE or an SAP affiliate company and OpenUI5 contributors
100
+ 2009-2023 SAP SE or an SAP affiliate company and OpenUI5 contributors
101
101
  OpenJS Foundation and other contributors
102
102
  License: Apache-2.0 and MIT
103
103
  Comment: these files contain content from SAP and jQuery 3: jquery.sap.script.js is overall written by SAP, but contains a modified implementation of jQuery.extend taken from jQuery
104
104
 
105
105
  Files: src/sap.ui.core/src/sap/ui/Device.js
106
106
  Copyright:
107
- 2009-2022 SAP SE or an SAP affiliate company and OpenUI5 contributors
107
+ 2009-2023 SAP SE or an SAP affiliate company and OpenUI5 contributors
108
108
  2011, John Resig
109
109
  License: Apache-2.0 and MIT
110
110
  Comment: these files contain content from SAP and jQuery 1: Device.js is overall written by SAP, but contains code taken from jQuery 1.7.1 (see the respective comment)
111
111
 
112
112
  Files: src/sap.ui.core/src/sap/ui/dom/jquery/Selectors.js
113
113
  Copyright:
114
- 2009-2022 SAP SE or an SAP affiliate company and OpenUI5 contributors
114
+ 2009-2023 SAP SE or an SAP affiliate company and OpenUI5 contributors
115
115
  2014 jQuery Foundation and other contributors
116
116
  License: Apache-2.0 and MIT
117
117
  Comment: these files contain content from SAP and jQuery UI 1.8: Selectors.js is overall written by SAP, but contains code taken from jQuery UI (see the respective comments)
@@ -123,14 +123,14 @@ Comment: these files belong to: jQuery UI 1.10
123
123
 
124
124
  Files: src/sap.ui.core/src/jquery.sap.dom.js
125
125
  Copyright:
126
- 2009-2022 SAP SE or an SAP affiliate company and OpenUI5 contributors
126
+ 2009-2023 SAP SE or an SAP affiliate company and OpenUI5 contributors
127
127
  2014 jQuery Foundation and other contributors
128
128
  License: Apache-2.0 and MIT
129
129
  Comment: these files contain content from SAP and jQuery UI 1.10: jquery.sap.dom.js is overall written by SAP, but contains code taken from jQuery UI Core (see the respective comment)
130
130
 
131
131
  Files: src/sap.ui.core/src/sap/ui/dom/jquery/zIndex.js
132
132
  Copyright:
133
- 2009-2022 SAP SE or an SAP affiliate company and OpenUI5 contributors
133
+ 2009-2023 SAP SE or an SAP affiliate company and OpenUI5 contributors
134
134
  2014 jQuery Foundation and other contributors
135
135
  License: Apache-2.0 and MIT
136
136
  Comment: these files contain content from SAP and jQuery UI 1.11: zIndex.js is overall written by SAP, but contains an implementation of the function 'fnzIndex' which is taken from jQuery UI Datepicker 1.11.1
@@ -162,7 +162,7 @@ Comment: these files belong to: jQuery Mobile
162
162
 
163
163
  Files: src/sap.ui.core/src/sap/ui/util/_FeatureDetection.js
164
164
  Copyright:
165
- 2009-2022 SAP SE or an SAP affiliate company and OpenUI5 contributors
165
+ 2009-2023 SAP SE or an SAP affiliate company and OpenUI5 contributors
166
166
  2012 Wei-Ko Kao
167
167
  License: Apache-2.0 and MIT
168
168
  Comment: these files contain content from SAP and jQuery.rtl-scroll-type: _FeatureDetection.js is overall written by SAP, but contains code which is inspired by jQuery.rtl-scroll-type
@@ -299,14 +299,14 @@ Comment: these files belong to: blanket.js
299
299
 
300
300
  Files: src/sap.ui.core/src/sap/base/util/JSTokenizer.js
301
301
  Copyright:
302
- 2009-2022 SAP SE or an SAP affiliate company and OpenUI5 contributors
302
+ 2009-2023 SAP SE or an SAP affiliate company and OpenUI5 contributors
303
303
  Douglas Crockford
304
304
  License: Apache-2.0 and LicenseRef-JSONinJSPublicDomain
305
305
  Comment: these files contain content from SAP and JSON in JS: JSTokenizer.js is overall written by SAP, but contains code has been taken from the component JSON in JavaScript (https://github.com/douglascrockford/JSON-js/blob/master/json2.js) from Douglas Crockford which is licensed under Public Domain
306
306
 
307
307
  Files: src/sap.ui.core/src/sap/ui/base/ExpressionParser.js
308
308
  Copyright:
309
- 2009-2022 SAP SE or an SAP affiliate company and OpenUI5 contributors
309
+ 2009-2023 SAP SE or an SAP affiliate company and OpenUI5 contributors
310
310
  2010 Douglas Crockford
311
311
  License: Apache-2.0
312
312
  Comment: these files contain content from SAP and Top Down Operator Precedence: ExpressionParser.js is overall written by SAP, but contains code taken from or inspired by TDOP by Douglas Crockford (see the respective comment)
@@ -340,7 +340,7 @@ Comment: these files contain content from p-cancelable and @babel/helpers: _Canc
340
340
 
341
341
  Files: src/sap.ui.core/src/sap/ui/core/date/Persian.js
342
342
  Copyright:
343
- 2009-2022 SAP SE or an SAP affiliate company and OpenUI5 contributors
343
+ 2009-2023 SAP SE or an SAP affiliate company and OpenUI5 contributors
344
344
  Behrang Norouzinia
345
345
  License: Apache-2.0 and MIT
346
346
  Comment: these files contain content from SAP and Jalaali JS: Persian.js is overall written by SAP, but the calculation is taken from jalaali-js
@@ -352,14 +352,14 @@ Comment: these files belong to: vkBeautify
352
352
 
353
353
  Files: src/sap.ui.core/src/sap/ui/core/cache/LRUPersistentCache.js
354
354
  Copyright:
355
- 2009-2022 SAP SE or an SAP affiliate company and OpenUI5 contributors
355
+ 2009-2023 SAP SE or an SAP affiliate company and OpenUI5 contributors
356
356
  Isaac Z. Schlueter and Contributors
357
357
  License: Apache-2.0 and ISC
358
358
  Comment: these files contain content from SAP and node-lru-cache: LRUPersistentCache.js is overall written by SAP, but portions ('Least Recently Used' logic) are taken from the node-lru-cache project (see https://github.com/isaacs/node-lru-cache/blob/v2.7.3/README.md) and modified.
359
359
 
360
360
  Files: src/sap.ui.core/test/sap/ui/core/qunit/i18n/helper/_timezones.js
361
361
  Copyright:
362
- 2009-2022 SAP SE or an SAP affiliate company and OpenUI5 contributors
362
+ 2009-2023 SAP SE or an SAP affiliate company and OpenUI5 contributors
363
363
  Arthur David Olson, Paul Eggert and other contributors
364
364
  License: Apache-2.0 and LicenseRef-tzdata-PublicDomain
365
365
  Comment: these files contain content from SAP and Time Zone Database: _timezones.js is overall written by SAP, but the list of IANA timezone IDs is taken from the Timezone Database
@@ -469,7 +469,7 @@ Comment: these files belong to: LESS
469
469
 
470
470
  Files: lib/jsdoc/ui5/plugin.js
471
471
  Copyright:
472
- 2009-2022 SAP SE or an SAP affiliate company and OpenUI5 contributors
472
+ 2009-2023 SAP SE or an SAP affiliate company and OpenUI5 contributors
473
473
  2011-present Michael Mathews micmath@gmail.com and the contributors to JSDoc
474
474
  License: Apache-2.0
475
475
  Comment: these files contain content from SAP and JSDoc 3: plugin.js is overall written by SAP, but contains code taken from JSDoc 3.6.7 (see the respective comments)
package/THIRDPARTY.txt CHANGED
@@ -185,7 +185,7 @@ License: Apache-2.0
185
185
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
186
186
  Contained in: src/sap.ui.core/src/sap/ui/thirdparty/caja-html-sanitizer.js
187
187
 
188
- Component: Unicode Common Locale Data Repository, version: 35.1
188
+ Component: Unicode Common Locale Data Repository, version: 41
189
189
  Copyright: 1991-2014 Unicode, Inc.
190
190
  License: Unicode-DFS-2015
191
191
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Unicode-DFS-2015.txt
@@ -478,7 +478,7 @@ License: Apache-2.0
478
478
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
479
479
  Contained in: lib/jsdoc/ui5/plugin.js
480
480
 
481
- Component: SAP Theming Base Content, version: 11.1.40
481
+ Component: SAP Theming Base Content, version: 11.1.48
482
482
  Copyright: SAP SE or an SAP affiliate company and Theming Base Content contributors
483
483
  License: Apache-2.0
484
484
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openui5/sap.ui.unified",
3
- "version": "1.108.2",
3
+ "version": "1.110.0",
4
4
  "description": "OpenUI5 UI Library sap.ui.unified",
5
5
  "author": "SAP SE (https://www.sap.com)",
6
6
  "license": "Apache-2.0",
@@ -14,6 +14,6 @@
14
14
  "url": "https://github.com/SAP/openui5.git"
15
15
  },
16
16
  "dependencies": {
17
- "@openui5/sap.ui.core": "1.108.2"
17
+ "@openui5/sap.ui.core": "1.110.0"
18
18
  }
19
19
  }
@@ -4,9 +4,9 @@
4
4
  <name>sap.ui.unified</name>
5
5
  <vendor>SAP SE</vendor>
6
6
  <copyright>OpenUI5
7
- * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
7
+ * (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
8
8
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.</copyright>
9
- <version>1.108.2</version>
9
+ <version>1.110.0</version>
10
10
 
11
11
  <documentation>Unified controls intended for both, mobile and desktop scenarios</documentation>
12
12
 
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
  //Provides control sap.ui.unified.Calendar.
@@ -74,7 +74,7 @@ sap.ui.define([
74
74
  * Basic Calendar.
75
75
  * This calendar is used for DatePickers
76
76
  * @extends sap.ui.core.Control
77
- * @version 1.108.2
77
+ * @version 1.110.0
78
78
  *
79
79
  * @constructor
80
80
  * @public
@@ -629,9 +629,10 @@ sap.ui.define([
629
629
  this._oSpecialDatesControlOrigin = oControl;
630
630
  };
631
631
 
632
- /*
633
- * if used inside DatePicker get the value from the parent
634
- * To don't have sync issues...
632
+ /**
633
+ * If used inside DatePicker get the value from the parent
634
+ * To not have sync issues...
635
+ * @returns {sap.ui.unified.DateTypeRange[]} Array with special dates
635
636
  */
636
637
  Calendar.prototype.getSpecialDates = function(){
637
638
 
@@ -665,10 +666,10 @@ sap.ui.define([
665
666
  };
666
667
 
667
668
  /**
668
- * sets the locale for the DatePicker
669
+ * Sets the locale for the DatePicker
669
670
  * only for internal use
670
671
  * @param {string} sLocale new value for <code>locale</code>
671
- * @returns {this} <code>this</code> to allow method chaining
672
+ * @returns {this} Reference to <code>this</code> for method chaining
672
673
  * @private
673
674
  */
674
675
  Calendar.prototype.setLocale = function(sLocale){
@@ -685,9 +686,9 @@ sap.ui.define([
685
686
  };
686
687
 
687
688
  /**
688
- * gets the used locale for the DatePicker
689
+ * Gets the used locale for the DatePicker
689
690
  * only for internal use
690
- * @return {string} sLocale
691
+ * @returns {string} sLocale
691
692
  * @private
692
693
  */
693
694
  Calendar.prototype.getLocale = function(){
@@ -700,8 +701,8 @@ sap.ui.define([
700
701
 
701
702
  };
702
703
  /**
703
- * gets the focused date
704
- * @return {sap.ui.unified.calendar.CalendarDate} the focused date.
704
+ * Gets the focused date
705
+ * @returns {sap.ui.unified.calendar.CalendarDate} The focused date
705
706
  * @private
706
707
  */
707
708
  Calendar.prototype._getFocusedDate = function(){
@@ -726,8 +727,8 @@ sap.ui.define([
726
727
  /**
727
728
  * Displays and sets the focused date of the calendar.
728
729
  *
729
- * @param {Object} oDate A JavaScript date object for focused date
730
- * @returns {this} <code>this</code> to allow method chaining
730
+ * @param {Date} oDate A JavaScript date object for focused date
731
+ * @returns {this} Reference to <code>this</code> for method chaining
731
732
  * @public
732
733
  */
733
734
  Calendar.prototype.focusDate = function(oDate) {
@@ -742,9 +743,8 @@ sap.ui.define([
742
743
  /**
743
744
  * Displays a date in the calendar but doesn't set the focus.
744
745
  *
745
- * @param {Object} oDate
746
- * JavaScript date object for focused date.
747
- * @returns {this} <code>this</code> to allow method chaining
746
+ * @param {Date} oDate JavaScript date object for focused date
747
+ * @returns {this} Reference to <code>this</code> for method chaining
748
748
  * @since 1.28.0
749
749
  * @public
750
750
  */
@@ -761,7 +761,7 @@ sap.ui.define([
761
761
  *
762
762
  * There might be some days of the previous month shown, but they can not be focused.
763
763
  *
764
- * @returns {Object} JavaScript date object for start date.
764
+ * @returns {Date} JavaScript date object for start date
765
765
  * @since 1.34.1
766
766
  * @public
767
767
  */
@@ -819,6 +819,7 @@ sap.ui.define([
819
819
  oMonth.setSecondaryCalendarType(this._getSecondaryCalendarType());
820
820
  this.addAggregation("month",oMonth);
821
821
  }
822
+ this._toggleTwoMonthsInTwoColumnsCSS();
822
823
  } else if (aMonths.length > iMonths){
823
824
  for (i = aMonths.length; i > iMonths; i--) {
824
825
  oMonth = this.removeAggregation("month", i - 1);
@@ -828,6 +829,7 @@ sap.ui.define([
828
829
  // back to standard case -> initialize month width
829
830
  this._bInitMonth = true;
830
831
  }
832
+ this._toggleTwoMonthsInTwoColumnsCSS();
831
833
  }
832
834
 
833
835
  if (iMonths > 1 && aMonths[0].getDate()) {
@@ -950,7 +952,7 @@ sap.ui.define([
950
952
  /**
951
953
  * Sets a minimum date for the calendar.
952
954
  * @param {Date} oDate a JavaScript date
953
- * @return {this} <code>this</code> for method chaining
955
+ * @returns {this} Reference to <code>this</code> for method chaining
954
956
  * @public
955
957
  */
956
958
  Calendar.prototype.setMinDate = function(oDate){
@@ -972,7 +974,7 @@ sap.ui.define([
972
974
  this._oMinDate = CalendarDate.fromLocalJSDate(oDate, sPrimaryCalendarType);
973
975
 
974
976
  var iYear = this._oMinDate.getYear();
975
- CalendarUtils._checkYearInValidRange(iYear);
977
+ CalendarUtils._checkYearInValidRange(iYear, sPrimaryCalendarType);
976
978
 
977
979
  if (this._oMaxDate.isBefore(this._oMinDate)) {
978
980
  Log.warning("minDate > maxDate -> maxDate set to end of the month", this);
@@ -1004,13 +1006,13 @@ sap.ui.define([
1004
1006
  /**
1005
1007
  * Sets a maximum date for the calendar.
1006
1008
  * @param {Date} oDate a JavaScript date
1007
- * @return {this} <code>this</code> for method chaining
1009
+ * @returns {this} Reference to <code>this</code> for method chaining
1008
1010
  * @public
1009
1011
  */
1010
1012
  Calendar.prototype.setMaxDate = function(oDate){
1011
1013
 
1012
1014
  var aMonths = this.getAggregation("month"),
1013
- sPrimaryCalendarType,
1015
+ sPrimaryCalendarType = this.getPrimaryCalendarType(),
1014
1016
  iMaxYear;
1015
1017
 
1016
1018
  if (deepEqual(oDate, this.getMaxDate())) {
@@ -1026,7 +1028,7 @@ sap.ui.define([
1026
1028
  this._oMaxDate = CalendarDate.fromLocalJSDate(oDate, sPrimaryCalendarType);
1027
1029
 
1028
1030
  var iYear = this._oMaxDate.getYear();
1029
- CalendarUtils._checkYearInValidRange(iYear);
1031
+ CalendarUtils._checkYearInValidRange(iYear, sPrimaryCalendarType);
1030
1032
 
1031
1033
  if (this._oMinDate.isAfter(this._oMaxDate)) {
1032
1034
  Log.warning("maxDate < minDate -> minDate set to begin of the month", this);
@@ -1058,7 +1060,7 @@ sap.ui.define([
1058
1060
  * Sets the visibility of the Current date button in the calendar.
1059
1061
  *
1060
1062
  * @param {boolean} bShow whether the Today button will be displayed
1061
- * @return {this} <code>this</code> for method chaining
1063
+ * @returns {this} Reference to <code>this</code> for method chaining
1062
1064
  * @public
1063
1065
  */
1064
1066
  Calendar.prototype.setShowCurrentDateButton = function(bShow){
@@ -1117,7 +1119,7 @@ sap.ui.define([
1117
1119
 
1118
1120
  /**
1119
1121
  * Getter for monthPicker aggregation.
1120
- * @return {sap.ui.unified.calendar.MonthPicker} The monthPicker control instance
1122
+ * @returns {sap.ui.unified.calendar.MonthPicker} The monthPicker control instance
1121
1123
  * @private
1122
1124
  */
1123
1125
  Calendar.prototype._getMonthPicker = function () {
@@ -1126,7 +1128,7 @@ sap.ui.define([
1126
1128
 
1127
1129
  /**
1128
1130
  * Getter for yearPicker aggregation.
1129
- * @return {sap.ui.unified.calendar.YearPicker} The yearPicker control instance
1131
+ * @returns {sap.ui.unified.calendar.YearPicker} The yearPicker control instance
1130
1132
  * @private
1131
1133
  */
1132
1134
  Calendar.prototype._getYearPicker = function () {
@@ -1135,7 +1137,7 @@ sap.ui.define([
1135
1137
 
1136
1138
  /**
1137
1139
  * Getter for yearPicker aggregation.
1138
- * @return {sap.ui.unified.calendar.YearRangePicker} The yearRangePicker control instance
1140
+ * @returns {sap.ui.unified.calendar.YearRangePicker} The yearRangePicker control instance
1139
1141
  * @private
1140
1142
  */
1141
1143
  Calendar.prototype._getYearRangePicker = function () {
@@ -1375,7 +1377,7 @@ sap.ui.define([
1375
1377
  * Enables/Disables previous and next buttons in the year picker header.
1376
1378
  * This function assumes there is a "yearPicker" aggregation.
1377
1379
  * So callers must take care.
1378
- * @return {void}
1380
+ * @returns {void}
1379
1381
  * @private
1380
1382
  */
1381
1383
  Calendar.prototype._togglePrevNexYearPicker = function(){
@@ -1417,7 +1419,7 @@ sap.ui.define([
1417
1419
  * Handles navigation to previous date.
1418
1420
  * This function assumes there are both "yearPicker" & "monthPicker" aggregation available.
1419
1421
  * So callers must take care.
1420
- * @return {void}
1422
+ * @returns {void}
1421
1423
  * @private
1422
1424
  */
1423
1425
  Calendar.prototype._handlePrevious = function(oEvent){
@@ -1477,7 +1479,7 @@ sap.ui.define([
1477
1479
  * Handles navigation to next date.
1478
1480
  * This function assumes there are both "yearPicker" & "monthPicker" aggregation available.
1479
1481
  * So callers must take care.
1480
- * @return {void}
1482
+ * @returns {void}
1481
1483
  * @private
1482
1484
  */
1483
1485
  Calendar.prototype._handleNext = function(oEvent){
@@ -1789,7 +1791,7 @@ sap.ui.define([
1789
1791
  /**
1790
1792
  * Updates visibility of active Header month button
1791
1793
  * Only for internal use
1792
- * @returns {this} <code>this</code> to allow method chaining
1794
+ * @returns {this} Reference to <code>this</code> for method chaining
1793
1795
  * @private
1794
1796
  */
1795
1797
  Calendar.prototype._updateMonthButtonVisibility = function(){
@@ -1808,7 +1810,7 @@ sap.ui.define([
1808
1810
  * Shows an embedded Month Picker.
1809
1811
  * This function assumes there is a "monthPicker" & "yearPicker" aggregation.
1810
1812
  * So callers must take care.
1811
- * @return {void}
1813
+ * @returns {void}
1812
1814
  * @private
1813
1815
  */
1814
1816
  Calendar.prototype._showMonthPicker = function (bSkipFocus) {
@@ -1849,7 +1851,7 @@ sap.ui.define([
1849
1851
  * Shows an embedded year Picker.
1850
1852
  * This function assumes there is a "yearPicker" aggregation.
1851
1853
  * So callers must take care.
1852
- * @return {void}
1854
+ * @returns {void}
1853
1855
  * @private
1854
1856
  */
1855
1857
  Calendar.prototype._showYearPicker = function () {
@@ -2249,7 +2251,7 @@ sap.ui.define([
2249
2251
  /**
2250
2252
  * Updates visibility of active Header Year button
2251
2253
  * Only for internal use
2252
- * @returns {this} <code>this</code> to allow method chaining
2254
+ * @returns {this} Reference to <code>this</code> for method chaining
2253
2255
  * @private
2254
2256
  */
2255
2257
  Calendar.prototype._updateActiveHeaderYearButtonVisibility = function(){
@@ -2678,16 +2680,17 @@ sap.ui.define([
2678
2680
  function _displayDate(oDate, bSkipFocus) {
2679
2681
 
2680
2682
  var oCalDate,
2683
+ sPrimaryCalendarType = this.getPrimaryCalendarType(),
2681
2684
  iYear;
2682
2685
 
2683
2686
  if (!oDate) {
2684
2687
  return;
2685
2688
  }
2686
2689
 
2687
- oCalDate = CalendarDate.fromLocalJSDate(oDate, this.getPrimaryCalendarType());
2690
+ oCalDate = CalendarDate.fromLocalJSDate(oDate, sPrimaryCalendarType);
2688
2691
 
2689
2692
  iYear = oCalDate.getYear();
2690
- CalendarUtils._checkYearInValidRange(iYear);
2693
+ CalendarUtils._checkYearInValidRange(iYear, sPrimaryCalendarType);
2691
2694
 
2692
2695
  if (CalendarUtils._isOutside(oCalDate, this._oMinDate, this._oMaxDate)) {
2693
2696
  throw new Error("Date must not be in valid range (minDate and maxDate); " + this);
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -21,7 +21,7 @@ sap.ui.define(['./DateTypeRange', 'sap/ui/core/format/DateFormat', 'sap/ui/core/
21
21
  *
22
22
  * Applications could inherit from this element to add own fields.
23
23
  * @extends sap.ui.unified.DateTypeRange
24
- * @version 1.108.2
24
+ * @version 1.110.0
25
25
  *
26
26
  * @constructor
27
27
  * @public
@@ -279,14 +279,13 @@ sap.ui.define(['./DateTypeRange', 'sap/ui/core/format/DateFormat', 'sap/ui/core/
279
279
  * @private
280
280
  */
281
281
  CalendarAppointment.prototype._convertToTimezone = function(oDate) {
282
- var sTimezone = Core.getConfiguration().getTimezone();
283
- var oNewDate = CalendarUtils._createUniversalUTCDate(oDate, undefined, true);
282
+ var sConfigTimezone = Core.getConfiguration().getTimezone();
283
+ var sLocalTimezone = TimezoneUtil.getLocalTimezone();
284
284
 
285
- oNewDate = new Date(oDate.getUTCFullYear(), oDate.getUTCMonth(), oDate.getUTCDate(), oDate.getUTCHours(), oDate.getUTCMinutes(), oDate.getUTCSeconds());
286
- oNewDate.setUTCFullYear(oDate.getUTCFullYear());
287
- oNewDate = TimezoneUtil.convertToTimezone(oNewDate, sTimezone);
285
+ var iConfigOffsetMillis = TimezoneUtil.calculateOffset(oDate, sConfigTimezone) * 1000;
286
+ var iLocalOffsetMillis = TimezoneUtil.calculateOffset(oDate, sLocalTimezone) * 1000;
288
287
 
289
- return oNewDate;
288
+ return new Date(oDate.getTime() - iConfigOffsetMillis + iLocalOffsetMillis);
290
289
  };
291
290
 
292
291
  return CalendarAppointment;
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -56,7 +56,7 @@ sap.ui.define([
56
56
  * @class
57
57
  * <code>CalendarDateInterval</code> only visualizes the dates in a one-line interval and allows the selection of a single day.
58
58
  * @extends sap.ui.unified.Calendar
59
- * @version 1.108.2
59
+ * @version 1.110.0
60
60
  *
61
61
  * @constructor
62
62
  * @public
@@ -408,6 +408,11 @@ sap.ui.define([
408
408
 
409
409
  };
410
410
 
411
+ /**
412
+ * Set start date of the interval
413
+ * @param {Date} oStartDate A JavaScript Date
414
+ * @returns {this} Reference to <code>this</code> for method chaining
415
+ */
411
416
  CalendarDateInterval.prototype.setStartDate = function(oStartDate){
412
417
 
413
418
  CalendarUtils._checkJSDateObject(oStartDate);
@@ -457,11 +462,11 @@ sap.ui.define([
457
462
  };
458
463
 
459
464
  // needs to be overwritten because differently implemented in Calendar
460
- /*
465
+ /**
461
466
  * Gets current value of property startDate.
462
467
  *
463
468
  * Start date of the Interval
464
- * @returns {object} JavaScript date object for property startDate
469
+ * @returns {Date} JavaScript date object for property <code>startDate</code>
465
470
  */
466
471
  CalendarDateInterval.prototype.getStartDate = function(){
467
472
 
@@ -585,7 +590,7 @@ sap.ui.define([
585
590
  *
586
591
  * @protected
587
592
  * @param {int} iMonths How many months to be displayed
588
- * @returns {this} <code>this</code> to allow method chaining
593
+ * @returns {this} Reference to <code>this</code> for method chaining
589
594
  */
590
595
  CalendarDateInterval.prototype.setMonths = function(iMonths){
591
596
 
@@ -604,7 +609,7 @@ sap.ui.define([
604
609
  *
605
610
  * @protected
606
611
  * @param {int} [iFirstDayOfWeek] First day of the week
607
- * @returns {this} <code>this</code> to allow method chaining
612
+ * @returns {this} Reference to <code>this</code> for method chaining
608
613
  */
609
614
  CalendarDateInterval.prototype.setFirstDayOfWeek = function(iFirstDayOfWeek){
610
615
 
@@ -619,7 +624,7 @@ sap.ui.define([
619
624
  /**
620
625
  * Focuses given date.
621
626
  * @param {Date} oDate a JavaScript date
622
- * @returns {this} <code>this</code> for method chaining
627
+ * @returns {this} Reference to <code>this</code> for method chaining
623
628
  */
624
629
  CalendarDateInterval.prototype.focusDate = function(oDate){
625
630
 
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -33,7 +33,7 @@ sap.ui.define([
33
33
  * @extends sap.ui.core.Control
34
34
  *
35
35
  * @author SAP SE
36
- * @version 1.108.2
36
+ * @version 1.110.0
37
37
  *
38
38
  * @constructor
39
39
  * @public
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -21,7 +21,7 @@ sap.ui.define(['sap/ui/core/Element', './library'],
21
21
  * @class
22
22
  * Item to be displayed in a CalendarLegend.
23
23
  * @extends sap.ui.core.Element
24
- * @version 1.108.2
24
+ * @version 1.110.0
25
25
  *
26
26
  * @constructor
27
27
  * @public
@@ -1,6 +1,6 @@
1
1
  /*
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6