@openui5/sap.ui.unified 1.84.30-SNAPSHOT → 1.84.32

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 (131) hide show
  1. package/package.json +2 -2
  2. package/src/sap/ui/unified/.library +2 -2
  3. package/src/sap/ui/unified/Calendar.js +38 -9
  4. package/src/sap/ui/unified/CalendarAppointment.js +2 -2
  5. package/src/sap/ui/unified/CalendarDateInterval.js +2 -2
  6. package/src/sap/ui/unified/CalendarDateIntervalRenderer.js +1 -1
  7. package/src/sap/ui/unified/CalendarLegend.js +2 -2
  8. package/src/sap/ui/unified/CalendarLegendItem.js +2 -2
  9. package/src/sap/ui/unified/CalendarLegendRenderer.js +3 -1
  10. package/src/sap/ui/unified/CalendarMonthInterval.js +2 -2
  11. package/src/sap/ui/unified/CalendarMonthIntervalRenderer.js +1 -1
  12. package/src/sap/ui/unified/CalendarOneMonthInterval.js +2 -2
  13. package/src/sap/ui/unified/CalendarOneMonthIntervalRenderer.js +1 -1
  14. package/src/sap/ui/unified/CalendarRenderer.js +1 -1
  15. package/src/sap/ui/unified/CalendarRow.js +2 -2
  16. package/src/sap/ui/unified/CalendarRowRenderer.js +1 -1
  17. package/src/sap/ui/unified/CalendarTimeInterval.js +2 -2
  18. package/src/sap/ui/unified/CalendarTimeIntervalRenderer.js +1 -1
  19. package/src/sap/ui/unified/CalendarWeekInterval.js +2 -2
  20. package/src/sap/ui/unified/ColorPicker.js +2 -2
  21. package/src/sap/ui/unified/ColorPickerDisplayMode.js +1 -1
  22. package/src/sap/ui/unified/ColorPickerPopover.js +2 -2
  23. package/src/sap/ui/unified/ColorPickerRenderer.js +1 -1
  24. package/src/sap/ui/unified/ContentSwitcher.js +2 -2
  25. package/src/sap/ui/unified/ContentSwitcherRenderer.js +1 -1
  26. package/src/sap/ui/unified/Currency.js +2 -2
  27. package/src/sap/ui/unified/CurrencyRenderer.js +2 -2
  28. package/src/sap/ui/unified/DateRange.js +2 -2
  29. package/src/sap/ui/unified/DateTypeRange.js +2 -2
  30. package/src/sap/ui/unified/FileUploader.js +7 -6
  31. package/src/sap/ui/unified/FileUploaderHttpRequestMethod.js +1 -1
  32. package/src/sap/ui/unified/FileUploaderParameter.js +2 -2
  33. package/src/sap/ui/unified/FileUploaderRenderer.js +1 -1
  34. package/src/sap/ui/unified/FileUploaderXHRSettings.js +2 -2
  35. package/src/sap/ui/unified/Menu.js +2 -2
  36. package/src/sap/ui/unified/MenuItem.js +2 -2
  37. package/src/sap/ui/unified/MenuItemBase.js +2 -2
  38. package/src/sap/ui/unified/MenuRenderer.js +2 -2
  39. package/src/sap/ui/unified/MenuTextFieldItem.js +5 -5
  40. package/src/sap/ui/unified/Shell.js +2 -2
  41. package/src/sap/ui/unified/ShellHeadItem.js +2 -2
  42. package/src/sap/ui/unified/ShellHeadUserItem.js +2 -2
  43. package/src/sap/ui/unified/ShellHeader.js +1 -1
  44. package/src/sap/ui/unified/ShellLayout.js +2 -2
  45. package/src/sap/ui/unified/ShellLayoutRenderer.js +1 -1
  46. package/src/sap/ui/unified/ShellOverlay.js +2 -2
  47. package/src/sap/ui/unified/ShellOverlayRenderer.js +1 -1
  48. package/src/sap/ui/unified/ShellRenderer.js +1 -1
  49. package/src/sap/ui/unified/SplitContainer.js +2 -2
  50. package/src/sap/ui/unified/SplitContainerRenderer.js +1 -1
  51. package/src/sap/ui/unified/calendar/CalendarDate.js +1 -1
  52. package/src/sap/ui/unified/calendar/CalendarUtils.js +1 -1
  53. package/src/sap/ui/unified/calendar/CustomMonthPicker.js +1 -1
  54. package/src/sap/ui/unified/calendar/CustomYearPicker.js +1 -1
  55. package/src/sap/ui/unified/calendar/DatesRow.js +2 -2
  56. package/src/sap/ui/unified/calendar/DatesRowRenderer.js +1 -1
  57. package/src/sap/ui/unified/calendar/Header.js +2 -2
  58. package/src/sap/ui/unified/calendar/HeaderRenderer.js +1 -1
  59. package/src/sap/ui/unified/calendar/Month.js +69 -9
  60. package/src/sap/ui/unified/calendar/MonthPicker.js +2 -2
  61. package/src/sap/ui/unified/calendar/MonthPickerRenderer.js +1 -1
  62. package/src/sap/ui/unified/calendar/MonthRenderer.js +4 -4
  63. package/src/sap/ui/unified/calendar/MonthsRow.js +2 -2
  64. package/src/sap/ui/unified/calendar/MonthsRowRenderer.js +1 -1
  65. package/src/sap/ui/unified/calendar/OneMonthDatesRow.js +2 -2
  66. package/src/sap/ui/unified/calendar/OneMonthDatesRowRenderer.js +1 -1
  67. package/src/sap/ui/unified/calendar/TimesRow.js +3 -3
  68. package/src/sap/ui/unified/calendar/TimesRowRenderer.js +1 -1
  69. package/src/sap/ui/unified/calendar/YearPicker.js +2 -2
  70. package/src/sap/ui/unified/calendar/YearPickerRenderer.js +1 -1
  71. package/src/sap/ui/unified/calendar/YearRangePicker.js +2 -2
  72. package/src/sap/ui/unified/calendar/YearRangePickerRenderer.js +1 -1
  73. package/src/sap/ui/unified/designtime/Calendar.designtime.js +1 -1
  74. package/src/sap/ui/unified/designtime/CalendarDateInterval.designtime.js +1 -1
  75. package/src/sap/ui/unified/designtime/CalendarLegend.designtime.js +1 -1
  76. package/src/sap/ui/unified/designtime/Currency.designtime.js +1 -1
  77. package/src/sap/ui/unified/designtime/FileUploader.designtime.js +1 -1
  78. package/src/sap/ui/unified/designtime/library.designtime.js +1 -1
  79. package/src/sap/ui/unified/library.js +3 -3
  80. package/src/sap/ui/unified/library.support.js +1 -1
  81. package/src/sap/ui/unified/messagebundle.properties +3 -0
  82. package/src/sap/ui/unified/messagebundle_ar.properties +4 -0
  83. package/src/sap/ui/unified/messagebundle_bg.properties +4 -0
  84. package/src/sap/ui/unified/messagebundle_ca.properties +4 -0
  85. package/src/sap/ui/unified/messagebundle_cs.properties +4 -0
  86. package/src/sap/ui/unified/messagebundle_cy.properties +4 -0
  87. package/src/sap/ui/unified/messagebundle_da.properties +4 -0
  88. package/src/sap/ui/unified/messagebundle_de.properties +4 -0
  89. package/src/sap/ui/unified/messagebundle_el.properties +4 -0
  90. package/src/sap/ui/unified/messagebundle_en.properties +4 -0
  91. package/src/sap/ui/unified/messagebundle_en_GB.properties +4 -0
  92. package/src/sap/ui/unified/messagebundle_en_US_saprigi.properties +6 -2
  93. package/src/sap/ui/unified/messagebundle_es.properties +4 -0
  94. package/src/sap/ui/unified/messagebundle_es_MX.properties +4 -0
  95. package/src/sap/ui/unified/messagebundle_et.properties +4 -0
  96. package/src/sap/ui/unified/messagebundle_fi.properties +4 -0
  97. package/src/sap/ui/unified/messagebundle_fr.properties +4 -0
  98. package/src/sap/ui/unified/messagebundle_fr_CA.properties +4 -0
  99. package/src/sap/ui/unified/messagebundle_hi.properties +4 -0
  100. package/src/sap/ui/unified/messagebundle_hr.properties +4 -0
  101. package/src/sap/ui/unified/messagebundle_hu.properties +4 -0
  102. package/src/sap/ui/unified/messagebundle_id.properties +4 -0
  103. package/src/sap/ui/unified/messagebundle_it.properties +4 -0
  104. package/src/sap/ui/unified/messagebundle_iw.properties +4 -0
  105. package/src/sap/ui/unified/messagebundle_ja.properties +4 -0
  106. package/src/sap/ui/unified/messagebundle_kk.properties +4 -0
  107. package/src/sap/ui/unified/messagebundle_ko.properties +4 -0
  108. package/src/sap/ui/unified/messagebundle_lt.properties +4 -0
  109. package/src/sap/ui/unified/messagebundle_lv.properties +4 -0
  110. package/src/sap/ui/unified/messagebundle_ms.properties +4 -0
  111. package/src/sap/ui/unified/messagebundle_nl.properties +4 -0
  112. package/src/sap/ui/unified/messagebundle_no.properties +4 -0
  113. package/src/sap/ui/unified/messagebundle_pl.properties +4 -0
  114. package/src/sap/ui/unified/messagebundle_pt.properties +4 -0
  115. package/src/sap/ui/unified/messagebundle_pt_PT.properties +4 -0
  116. package/src/sap/ui/unified/messagebundle_ro.properties +4 -0
  117. package/src/sap/ui/unified/messagebundle_ru.properties +4 -0
  118. package/src/sap/ui/unified/messagebundle_sh.properties +4 -0
  119. package/src/sap/ui/unified/messagebundle_sk.properties +4 -0
  120. package/src/sap/ui/unified/messagebundle_sl.properties +4 -0
  121. package/src/sap/ui/unified/messagebundle_sv.properties +4 -0
  122. package/src/sap/ui/unified/messagebundle_th.properties +4 -0
  123. package/src/sap/ui/unified/messagebundle_tr.properties +4 -0
  124. package/src/sap/ui/unified/messagebundle_uk.properties +4 -0
  125. package/src/sap/ui/unified/messagebundle_vi.properties +4 -0
  126. package/src/sap/ui/unified/messagebundle_zh_CN.properties +4 -0
  127. package/src/sap/ui/unified/messagebundle_zh_TW.properties +4 -0
  128. package/src/sap/ui/unified/rules/FileUploader.support.js +1 -1
  129. package/src/sap/ui/unified/themes/base/Menu.less +8 -0
  130. package/src/sap/ui/unified/themes/base/library.source.less +1 -1
  131. package/src/sap/ui/unified/themes/sap_hcb/library.source.less +1 -1
@@ -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
 
@@ -23,7 +23,7 @@ sap.ui.define(['sap/ui/core/Element', './library'],
23
23
  * @extends sap.ui.core.Element
24
24
  *
25
25
  * @author SAP SE
26
- * @version 1.84.30-SNAPSHOT
26
+ * @version 1.84.32
27
27
  * @since 1.21.0
28
28
  *
29
29
  * @constructor
@@ -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
 
@@ -15,7 +15,7 @@ sap.ui.define([],
15
15
  * Menu renderer.
16
16
  * @author SAP - TD Core UI&AM UI Infra
17
17
  *
18
- * @version 1.84.30-SNAPSHOT
18
+ * @version 1.84.32
19
19
  * @namespace
20
20
  */
21
21
  var MenuRenderer = {
@@ -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
 
@@ -49,7 +49,7 @@ sap.ui.define([
49
49
  * @extends sap.ui.unified.MenuItemBase
50
50
  *
51
51
  * @author SAP SE
52
- * @version 1.84.30-SNAPSHOT
52
+ * @version 1.84.32
53
53
  * @since 1.21.0
54
54
  *
55
55
  * @constructor
@@ -124,12 +124,12 @@ sap.ui.define([
124
124
  // Left border
125
125
  rm.write("><div class=\"sapUiMnuItmL\"></div>");
126
126
 
127
- // icon/check column
128
- rm.write("<div class=\"sapUiMnuItmIco\">");
129
127
  if (oItem.getIcon()) {
128
+ // icon/check column
129
+ rm.write("<div class=\"sapUiMnuItmIco\">");
130
130
  rm.writeIcon(oItem.getIcon(), null, {title: null});
131
+ rm.write("</div>");
131
132
  }
132
- rm.write("</div>");
133
133
 
134
134
  // Text filed column
135
135
  rm.write("<div id=\"" + itemId + "-txt\" class=\"sapUiMnuItmTxt\">");
@@ -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
 
@@ -25,7 +25,7 @@ sap.ui.define(['./ShellHeader', './ShellLayout', './library', './ShellRenderer']
25
25
  * @extends sap.ui.unified.ShellLayout
26
26
  *
27
27
  * @author SAP SE
28
- * @version 1.84.30-SNAPSHOT
28
+ * @version 1.84.32
29
29
  *
30
30
  * @constructor
31
31
  * @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
 
@@ -28,7 +28,7 @@ sap.ui.define([
28
28
  * @extends sap.ui.core.Element
29
29
  *
30
30
  * @author SAP SE
31
- * @version 1.84.30-SNAPSHOT
31
+ * @version 1.84.32
32
32
  *
33
33
  * @constructor
34
34
  * @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
 
@@ -27,7 +27,7 @@ sap.ui.define([
27
27
  * @extends sap.ui.core.Element
28
28
  *
29
29
  * @author SAP SE
30
- * @version 1.84.30-SNAPSHOT
30
+ * @version 1.84.32
31
31
  *
32
32
  * @constructor
33
33
  * @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
 
@@ -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
 
@@ -48,7 +48,7 @@ sap.ui.define([
48
48
  * @extends sap.ui.core.Control
49
49
  *
50
50
  * @author SAP SE
51
- * @version 1.84.30-SNAPSHOT
51
+ * @version 1.84.32
52
52
  *
53
53
  * @constructor
54
54
  * @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
 
@@ -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
 
@@ -40,7 +40,7 @@ sap.ui.define([
40
40
  * @extends sap.ui.core.Control
41
41
  *
42
42
  * @author SAP SE
43
- * @version 1.84.30-SNAPSHOT
43
+ * @version 1.84.32
44
44
  *
45
45
  * @constructor
46
46
  * @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
 
@@ -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.84.30-SNAPSHOT
36
+ * @version 1.84.32
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
 
@@ -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
 
@@ -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
 
@@ -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
 
@@ -32,7 +32,7 @@ sap.ui.define([
32
32
  * If used inside the calendar the properties and aggregation are directly taken from the parent
33
33
  * (To not duplicate and sync DateRanges and so on...)
34
34
  * @extends sap.ui.unified.calendar.Month
35
- * @version 1.84.30-SNAPSHOT
35
+ * @version 1.84.32
36
36
  *
37
37
  * @constructor
38
38
  * @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
 
@@ -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
 
@@ -27,7 +27,7 @@ sap.ui.define([
27
27
  *
28
28
  * <b>Note:</b> This is used inside the calendar. Not for standalone usage
29
29
  * @extends sap.ui.core.Control
30
- * @version 1.84.30-SNAPSHOT
30
+ * @version 1.84.32
31
31
  *
32
32
  * @constructor
33
33
  * @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
 
@@ -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,12 @@ sap.ui.define([
21
21
  "./MonthRenderer",
22
22
  "sap/ui/dom/containsOrEquals",
23
23
  "sap/ui/events/KeyCodes",
24
- "sap/ui/thirdparty/jquery"
24
+ "sap/ui/thirdparty/jquery",
25
+ 'sap/ui/core/InvisibleMessage',
26
+ "sap/ui/core/Configuration",
27
+ "sap/ui/core/date/CalendarWeekNumbering",
28
+ "sap/ui/core/date/CalendarUtils",
29
+ "sap/base/Log"
25
30
  ], function(
26
31
  Control,
27
32
  Device,
@@ -38,7 +43,12 @@ sap.ui.define([
38
43
  MonthRenderer,
39
44
  containsOrEquals,
40
45
  KeyCodes,
41
- jQuery
46
+ jQuery,
47
+ InvisibleMessage,
48
+ Configuration,
49
+ CalendarWeekNumbering,
50
+ CalendarDateUtils,
51
+ Log
42
52
  ) {
43
53
  "use strict";
44
54
 
@@ -65,7 +75,7 @@ sap.ui.define([
65
75
  * If used inside the calendar the properties and aggregation are directly taken from the parent
66
76
  * (To not duplicate and sync DateRanges and so on...)
67
77
  * @extends sap.ui.core.Control
68
- * @version 1.84.30-SNAPSHOT
78
+ * @version 1.84.32
69
79
  *
70
80
  * @constructor
71
81
  * @public
@@ -99,8 +109,9 @@ sap.ui.define([
99
109
  showHeader : {type : "boolean", group : "Appearance", defaultValue : false},
100
110
 
101
111
  /**
102
- * If set, the first day of the displayed week is this day. Valid values are 0 to 6.
103
- * If not a valid value is set, the default of the used locale is used.
112
+ * If the property is set, this day marks the start of the displayed week. Valid values are 0 to 6.
113
+ * If no valid property is set, the current locale's default is applied.
114
+ * Note: This property should not be used with the calendarWeekNumbering property.
104
115
  * @since 1.28.9
105
116
  */
106
117
  firstDayOfWeek : {type : "int", group : "Appearance", defaultValue : -1},
@@ -140,7 +151,14 @@ sap.ui.define([
140
151
  * regardless of what is set to this property.
141
152
  * @since 1.48
142
153
  */
143
- showWeekNumbers : {type : "boolean", group : "Appearance", defaultValue : true}
154
+ showWeekNumbers : {type : "boolean", group : "Appearance", defaultValue : true},
155
+ /**
156
+ * If set, the calendar week numbering is used for display.
157
+ * If not set, the calendar week numbering of the global configuration is used.
158
+ * Note: This property should not be used with firstDayOfWeek property.
159
+ * @since 1.108.0
160
+ */
161
+ calendarWeekNumbering : { type : "sap.ui.core.date.CalendarWeekNumbering", group : "Appearance", defaultValue: null}
144
162
 
145
163
  },
146
164
  aggregations : {
@@ -282,6 +300,12 @@ sap.ui.define([
282
300
  return this._oItemNavigation.getItemDomRefs()[this._oItemNavigation.getFocusedIndex()];
283
301
  };
284
302
 
303
+ Month.prototype.onBeforeRendering = function() {
304
+ if (this.getFirstDayOfWeek() !== -1 && this.getCalendarWeekNumbering() !== "Default") {
305
+ Log.warning("Both properties firstDayOfWeek and calendarWeekNumbering should not be used at the same time!");
306
+ }
307
+ };
308
+
285
309
  Month.prototype.onAfterRendering = function(){
286
310
 
287
311
  _initItemNavigation.call(this);
@@ -731,8 +755,14 @@ sap.ui.define([
731
755
  }
732
756
 
733
757
  if (iFirstDayOfWeek < 0 || iFirstDayOfWeek > 6) {
734
- var oLocaleData = this._getLocaleData();
735
- iFirstDayOfWeek = oLocaleData.getFirstDayOfWeek();
758
+ var oWeekConfigurationValues = CalendarDateUtils.getWeekConfigurationValues(this.getCalendarWeekNumbering(), new Locale(this._getLocale()));
759
+
760
+ if (oWeekConfigurationValues) {
761
+ iFirstDayOfWeek = oWeekConfigurationValues.firstDayOfWeek;
762
+ } else {
763
+ var oLocaleData = this._getLocaleData();
764
+ iFirstDayOfWeek = oLocaleData.getFirstDayOfWeek();
765
+ }
736
766
  }
737
767
 
738
768
  return iFirstDayOfWeek;
@@ -1591,6 +1621,36 @@ sap.ui.define([
1591
1621
  return this;
1592
1622
  };
1593
1623
 
1624
+ /**
1625
+ * Calculates week number.
1626
+ *
1627
+ * @param {sap.ui.unified.calendar.CalendarDate} oDate Start date of the week
1628
+ * @returns {int} Week number
1629
+ * @private
1630
+ */
1631
+ Month.prototype._calculateWeekNumber = function (oDate) {
1632
+ var oLocale = new Locale(this._getLocale());
1633
+ var oEndDate = this._getLastWeekDate(oDate);
1634
+ var oWeekConfigurationValues = CalendarDateUtils.getWeekConfigurationValues(this.getCalendarWeekNumbering(), oLocale);
1635
+ var oDateFormat;
1636
+ var iWeekNumber;
1637
+
1638
+ oDateFormat = DateFormat.getInstance({pattern: "w", calendarType: this.getPrimaryCalendarType(), calendarWeekNumbering: this.getCalendarWeekNumbering()}, oLocale);
1639
+
1640
+ var bIsRegionUS = oWeekConfigurationValues.firstDayOfWeek === 0;
1641
+
1642
+ // Because the date we use to calculate the week number may be in one year and in the same time
1643
+ // includes days in a new month into a new year, we explicitly changed the week number
1644
+ // US calendar weeks overlap, Jan 1st is always week 1, while Dec 31st is always last week.
1645
+ if (oEndDate.getMonth() === 0 && this._oDate.getMonth() === 0 && bIsRegionUS) {
1646
+ iWeekNumber = oDateFormat.format(oEndDate.toUTCJSDate(), true);
1647
+ } else {
1648
+ iWeekNumber = oDateFormat.format(oDate.toUTCJSDate(), true);
1649
+ }
1650
+
1651
+ return iWeekNumber;
1652
+ };
1653
+
1594
1654
  /**
1595
1655
  * Determines if week selection is allowed.
1596
1656
  * @returns {boolean} Week selection is allowed
@@ -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
 
@@ -51,7 +51,7 @@ sap.ui.define([
51
51
  * renders a MonthPicker with ItemNavigation
52
52
  * This is used inside the calendar. Not for stand alone usage
53
53
  * @extends sap.ui.core.Control
54
- * @version 1.84.30-SNAPSHOT
54
+ * @version 1.84.32
55
55
  *
56
56
  * @constructor
57
57
  * @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
 
@@ -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
 
@@ -274,7 +274,7 @@ sap.ui.define(['sap/ui/unified/calendar/CalendarUtils', 'sap/ui/unified/calendar
274
274
  oRm.openEnd();
275
275
 
276
276
  if (bWeekNum) {
277
- this._renderWeekNumber(oRm, aDays[i], oHelper);
277
+ this._renderWeekNumber(oRm, aDays[i], oHelper, oMonth);
278
278
  }
279
279
  }
280
280
 
@@ -564,8 +564,8 @@ sap.ui.define(['sap/ui/unified/calendar/CalendarUtils', 'sap/ui/unified/calendar
564
564
  return sText;
565
565
  };
566
566
 
567
- MonthRenderer._renderWeekNumber = function(oRm, oDay, oHelper) {
568
- var iWeekNumber = CalendarUtils.calculateWeekNumber(oDay.toUTCJSDate(), oHelper.iYear, oHelper.sLocale, oHelper.oLocaleData),
567
+ MonthRenderer._renderWeekNumber = function(oRm, oDay, oHelper, oMonth) {
568
+ var iWeekNumber = oMonth._calculateWeekNumber(oDay),
569
569
  sId = oHelper.sId + "-WNum-" + iWeekNumber;
570
570
 
571
571
  // add week number - inside first day of the week to allow better position and make it easier for ItemNavigation
@@ -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
 
@@ -61,7 +61,7 @@ sap.ui.define([
61
61
  * The MontsRow works with JavaScript Date objects, but only the month and the year are used to display and interact.
62
62
  * As representation for a month, the 1st of the month will always be returned in the API.
63
63
  * @extends sap.ui.core.Control
64
- * @version 1.84.30-SNAPSHOT
64
+ * @version 1.84.32
65
65
  *
66
66
  * @constructor
67
67
  * @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
 
@@ -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
  sap.ui.define([
@@ -34,7 +34,7 @@ sap.ui.define([
34
34
  * Other usages are not supported.
35
35
  *
36
36
  * @extends sap.ui.unified.calendar.DatesRow
37
- * @version 1.84.30-SNAPSHOT
37
+ * @version 1.84.32
38
38
  *
39
39
  * @constructor
40
40
  * @private
@@ -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
 
@@ -62,7 +62,7 @@ sap.ui.define([
62
62
  *
63
63
  * The TimesRow works with JavaScript Date objects.
64
64
  * @extends sap.ui.core.Control
65
- * @version 1.84.30-SNAPSHOT
65
+ * @version 1.84.32
66
66
  *
67
67
  * @constructor
68
68
  * @public
@@ -419,7 +419,7 @@ sap.ui.define([
419
419
 
420
420
  if (this._oFormatLong.oLocale.toString() != sLocale) {
421
421
  var oLocale = new Locale(sLocale);
422
- this._oFormatLong = DateFormat.getInstance({style: "long/short"}, oLocale);
422
+ this._oFormatLong = DateFormat.getDateTimeInstance({style: "long/short"}, oLocale);
423
423
  }
424
424
 
425
425
  return this._oFormatLong;
@@ -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
 
@@ -56,7 +56,7 @@ sap.ui.define([
56
56
  * As in all date-time controls, all pubic JS Date objects that are given (e.g. <code>setDate()</code>) or read
57
57
  * (e.g. <code>getFirstRenderedDate</code>) with values which are considered as date objects in browser(local) timezone.
58
58
  * @extends sap.ui.core.Control
59
- * @version 1.84.30-SNAPSHOT
59
+ * @version 1.84.32
60
60
  *
61
61
  * @constructor
62
62
  * @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
 
@@ -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
 
@@ -49,7 +49,7 @@ sap.ui.define([
49
49
  * @extends sap.ui.unified.calendar.YearPicker
50
50
  *
51
51
  * @author SAP SE
52
- * @version 1.84.30-SNAPSHOT
52
+ * @version 1.84.32
53
53
  *
54
54
  * @constructor
55
55
  * @private
@@ -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
 
@@ -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